gatsby-matrix-theme 12.0.0 → 12.0.2
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/.storybook/preview.js +13 -2
- package/CHANGELOG.md +42 -0
- package/jest.config.js +1 -0
- package/package.json +2 -2
- package/src/components/atoms/header-operator-bannner/header-operator-bannner.module.scss +5 -51
- package/src/components/atoms/header-operator-bannner/index.js +9 -11
- package/src/components/atoms/rating/ratings.module.scss +20 -2
- package/src/components/molecules/header/variants/default/template-one/index.js +7 -5
- package/src/components/molecules/header/variants/operator/template-five/index.js +10 -15
- package/src/components/molecules/header/variants/operator/template-five/template-five.module.scss +43 -52
- package/src/components/molecules/header/variants/operator/template-five/template-five.stories.js +5 -0
- package/src/components/molecules/header/variants/operator/template-four/index.js +12 -2
- package/src/components/molecules/header/variants/operator/template-four/template-four.module.scss +54 -14
- package/src/components/molecules/header/variants/operator/template-four/template-four.stories.js +5 -0
- package/src/components/molecules/header/variants/operator/template-one-two/index.js +3 -1
- package/src/components/molecules/header/variants/operator/template-one-two/template-one-two.module.scss +32 -1
- package/src/components/molecules/header/variants/operator/template-one-two/template-one-two.stories.js +5 -0
- package/src/components/molecules/header/variants/operator/template-three/index.js +12 -2
- package/src/components/molecules/header/variants/operator/template-three/template-three.module.scss +20 -9
- package/src/components/molecules/header/variants/operator/template-three/template-three.stories.js +5 -0
- package/src/components/molecules/header/variants/payment/index.js +12 -0
- package/src/components/molecules/header/variants/slot/template-one/index.js +3 -2
- package/src/components/molecules/header/variants/slot/template-one/template-one.stories.js +2 -0
- package/src/components/molecules/header/variants/software/index.js +12 -0
- package/src/components/organisms/footer-navigation/index.js +2 -2
- package/src/gatsby-core-theme/components/molecules/header/index.js +13 -1
- package/src/gatsby-core-theme/components/organisms/toplist/list/list.test.js +15 -0
- package/src/gatsby-core-theme/styles/utils/variables/_main.scss +9 -7
- package/storybook/public/0.799c368cbe88266827ba.manager.bundle.js +1 -0
- package/storybook/public/1.9ebd2fb519f6726108de.manager.bundle.js +1 -0
- package/storybook/public/10.a85ea1a67689be8e19ff.manager.bundle.js +1 -0
- package/storybook/public/11.f4e922583ae35da460f3.manager.bundle.js +2 -0
- package/storybook/public/11.f4e922583ae35da460f3.manager.bundle.js.LICENSE.txt +12 -0
- package/storybook/public/12.1415460941f0bdcb8fa8.manager.bundle.js +1 -0
- package/storybook/public/29.81c8da24.iframe.bundle.js +1 -0
- package/storybook/public/371.33931d9d.iframe.bundle.js +7 -0
- package/storybook/public/371.33931d9d.iframe.bundle.js.LICENSE.txt +84 -0
- package/storybook/public/371.33931d9d.iframe.bundle.js.map +1 -0
- package/storybook/public/5.f459d151315e6780c20f.manager.bundle.js +2 -0
- package/storybook/public/5.f459d151315e6780c20f.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook/public/500.b8a84abc.iframe.bundle.js +1 -0
- package/storybook/public/567.18a981a5.iframe.bundle.js +1 -0
- package/storybook/public/6.3bd64d820f3745f262ff.manager.bundle.js +1 -0
- package/storybook/public/64.13a61964.iframe.bundle.js +1 -0
- package/storybook/public/7.3d04765dbf3f1dcd706c.manager.bundle.js +1 -0
- package/storybook/public/738.be449817.iframe.bundle.js +2 -0
- package/storybook/public/738.be449817.iframe.bundle.js.LICENSE.txt +12 -0
- package/storybook/public/766.47f12b05.iframe.bundle.js +1 -0
- package/storybook/public/8.b541eadfcb9164835dfc.manager.bundle.js +1 -0
- package/storybook/public/805.7894ddea.iframe.bundle.js +2 -0
- package/storybook/public/805.7894ddea.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook/public/9.411ac8e451bbb10926c7.manager.bundle.js +1 -0
- package/storybook/public/974.e2f03aac.iframe.bundle.js +1 -0
- package/storybook/public/favicon.ico +0 -0
- package/storybook/public/iframe.html +348 -0
- package/storybook/public/index.html +51 -0
- package/storybook/public/main.58ee6c5c0cfaec21e272.manager.bundle.js +1 -0
- package/storybook/public/main.df72707f.iframe.bundle.js +1 -0
- package/storybook/public/runtime~main.3c8ed572.iframe.bundle.js +1 -0
- package/storybook/public/runtime~main.91a0c7330ab317d35c4a.manager.bundle.js +1 -0
- package/storybook/public/static/media/popup-bg.51d14d2d.webp +0 -0
- package/storybook/public/static/media/summaryBackground.92dfe7de.jpeg +0 -0
- package/storybook/public/static/media/verify.e944570b.svg +11 -0
- package/storybook/public/vendors~main.f7f16cebbf3aa96a4f89.manager.bundle.js +2 -0
- package/storybook/public/vendors~main.f7f16cebbf3aa96a4f89.manager.bundle.js.LICENSE.txt +110 -0
- package/storybook-images/verify.svg +11 -0
package/.storybook/preview.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '../../node_modules/gatsby-core-theme/gatsby-browser';
|
|
2
|
+
require('../src/gatsby-core-theme/styles/utils/variables/_main.scss');
|
|
2
3
|
import React from 'react';
|
|
3
4
|
|
|
4
5
|
global.___loader = {
|
|
@@ -25,7 +26,11 @@ export const parameters = {
|
|
|
25
26
|
'Layout',
|
|
26
27
|
[
|
|
27
28
|
'Header',
|
|
28
|
-
[
|
|
29
|
+
[
|
|
30
|
+
'Default',
|
|
31
|
+
'Operator',
|
|
32
|
+
['Template One-Two', 'Template Three', 'Template Four', 'Template Five'],
|
|
33
|
+
],
|
|
29
34
|
],
|
|
30
35
|
'Atoms',
|
|
31
36
|
'Molecules',
|
|
@@ -41,7 +46,13 @@ export const parameters = {
|
|
|
41
46
|
// Global decorators for stories
|
|
42
47
|
export const decorators = [
|
|
43
48
|
(Story) => (
|
|
44
|
-
<div style={{ margin: '1.5rem auto 0' }}>
|
|
49
|
+
<div style={{ margin: '1.5rem auto 0', fontFamily: 'Plus Jakarta Sans' }}>
|
|
50
|
+
<link rel="preconnect" href="https://fonts.googleapis.com"></link>
|
|
51
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin></link>
|
|
52
|
+
<link
|
|
53
|
+
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap"
|
|
54
|
+
rel="stylesheet"
|
|
55
|
+
></link>
|
|
45
56
|
<Story />
|
|
46
57
|
</div>
|
|
47
58
|
),
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
## [12.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v12.0.1...v12.0.2) (2023-02-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added extra headers ([fe9102f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fe9102fe9290802e1ea40b02a2f86c7f13451aee))
|
|
7
|
+
* conflicts ([5bff960](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5bff9603523daf3ce179ae661f01fb27be392502))
|
|
8
|
+
* cta button inactive ([0630bd5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0630bd5ffcfa8e86d76c61b1808ac9fe3f835b50))
|
|
9
|
+
* header cta ([10a1545](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/10a1545c3154c8053f638075abd9ec729deb259d))
|
|
10
|
+
* operator cta ([6396877](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6396877c4362aa8989f48cf641bd4dcc37e3c912))
|
|
11
|
+
* operator header ([e804dd0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e804dd0198bcec80160c83df3c7e791b22510e8a))
|
|
12
|
+
* operator-header final ([b99397e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b99397eb24054b67d9ef0c707b11945df576b0f5))
|
|
13
|
+
* remove colors variables ([59b0425](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/59b0425fd0d76c2803f771ecb412c81e7d6785b6))
|
|
14
|
+
* sort order of headers in storybook ([a4f1eb0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a4f1eb0de605629c957ab83cb7428ef551b1b808))
|
|
15
|
+
* star color ([879b2ac](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/879b2ac7658cff6055eba1f249fb012652dfcc82))
|
|
16
|
+
* tests ([5a3133f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5a3133f02d3d9628555894514c1ec663c46704d2))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'tm-3253-operator-header' into 'master' ([0892011](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/08920118658b319ba521fa443b5a2059408acaae))
|
|
20
|
+
|
|
21
|
+
## [12.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v12.0.0...v12.0.1) (2023-01-31)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* added demo font for demo site and storybook ([00d66fb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/00d66fb18cdf2c456be66e413c37c1b13b34e036))
|
|
27
|
+
* added demo font for demo site and storybook ([a902a86](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a902a864346642dd75c9e7d20c21d84cb4422e65))
|
|
28
|
+
* operator--header small fix ([cf7edf3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/cf7edf388f596babed7240fe198447339fa7d449))
|
|
29
|
+
* ratings operator header ([8906dbd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8906dbd22723847bb2a59183998cf2157dc39cb0))
|
|
30
|
+
* update storybook ([e4d3b81](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e4d3b813ff9e4b283d45427d78a85c8a9e68890f))
|
|
31
|
+
* update storybook ([e438c5e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e438c5e0e339e156cc206ffb46076fe4bab3e786))
|
|
32
|
+
* update theme ([43c6e93](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/43c6e93aa3ed3d31a98adef8842c6bc12f99c773))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Code Refactoring
|
|
36
|
+
|
|
37
|
+
* update footer navigation event listeners ([a1411ec](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a1411ec89a756e9fe86adb4f5c8058a1b5069755))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
* Merge branch 'tm-3254-update-storybook' into 'master' ([7a0367a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7a0367ae244d40a8bef323426708cbf553edef5e))
|
|
41
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([0f2897a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0f2897ac3d50b460c89e75967505599412ca0838))
|
|
42
|
+
|
|
1
43
|
# [12.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v11.0.2...v12.0.0) (2023-01-30)
|
|
2
44
|
|
|
3
45
|
|
package/jest.config.js
CHANGED
|
@@ -25,6 +25,7 @@ module.exports = {
|
|
|
25
25
|
},
|
|
26
26
|
// testPathIgnorePatterns: [`node_modules`, `\\.cache`, `<rootDir>.*/public`],
|
|
27
27
|
transformIgnorePatterns: [`node_modules/(?!gatsby-core-theme|gatsby-script)`],
|
|
28
|
+
coveragePathIgnorePatterns: ['src/constants'],
|
|
28
29
|
globals: {
|
|
29
30
|
__PATH_PREFIX__: ``,
|
|
30
31
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.2",
|
|
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": "^4.20.0",
|
|
28
|
-
"gatsby-core-theme": "18.0.
|
|
28
|
+
"gatsby-core-theme": "18.0.6",
|
|
29
29
|
"gatsby-plugin-sharp": "^4.10.2",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^4.10.0",
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
border: 1px solid #E9E9E9;
|
|
9
9
|
padding: .8rem;
|
|
10
10
|
|
|
11
|
+
>a {
|
|
12
|
+
place-self: end;
|
|
13
|
+
align-self: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
>img {
|
|
12
17
|
width: 4rem;
|
|
13
18
|
height: 4rem;
|
|
@@ -59,8 +64,6 @@
|
|
|
59
64
|
|
|
60
65
|
}
|
|
61
66
|
|
|
62
|
-
|
|
63
|
-
|
|
64
67
|
.bonusTitle {
|
|
65
68
|
display: none;
|
|
66
69
|
|
|
@@ -88,52 +91,3 @@
|
|
|
88
91
|
line-height: 30px;
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
|
-
|
|
92
|
-
.cta {
|
|
93
|
-
display: flex;
|
|
94
|
-
align-items: center;
|
|
95
|
-
justify-content: end;
|
|
96
|
-
|
|
97
|
-
>a {
|
|
98
|
-
display: flex !important;
|
|
99
|
-
align-items: center !important;
|
|
100
|
-
padding: 8px 16px !important;
|
|
101
|
-
font-weight: 700;
|
|
102
|
-
font-size: 14px !important;
|
|
103
|
-
line-height: 18px;
|
|
104
|
-
border-radius: 8px !important;
|
|
105
|
-
text-transform: capitalize;
|
|
106
|
-
background-color: #5545A9 !important;
|
|
107
|
-
color: white !important;
|
|
108
|
-
border-radius: 8px !important;
|
|
109
|
-
|
|
110
|
-
&:hover {
|
|
111
|
-
background-color: #5545A9 !important;
|
|
112
|
-
background: #5545A9 !important;
|
|
113
|
-
color: #FFFFFF !important;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
>svg {
|
|
117
|
-
width: 14px;
|
|
118
|
-
height: 14px;
|
|
119
|
-
margin-left: 0.8rem;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@include min(tablet) {
|
|
123
|
-
font-size: 18px;
|
|
124
|
-
line-height: 20px;
|
|
125
|
-
padding: 16px 24px !important;
|
|
126
|
-
border-radius: 12px !important;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&.coming_soon,
|
|
131
|
-
&.inactive,
|
|
132
|
-
&.not_recommended {
|
|
133
|
-
>a {
|
|
134
|
-
background-color: #BBB5DD !important;
|
|
135
|
-
color: #776ABA !important;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -54,17 +54,15 @@ const HeaderOperatorBaner = ({ operator, logo, template }) => {
|
|
|
54
54
|
/>
|
|
55
55
|
)}
|
|
56
56
|
<div className={`${styles.bonus}`}>{main}</div>
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/>
|
|
67
|
-
</div>
|
|
57
|
+
<OperatorCta
|
|
58
|
+
page={operator}
|
|
59
|
+
playText="Play now"
|
|
60
|
+
operator={operator}
|
|
61
|
+
gtmClass="operator-banner-operator-cta-gtm"
|
|
62
|
+
icon={
|
|
63
|
+
!['coming_soon', 'inactive'].includes(operator?.status) && <IoMdArrowRoundForward />
|
|
64
|
+
}
|
|
65
|
+
/>
|
|
68
66
|
</div>
|
|
69
67
|
)
|
|
70
68
|
);
|
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
overflow-x: scroll;
|
|
4
4
|
gap: .8rem;
|
|
5
5
|
|
|
6
|
+
&::-webkit-scrollbar {
|
|
7
|
+
width: 3px;
|
|
8
|
+
height: 3px;
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar-thumb {
|
|
13
|
+
border-radius: 100px;
|
|
14
|
+
background: #929292;
|
|
15
|
+
}
|
|
16
|
+
|
|
6
17
|
@include min(tablet) {
|
|
7
18
|
display: grid;
|
|
8
19
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
@@ -27,7 +38,6 @@
|
|
|
27
38
|
|
|
28
39
|
@include min(tablet) {
|
|
29
40
|
margin-bottom: inherit;
|
|
30
|
-
min-height: 11.2rem;
|
|
31
41
|
}
|
|
32
42
|
}
|
|
33
43
|
|
|
@@ -54,7 +64,7 @@
|
|
|
54
64
|
>div {
|
|
55
65
|
display: inline-flex;
|
|
56
66
|
align-items: center;
|
|
57
|
-
font-weight:
|
|
67
|
+
font-weight: 800;
|
|
58
68
|
font-size: 18px;
|
|
59
69
|
line-height: 28px;
|
|
60
70
|
border: none;
|
|
@@ -70,8 +80,16 @@
|
|
|
70
80
|
>span:last-child {
|
|
71
81
|
font-size: 16px;
|
|
72
82
|
line-height: 27px;
|
|
83
|
+
font-weight: 700;
|
|
84
|
+
|
|
85
|
+
@include min(tablet) {
|
|
86
|
+
font-weight: 800;
|
|
87
|
+
font-size: 18px;
|
|
88
|
+
line-height: 28px;
|
|
89
|
+
}
|
|
73
90
|
}
|
|
74
91
|
|
|
92
|
+
|
|
75
93
|
}
|
|
76
94
|
|
|
77
95
|
>svg {
|
|
@@ -13,11 +13,13 @@ export default function TemplateOne({ title, description, extraFields, imageObj
|
|
|
13
13
|
<div className={styles.templateOne}>
|
|
14
14
|
<div className={styles.headerContainer}>
|
|
15
15
|
<h1>{title}</h1>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
{description && (
|
|
17
|
+
<div
|
|
18
|
+
// eslint-disable-next-line react/no-danger
|
|
19
|
+
dangerouslySetInnerHTML={{ __html: description }}
|
|
20
|
+
className={styles.description}
|
|
21
|
+
/>
|
|
22
|
+
)}
|
|
21
23
|
{link && (
|
|
22
24
|
<Button
|
|
23
25
|
to={link}
|
|
@@ -14,7 +14,6 @@ import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating';
|
|
|
14
14
|
import { FaStar } from '@react-icons/all-files/fa/FaStar';
|
|
15
15
|
import operatorRatings from '../../../../../../constants/ratings-constant';
|
|
16
16
|
import OperatorBanner from '../../../../../atoms/header-operator-bannner';
|
|
17
|
-
import { isMobileDevice } from '../../../../../../helpers/mobile-detect';
|
|
18
17
|
|
|
19
18
|
import styles from './template-five.module.scss';
|
|
20
19
|
|
|
@@ -27,10 +26,10 @@ const TemplateFive = ({
|
|
|
27
26
|
extraFields,
|
|
28
27
|
type,
|
|
29
28
|
numOfStars = 5,
|
|
29
|
+
icon,
|
|
30
30
|
}) => {
|
|
31
31
|
const prettyLink = prettyTracker(relation, 'main', false, pageTemplate);
|
|
32
32
|
const { translations } = useContext(Context) || {};
|
|
33
|
-
const isMobile = isMobileDevice();
|
|
34
33
|
|
|
35
34
|
const logo = () => (
|
|
36
35
|
<a href={prettyLink} target="_blank" rel="noreferrer" className="header-gtm logo-cta ">
|
|
@@ -44,13 +43,12 @@ const TemplateFive = ({
|
|
|
44
43
|
</a>
|
|
45
44
|
);
|
|
46
45
|
|
|
47
|
-
const header = (
|
|
48
|
-
<div className={`${styles.header}
|
|
46
|
+
const header = () => (
|
|
47
|
+
<div className={`${styles.header}`}>
|
|
49
48
|
<div className={`${styles.name} `}>
|
|
50
|
-
|
|
51
|
-
{!isMobile && !classNamecss && <h1>{name}</h1>}
|
|
49
|
+
<h1>{name}</h1>
|
|
52
50
|
<LazyImage
|
|
53
|
-
src=
|
|
51
|
+
src={icon || '../../../../../../images/verify.svg'}
|
|
54
52
|
loading="eager"
|
|
55
53
|
alt="Verified"
|
|
56
54
|
width={24}
|
|
@@ -70,14 +68,9 @@ const TemplateFive = ({
|
|
|
70
68
|
|
|
71
69
|
return (
|
|
72
70
|
<div className={styles.container}>
|
|
73
|
-
<div className={styles.topSection}>
|
|
74
|
-
|
|
75
|
-
{header('header')}
|
|
76
|
-
</div>
|
|
77
|
-
|
|
71
|
+
<div className={styles.topSection}>{logo()}</div>
|
|
72
|
+
{header()}
|
|
78
73
|
<div className={styles.main}>
|
|
79
|
-
{header()}
|
|
80
|
-
|
|
81
74
|
{extraFields?.summary && (
|
|
82
75
|
<div className={styles.decs} dangerouslySetInnerHTML={{ __html: extraFields?.summary }} />
|
|
83
76
|
)}
|
|
@@ -87,7 +80,6 @@ const TemplateFive = ({
|
|
|
87
80
|
return (
|
|
88
81
|
<div className>
|
|
89
82
|
<span className={styles.ratingLabel}>
|
|
90
|
-
{' '}
|
|
91
83
|
{translate(translations, elm?.translationKey, elm?.fieldLabel)}
|
|
92
84
|
</span>
|
|
93
85
|
<span className={styles.ratingValue}>
|
|
@@ -99,7 +91,9 @@ const TemplateFive = ({
|
|
|
99
91
|
);
|
|
100
92
|
})}
|
|
101
93
|
</div>
|
|
94
|
+
</div>
|
|
102
95
|
|
|
96
|
+
<div className={styles.featureImage}>
|
|
103
97
|
{featureImg?.filename && (
|
|
104
98
|
<LazyImage
|
|
105
99
|
src={imagePrettyUrl(featureImg?.filename, 413, 413)}
|
|
@@ -142,6 +136,7 @@ TemplateFive.propTypes = {
|
|
|
142
136
|
extraFields: PropTypes.shape({
|
|
143
137
|
summary: PropTypes.node,
|
|
144
138
|
}),
|
|
139
|
+
icon: PropTypes.node,
|
|
145
140
|
};
|
|
146
141
|
|
|
147
142
|
export default TemplateFive;
|
package/src/components/molecules/header/variants/operator/template-five/template-five.module.scss
CHANGED
|
@@ -47,42 +47,26 @@
|
|
|
47
47
|
background-color: white;
|
|
48
48
|
border-top-left-radius: 16px;
|
|
49
49
|
border-top-right-radius: 16px;
|
|
50
|
+
box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.05);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
.main {
|
|
54
55
|
display: flex;
|
|
55
56
|
flex-direction: column;
|
|
56
|
-
grid-row: 3;
|
|
57
|
-
|
|
58
|
-
>img {
|
|
59
|
-
display: none;
|
|
60
|
-
}
|
|
61
57
|
|
|
62
58
|
@include min(tablet) {
|
|
59
|
+
margin-top: -5.5rem;
|
|
63
60
|
display: grid;
|
|
64
61
|
grid-template-rows: min-content;
|
|
65
|
-
grid-row:
|
|
66
|
-
grid-column: 2/
|
|
62
|
+
grid-row: 2/5;
|
|
63
|
+
grid-column: 2/4;
|
|
67
64
|
margin-left: 4.8rem;
|
|
68
65
|
}
|
|
69
|
-
|
|
70
|
-
@include min(laptop) {
|
|
71
|
-
>img {
|
|
72
|
-
margin-left: 1rem;
|
|
73
|
-
display: block;
|
|
74
|
-
grid-column: 5;
|
|
75
|
-
grid-row: 1/4;
|
|
76
|
-
max-width: 413px;
|
|
77
|
-
object-fit: cover;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
66
|
}
|
|
81
67
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
68
|
.operatorBanner {
|
|
69
|
+
grid-row: 3;
|
|
86
70
|
|
|
87
71
|
>div {
|
|
88
72
|
padding: 1.6rem;
|
|
@@ -134,20 +118,18 @@
|
|
|
134
118
|
}
|
|
135
119
|
}
|
|
136
120
|
|
|
137
|
-
>div:last-child {
|
|
138
|
-
background-color: transparent;
|
|
139
|
-
padding: 0;
|
|
140
121
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
122
|
+
|
|
123
|
+
>a {
|
|
124
|
+
width: 100%;
|
|
125
|
+
font-size: 18px !important;
|
|
126
|
+
line-height: 20px;
|
|
127
|
+
border-radius: 12px !important;
|
|
128
|
+
padding: 16px 24px !important;
|
|
148
129
|
}
|
|
149
130
|
|
|
150
131
|
|
|
132
|
+
|
|
151
133
|
@include min(tablet) {
|
|
152
134
|
border: none;
|
|
153
135
|
padding-top: 0rem;
|
|
@@ -162,6 +144,7 @@
|
|
|
162
144
|
padding-top: 0rem;
|
|
163
145
|
border-bottom-left-radius: 1.6rem;
|
|
164
146
|
border-bottom-right-radius: 1.6rem;
|
|
147
|
+
box-shadow: 2px 2px 7px rgb(0 0 0 / 5%);
|
|
165
148
|
}
|
|
166
149
|
|
|
167
150
|
}
|
|
@@ -169,7 +152,6 @@
|
|
|
169
152
|
.name {
|
|
170
153
|
display: flex;
|
|
171
154
|
justify-content: center;
|
|
172
|
-
display: none;
|
|
173
155
|
padding-top: 1.6rem;
|
|
174
156
|
padding-bottom: .8rem;
|
|
175
157
|
|
|
@@ -180,11 +162,13 @@
|
|
|
180
162
|
line-height: 34px;
|
|
181
163
|
color: #1C1A28;
|
|
182
164
|
text-transform: capitalize;
|
|
165
|
+
text-align: center;
|
|
183
166
|
|
|
184
167
|
|
|
185
168
|
@include min(tablet) {
|
|
186
169
|
font-size: 32px;
|
|
187
170
|
line-height: 42px;
|
|
171
|
+
text-align: unset;
|
|
188
172
|
}
|
|
189
173
|
}
|
|
190
174
|
|
|
@@ -204,7 +188,6 @@
|
|
|
204
188
|
}
|
|
205
189
|
|
|
206
190
|
@include min(tablet) {
|
|
207
|
-
display: flex;
|
|
208
191
|
justify-content: unset;
|
|
209
192
|
padding-top: 0rem;
|
|
210
193
|
padding-bottom: 1.6rem;
|
|
@@ -214,7 +197,9 @@
|
|
|
214
197
|
|
|
215
198
|
|
|
216
199
|
.header {
|
|
217
|
-
display:
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
align-items: center;
|
|
218
203
|
|
|
219
204
|
>div:last-child {
|
|
220
205
|
display: flex;
|
|
@@ -255,27 +240,17 @@
|
|
|
255
240
|
}
|
|
256
241
|
|
|
257
242
|
@include min(tablet) {
|
|
258
|
-
|
|
259
|
-
|
|
243
|
+
align-items: start;
|
|
244
|
+
grid-row: 1;
|
|
245
|
+
grid-column: 2/4;
|
|
260
246
|
margin-top: 5rem;
|
|
247
|
+
margin-left: 4.8rem;
|
|
261
248
|
margin-bottom: 2.4rem;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
249
|
|
|
265
|
-
.nameHeader {
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-direction: column;
|
|
268
|
-
align-items: center;
|
|
269
|
-
|
|
270
|
-
>div {
|
|
271
|
-
display: flex;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
@include min(tablet) {
|
|
275
|
-
display: none;
|
|
276
250
|
}
|
|
277
251
|
}
|
|
278
252
|
|
|
253
|
+
|
|
279
254
|
.decs {
|
|
280
255
|
font-weight: 400;
|
|
281
256
|
font-size: 16px;
|
|
@@ -287,7 +262,7 @@
|
|
|
287
262
|
@include min(tablet) {
|
|
288
263
|
margin-bottom: 4rem;
|
|
289
264
|
margin-top: 0;
|
|
290
|
-
|
|
265
|
+
|
|
291
266
|
}
|
|
292
267
|
|
|
293
268
|
}
|
|
@@ -306,7 +281,6 @@
|
|
|
306
281
|
grid-template-columns: 1fr 1fr 1fr;
|
|
307
282
|
overflow: hidden;
|
|
308
283
|
overflow-x: auto;
|
|
309
|
-
grid-row: 3;
|
|
310
284
|
}
|
|
311
285
|
|
|
312
286
|
>div {
|
|
@@ -318,7 +292,7 @@
|
|
|
318
292
|
border: none;
|
|
319
293
|
padding: 0;
|
|
320
294
|
min-height: 97px;
|
|
321
|
-
min-width:
|
|
295
|
+
min-width: 149px;
|
|
322
296
|
border-right: 1px solid #E9E9E9;
|
|
323
297
|
|
|
324
298
|
|
|
@@ -370,4 +344,21 @@
|
|
|
370
344
|
color: var(--icons-rating-color, #FFDB20);
|
|
371
345
|
}
|
|
372
346
|
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.featureImage {
|
|
350
|
+
display: none;
|
|
351
|
+
|
|
352
|
+
@include min(laptop) {
|
|
353
|
+
display: block;
|
|
354
|
+
grid-row: 1/5;
|
|
355
|
+
grid-column: 4/5;
|
|
356
|
+
|
|
357
|
+
>img {
|
|
358
|
+
width: 41.3rem;
|
|
359
|
+
height: 41.3rem;
|
|
360
|
+
min-width: 41.3rem;
|
|
361
|
+
|
|
362
|
+
}
|
|
363
|
+
}
|
|
373
364
|
}
|
package/src/components/molecules/header/variants/operator/template-five/template-five.stories.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TemplateFive from '.';
|
|
3
3
|
import getOperatorData from '../../../../../../../tests/factories/pages/operator.factory';
|
|
4
|
+
import checkMark from '../../../../../../../storybook-images/verify.svg';
|
|
4
5
|
|
|
5
6
|
const pageOperatorData = getOperatorData();
|
|
6
7
|
|
|
@@ -48,6 +49,10 @@ export default {
|
|
|
48
49
|
type: { name: 'object' },
|
|
49
50
|
defaultValue: pageOperatorData?.relation,
|
|
50
51
|
},
|
|
52
|
+
icon: {
|
|
53
|
+
name: 'Icon',
|
|
54
|
+
defaultValue: checkMark,
|
|
55
|
+
},
|
|
51
56
|
},
|
|
52
57
|
};
|
|
53
58
|
|
|
@@ -14,7 +14,16 @@ import Rating from '../../../../../atoms/rating';
|
|
|
14
14
|
import OperatorBanner from '../../../../../atoms/header-operator-bannner';
|
|
15
15
|
import styles from './template-four.module.scss';
|
|
16
16
|
|
|
17
|
-
const TemplateFour = ({
|
|
17
|
+
const TemplateFour = ({
|
|
18
|
+
relation,
|
|
19
|
+
type,
|
|
20
|
+
image,
|
|
21
|
+
name,
|
|
22
|
+
ribbons,
|
|
23
|
+
pageTemplate,
|
|
24
|
+
icon,
|
|
25
|
+
numOfStars = 5,
|
|
26
|
+
}) => {
|
|
18
27
|
const prettyLink = prettyTracker(relation, 'main', false, pageTemplate);
|
|
19
28
|
const { translations } = useContext(Context) || {};
|
|
20
29
|
const ribbon = ribbons?.length > 0 ? ribbons[0] : null;
|
|
@@ -49,7 +58,7 @@ const TemplateFour = ({ relation, type, image, name, ribbons, pageTemplate, numO
|
|
|
49
58
|
<div className={styles.name}>
|
|
50
59
|
<h1>{name}</h1>
|
|
51
60
|
<LazyImage
|
|
52
|
-
src=
|
|
61
|
+
src={icon || '../../../../../../images/verify.svg'}
|
|
53
62
|
loading="eager"
|
|
54
63
|
alt="Verified"
|
|
55
64
|
width={24}
|
|
@@ -82,6 +91,7 @@ TemplateFour.propTypes = {
|
|
|
82
91
|
ribbons: PropTypes.PropTypes.arrayOf(PropTypes.shape({})),
|
|
83
92
|
pageTemplate: PropTypes.string,
|
|
84
93
|
numOfStars: PropTypes.number,
|
|
94
|
+
icon: PropTypes.node,
|
|
85
95
|
};
|
|
86
96
|
|
|
87
97
|
export default TemplateFour;
|