gatsby-matrix-theme 34.0.10 → 34.0.12
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 +15 -0
- package/package.json +2 -2
- package/src/components/molecules/operator-summary/template-one/index.js +3 -1
- package/src/components/molecules/operator-summary/template-one/template-one.module.scss +45 -2
- package/src/gatsby-core-theme/components/organisms/cards/index.js +5 -85
- package/src/helpers/cards.js +92 -0
- package/storybook/public/{660.edfa73c6.iframe.bundle.js → 660.c91ab12c.iframe.bundle.js} +3 -3
- package/storybook/public/{660.edfa73c6.iframe.bundle.js.map → 660.c91ab12c.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/{main.171c1a93.iframe.bundle.js → main.83ab7bb9.iframe.bundle.js} +2 -2
- /package/storybook/public/{660.edfa73c6.iframe.bundle.js.LICENSE.txt → 660.c91ab12c.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook/public/{main.171c1a93.iframe.bundle.js.LICENSE.txt → main.83ab7bb9.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [34.0.12](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.11...v34.0.12) (2023-10-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* moved card type into helper ([bec3a06](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bec3a063293ce77bf1d91ff7f933f8dd6cf696ba))
|
|
7
|
+
* moved card type into helper ([9461dd8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9461dd8eca9daf727fa876c0fb617be28feb3f7b))
|
|
8
|
+
|
|
9
|
+
## [34.0.11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.10...v34.0.11) (2023-10-10)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add rating for template one summery and update theme ([d76dd2a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d76dd2a46091d6c127d10ea06cb4635220a2394f))
|
|
15
|
+
|
|
1
16
|
## [34.0.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.9...v34.0.10) (2023-10-10)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.12",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"gatsby": "^5.11.0",
|
|
28
|
-
"gatsby-core-theme": "30.0.
|
|
28
|
+
"gatsby-core-theme": "30.0.7",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -6,6 +6,7 @@ import { formatDate } from 'gatsby-core-theme/src/helpers/date-time';
|
|
|
6
6
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
7
7
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
8
8
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
9
|
+
import Ratings from 'gatsby-core-theme/src/components/molecules/star-rating/one-star';
|
|
9
10
|
import Author from '../../../atoms/author/template-one';
|
|
10
11
|
import OperatorBanner from '../../../atoms/header-operator-bannner';
|
|
11
12
|
import styles from './template-one.module.scss';
|
|
@@ -15,7 +16,7 @@ const TemplateOne = ({
|
|
|
15
16
|
imgWidth = 128,
|
|
16
17
|
imgHeight = 146,
|
|
17
18
|
tnc = false,
|
|
18
|
-
operatorImg =
|
|
19
|
+
operatorImg = true,
|
|
19
20
|
}) => {
|
|
20
21
|
const { translations } = useContext(Context) || {};
|
|
21
22
|
const operatorData = page?.relation;
|
|
@@ -31,6 +32,7 @@ const TemplateOne = ({
|
|
|
31
32
|
<h2>{translate(translations, 'expert_casino_review', 'Expert Casino Review')}</h2>
|
|
32
33
|
<div className={styles.img}>
|
|
33
34
|
<LazyImage src={imagePrettyUrl(img)} width={imgWidth} height={imgHeight} alt={name} />
|
|
35
|
+
{operatorImg && <Ratings rating={operatorData?.rating} />}
|
|
34
36
|
</div>
|
|
35
37
|
<div className={styles.author}>
|
|
36
38
|
<Author
|
|
@@ -9,15 +9,19 @@
|
|
|
9
9
|
width: calc(100% - 32px);
|
|
10
10
|
gap: 2.4rem;
|
|
11
11
|
padding: 0 1.6rem;
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
@include min(tablet) {
|
|
13
14
|
padding: 0 2.4rem;
|
|
14
15
|
}
|
|
16
|
+
|
|
15
17
|
//operator-banner
|
|
16
18
|
>div:nth-child(2) {
|
|
17
19
|
margin-bottom: 2.4rem;
|
|
18
|
-
|
|
20
|
+
|
|
21
|
+
@include min(tablet) {
|
|
19
22
|
padding: 1.6rem;
|
|
20
23
|
}
|
|
24
|
+
|
|
21
25
|
>div>div {
|
|
22
26
|
>a:nth-child(2) {
|
|
23
27
|
height: 3.5rem;
|
|
@@ -27,6 +31,7 @@
|
|
|
27
31
|
font-weight: 700;
|
|
28
32
|
line-height: 1.4rem;
|
|
29
33
|
text-transform: capitalize;
|
|
34
|
+
|
|
30
35
|
@include min(tablet) {
|
|
31
36
|
height: 6.4rem;
|
|
32
37
|
font-size: 1.8rem;
|
|
@@ -38,10 +43,12 @@
|
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
46
|
+
|
|
41
47
|
.details {
|
|
42
48
|
margin-top: 2.4rem;
|
|
43
49
|
gap: 2.4rem;
|
|
44
50
|
@include flex-direction(column);
|
|
51
|
+
|
|
45
52
|
>h2 {
|
|
46
53
|
color: var(--operator-summery-title-color, #1C1A28);
|
|
47
54
|
text-align: center;
|
|
@@ -52,9 +59,11 @@
|
|
|
52
59
|
text-transform: capitalize;
|
|
53
60
|
margin: 0;
|
|
54
61
|
}
|
|
62
|
+
|
|
55
63
|
@include min(tablet) {
|
|
56
64
|
display: grid;
|
|
57
65
|
grid-template-columns: repeat(3, auto);
|
|
66
|
+
|
|
58
67
|
h2 {
|
|
59
68
|
grid-column: 1/3;
|
|
60
69
|
grid-row: 1/2;
|
|
@@ -64,21 +73,46 @@
|
|
|
64
73
|
}
|
|
65
74
|
}
|
|
66
75
|
}
|
|
76
|
+
|
|
67
77
|
.img {
|
|
78
|
+
@include flex-direction(column);
|
|
68
79
|
@include flex-align(center, center);
|
|
80
|
+
|
|
69
81
|
>img {
|
|
70
82
|
border-radius: 1.6rem;
|
|
71
83
|
}
|
|
84
|
+
|
|
85
|
+
>div {
|
|
86
|
+
border-radius: 100px;
|
|
87
|
+
background: #F6F6F6;
|
|
88
|
+
width: 7.9rem;
|
|
89
|
+
height: 3.8rem;
|
|
90
|
+
border: 1px solid #F6F6F6;
|
|
91
|
+
@include flex-align(center, center);
|
|
92
|
+
margin-top: -1.9rem;
|
|
93
|
+
color: var(--black-900, #1C1A28);
|
|
94
|
+
font-size: 1.4rem;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 800;
|
|
97
|
+
line-height: 2.2rem;
|
|
98
|
+
|
|
99
|
+
>span:first-child {
|
|
100
|
+
margin-right: .2rem;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
72
104
|
@include min(tablet) {
|
|
73
105
|
grid-column: 1/2;
|
|
74
106
|
grid-row: 2/3;
|
|
75
107
|
margin-right: 2.4rem
|
|
76
108
|
}
|
|
77
109
|
}
|
|
110
|
+
|
|
78
111
|
.author {
|
|
79
112
|
@include flex-direction(column);
|
|
80
113
|
@include flex-align(center, center);
|
|
81
114
|
gap: 1.6rem;
|
|
115
|
+
|
|
82
116
|
>span:first-child {
|
|
83
117
|
>a {
|
|
84
118
|
color: #165AF8 !important;
|
|
@@ -91,6 +125,7 @@
|
|
|
91
125
|
position: relative;
|
|
92
126
|
@include flex-direction(row);
|
|
93
127
|
padding-left: 3.6rem;
|
|
128
|
+
|
|
94
129
|
&::before {
|
|
95
130
|
content: 'By';
|
|
96
131
|
color: #6B6A72;
|
|
@@ -99,6 +134,7 @@
|
|
|
99
134
|
font-weight: 100;
|
|
100
135
|
background-color: white;
|
|
101
136
|
}
|
|
137
|
+
|
|
102
138
|
>img {
|
|
103
139
|
position: absolute;
|
|
104
140
|
left: 0;
|
|
@@ -108,6 +144,7 @@
|
|
|
108
144
|
}
|
|
109
145
|
}
|
|
110
146
|
}
|
|
147
|
+
|
|
111
148
|
>span:nth-child(2) {
|
|
112
149
|
border-radius: 100px;
|
|
113
150
|
background: var(--review-summery-backgorund-color, #5CE482);
|
|
@@ -121,6 +158,7 @@
|
|
|
121
158
|
text-transform: uppercase;
|
|
122
159
|
padding: .6rem 1.2rem;
|
|
123
160
|
}
|
|
161
|
+
|
|
124
162
|
>p {
|
|
125
163
|
font-size: 1.4rem;
|
|
126
164
|
font-style: normal;
|
|
@@ -128,18 +166,22 @@
|
|
|
128
166
|
line-height: 2.2rem;
|
|
129
167
|
color: #3E3C47;
|
|
130
168
|
}
|
|
169
|
+
|
|
131
170
|
@include min(tablet) {
|
|
132
171
|
display: grid;
|
|
133
172
|
grid-template-columns: repeat(3, auto);
|
|
134
173
|
gap: 1.6rem;
|
|
174
|
+
|
|
135
175
|
>p {
|
|
136
176
|
grid-column: 1/2;
|
|
137
177
|
grid-row: 1/2;
|
|
138
178
|
}
|
|
139
179
|
}
|
|
140
180
|
}
|
|
181
|
+
|
|
141
182
|
.description {
|
|
142
183
|
color: #3e3c47;
|
|
184
|
+
|
|
143
185
|
p {
|
|
144
186
|
color: #3E3C47;
|
|
145
187
|
font-size: 1.6rem;
|
|
@@ -147,6 +189,7 @@
|
|
|
147
189
|
font-weight: 400;
|
|
148
190
|
line-height: 2.7rem;
|
|
149
191
|
}
|
|
192
|
+
|
|
150
193
|
@include min(tablet) {
|
|
151
194
|
grid-column: 2/4;
|
|
152
195
|
grid-row: 2/3
|
|
@@ -2,94 +2,14 @@
|
|
|
2
2
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
3
|
/* eslint-disable react/destructuring-assignment */
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import loadable from '@loadable/component';
|
|
6
5
|
import Card from 'gatsby-core-theme/src/components/organisms/cards/index';
|
|
7
|
-
import
|
|
6
|
+
import { getCard } from '../../../../helpers/cards';
|
|
8
7
|
|
|
9
8
|
export default (props) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
switch (props.module.style) {
|
|
15
|
-
case 'advanced':
|
|
16
|
-
customCardComponent = loadable(() =>
|
|
17
|
-
import(`../../../../components/atoms/cards/operator-card/template-two`)
|
|
18
|
-
);
|
|
19
|
-
break;
|
|
20
|
-
case 'template_two':
|
|
21
|
-
customCardComponent = loadable(() =>
|
|
22
|
-
import(`../../../../components/atoms/cards/operator-card/template-two`)
|
|
23
|
-
);
|
|
24
|
-
break;
|
|
25
|
-
case 'template_three':
|
|
26
|
-
customCardComponent = loadable(() =>
|
|
27
|
-
import(`../../../../components/atoms/cards/operator-card/template-three`)
|
|
28
|
-
);
|
|
29
|
-
break;
|
|
30
|
-
case 'template_four':
|
|
31
|
-
customCardComponent = loadable(() =>
|
|
32
|
-
import(`../../../../components/atoms/cards/operator-card/template-four`)
|
|
33
|
-
);
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
customCardComponent = loadable(() =>
|
|
37
|
-
import(`../../../../components/atoms/cards/operator-card/template-one`)
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
break;
|
|
41
|
-
case 'game':
|
|
42
|
-
customCardComponent = GameCards(props.module.style);
|
|
43
|
-
break;
|
|
44
|
-
case 'payment_method':
|
|
45
|
-
if (props.module.style === 'template_three') {
|
|
46
|
-
customCardComponent = loadable(() =>
|
|
47
|
-
import(`../../../../components/atoms/cards/payment-method/template-three`)
|
|
48
|
-
);
|
|
49
|
-
} else if (props.module.style === 'template_two') {
|
|
50
|
-
customCardComponent = loadable(() =>
|
|
51
|
-
import(`../../../../components/atoms/cards/payment-method/template-two`)
|
|
52
|
-
);
|
|
53
|
-
} else {
|
|
54
|
-
customCardComponent = loadable(() =>
|
|
55
|
-
import(`../../../../components/atoms/cards/payment-method/template-one`)
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
case 'software_provider':
|
|
60
|
-
customCardComponent = loadable(() =>
|
|
61
|
-
import(`../../../../components/atoms/cards/software-provider-card/index`)
|
|
62
|
-
);
|
|
63
|
-
break;
|
|
64
|
-
case 'article':
|
|
65
|
-
case 'page':
|
|
66
|
-
if (props.module.style === 'template_two') {
|
|
67
|
-
customCardComponent = loadable(() =>
|
|
68
|
-
import('../../../../components/atoms/cards/article-card/template-two')
|
|
69
|
-
);
|
|
70
|
-
} else {
|
|
71
|
-
customCardComponent = loadable(() =>
|
|
72
|
-
import(`../../../../components/atoms/cards/article-card/template-one`)
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
break;
|
|
77
|
-
case 'author':
|
|
78
|
-
if (props.module.style === 'template_two') {
|
|
79
|
-
customCardComponent = loadable(() =>
|
|
80
|
-
import(`../../../../components/atoms/cards/author/template-two`)
|
|
81
|
-
);
|
|
82
|
-
} else {
|
|
83
|
-
customCardComponent = loadable(() =>
|
|
84
|
-
import(`../../../../components/atoms/cards/author/template-one`)
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
break;
|
|
88
|
-
default:
|
|
89
|
-
customCardComponent = loadable(() =>
|
|
90
|
-
import(`../../../../components/atoms/cards/article-card/template-one`)
|
|
91
|
-
);
|
|
92
|
-
}
|
|
9
|
+
const customCardComponent = getCard(
|
|
10
|
+
props.module.model_type || props.module.cards_page_type,
|
|
11
|
+
props.module.style
|
|
12
|
+
);
|
|
93
13
|
|
|
94
14
|
return (
|
|
95
15
|
<Card
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
|
+
import loadable from '@loadable/component';
|
|
4
|
+
import GameCards from '../components/atoms/cards/game-cards';
|
|
5
|
+
|
|
6
|
+
export function getCard(type, style) {
|
|
7
|
+
let customCardComponent = null;
|
|
8
|
+
|
|
9
|
+
switch (type) {
|
|
10
|
+
case 'operator':
|
|
11
|
+
switch (style) {
|
|
12
|
+
case 'advanced':
|
|
13
|
+
customCardComponent = loadable(() =>
|
|
14
|
+
import(`../components/atoms/cards/operator-card/template-two`)
|
|
15
|
+
);
|
|
16
|
+
break;
|
|
17
|
+
case 'template_two':
|
|
18
|
+
customCardComponent = loadable(() =>
|
|
19
|
+
import(`../components/atoms/cards/operator-card/template-two`)
|
|
20
|
+
);
|
|
21
|
+
break;
|
|
22
|
+
case 'template_three':
|
|
23
|
+
customCardComponent = loadable(() =>
|
|
24
|
+
import(`../components/atoms/cards/operator-card/template-three`)
|
|
25
|
+
);
|
|
26
|
+
break;
|
|
27
|
+
case 'template_four':
|
|
28
|
+
customCardComponent = loadable(() =>
|
|
29
|
+
import(`../components/atoms/cards/operator-card/template-four`)
|
|
30
|
+
);
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
customCardComponent = loadable(() =>
|
|
34
|
+
import(`../components/atoms/cards/operator-card/template-one`)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
case 'game':
|
|
39
|
+
customCardComponent = GameCards(style);
|
|
40
|
+
break;
|
|
41
|
+
case 'payment_method':
|
|
42
|
+
if (style === 'template_three') {
|
|
43
|
+
customCardComponent = loadable(() =>
|
|
44
|
+
import(`../components/atoms/cards/payment-method/template-three`)
|
|
45
|
+
);
|
|
46
|
+
} else if (style === 'template_two') {
|
|
47
|
+
customCardComponent = loadable(() =>
|
|
48
|
+
import(`../components/atoms/cards/payment-method/template-two`)
|
|
49
|
+
);
|
|
50
|
+
} else {
|
|
51
|
+
customCardComponent = loadable(() =>
|
|
52
|
+
import(`../components/atoms/cards/payment-method/template-one`)
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case 'software_provider':
|
|
57
|
+
customCardComponent = loadable(() =>
|
|
58
|
+
import(`../components/atoms/cards/software-provider-card/index`)
|
|
59
|
+
);
|
|
60
|
+
break;
|
|
61
|
+
case 'article':
|
|
62
|
+
case 'page':
|
|
63
|
+
if (style === 'template_two') {
|
|
64
|
+
customCardComponent = loadable(() =>
|
|
65
|
+
import('../components/atoms/cards/article-card/template-two')
|
|
66
|
+
);
|
|
67
|
+
} else {
|
|
68
|
+
customCardComponent = loadable(() =>
|
|
69
|
+
import(`../components/atoms/cards/article-card/template-one`)
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
break;
|
|
74
|
+
case 'author':
|
|
75
|
+
if (style === 'template_two') {
|
|
76
|
+
customCardComponent = loadable(() =>
|
|
77
|
+
import(`../components/atoms/cards/author/template-two`)
|
|
78
|
+
);
|
|
79
|
+
} else {
|
|
80
|
+
customCardComponent = loadable(() =>
|
|
81
|
+
import(`../components/atoms/cards/author/template-one`)
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
customCardComponent = loadable(() =>
|
|
87
|
+
import(`../components/atoms/cards/article-card/template-one`)
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return customCardComponent;
|
|
92
|
+
}
|