gatsby-matrix-theme 3.0.9 → 3.1.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/CHANGELOG.md +77 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/operators-table/index.js +58 -0
- package/src/components/atoms/cards/operators-table/table.module.scss +87 -0
- package/src/components/atoms/cards/popup-card/index.js +1 -1
- package/src/components/molecules/toplist/row/variant-one.test.js +2 -2
- package/src/components/organisms/popup/index.js +4 -3
- package/src/gatsby-core-theme/components/atoms/bonus/bonus.test.js +0 -1
- package/src/gatsby-core-theme/components/atoms/bonus/index.js +1 -1
- package/src/gatsby-core-theme/components/atoms/spotlights/spotlights.module.scss +78 -108
- package/src/gatsby-core-theme/components/molecules/content/index.js +6 -0
- package/src/gatsby-core-theme/components/molecules/footer/index.js +5 -7
- package/src/gatsby-core-theme/components/molecules/module/index.js +5 -1
- package/src/gatsby-core-theme/components/molecules/search/index.js +5 -4
- package/src/gatsby-core-theme/components/organisms/carousel/carousel.module.scss +26 -2
- package/src/gatsby-core-theme/components/organisms/head/index.js +52 -34
- package/src/gatsby-core-theme/components/pages/search/index.js +15 -22
- package/src/gatsby-core-theme/styles/utils/variables/_main.scss +10 -0
- package/src/helpers/strings.js +40 -29
- package/src/hooks/tabs/index.js +4 -2
- package/storybook/public/{0.3d133e98.iframe.bundle.js → 0.1ef33c54.iframe.bundle.js} +1 -1
- package/storybook/public/{1.303d4a8e.iframe.bundle.js → 1.d02d8599.iframe.bundle.js} +1 -1
- package/storybook/public/10.ae38b8e6.iframe.bundle.js +1 -0
- package/storybook/public/{10.2bb842e6.iframe.bundle.js → 11.86382beb.iframe.bundle.js} +1 -1
- package/storybook/public/{11.7ad7ba28.iframe.bundle.js → 12.b6909189.iframe.bundle.js} +1 -1
- package/storybook/public/{12.c91443b3.iframe.bundle.js → 13.9e6703fb.iframe.bundle.js} +1 -1
- package/storybook/public/{13.9ac1db9d.iframe.bundle.js → 14.b0c67bdf.iframe.bundle.js} +1 -1
- package/storybook/public/{14.604f9747.iframe.bundle.js → 15.7bb7d301.iframe.bundle.js} +1 -1
- package/storybook/public/{15.16fa9e43.iframe.bundle.js → 16.d64c7fd7.iframe.bundle.js} +1 -1
- package/storybook/public/{5.6fafb5f4.iframe.bundle.js → 5.91c30f08.iframe.bundle.js} +3 -3
- package/storybook/public/{5.6fafb5f4.iframe.bundle.js.LICENSE.txt → 5.91c30f08.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/5.91c30f08.iframe.bundle.js.map +1 -0
- package/storybook/public/{6.2d558003.iframe.bundle.js → 6.002e2a71.iframe.bundle.js} +1 -1
- package/storybook/public/7.d12dd5b3.iframe.bundle.js +1 -0
- package/storybook/public/8.c5053ebc.iframe.bundle.js +1 -0
- package/storybook/public/{8.cd8f12ce.iframe.bundle.js → 9.05a986eb.iframe.bundle.js} +3 -3
- package/storybook/public/{8.cd8f12ce.iframe.bundle.js.LICENSE.txt → 9.05a986eb.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/9.05a986eb.iframe.bundle.js.map +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.c8da7880.iframe.bundle.js +1 -0
- package/storybook/public/runtime~main.5a919f90.iframe.bundle.js +1 -0
- package/storybook/public/vendors~main.145aeafa.iframe.bundle.js +7 -0
- package/storybook/public/{vendors~main.be5d297a.iframe.bundle.js.LICENSE.txt → vendors~main.145aeafa.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/vendors~main.145aeafa.iframe.bundle.js.map +1 -0
- package/src/gatsby-core-theme/components/atoms/spotlights/index.js +0 -185
- package/storybook/public/5.6fafb5f4.iframe.bundle.js.map +0 -1
- package/storybook/public/7.8622538a.iframe.bundle.js +0 -1
- package/storybook/public/8.cd8f12ce.iframe.bundle.js.map +0 -1
- package/storybook/public/9.bc7480f3.iframe.bundle.js +0 -1
- package/storybook/public/main.4c12afb7.iframe.bundle.js +0 -1
- package/storybook/public/runtime~main.7b867edc.iframe.bundle.js +0 -1
- package/storybook/public/vendors~main.be5d297a.iframe.bundle.js +0 -7
- package/storybook/public/vendors~main.be5d297a.iframe.bundle.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,80 @@
|
|
|
1
|
+
## [3.1.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.1.1...v3.1.2) (2021-12-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* operator bonus added dividor ([98538a9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/98538a94160ef27a2a4d33334f8534aa6baff32e))
|
|
7
|
+
* fixed parsing metadescription ([f3f7568](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f3f75682e88341ebc90f3f532594e4a816605fc9))
|
|
8
|
+
* new testimonials styling ([7f16177](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7f1617700a339d7e0edd183769b040fb9a419255))
|
|
9
|
+
* removed an useless line ([6320358](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/63203585e3ee6362f1250033b0b41a1180f61ad2))
|
|
10
|
+
* tests ([0d2794f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0d2794feb4f5a93eb08f40c1776330a25aed0850))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Config
|
|
14
|
+
|
|
15
|
+
* updated core theme version ([8ead1a7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8ead1a7c4fec1a4f30acced891b9eaa262d2c104))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
* Merge branch 'tm-2629-spotlight-testimonials' into 'master' ([52f20ab](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/52f20abf60df594d49e7eac3c4a5a099e7c2842a))
|
|
19
|
+
* Merge branch 'tm-2610-operator-bonus' into 'master' ([8c80938](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8c80938101df09f25d6458c423f4eaf09e8da5ca))
|
|
20
|
+
* Merge branch 'fix-parse-metadescription' into 'master' ([fbed07c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fbed07cb84ba1d34a296ebc5cbf059eadfecdd72))
|
|
21
|
+
|
|
22
|
+
## [3.1.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.1.0...v3.1.1) (2021-12-17)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Config
|
|
26
|
+
|
|
27
|
+
* updated theme version ([d35a8d2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d35a8d258252b7376968683cd5fc65af089923eb))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([ec89a34](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ec89a340a0c73ed3261f0b5d9eff2b33254dc35c))
|
|
31
|
+
|
|
32
|
+
# [3.1.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.10...v3.1.0) (2021-12-17)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* add default copyright_disclaimer ([f0c330f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f0c330fc779e79be0e6a7bab17cd54989e3e93de))
|
|
38
|
+
* carousel slides ([ae7dea9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ae7dea9a0025daca522572efbd6ce27b5c7d3a0a))
|
|
39
|
+
* casino table ([2d0b8ec](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2d0b8ec4cd2e18fc9a21d1b17dcf1c529ac03aab))
|
|
40
|
+
* fixed bonus issue and loadable condition ([7f1f1a7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7f1f1a7d6e467da005b60a8806056280fad671e7))
|
|
41
|
+
* fixed copyrightDisclaimer ([1a606d2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1a606d2990c3883e2a3f0541d369e52dd93457f4))
|
|
42
|
+
* merge ([14a32ab](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/14a32ab72c7c430e3619755433d5a92a79fe742c))
|
|
43
|
+
* merged master ([5a983ab](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5a983ab64013fe9029d99eea3223ecb2c4145a1b))
|
|
44
|
+
* progress made ([55c3175](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/55c3175b5e827a2d1c3d1b33cb44ff3ca3b23379))
|
|
45
|
+
* remove re-declared copyrightDisclaimer ([598ac18](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/598ac182d54e7a62e638ccfe42cda809f899ffc7))
|
|
46
|
+
* small fix ([9d8c24d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9d8c24dc18245c6b07c658afce398ddf55802cec))
|
|
47
|
+
* small fix ([a9341ad](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a9341ad547865d2a154c98d55d12c78bd09f5982))
|
|
48
|
+
* spotlight images ([8daaf46](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8daaf460f49bafdda908899ae37fe8ff992befe2))
|
|
49
|
+
* spotlight images ([fa886b6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fa886b6cbe2aa31992a415828f21f2927d5d8c97))
|
|
50
|
+
* style issues ([2881939](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/28819392bbfec1ffa64739b42cb9dfc367ef7f82))
|
|
51
|
+
* updated core theme version and fixed disclaimer text bug ([3ce75e2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3ce75e2c58812fef1ee3177c200a5268a5763f78))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Code Refactoring
|
|
55
|
+
|
|
56
|
+
* check the data ([dd25ece](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/dd25ece863cd5956663ab47a34dde6eca5ded85a))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
* Merge branch 'tm-2613-carousel-fix' into 'master' ([bdf02e8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bdf02e8b330e9923437ae8a1c68568ce19c2c181))
|
|
60
|
+
* Merge branch 'tm-2597-casino-table' into 'master' ([6861c37](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6861c37c160aab7426288b8b4f40b3b8eabad3cf))
|
|
61
|
+
* Update index.js ([056c9bd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/056c9bddb0d7e63d0fbe8538968933c4d69d99b8))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Features
|
|
65
|
+
|
|
66
|
+
* twitter graph ([dfdf8bf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/dfdf8bfe5e9ff07a20b25f2c5f659126767dcffb))
|
|
67
|
+
|
|
68
|
+
## [3.0.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.9...v3.0.10) (2021-12-10)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Code Refactoring
|
|
72
|
+
|
|
73
|
+
* setting components to loadable if loaded against a condition ([b8c7040](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b8c704014f9d80bf0e0fef6d3c97a39ebede8366))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
* Merge branch 'performance-improvements' into 'master' ([429f393](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/429f3936928ba46717e7b551751c1e6e5abbd0e0))
|
|
77
|
+
|
|
1
78
|
## [3.0.9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.8...v3.0.9) (2021-12-09)
|
|
2
79
|
|
|
3
80
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.2",
|
|
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": "^
|
|
34
|
+
"gatsby-core-theme": "^2.0.7",
|
|
35
35
|
"gatsby-image": "^3.3.0",
|
|
36
36
|
"gatsby-plugin-image": "^1.3.1",
|
|
37
37
|
"gatsby-plugin-postcss": "^4.3.0",
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import React, { useContext } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
5
|
+
import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
|
|
6
|
+
import { translate, getBonus } from 'gatsby-core-theme/src/helpers/getters';
|
|
7
|
+
import styles from './table.module.scss';
|
|
8
|
+
|
|
9
|
+
const CasinosTable = ({ module }) => {
|
|
10
|
+
const { translations } = useContext(Context);
|
|
11
|
+
const { items } = module || {};
|
|
12
|
+
|
|
13
|
+
const oneLiner = ({ one_liner }) => {
|
|
14
|
+
const [firstLine, secondLine] = one_liner.split('+');
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
<span className={styles.firstLine}>{firstLine}<br /></span>
|
|
18
|
+
<span className={styles.secondLine}>{`+${secondLine}`}</span>
|
|
19
|
+
</>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<div className={styles.container}>
|
|
25
|
+
<table>
|
|
26
|
+
<thead>
|
|
27
|
+
<tr>
|
|
28
|
+
<th>{`${translate(translations, 'casino', 'Casino')}`}</th>
|
|
29
|
+
<th>{`${translate(translations, 'bonus', 'Bonus')}`}</th>
|
|
30
|
+
<th>{`${translate(translations, 'visit_casino', 'Visit casino')}`}</th>
|
|
31
|
+
</tr>
|
|
32
|
+
</thead>
|
|
33
|
+
<tbody>
|
|
34
|
+
{items &&
|
|
35
|
+
items.map((item) => (
|
|
36
|
+
<tr>
|
|
37
|
+
<td>{item.title}</td>
|
|
38
|
+
<td>{oneLiner(getBonus('main', item?.relation))}</td>
|
|
39
|
+
<td>
|
|
40
|
+
<Link to={item?.path} name={item?.relation?.name}>
|
|
41
|
+
{`${item?.relation?.name} ${translate(translations, 'read_review', 'Review')}`}
|
|
42
|
+
</Link>
|
|
43
|
+
</td>
|
|
44
|
+
</tr>
|
|
45
|
+
))}
|
|
46
|
+
</tbody>
|
|
47
|
+
</table>
|
|
48
|
+
</div>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default CasinosTable;
|
|
53
|
+
|
|
54
|
+
CasinosTable.propTypes = {
|
|
55
|
+
module: PropTypes.shape({
|
|
56
|
+
items: PropTypes.arrayOf({}),
|
|
57
|
+
}).isRequired,
|
|
58
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
table {
|
|
3
|
+
width: 100%;
|
|
4
|
+
border-collapse: inherit;
|
|
5
|
+
box-shadow: 0 2px 16px #17182f14;
|
|
6
|
+
thead {
|
|
7
|
+
tr {
|
|
8
|
+
th {
|
|
9
|
+
text-align: left;
|
|
10
|
+
background-color: var(--table-head-background);
|
|
11
|
+
color: white;
|
|
12
|
+
padding: 1.2rem 0 1.2rem 0.8rem;
|
|
13
|
+
&:first-child {
|
|
14
|
+
border-top-left-radius: var(--table-border-radius);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:last-child {
|
|
18
|
+
border-top-right-radius: var(--table-border-radius);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
tr {
|
|
24
|
+
td {
|
|
25
|
+
padding: 1.2rem 0 1.2rem 0.8rem;
|
|
26
|
+
a {
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
}
|
|
29
|
+
.secondLine{
|
|
30
|
+
color: red;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
&:nth-child(odd) {
|
|
34
|
+
background-color: var(--table-highlight);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include max(mobile) {
|
|
39
|
+
thead {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
tbody {
|
|
44
|
+
tr {
|
|
45
|
+
&:first-child {
|
|
46
|
+
|
|
47
|
+
td {
|
|
48
|
+
color: white;
|
|
49
|
+
background-color: var(--table-head-background);
|
|
50
|
+
border-radius: 0;
|
|
51
|
+
.secondLine{
|
|
52
|
+
color: white;
|
|
53
|
+
}
|
|
54
|
+
&:first-child {
|
|
55
|
+
border-top-left-radius: var(--table-border-radius);
|
|
56
|
+
border-top-right-radius: var(--table-border-radius);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
a {
|
|
60
|
+
color: white;
|
|
61
|
+
text-decoration: underline;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
td {
|
|
67
|
+
display: block;
|
|
68
|
+
text-align: left;
|
|
69
|
+
border-bottom: 1px solid #bfd3e5;
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:last-child {
|
|
74
|
+
td {
|
|
75
|
+
border-radius: 0;
|
|
76
|
+
&:last-child {
|
|
77
|
+
border-bottom-right-radius: var(--table-border-radius);
|
|
78
|
+
border-bottom-left-radius: var(--table-border-radius);
|
|
79
|
+
border-bottom: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -23,7 +23,7 @@ const PopupCard = ({ item, tracker }) => {
|
|
|
23
23
|
</div>
|
|
24
24
|
<div className={styles.textContainer}>
|
|
25
25
|
<p className={styles.primaryText}>{one}</p>
|
|
26
|
-
<p className={styles.secondaryText}>{second}</p>
|
|
26
|
+
<p className={styles.secondaryText}>{`+${second}`}</p>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
<div className={styles.buttonContainer}>
|
|
@@ -17,7 +17,7 @@ describe('toplist row component', () => {
|
|
|
17
17
|
|
|
18
18
|
// Bonus
|
|
19
19
|
expect(getByText('€100 welcome bonus')).toBeTruthy();
|
|
20
|
-
expect(getByText('150 free spins')).toBeTruthy();
|
|
20
|
+
expect(getByText('+150 free spins')).toBeTruthy();
|
|
21
21
|
|
|
22
22
|
// Rating & Logo
|
|
23
23
|
// expect(container.querySelector('img')).toBeFalsy();
|
|
@@ -47,7 +47,7 @@ describe('toplist row component', () => {
|
|
|
47
47
|
|
|
48
48
|
// Bonus
|
|
49
49
|
expect(getByText('€100 welcome bonus')).toBeTruthy();
|
|
50
|
-
expect(getByText('150 free spins')).toBeTruthy();
|
|
50
|
+
expect(getByText('+150 free spins')).toBeTruthy();
|
|
51
51
|
|
|
52
52
|
// Rating & Logo
|
|
53
53
|
// expect(container.querySelector('img')).toBeFalsy();
|
|
@@ -99,8 +99,9 @@ const Popup = ({ module, isStorybook = false }) => {
|
|
|
99
99
|
<MdClose />
|
|
100
100
|
</button>
|
|
101
101
|
</div>
|
|
102
|
-
{shownItems?.map((item) => (
|
|
103
|
-
|
|
102
|
+
{shownItems?.map((item, index) => (
|
|
103
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
104
|
+
<PopupCard key={index} item={item} tracker={tracker} />
|
|
104
105
|
))}
|
|
105
106
|
</div>
|
|
106
107
|
</div>
|
|
@@ -111,7 +112,7 @@ const Popup = ({ module, isStorybook = false }) => {
|
|
|
111
112
|
|
|
112
113
|
Popup.propTypes = {
|
|
113
114
|
module: PropTypes.shape({
|
|
114
|
-
items: PropTypes.arrayOf(
|
|
115
|
+
items: PropTypes.arrayOf(PropTypes.object),
|
|
115
116
|
style: PropTypes.string,
|
|
116
117
|
}).isRequired,
|
|
117
118
|
isStorybook: PropTypes.bool,
|
|
@@ -10,7 +10,6 @@ describe('Bonus Component', () => {
|
|
|
10
10
|
const item = getToplistItem();
|
|
11
11
|
const { getByText } = render(<Bonus item={item} tracker="main" />);
|
|
12
12
|
expect(getByText('€100 welcome bonus')).toBeTruthy();
|
|
13
|
-
expect(getByText('150 free spins')).toBeTruthy();
|
|
14
13
|
});
|
|
15
14
|
test('without oneLiner', () => {
|
|
16
15
|
const { container } = render(
|
|
@@ -22,7 +22,7 @@ export default function Bonus({ item, tracker }) {
|
|
|
22
22
|
return (
|
|
23
23
|
<div className={styles.bonus}>
|
|
24
24
|
{!isInoperative && <div className={styles.title}>{mainLine && mainLine}</div>}
|
|
25
|
-
{!isInoperative && <div className={styles.desc}>{secondLine && secondLine}</div>}
|
|
25
|
+
{!isInoperative && <div className={styles.desc}>{secondLine && `+${secondLine}`}</div>}
|
|
26
26
|
</div>
|
|
27
27
|
);
|
|
28
28
|
}
|
|
@@ -1,120 +1,90 @@
|
|
|
1
1
|
.spotlightsContainer {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
margin: 0 auto;
|
|
3
|
+
width: 100%;
|
|
4
|
+
max-width: var(--main-container-max);
|
|
5
|
+
ul {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: repeat(1, 1fr);
|
|
8
|
+
column-gap: 1rem;
|
|
9
|
+
@include min(tablet) {
|
|
10
|
+
grid-template-columns: repeat(2, 1fr);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@include min(desktop) {
|
|
14
|
+
grid-template-columns: repeat(3, 1fr);
|
|
15
|
+
column-gap: 1.6rem;
|
|
16
|
+
}
|
|
17
|
+
li {
|
|
18
|
+
text-align: center;
|
|
19
|
+
background-color: var(--color-9);
|
|
20
|
+
border: none;
|
|
21
|
+
margin-bottom: 1rem;
|
|
13
22
|
@include min(desktop) {
|
|
14
|
-
|
|
15
|
-
column-gap: 1.6rem;
|
|
23
|
+
margin-bottom: 1.6rem;
|
|
16
24
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
column-gap: 1.6rem;
|
|
21
|
-
}
|
|
25
|
+
@include flex-direction(column);
|
|
26
|
+
span {
|
|
27
|
+
display: block;
|
|
22
28
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
span {
|
|
31
|
-
display: block;
|
|
29
|
+
.itemImage {
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 15rem;
|
|
32
|
+
img {
|
|
33
|
+
width: auto;
|
|
34
|
+
height: 100%;
|
|
35
|
+
object-fit: cover;
|
|
32
36
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.itemImage {
|
|
42
|
-
width: 100%;
|
|
43
|
-
img {
|
|
44
|
-
height: 5.6rem;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.label {
|
|
48
|
-
font-weight: 700;
|
|
49
|
-
font-size: 1.6rem;
|
|
50
|
-
color: var(--color-12);
|
|
51
|
-
margin: 1.6rem 0;
|
|
52
|
-
}
|
|
53
|
-
.text {
|
|
54
|
-
font-size: 1.6rem;
|
|
55
|
-
color: #5a4e51;
|
|
56
|
-
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.content {
|
|
40
|
+
padding: 1rem;
|
|
41
|
+
.label {
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
font-size: 2rem;
|
|
44
|
+
color: black;
|
|
57
45
|
}
|
|
58
46
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
height: 100%;
|
|
71
|
-
object-fit: cover;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.label {
|
|
75
|
-
font-weight: 700;
|
|
76
|
-
font-size: 1.6rem;
|
|
77
|
-
color: black;
|
|
78
|
-
margin: 1.6rem 0 0 0.9rem;
|
|
79
|
-
}
|
|
80
|
-
.text {
|
|
81
|
-
font-size: 1.4rem;
|
|
82
|
-
color: #000;
|
|
83
|
-
p[class*='job-position'] {
|
|
84
|
-
color: var(--color-40);
|
|
85
|
-
}
|
|
86
|
-
p[class*='body'] {
|
|
87
|
-
color: #000;
|
|
88
|
-
width: 100%;
|
|
89
|
-
height: 15rem;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
margin: 1.6rem 0;
|
|
92
|
-
}
|
|
93
|
-
a[class*='icon'] {
|
|
94
|
-
display: inline-block;
|
|
95
|
-
background-color: #f6f6fb;
|
|
96
|
-
width: 4.8rem;
|
|
97
|
-
height: 4.8rem;
|
|
98
|
-
line-height: 2.3;
|
|
99
|
-
border-radius: 50%;
|
|
100
|
-
margin: 0 0.4rem;
|
|
101
|
-
color: #6e6e84;
|
|
102
|
-
font-size: 2.4rem;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
.readMore {
|
|
106
|
-
color: var(--color-40);
|
|
107
|
-
margin-top: 1.6rem;
|
|
108
|
-
font-size: 1.3rem;
|
|
109
|
-
font-weight: 700;
|
|
110
|
-
}
|
|
47
|
+
|
|
48
|
+
.body {
|
|
49
|
+
padding: 0 1rem 1rem 1rem;
|
|
50
|
+
}
|
|
51
|
+
.text {
|
|
52
|
+
font-size: 1.4rem;
|
|
53
|
+
color: #777;
|
|
54
|
+
}
|
|
55
|
+
.readMore {
|
|
56
|
+
svg {
|
|
57
|
+
display: none;
|
|
111
58
|
}
|
|
112
59
|
}
|
|
113
60
|
}
|
|
114
61
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
62
|
+
}
|
|
63
|
+
.spotlightstext {
|
|
64
|
+
width: 100%;
|
|
65
|
+
margin: 2rem 0;
|
|
66
|
+
font-size: 1.6rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.testimonials {
|
|
70
|
+
ul {
|
|
71
|
+
li {
|
|
72
|
+
border: 1px solid #858487;
|
|
73
|
+
border-radius: .8rem;
|
|
74
|
+
background-color: white;
|
|
75
|
+
|
|
76
|
+
.subtitle {
|
|
77
|
+
width: 50%;
|
|
78
|
+
margin: 0 auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.title, .subtitle {
|
|
82
|
+
font-size: 1.4rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.label {
|
|
86
|
+
color: var(--primary-color);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
119
89
|
}
|
|
120
|
-
|
|
90
|
+
}
|
|
@@ -5,6 +5,7 @@ import parse from 'html-react-parser';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
7
7
|
import { parseCss } from 'gatsby-core-theme/src/helpers/css-parser';
|
|
8
|
+
import loadable from '@loadable/component';
|
|
8
9
|
import styles from './content.module.scss';
|
|
9
10
|
|
|
10
11
|
const Content = ({ module }) => {
|
|
@@ -12,6 +13,11 @@ const Content = ({ module }) => {
|
|
|
12
13
|
const [showMore, setShowMore] = useState(show_more_enabled === '1');
|
|
13
14
|
|
|
14
15
|
const replaceMedia = (node) => {
|
|
16
|
+
if (node.name === 'iframe') {
|
|
17
|
+
const Iframe = loadable(() => import('gatsby-core-theme/src/components/atoms/iframe'));
|
|
18
|
+
return <Iframe src={node.attribs.src} />;
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
if (node.name === 'img') {
|
|
16
22
|
let stylesClass = null;
|
|
17
23
|
const classes = node.attribs.class;
|
|
@@ -19,6 +19,7 @@ const Footer = ({
|
|
|
19
19
|
const TopSection = footerTopCustom;
|
|
20
20
|
const BottomSection = footerBottomCustom;
|
|
21
21
|
const showLinks = template !== 'ppc';
|
|
22
|
+
const copyrightDisclaimerValue = getExtraField(section?.extra_fields, copyrightDisclaimer);
|
|
22
23
|
|
|
23
24
|
return (
|
|
24
25
|
<footer className={`${styles.footer} ${hasFooterLinks && styles.hasFooterLinks}`}>
|
|
@@ -38,20 +39,17 @@ const Footer = ({
|
|
|
38
39
|
<div className={styles.bottomPart}>
|
|
39
40
|
{footerBottomCustom && <BottomSection section={section} page={page} />}
|
|
40
41
|
<div className={styles.copyrightDisclaimer}>
|
|
41
|
-
{
|
|
42
|
-
<
|
|
42
|
+
{copyrightDisclaimerValue && (
|
|
43
|
+
<div
|
|
43
44
|
dangerouslySetInnerHTML={{
|
|
44
|
-
__html:
|
|
45
|
-
/\. /g,
|
|
46
|
-
'.<br />'
|
|
47
|
-
),
|
|
45
|
+
__html: copyrightDisclaimerValue.replace(/\. /g, '.<br />'),
|
|
48
46
|
}}
|
|
49
47
|
/>
|
|
50
48
|
)}
|
|
51
49
|
<p>{copyrightText()}</p>
|
|
52
50
|
</div>
|
|
53
51
|
<div className={styles.logos}>
|
|
54
|
-
{footerLogos && (
|
|
52
|
+
{footerLogos && getExtraField(section?.extra_fields, footerLogos) && (
|
|
55
53
|
<LinkList
|
|
56
54
|
showListTitle={false}
|
|
57
55
|
imageOnly
|
|
@@ -22,7 +22,11 @@ const Modules = ({ module, page, pageContext }) => {
|
|
|
22
22
|
case 'counter':
|
|
23
23
|
return loadable(() => import('gatsby-core-theme/src/components/molecules/counter'));
|
|
24
24
|
case 'cards':
|
|
25
|
+
return loadable(() => import('../../organisms/cards'));
|
|
25
26
|
case 'cards_v2':
|
|
27
|
+
if (moduleItem.style === 'stack_table' && moduleItem.cards_page_type === 'operator') {
|
|
28
|
+
return loadable(() => import('../../../../components/atoms/cards/operators-table'));
|
|
29
|
+
}
|
|
26
30
|
return loadable(() => import('../../organisms/cards'));
|
|
27
31
|
case 'pros_and_cons':
|
|
28
32
|
return loadable(() => import('gatsby-core-theme/src/components/molecules/pros-cons'));
|
|
@@ -46,7 +50,7 @@ const Modules = ({ module, page, pageContext }) => {
|
|
|
46
50
|
case 'image':
|
|
47
51
|
return loadable(() => import('gatsby-core-theme/src/components/atoms/image'));
|
|
48
52
|
case 'spotlights':
|
|
49
|
-
return loadable(() => import('
|
|
53
|
+
return loadable(() => import('gatsby-core-theme/src/components/atoms/spotlights'));
|
|
50
54
|
case 'faq':
|
|
51
55
|
return loadable(() => import('../../../../components/molecules/faq'));
|
|
52
56
|
// Template blocks
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
1
2
|
import React, { useState, useEffect, useRef, useCallback, useContext } from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import { navigate } from 'gatsby';
|
|
4
5
|
import { FaSearch } from 'react-icons/fa';
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
|
+
import loadable from '@loadable/component';
|
|
7
7
|
import Tabs from 'gatsby-matrix-theme/src/hooks/tabs';
|
|
8
8
|
import styles from 'gatsby-core-theme/src/components/molecules/search/search.module.scss';
|
|
9
9
|
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
@@ -16,9 +16,7 @@ import keygen from '~helpers/keygen';
|
|
|
16
16
|
import { filterByKey, sortDateOn, sortIntOn, sortStringOn } from '~helpers/search';
|
|
17
17
|
import loadSource from '~helpers/search-source';
|
|
18
18
|
import { leftTrim } from '~helpers/strings';
|
|
19
|
-
import Archive from '~organisms/archive';
|
|
20
19
|
import ModuleTitle from '~atoms/module-title';
|
|
21
|
-
import CustomSelect from '~atoms/custom-select';
|
|
22
20
|
import { NavigationContext } from '~organisms/navigation/navigationContext';
|
|
23
21
|
|
|
24
22
|
/* eslint-disable no-underscore-dangle */
|
|
@@ -222,6 +220,7 @@ const Search = ({
|
|
|
222
220
|
}
|
|
223
221
|
}, [pageSearchOptionsCopy]);
|
|
224
222
|
if (pageSearchOptionsCopy !== null && pageSearchOptionsCopy.sort !== undefined) {
|
|
223
|
+
const CustomSelect = loadable(() => import('~atoms/custom-select'));
|
|
225
224
|
pageSearchOptionsCopy.tabsOptions.HeaderComp = (
|
|
226
225
|
<div className={styles.selectwrapper}>
|
|
227
226
|
<CustomSelect
|
|
@@ -359,6 +358,8 @@ const Search = ({
|
|
|
359
358
|
|
|
360
359
|
if (items.length === 0) return null;
|
|
361
360
|
|
|
361
|
+
const Archive = loadable(() => import('~organisms/archive'));
|
|
362
|
+
|
|
362
363
|
return (
|
|
363
364
|
<div label={titleObj.title} tabId={type + index} key={keygen()}>
|
|
364
365
|
{pageSearchOptionsCopy.useArchive === undefined ||
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
:global {
|
|
2
|
+
.carousel-module {
|
|
3
|
+
background-color: var(--color-5);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
.carouselContainer {
|
|
7
|
+
.carouselTitle {
|
|
8
|
+
margin-bottom: 1.5rem;
|
|
9
|
+
}
|
|
10
|
+
.slide {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
.carouselItem {
|
|
17
|
+
padding: 0.5rem;
|
|
18
|
+
width: 50%;
|
|
19
|
+
@include max(tablet) {
|
|
20
|
+
width: 100%;
|
|
21
|
+
text-align: center;
|
|
22
|
+
}
|
|
23
|
+
img {
|
|
24
|
+
border-radius: 0.6rem;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
3
27
|
}
|