gatsby-matrix-theme 3.2.9 → 3.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/package.json +2 -2
  3. package/src/components/atoms/cards/comparison-table/table/index.js +55 -39
  4. package/src/components/atoms/cards/comparison-table/table/table.module.scss +63 -11
  5. package/src/components/atoms/newsletter/form/index.js +2 -2
  6. package/src/gatsby-core-theme/components/molecules/footer/index.js +7 -0
  7. package/src/gatsby-core-theme/components/organisms/anchor/anchor.module.scss +14 -1
  8. package/src/gatsby-core-theme/components/organisms/anchor/index.js +3 -17
  9. package/src/gatsby-core-theme/components/organisms/head/index.js +8 -1
  10. package/storybook/public/{0.0416b9e8.iframe.bundle.js → 0.ec2c65bb.iframe.bundle.js} +1 -1
  11. package/storybook/public/{1.02a42b9a.iframe.bundle.js → 1.fc1fb4aa.iframe.bundle.js} +1 -1
  12. package/storybook/public/{10.3d48be86.iframe.bundle.js → 10.ff8f20a0.iframe.bundle.js} +1 -1
  13. package/storybook/public/{11.3e5dcd6e.iframe.bundle.js → 11.a965ed36.iframe.bundle.js} +1 -1
  14. package/storybook/public/{12.be3dbae0.iframe.bundle.js → 12.f31f86bb.iframe.bundle.js} +1 -1
  15. package/storybook/public/{13.4c418d5e.iframe.bundle.js → 13.c72a573a.iframe.bundle.js} +1 -1
  16. package/storybook/public/{14.13d10e61.iframe.bundle.js → 14.454a253c.iframe.bundle.js} +1 -1
  17. package/storybook/public/{15.2a8de093.iframe.bundle.js → 15.baadf857.iframe.bundle.js} +1 -1
  18. package/storybook/public/{16.e735ba7a.iframe.bundle.js → 16.9d6c22db.iframe.bundle.js} +1 -1
  19. package/storybook/public/{5.838cb66b.iframe.bundle.js → 5.23a17f5a.iframe.bundle.js} +3 -3
  20. package/storybook/public/{5.838cb66b.iframe.bundle.js.LICENSE.txt → 5.23a17f5a.iframe.bundle.js.LICENSE.txt} +0 -0
  21. package/storybook/public/5.23a17f5a.iframe.bundle.js.map +1 -0
  22. package/storybook/public/{6.df5f19c4.iframe.bundle.js → 6.069b5bfa.iframe.bundle.js} +1 -1
  23. package/storybook/public/{7.78ac2f73.iframe.bundle.js → 7.600a6e84.iframe.bundle.js} +1 -1
  24. package/storybook/public/{8.447f6c90.iframe.bundle.js → 8.fd6b3f00.iframe.bundle.js} +1 -1
  25. package/storybook/public/{9.45f5f8ec.iframe.bundle.js → 9.b7047aeb.iframe.bundle.js} +3 -3
  26. package/storybook/public/{9.45f5f8ec.iframe.bundle.js.LICENSE.txt → 9.b7047aeb.iframe.bundle.js.LICENSE.txt} +0 -0
  27. package/storybook/public/9.b7047aeb.iframe.bundle.js.map +1 -0
  28. package/storybook/public/iframe.html +1 -1
  29. package/storybook/public/main.cb46f94c.iframe.bundle.js +1 -0
  30. package/storybook/public/{runtime~main.f9464c0b.iframe.bundle.js → runtime~main.ce98447d.iframe.bundle.js} +1 -1
  31. package/storybook/public/{vendors~main.b98fc72a.iframe.bundle.js → vendors~main.7fc7de06.iframe.bundle.js} +4 -4
  32. package/storybook/public/{vendors~main.b98fc72a.iframe.bundle.js.LICENSE.txt → vendors~main.7fc7de06.iframe.bundle.js.LICENSE.txt} +0 -0
  33. package/storybook/public/vendors~main.7fc7de06.iframe.bundle.js.map +1 -0
  34. package/storybook/public/5.838cb66b.iframe.bundle.js.map +0 -1
  35. package/storybook/public/9.45f5f8ec.iframe.bundle.js.map +0 -1
  36. package/storybook/public/main.83dd99d7.iframe.bundle.js +0 -1
  37. package/storybook/public/vendors~main.b98fc72a.iframe.bundle.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,75 @@
1
+ ## [3.2.13](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.12...v3.2.13) (2022-01-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * minor fixes ([0082bdf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0082bdf105de208b8987f079726f6bf7d8608835))
7
+
8
+
9
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([dccc488](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/dccc488f216ebe115db8c4189b102ea028b5b290))
10
+
11
+ ## [3.2.12](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.11...v3.2.12) (2022-01-18)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * make style ([7bdee3c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7bdee3cca0ed0734030933a28704dbb70c7c61ad))
17
+ * removed slider from anchor module ([f0ed893](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f0ed893e51c19ec7264827f1dc6a30f2c91c0c2e))
18
+ * small fix ([5c331cf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5c331cf2de55270811ffa316cd3d39c98c013176))
19
+ * update aria-label on newsletter inputs ([23b9bb9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/23b9bb91aab8ea57291989b01423ca27ee97c3b4))
20
+
21
+
22
+ ### Code Refactoring
23
+
24
+ * update html.js for w3 validator ([ffb2aa5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ffb2aa5ae3051657dd427571f99e9feed1eca642))
25
+
26
+
27
+ ### Config
28
+
29
+ * updated theme version ([98954f3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/98954f3a11f851ee66d620a32b1feac013f2642f))
30
+
31
+
32
+ * Merge branch 'tm-2567-update-theme-for-w3-validator' into 'master' ([1bb11dd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1bb11dded1f44fce70f0ac22bcc151f19cb92cfe))
33
+ * Merge branch 'tm-2655-anchor-module' into 'master' ([cfd8d53](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/cfd8d538e7b450fd1cf49e0ba10cd7f575d482f7))
34
+ * Merge branch 'tm-2567-update-theme-for-w3-validator' into 'master' ([7038322](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/703832269572f3bd5791d56c3a7747a72e1f4fb7))
35
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([e0925b2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e0925b293b241bfbe7ba2138838270ac2ad465d1))
36
+ * Merge branch 'tm-2585-comparisonTabel' into 'master' ([f36ce52](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f36ce52fc6f847cc89c03fc83269d023fcb1774d))
37
+
38
+ ## [3.2.11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.10...v3.2.11) (2022-01-13)
39
+
40
+
41
+ ### Code Refactoring
42
+
43
+ * update newsletter form for w3 validator ([11243b9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/11243b94527d6dc2a62310c60d530199e9be1516))
44
+
45
+
46
+ * Merge branch 'tm-2567-update-theme-for-w3-validator' into 'master' ([82c4eaf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/82c4eafbdac22cde92706d82a6e7365878f1854d))
47
+
48
+ ## [3.2.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.9...v3.2.10) (2022-01-13)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * add coupon code logic ([a78dbca](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a78dbca6c26f2c4e880c04ccfe6c41e1d615c7d7))
54
+ * add padding ([c9273eb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c9273eb3e5da3703df8b5ba4af0cea29afd32b63))
55
+ * add some space ([1f511ef](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1f511ef0aa10554b9732b3d162e28a1e0d69e85d))
56
+ * added yarn lock ([ee50cd3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ee50cd3017a6daf71d588823e31234f4bca6f7c9))
57
+ * dmca fixes ([752a65f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/752a65f633e5934307a45a3cbae8c1766266f470))
58
+ * dmca script and hardcoded ([c2f70bb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c2f70bba5618b3e8d0ef488229af3f236b806e1d))
59
+ * fix small issue ([bc5a03d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bc5a03d440d9e298b235ee94f5bd25f1104aee9e))
60
+ * fix space ([874c3a5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/874c3a5f28a02c48e80907acb542c747cf011df1))
61
+ * import dmca in footer from core theme ([ccaa070](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ccaa070d6daf3cf7689cdf8aec8569bb9524e08c))
62
+ * make style ([7ee8177](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7ee8177530662322e871a7e4d0e5f9bf507c7d36))
63
+ * make style for comparison table ([b5acb4c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b5acb4c8e058736ea30fc58362c0bfcd17fbe0b7))
64
+ * merged master branch ([0dc9fad](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0dc9fad624948eb6b4d0271871c61eaf1b59035c))
65
+ * small fix ([6c0d8c8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6c0d8c8b64ab1371439b78bbfae6bf497a3a383d))
66
+ * update new core theme version ([66fe211](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/66fe211293c89dff450cbfcad220fad68ac1b4fd))
67
+
68
+
69
+ * Merge branch 'tm-2625-dmca-implementation' into 'master' ([54d8b7a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/54d8b7adff19085a2768cdef7f8791aae9a96b78))
70
+ * Merge branch 'tm-2585-comparisonTabel' into 'master' ([ef11b91](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ef11b917bd4b6a875cf66bf8b1d6a373e636911b))
71
+ * Update index.js ([e5985b2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e5985b2665e6259bed07b81cd55285730432b2e1))
72
+
1
73
  ## [3.2.9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.8...v3.2.9) (2022-01-12)
2
74
 
3
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.9",
3
+ "version": "3.2.13",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -31,7 +31,7 @@
31
31
  "cross-env": "^7.0.2",
32
32
  "dotenv": "8.2.0",
33
33
  "gatsby": "^3.3.1",
34
- "gatsby-core-theme": "^2.0.19",
34
+ "gatsby-core-theme": "^2.2.0",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-postcss": "^4.3.0",
@@ -1,6 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { AiOutlineCheckCircle } from 'react-icons/ai';
4
+ import { VscFiles } from 'react-icons/vsc';
4
5
  import { imagePrettyUrl, translate } from 'gatsby-core-theme/src/helpers/getters';
5
6
  import LazyImg from 'gatsby-core-theme/src/hooks/lazy-image';
6
7
  import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta';
@@ -11,44 +12,43 @@ import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
11
12
 
12
13
  import styles from './table.module.scss';
13
14
 
14
- export default function ComparisonTable({ items }) {
15
+ const listHeadings = [
16
+ {
17
+ defaultValue: 'Casino name',
18
+ key: 'casino_name',
19
+ },
20
+ {
21
+ defaultValue: 'Rating',
22
+ key: 'rating',
23
+ },
24
+ {
25
+ defaultValue: 'Bonus',
26
+ key: 'bonus',
27
+ },
28
+ {
29
+ defaultValue: 'Top Features',
30
+ key: 'top_features',
31
+ },
32
+ {
33
+ defaultValue: 'Payment Methods',
34
+ key: 'payment_methods',
35
+ },
36
+ {
37
+ defaultValue: 'Banking',
38
+ key: 'banking',
39
+ },
40
+ {
41
+ defaultValue: 'Currencies',
42
+ key: 'currencies',
43
+ },
44
+ {
45
+ defaultValue: 'Licenses',
46
+ key: 'licenses',
47
+ },
48
+ ];
49
+ export default function ComparisonTable({ items, tabelInfo = listHeadings }) {
15
50
  const { translations } = useContext(Context) || {};
16
51
 
17
- const tabelInfo = [
18
- {
19
- defaultValue: 'Casino name',
20
- key: 'casino_name',
21
- },
22
- {
23
- defaultValue: 'Rating',
24
- key: 'rating',
25
- },
26
- {
27
- defaultValue: 'Bonus',
28
- key: 'bonus',
29
- },
30
- {
31
- defaultValue: 'Top Features',
32
- key: 'top_features',
33
- },
34
- {
35
- defaultValue: 'Payment Methods',
36
- key: 'payment_methods',
37
- },
38
- {
39
- defaultValue: 'Banking',
40
- key: 'banking',
41
- },
42
- {
43
- defaultValue: 'Currencies',
44
- key: 'currencies',
45
- },
46
- {
47
- defaultValue: 'Licenses',
48
- key: 'licenses',
49
- },
50
- ];
51
-
52
52
  const cell = (heading, item, index) => {
53
53
  switch (heading) {
54
54
  case 'casino_name':
@@ -65,8 +65,9 @@ export default function ComparisonTable({ items }) {
65
65
  <OperatorCta
66
66
  tracker="main"
67
67
  operator={item?.relation}
68
- playText={translate(translations, 'play_now', 'Play Now')}
69
- gtmClass="operator-card-gtm btn-cta"
68
+ // new key
69
+ translationKey="play_ex"
70
+ gtmClass="comparison-table-gtm btn-cta"
70
71
  />
71
72
  </div>
72
73
  </td>
@@ -95,6 +96,19 @@ export default function ComparisonTable({ items }) {
95
96
  ))}
96
97
  </td>
97
98
  );
99
+ case 'coupon_code':
100
+ return (
101
+ <td key={index} className={styles.couponCode}>
102
+ {item?.relation?.extra_fields?.coupon_code && (
103
+ <>
104
+ <p>
105
+ {item?.relation?.extra_fields?.coupon_code}{' '}
106
+ <VscFiles color="var(--coupon-code-color);" />
107
+ </p>
108
+ </>
109
+ )}
110
+ </td>
111
+ );
98
112
  case 'payment_methods':
99
113
  return (
100
114
  <td key={index} className={styles.paymentMethods}>
@@ -131,7 +145,9 @@ export default function ComparisonTable({ items }) {
131
145
  {item?.relation?.bonus?.currencies &&
132
146
  item?.relation?.bonus?.currencies
133
147
  .slice(0, 3)
134
- .map((currencies) => currencies.iso_code)}
148
+ .map((currencies, i, list) => (
149
+ <>{`${currencies.iso_code}${i + 1 < list.length ? ', ' : ''}`}</>
150
+ ))}
135
151
  </span>
136
152
  </p>
137
153
  </td>
@@ -1,8 +1,8 @@
1
1
  .table {
2
2
  cursor: grabbing;
3
3
  tr {
4
- grid-template-columns: 15.2rem 27rem;
5
- grid-auto-columns: 27rem;
4
+ grid-template-columns: 15.2rem 30rem;
5
+ grid-auto-columns: 30rem;
6
6
  grid-auto-flow: column;
7
7
  display: grid;
8
8
 
@@ -21,6 +21,7 @@
21
21
 
22
22
  th {
23
23
  @include flex-align(center, center);
24
+ padding: 2rem 2rem;
24
25
  background-color: var(--comparison-header-background-color);
25
26
  border: 1px solid var(--comparison-header-border-color);
26
27
  border-bottom: none;
@@ -43,17 +44,24 @@
43
44
  }
44
45
  .casinoName {
45
46
  @include flex-direction(row);
46
- @include flex-align(center, space-between);
47
+ @include flex-align(center, flex-start);
47
48
  padding: 1.6rem;
48
49
  img {
49
50
  border: 1px solid var(--color-9);
50
51
  box-sizing: border-box;
51
52
  margin-right: 1.6rem;
53
+ border-radius: 0.6rem;
52
54
  }
53
- span {
54
- font-weight: bold;
55
- font-size: 18px;
56
- line-height: 25px;
55
+ > div {
56
+ height: 100%;
57
+ @include flex-direction(column);
58
+ @include flex-align(flex-start, space-between);
59
+ span {
60
+ font-weight: bold;
61
+ font-size: 18px;
62
+ line-height: 25px;
63
+ color: black;
64
+ }
57
65
  }
58
66
  }
59
67
 
@@ -67,13 +75,14 @@
67
75
  font-weight: bold;
68
76
  }
69
77
  }
70
-
78
+
71
79
  .raiting {
72
80
  @include flex-align(center, space-between);
73
81
 
74
82
  a {
75
83
  font-weight: bold;
76
84
  font-size: 1.6rem;
85
+ color: var(--text-link-color);
77
86
  }
78
87
  }
79
88
  .topFeatures {
@@ -82,10 +91,13 @@
82
91
  span {
83
92
  @include flex-direction(row);
84
93
  @include flex-align(center, center);
85
- margin-bottom: 0.8rem;
94
+ margin-bottom: 0.4rem;
95
+ margin-top: 0.4rem;
86
96
  svg {
87
97
  color: var(--comparison-top-features-icon-color);
88
98
  margin-right: 0.93rem;
99
+ min-width: 2.5rem;
100
+ height: 2rem;
89
101
  }
90
102
  }
91
103
  }
@@ -99,12 +111,14 @@
99
111
  font-size: 1.4rem;
100
112
  line-height: 2.4rem;
101
113
  margin-bottom: 1rem;
114
+ color: black;
102
115
  span {
103
116
  font-weight: bold;
104
117
  }
105
118
  }
106
119
  }
107
120
  .currencies {
121
+ padding: 1.6rem 1rem;
108
122
  span {
109
123
  margin-left: 0.4rem;
110
124
  background: var(--comparison-currencies-background-color);
@@ -114,6 +128,10 @@
114
128
  font-weight: bold;
115
129
  font-size: 12px;
116
130
  line-height: 18px;
131
+ width: 4.4rem;
132
+ height: 2.4rem;
133
+ padding: 0.499rem 0.8rem;
134
+ display: inline-block;
117
135
  }
118
136
  }
119
137
  .paymentMethods {
@@ -125,12 +143,46 @@
125
143
  font-weight: bold;
126
144
  font-size: 14px;
127
145
  line-height: 18px;
146
+ object-fit: contain;
147
+ color: black;
148
+ margin-bottom: 0.5rem;
149
+ margin-top: 0.5rem;
150
+ img {
151
+ width: 7.2rem;
152
+ height: 3.2rem;
153
+ object-fit: contain;
154
+ }
155
+ }
156
+ }
157
+ .couponCode {
158
+ @include flex-align(center, flex-start);
159
+ box-sizing: border-box;
160
+ p {
161
+ @include flex-align(center, center);
162
+ border: 1px dashed var(--coupon-code-color);
163
+ background-color: var(--backgorund--coupon-code-color);
164
+ width: fit-content;
165
+ padding: 0.4rem 1.6rem;
166
+ border-radius: 0.5rem;
167
+ font-weight: bold;
168
+ font-size: 1.4rem;
169
+ color: var(--coupon-code-color);
170
+ svg{
171
+ margin-left: 1rem;
172
+ }
128
173
  }
129
174
  }
130
-
131
175
  .licenses {
176
+ padding: 1.1rem;
132
177
  img {
133
- max-height: 3.2rem;
178
+ display: inline-block;
179
+ height: 3.2rem;
180
+ width: 7.2rem;
181
+ object-fit: contain;
182
+ background-color: #fff;
183
+ margin-right: 1rem;
184
+ margin-top: 0.5rem;
185
+ margin-bottom: 0.5rem;
134
186
  }
135
187
  }
136
188
  }
@@ -45,8 +45,8 @@ const NewsletterForm =({
45
45
  }
46
46
  return(
47
47
  <form action={formAction} method="post" ref={form} onSubmit={handelSubmit}>
48
- <input type="hidden" name="listname" aria-label="hidden" value={newsletterListId} />
49
- <input type="hidden" name="redirect" aria-label="hidden" value={redirectUrl} />
48
+ <input type="hidden" name="listname" aria-label="listname-hidden" value={newsletterListId} />
49
+ <input type="hidden" name="redirect" aria-label="redirect-hidden" value={redirectUrl} />
50
50
  <input className={styles.input} placeholder={placeholderName} type="text" name="name" />
51
51
  <input className={styles.input} placeholder={placeholderEmail} type="email" name="email" />
52
52
  <button className={styles.button} type="submit">{buttonText}</button>
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import LinkList from 'gatsby-core-theme/src/components/molecules/link-list';
4
4
  import { getExtraField, copyrightText } from 'gatsby-core-theme/src/helpers/getters';
5
+ import Disclaimer from 'gatsby-core-theme/src/components/atoms/disclaimer';
5
6
  import styles from './footer.module.scss';
6
7
  /* eslint-disable react/no-danger */
7
8
 
@@ -15,11 +16,15 @@ const Footer = ({
15
16
  template,
16
17
  page,
17
18
  hasFooterLinks = false,
19
+ hasDisclaimer = true,
18
20
  }) => {
19
21
  const TopSection = footerTopCustom;
20
22
  const BottomSection = footerBottomCustom;
21
23
  const showLinks = template !== 'ppc';
22
24
  const copyrightDisclaimerValue = getExtraField(section?.extra_fields, copyrightDisclaimer);
25
+ const dmcaImg = (
26
+ <img src="https://cdn.playcasino.co.za/image-1-8.png" alt="DMCA.com Protection Status" />
27
+ );
23
28
 
24
29
  return (
25
30
  <footer className={`${styles.footer} ${hasFooterLinks && styles.hasFooterLinks}`}>
@@ -58,6 +63,7 @@ const Footer = ({
58
63
  gtmClass="mobile-menu-gtm logo-cta"
59
64
  />
60
65
  )}
66
+ {hasDisclaimer && <Disclaimer image={dmcaImg} />}
61
67
  </div>
62
68
  </div>
63
69
  </footer>
@@ -86,4 +92,5 @@ Footer.propTypes = {
86
92
  // eslint-disable-next-line react/forbid-prop-types
87
93
  page: PropTypes.object,
88
94
  hasFooterLinks: PropTypes.bool,
95
+ hasDisclaimer: PropTypes.bool,
89
96
  };
@@ -1,4 +1,15 @@
1
- .sliderWrapper {
1
+ .anchor {
2
+ @include flex-direction(row);
3
+ &::-webkit-scrollbar {
4
+ height: 0.5rem;
5
+ }
6
+ &::-webkit-scrollbar-track {
7
+ background: #fff;
8
+ }
9
+ &::-webkit-scrollbar-thumb {
10
+ background: var(--anchor-thumb-color);
11
+ }
12
+ overflow-x: scroll;
2
13
  .link {
3
14
  word-break: inherit;
4
15
  white-space: nowrap;
@@ -8,6 +19,8 @@
8
19
  color: #000;
9
20
  font-weight: 400;
10
21
  @include flex-align(center, center);
22
+ margin-right: 1.6rem;
23
+ margin-bottom: 0.5rem;
11
24
 
12
25
  svg {
13
26
  margin-left: 1rem;
@@ -1,17 +1,10 @@
1
1
  import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Slider from '~molecules/slider';
4
3
  import keygen from '~helpers/keygen';
5
4
  import { anchorLink } from '~helpers/strings';
6
5
  import styles from './anchor.module.scss';
7
6
 
8
- function Anchor({
9
- module: { items },
10
- headerOffset = 80,
11
- sliderGap = 0,
12
- isFixed = false,
13
- icon = null,
14
- }) {
7
+ function Anchor({ module: { items }, headerOffset = 80, isFixed = false, icon = null }) {
15
8
  const [isFixedMenu, setIsFixedMenu] = useState(false);
16
9
  if (isFixed && typeof window !== 'undefined') {
17
10
  window.addEventListener('scroll', () => {
@@ -48,13 +41,7 @@ function Anchor({
48
41
  return (
49
42
  <div id="faq-container">
50
43
  <div className={isFixedMenu && styles.isFixed}>
51
- <Slider
52
- useArrows={false}
53
- usePagination={false}
54
- settings={{ numberOfSlides: 0, sliderGap }}
55
- className={styles.sliderWrapper}
56
- gtmClass="anchor-carousel-gtm"
57
- >
44
+ <div className={styles.anchor}>
58
45
  {items?.map((anchor) => (
59
46
  <a
60
47
  className={`${styles.link} anchor-carousel-gtm anchor-menu-gtm`}
@@ -66,7 +53,7 @@ function Anchor({
66
53
  {icon}
67
54
  </a>
68
55
  ))}
69
- </Slider>
56
+ </div>
70
57
  </div>
71
58
  </div>
72
59
  );
@@ -81,7 +68,6 @@ Anchor.propTypes = {
81
68
  ),
82
69
  }).isRequired,
83
70
  headerOffset: PropTypes.number.isRequired,
84
- sliderGap: PropTypes.number,
85
71
  styles: PropTypes.shape({}),
86
72
  isFixed: PropTypes.bool,
87
73
  icon: PropTypes.element,
@@ -73,6 +73,14 @@ const Head = ({ page = {}, siteInfo }) => {
73
73
  <meta name="og:type" content={page.path === '/' ? 'website' : 'article'} />
74
74
  <meta name="og:image" content={pageImage} />
75
75
  <meta name="og:url" content={getUrl(page.path)} />
76
+ <meta
77
+ property="og:locale"
78
+ content={
79
+ getLanguage(page.language) === 'en' || getLanguage(page.language) === 'en-za'
80
+ ? 'en_GB'
81
+ : getLanguage(page.language)
82
+ }
83
+ />
76
84
 
77
85
  {schemaGenerator(page, pageImage).map(
78
86
  (schema) =>
@@ -83,7 +91,6 @@ const Head = ({ page = {}, siteInfo }) => {
83
91
  )
84
92
  )}
85
93
  </Helmet>
86
-
87
94
  {twitterUsername && (
88
95
  <Helmet>
89
96
  <meta name="twitter:title" content={page.meta_title} />