gatsby-matrix-theme 3.2.9 → 3.2.10
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.
- package/CHANGELOG.md +25 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/comparison-table/table/index.js +55 -39
- package/src/components/atoms/cards/comparison-table/table/table.module.scss +58 -7
- package/src/gatsby-core-theme/components/molecules/footer/index.js +5 -0
- package/src/gatsby-core-theme/components/organisms/head/index.js +0 -1
- package/storybook/public/{0.0416b9e8.iframe.bundle.js → 0.ec2c65bb.iframe.bundle.js} +1 -1
- package/storybook/public/{1.02a42b9a.iframe.bundle.js → 1.fc1fb4aa.iframe.bundle.js} +1 -1
- package/storybook/public/{10.3d48be86.iframe.bundle.js → 10.ff8f20a0.iframe.bundle.js} +1 -1
- package/storybook/public/{11.3e5dcd6e.iframe.bundle.js → 11.a965ed36.iframe.bundle.js} +1 -1
- package/storybook/public/{12.be3dbae0.iframe.bundle.js → 12.f31f86bb.iframe.bundle.js} +1 -1
- package/storybook/public/{13.4c418d5e.iframe.bundle.js → 13.c72a573a.iframe.bundle.js} +1 -1
- package/storybook/public/{14.13d10e61.iframe.bundle.js → 14.454a253c.iframe.bundle.js} +1 -1
- package/storybook/public/{15.2a8de093.iframe.bundle.js → 15.baadf857.iframe.bundle.js} +1 -1
- package/storybook/public/{16.e735ba7a.iframe.bundle.js → 16.9d6c22db.iframe.bundle.js} +1 -1
- package/storybook/public/{5.838cb66b.iframe.bundle.js → 5.23a17f5a.iframe.bundle.js} +3 -3
- package/storybook/public/{5.838cb66b.iframe.bundle.js.LICENSE.txt → 5.23a17f5a.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/5.23a17f5a.iframe.bundle.js.map +1 -0
- package/storybook/public/{6.df5f19c4.iframe.bundle.js → 6.069b5bfa.iframe.bundle.js} +1 -1
- package/storybook/public/{7.78ac2f73.iframe.bundle.js → 7.600a6e84.iframe.bundle.js} +1 -1
- package/storybook/public/{8.447f6c90.iframe.bundle.js → 8.fd6b3f00.iframe.bundle.js} +1 -1
- package/storybook/public/{9.45f5f8ec.iframe.bundle.js → 9.b7047aeb.iframe.bundle.js} +3 -3
- package/storybook/public/{9.45f5f8ec.iframe.bundle.js.LICENSE.txt → 9.b7047aeb.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/9.b7047aeb.iframe.bundle.js.map +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.cc4a6f61.iframe.bundle.js +1 -0
- package/storybook/public/{runtime~main.f9464c0b.iframe.bundle.js → runtime~main.ce98447d.iframe.bundle.js} +1 -1
- package/storybook/public/{vendors~main.b98fc72a.iframe.bundle.js → vendors~main.8e6f3896.iframe.bundle.js} +4 -4
- package/storybook/public/{vendors~main.b98fc72a.iframe.bundle.js.LICENSE.txt → vendors~main.8e6f3896.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/vendors~main.8e6f3896.iframe.bundle.js.map +1 -0
- package/storybook/public/5.838cb66b.iframe.bundle.js.map +0 -1
- package/storybook/public/9.45f5f8ec.iframe.bundle.js.map +0 -1
- package/storybook/public/main.83dd99d7.iframe.bundle.js +0 -1
- package/storybook/public/vendors~main.b98fc72a.iframe.bundle.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## [3.2.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.9...v3.2.10) (2022-01-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add coupon code logic ([a78dbca](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a78dbca6c26f2c4e880c04ccfe6c41e1d615c7d7))
|
|
7
|
+
* add padding ([c9273eb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c9273eb3e5da3703df8b5ba4af0cea29afd32b63))
|
|
8
|
+
* add some space ([1f511ef](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1f511ef0aa10554b9732b3d162e28a1e0d69e85d))
|
|
9
|
+
* added yarn lock ([ee50cd3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ee50cd3017a6daf71d588823e31234f4bca6f7c9))
|
|
10
|
+
* dmca fixes ([752a65f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/752a65f633e5934307a45a3cbae8c1766266f470))
|
|
11
|
+
* dmca script and hardcoded ([c2f70bb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c2f70bba5618b3e8d0ef488229af3f236b806e1d))
|
|
12
|
+
* fix small issue ([bc5a03d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bc5a03d440d9e298b235ee94f5bd25f1104aee9e))
|
|
13
|
+
* fix space ([874c3a5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/874c3a5f28a02c48e80907acb542c747cf011df1))
|
|
14
|
+
* import dmca in footer from core theme ([ccaa070](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ccaa070d6daf3cf7689cdf8aec8569bb9524e08c))
|
|
15
|
+
* make style ([7ee8177](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7ee8177530662322e871a7e4d0e5f9bf507c7d36))
|
|
16
|
+
* make style for comparison table ([b5acb4c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b5acb4c8e058736ea30fc58362c0bfcd17fbe0b7))
|
|
17
|
+
* merged master branch ([0dc9fad](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0dc9fad624948eb6b4d0271871c61eaf1b59035c))
|
|
18
|
+
* small fix ([6c0d8c8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6c0d8c8b64ab1371439b78bbfae6bf497a3a383d))
|
|
19
|
+
* update new core theme version ([66fe211](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/66fe211293c89dff450cbfcad220fad68ac1b4fd))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* Merge branch 'tm-2625-dmca-implementation' into 'master' ([54d8b7a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/54d8b7adff19085a2768cdef7f8791aae9a96b78))
|
|
23
|
+
* Merge branch 'tm-2585-comparisonTabel' into 'master' ([ef11b91](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ef11b917bd4b6a875cf66bf8b1d6a373e636911b))
|
|
24
|
+
* Update index.js ([e5985b2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e5985b2665e6259bed07b81cd55285730432b2e1))
|
|
25
|
+
|
|
1
26
|
## [3.2.9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.8...v3.2.9) (2022-01-12)
|
|
2
27
|
|
|
3
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
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
|
|
34
|
+
"gatsby-core-theme": "^2.1.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
|
-
|
|
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
|
-
|
|
69
|
-
|
|
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) =>
|
|
148
|
+
.map((currencies, i, list) => (
|
|
149
|
+
<>{`${currencies.iso_code}${i + 1 < list.length ? ', ' : ''}`}</>
|
|
150
|
+
))}
|
|
135
151
|
</span>
|
|
136
152
|
</p>
|
|
137
153
|
</td>
|
|
@@ -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;
|
|
@@ -49,11 +50,18 @@
|
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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.
|
|
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
|
+
color: #17182f;
|
|
117
135
|
}
|
|
118
136
|
}
|
|
119
137
|
.paymentMethods {
|
|
@@ -125,12 +143,45 @@
|
|
|
125
143
|
font-weight: bold;
|
|
126
144
|
font-size: 14px;
|
|
127
145
|
line-height: 18px;
|
|
146
|
+
object-fit: contain;
|
|
147
|
+
color: white;
|
|
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
178
|
max-height: 3.2rem;
|
|
179
|
+
width: 7.2rem;
|
|
180
|
+
object-fit: contain;
|
|
181
|
+
background-color: #fff;
|
|
182
|
+
margin-right: 1rem;
|
|
183
|
+
margin-top: 0.5rem;
|
|
184
|
+
margin-bottom: 0.5rem;
|
|
134
185
|
}
|
|
135
186
|
}
|
|
136
187
|
}
|
|
@@ -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
|
|
|
@@ -20,6 +21,9 @@ const Footer = ({
|
|
|
20
21
|
const BottomSection = footerBottomCustom;
|
|
21
22
|
const showLinks = template !== 'ppc';
|
|
22
23
|
const copyrightDisclaimerValue = getExtraField(section?.extra_fields, copyrightDisclaimer);
|
|
24
|
+
const dmcaImg = (
|
|
25
|
+
<img src="https://cdn.playcasino.co.za/image-1-8.png" alt="DMCA.com Protection Status" />
|
|
26
|
+
);
|
|
23
27
|
|
|
24
28
|
return (
|
|
25
29
|
<footer className={`${styles.footer} ${hasFooterLinks && styles.hasFooterLinks}`}>
|
|
@@ -58,6 +62,7 @@ const Footer = ({
|
|
|
58
62
|
gtmClass="mobile-menu-gtm logo-cta"
|
|
59
63
|
/>
|
|
60
64
|
)}
|
|
65
|
+
<Disclaimer image={dmcaImg} />
|
|
61
66
|
</div>
|
|
62
67
|
</div>
|
|
63
68
|
</footer>
|