gatsby-matrix-theme 3.1.1 → 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 +21 -0
- package/package.json +2 -2
- 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 -109
- package/src/gatsby-core-theme/components/molecules/module/index.js +1 -1
- package/src/gatsby-core-theme/components/organisms/head/index.js +6 -3
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.c8da7880.iframe.bundle.js +1 -0
- package/storybook/public/vendors~main.145aeafa.iframe.bundle.js +7 -0
- package/storybook/public/{vendors~main.7fa2fd4a.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/main.f2a52f99.iframe.bundle.js +0 -1
- package/storybook/public/vendors~main.7fa2fd4a.iframe.bundle.js +0 -7
- package/storybook/public/vendors~main.7fa2fd4a.iframe.bundle.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
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
|
+
|
|
1
22
|
## [3.1.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.1.0...v3.1.1) (2021-12-17)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "3.1.
|
|
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": "^2.0.
|
|
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",
|
|
@@ -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,121 +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
|
-
width: auto;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
.label {
|
|
49
|
-
font-weight: 700;
|
|
50
|
-
font-size: 1.6rem;
|
|
51
|
-
color: var(--color-12);
|
|
52
|
-
margin: 1.6rem 0;
|
|
53
|
-
}
|
|
54
|
-
.text {
|
|
55
|
-
font-size: 1.6rem;
|
|
56
|
-
color: #5a4e51;
|
|
57
|
-
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.content {
|
|
40
|
+
padding: 1rem;
|
|
41
|
+
.label {
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
font-size: 2rem;
|
|
44
|
+
color: black;
|
|
58
45
|
}
|
|
59
46
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
height: 100%;
|
|
72
|
-
object-fit: cover;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
.label {
|
|
76
|
-
font-weight: 700;
|
|
77
|
-
font-size: 1.6rem;
|
|
78
|
-
color: black;
|
|
79
|
-
margin: 1.6rem 0 0 0.9rem;
|
|
80
|
-
}
|
|
81
|
-
.text {
|
|
82
|
-
font-size: 1.4rem;
|
|
83
|
-
color: #000;
|
|
84
|
-
p[class*='job-position'] {
|
|
85
|
-
color: var(--color-40);
|
|
86
|
-
}
|
|
87
|
-
p[class*='body'] {
|
|
88
|
-
color: #000;
|
|
89
|
-
width: 100%;
|
|
90
|
-
height: 15rem;
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
margin: 1.6rem 0;
|
|
93
|
-
}
|
|
94
|
-
a[class*='icon'] {
|
|
95
|
-
display: inline-block;
|
|
96
|
-
background-color: #f6f6fb;
|
|
97
|
-
width: 4.8rem;
|
|
98
|
-
height: 4.8rem;
|
|
99
|
-
line-height: 2.3;
|
|
100
|
-
border-radius: 50%;
|
|
101
|
-
margin: 0 0.4rem;
|
|
102
|
-
color: #6e6e84;
|
|
103
|
-
font-size: 2.4rem;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
.readMore {
|
|
107
|
-
color: var(--color-40);
|
|
108
|
-
margin-top: 1.6rem;
|
|
109
|
-
font-size: 1.3rem;
|
|
110
|
-
font-weight: 700;
|
|
111
|
-
}
|
|
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;
|
|
112
58
|
}
|
|
113
59
|
}
|
|
114
60
|
}
|
|
115
61
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
+
}
|
|
120
89
|
}
|
|
121
|
-
|
|
90
|
+
}
|
|
@@ -50,7 +50,7 @@ const Modules = ({ module, page, pageContext }) => {
|
|
|
50
50
|
case 'image':
|
|
51
51
|
return loadable(() => import('gatsby-core-theme/src/components/atoms/image'));
|
|
52
52
|
case 'spotlights':
|
|
53
|
-
return loadable(() => import('
|
|
53
|
+
return loadable(() => import('gatsby-core-theme/src/components/atoms/spotlights'));
|
|
54
54
|
case 'faq':
|
|
55
55
|
return loadable(() => import('../../../../components/molecules/faq'));
|
|
56
56
|
// Template blocks
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
1
2
|
import React from 'react';
|
|
2
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
3
|
import { Helmet } from 'react-helmet';
|
|
4
|
+
import parse from 'html-react-parser';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
|
|
6
7
|
import { schemaGenerator } from '~helpers/schema';
|
|
@@ -45,6 +46,7 @@ function setName(string) {
|
|
|
45
46
|
const Head = ({ page = {}, siteInfo }) => {
|
|
46
47
|
const pageImage = getPageImage(page) ? getPageImage(page) : imagePrettyUrl(siteInfo?.site_logo);
|
|
47
48
|
const twitterUsername = getTwitterUsername(page.siteSchema?.twitter);
|
|
49
|
+
const parsedMetaDescr = page.meta_description ? parse(page.meta_description) : '';
|
|
48
50
|
|
|
49
51
|
return (
|
|
50
52
|
<>
|
|
@@ -52,7 +54,7 @@ const Head = ({ page = {}, siteInfo }) => {
|
|
|
52
54
|
<meta charSet="utf-8" />
|
|
53
55
|
<title>{page.meta_title}</title>
|
|
54
56
|
<html lang={getLanguage(page.language)} />
|
|
55
|
-
<meta name="description" content={
|
|
57
|
+
<meta name="description" content={parsedMetaDescr} />
|
|
56
58
|
{page.meta_robots && process.env.GATSBY_ACTIVE_ENV !== 'development' && (
|
|
57
59
|
<meta name="robots" content={page.meta_robots.join()} />
|
|
58
60
|
)}
|
|
@@ -68,7 +70,7 @@ const Head = ({ page = {}, siteInfo }) => {
|
|
|
68
70
|
page.preconnect_links.map((link) => <link key={keygen()} rel="preconnect" href={link} />)}
|
|
69
71
|
<meta name="og:title" content={page.meta_title} />
|
|
70
72
|
<meta name="og:site_name" content={siteInfo?.site_name && setName(siteInfo?.site_name)} />
|
|
71
|
-
<meta name="og:description" content={
|
|
73
|
+
<meta name="og:description" content={parsedMetaDescr} />
|
|
72
74
|
<meta name="og:type" content={page.path === '/' ? 'website' : 'article'} />
|
|
73
75
|
<meta name="og:image" content={pageImage} />
|
|
74
76
|
<meta name="og:url" content={getUrl(page.path)} />
|
|
@@ -88,6 +90,7 @@ const Head = ({ page = {}, siteInfo }) => {
|
|
|
88
90
|
<meta name="twitter:title" content={page.meta_title} />
|
|
89
91
|
<meta name="twitter:description" content={page.meta_description} />
|
|
90
92
|
<meta name="twitter:site" content={`@${twitterUsername}`} />
|
|
93
|
+
<meta name="twitter:creator" content={`@${twitterUsername}`} />
|
|
91
94
|
<meta name="twitter:card" content="summary" />
|
|
92
95
|
<meta name="twitter:image" content={pageImage} />
|
|
93
96
|
</Helmet>
|
|
@@ -135,4 +135,4 @@
|
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
window['FEATURES'] = {"postcss":true};</script><script src="runtime~main.5a919f90.iframe.bundle.js"></script><script src="vendors~main.
|
|
138
|
+
window['FEATURES'] = {"postcss":true};</script><script src="runtime~main.5a919f90.iframe.bundle.js"></script><script src="vendors~main.145aeafa.iframe.bundle.js"></script><script src="main.c8da7880.iframe.bundle.js"></script></body></html>
|