gatsby-matrix-theme 3.2.27 → 4.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/gatsby-config.js +1 -6
  3. package/package.json +2 -2
  4. package/src/components/atoms/cards/base-card/index.js +1 -1
  5. package/src/components/atoms/cards/operator-card/index.js +19 -23
  6. package/src/components/atoms/cards/operator-card/operator-card.module.scss +23 -49
  7. package/src/components/atoms/cards/payment-method-card/index.js +1 -0
  8. package/src/components/atoms/cards/software-provider-card/index.js +1 -0
  9. package/src/components/atoms/footer/bottom/index.js +1 -10
  10. package/src/components/atoms/footer/top/index.js +1 -10
  11. package/src/components/atoms/table/column/index.js +5 -2
  12. package/src/components/pages/contact-us/index.js +1 -1
  13. package/src/{components/molecules → gatsby-core-theme/components/atoms}/info-grid/index.js +0 -0
  14. package/src/{components/molecules → gatsby-core-theme/components/atoms}/info-grid/info-grid.module.scss +0 -0
  15. package/src/{components/molecules → gatsby-core-theme/components/atoms}/info-grid/info-grid.stories.js +1 -0
  16. package/src/gatsby-core-theme/components/atoms/spotlights/index.js +14 -0
  17. package/src/gatsby-core-theme/components/atoms/spotlights/spotlights-site.module.scss +1 -0
  18. package/src/gatsby-core-theme/components/atoms/spotlights/spotlights-theme.module.scss +101 -0
  19. package/src/gatsby-core-theme/components/molecules/content/content.module.scss +16 -0
  20. package/src/gatsby-core-theme/components/molecules/content/index.js +7 -7
  21. package/src/gatsby-core-theme/components/molecules/footer/footer.module.scss +11 -2
  22. package/src/gatsby-core-theme/components/molecules/footer/index.js +9 -10
  23. package/src/{components → gatsby-core-theme/components}/molecules/header/header.test.js +0 -0
  24. package/src/{components → gatsby-core-theme/components}/molecules/header/index.js +12 -4
  25. package/src/gatsby-core-theme/components/molecules/module/index.js +4 -3
  26. package/src/gatsby-core-theme/components/molecules/module/module.module.scss +3 -0
  27. package/src/gatsby-core-theme/components/molecules/search/index.js +3 -2
  28. package/src/gatsby-core-theme/components/molecules/search/search.module.scss +39 -0
  29. package/src/gatsby-core-theme/components/organisms/anchor/index.js +13 -16
  30. package/src/{components → gatsby-core-theme/components}/organisms/toplist/index.js +1 -1
  31. package/src/{components → gatsby-core-theme/components}/organisms/toplist/list/index.js +0 -0
  32. package/src/{components → gatsby-core-theme/components}/organisms/toplist/list/list.module.scss +0 -0
  33. package/src/gatsby-core-theme/components/pages/body/index.js +7 -4
  34. package/src/gatsby-core-theme/styles/utils/variables/_main.scss +18 -0
  35. package/storybook/public/{0.e515c4bf.iframe.bundle.js → 0.d24a0c90.iframe.bundle.js} +1 -1
  36. package/storybook/public/{10.ff8f20a0.iframe.bundle.js → 10.2522d665.iframe.bundle.js} +1 -1
  37. package/storybook/public/{15.baadf857.iframe.bundle.js → 11.188b4e9c.iframe.bundle.js} +1 -1
  38. package/storybook/public/{16.9d6c22db.iframe.bundle.js → 12.dc60f46f.iframe.bundle.js} +1 -1
  39. package/storybook/public/{5.6967d34e.iframe.bundle.js → 5.d5718771.iframe.bundle.js} +3 -3
  40. package/storybook/public/{5.6967d34e.iframe.bundle.js.LICENSE.txt → 5.d5718771.iframe.bundle.js.LICENSE.txt} +0 -0
  41. package/storybook/public/5.d5718771.iframe.bundle.js.map +1 -0
  42. package/storybook/public/{6.892dc208.iframe.bundle.js → 6.064e5aae.iframe.bundle.js} +1 -1
  43. package/storybook/public/{7.061faab7.iframe.bundle.js → 7.dbd57ff4.iframe.bundle.js} +1 -1
  44. package/storybook/public/{8.fd6b3f00.iframe.bundle.js → 8.deb9a974.iframe.bundle.js} +1 -1
  45. package/storybook/public/{9.f220a5b6.iframe.bundle.js → 9.1c63a217.iframe.bundle.js} +3 -3
  46. package/storybook/public/{9.f220a5b6.iframe.bundle.js.LICENSE.txt → 9.1c63a217.iframe.bundle.js.LICENSE.txt} +0 -0
  47. package/storybook/public/9.1c63a217.iframe.bundle.js.map +1 -0
  48. package/storybook/public/iframe.html +1 -1
  49. package/storybook/public/main.edf8e107.iframe.bundle.js +1 -0
  50. package/storybook/public/runtime~main.c941bf72.iframe.bundle.js +1 -0
  51. package/storybook/public/vendors~main.2ee68090.iframe.bundle.js +7 -0
  52. package/storybook/public/{vendors~main.0a927976.iframe.bundle.js.LICENSE.txt → vendors~main.2ee68090.iframe.bundle.js.LICENSE.txt} +0 -0
  53. package/storybook/public/vendors~main.2ee68090.iframe.bundle.js.map +1 -0
  54. package/src/components/atoms/toplist/heading/heading.module.scss +0 -14
  55. package/src/components/atoms/toplist/heading/index.js +0 -12
  56. package/src/gatsby-core-theme/components/atoms/archive/items/index.js +0 -17
  57. package/src/gatsby-core-theme/components/atoms/menu/items/item/item.module.scss +0 -55
  58. package/src/gatsby-core-theme/components/atoms/spotlights/spotlights.module.scss +0 -99
  59. package/src/gatsby-core-theme/components/organisms/navigation/index.js +0 -134
  60. package/storybook/public/11.a965ed36.iframe.bundle.js +0 -1
  61. package/storybook/public/12.f31f86bb.iframe.bundle.js +0 -1
  62. package/storybook/public/13.c72a573a.iframe.bundle.js +0 -1
  63. package/storybook/public/14.454a253c.iframe.bundle.js +0 -1
  64. package/storybook/public/5.6967d34e.iframe.bundle.js.map +0 -1
  65. package/storybook/public/9.f220a5b6.iframe.bundle.js.map +0 -1
  66. package/storybook/public/main.08905184.iframe.bundle.js +0 -1
  67. package/storybook/public/runtime~main.3d3135a4.iframe.bundle.js +0 -1
  68. package/storybook/public/vendors~main.0a927976.iframe.bundle.js +0 -7
  69. package/storybook/public/vendors~main.0a927976.iframe.bundle.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,71 @@
1
+ ## [4.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.1...v4.0.2) (2022-02-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * spotlight styling ([69542c6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/69542c640dce83de22dd26ac24313d26831b9dc3))
7
+ * spotlight styling ([9f725a5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9f725a5cf5d6f9d12108367cc337612196fbdbbf))
8
+
9
+ ## [4.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.0...v4.0.1) (2022-02-21)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * cleanup anchor ([ec69b31](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ec69b316f2dad3844e8541b58cc05e9d40302117))
15
+ * cleanup operator cards ([65595d2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/65595d27fdcf623733a3e5914b6a55f32075caf1))
16
+ * image object fit ([4ec7355](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4ec73555c1caf67d125d014d287a8139ca93f41b))
17
+ * spotlight fixes ([0d55c9d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0d55c9d63dd43f307e63b1fb1b54676bb1b0d202))
18
+
19
+
20
+ ### Code Refactoring
21
+
22
+ * fix, remove and update some of the files being badly overriden ([321517f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/321517f102a02b8f306c2ab61339cc6055c5518c))
23
+ * remove unneeded div at footer ([1d8aa9d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1d8aa9dc51ea0f9fb2044a450f5f01dff03afb23))
24
+
25
+
26
+ * Merge branch 'tm-2716-html-cleanup' into 'master' ([e83f062](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e83f0624b206484d1ae69e8a08b02994af4fa889))
27
+ * Merge branch 'tm-2624-spotlight-fixes' into 'master' ([a963872](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a9638724e153560f386cabd08f383f544b01211f))
28
+
29
+ # [4.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.28...v4.0.0) (2022-02-16)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * added new spotlights style ([97ff16c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/97ff16c77e661adbd34be588fd845568bc72cf91))
35
+ * content frame style ([64878ea](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/64878ea15e3e8d2aa2b32d31f1edddb2b77df392))
36
+ * content module ([dd73e88](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/dd73e88f5a8086e6a3e8968ceb6f5d80c53d9b68))
37
+ * fixed sizes ([9fe7c2b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9fe7c2b941329dc47b254aafe4941dcd7686284e))
38
+ * merged master branch ([f0ed925](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f0ed92598c46d84316c0381e1aa3fa7515dad199))
39
+
40
+
41
+ ### Code Refactoring
42
+
43
+ * correction to runner ([5e82a01](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5e82a014a54def57d170719776a7a5cc261ef6dc))
44
+ * new pipeline for custom demo deployment ([854d8a7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/854d8a751d5fb9b7480eb7e3d1cbc9384106b57c))
45
+ * remove deploy pipelines server ssh key ([90861f3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/90861f3c0c308e6f6747ac601fa5012f2516367b))
46
+ * remove unused pipeline ([28f7393](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/28f739391639f1ea6a06f9afc3eb5094a6d3ea87))
47
+ * update deployment pipelines ([df8b5ab](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/df8b5ab85c9ef85911a40bb85688b86df366f22a))
48
+ * update img alt tags ([5f7b504](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5f7b5040fbb8fa683d872a9d453c9ed5855f992b))
49
+
50
+
51
+ * Merge branch 'tm-2703-custom-demo-deployment' into 'master' ([8ae95cc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8ae95cce0c0737d5a77c0efe66e9acc49cd2172a))
52
+ * Merge branch 'master' into tm-2703-custom-demo-deployment ([9cfd3b3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9cfd3b33d62ac17ef5b966962eb6e9909a9497dd))
53
+ * Merge branch 'tm-2715-update-img-alt-tags' into 'master' ([fe14659](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fe1465976cf2cae2466c846ef1c0189266932a4b))
54
+ * Merge branch 'master' into tm-2703-custom-demo-deployment ([52c066f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/52c066fc92e4869691c10aaecc66c9f7f6631bce))
55
+ * Merge branch 'tm-2624-spotlights' into 'master' ([2a2656d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2a2656da47b99198ffed61486a6072e6983836be))
56
+ * Merge branch 'tm-2702-update-deployment-pipelines' into 'master' ([e9f0b13](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e9f0b13f3bd3e5e7fc6982d76d329eb0796055da))
57
+
58
+ ## [3.2.28](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.27...v3.2.28) (2022-02-08)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * fixed prelive path ([613be59](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/613be5928fa86f418bd5296f701b32ae77d54d1d))
64
+ * preconnectLinks removed ([325406c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/325406c1f772dce8a42c3be89a3c8213579957d4))
65
+
66
+
67
+ * Merge branch 'tm-2681-canary-tokens' into 'master' ([bcbf07d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bcbf07d830c41f628d180ef592ffb82a8e0f9b00))
68
+
1
69
  ## [3.2.27](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.26...v3.2.27) (2022-02-08)
2
70
 
3
71
 
package/gatsby-config.js CHANGED
@@ -16,12 +16,7 @@ module.exports = {
16
16
  resolve: `gatsby-core-theme`,
17
17
  options: {
18
18
  siteName: process.env.GATSBY_SITE_NAME,
19
- preconnectLinks: [
20
- 'https://www.google-analytics.com',
21
- 'https://www.googletagmanager.com',
22
- 'https://gm.innocraft.cloud',
23
- process.env.IMAGE_CDN_URL,
24
- ],
19
+ preconnectLinks: [process.env.IMAGE_CDN_URL],
25
20
  },
26
21
  },
27
22
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.27",
3
+ "version": "4.0.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": "^3.0.0",
34
+ "gatsby-core-theme": "^4.0.0",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-postcss": "^4.3.0",
@@ -16,7 +16,7 @@ const BaseCard = ({
16
16
  const { path, title } = item;
17
17
  const imgContent = (
18
18
  <>
19
- <Image filename={backgroundImage} />
19
+ <Image filename={backgroundImage} alt={title} />
20
20
  <div className={styles.overlay} />
21
21
  </>
22
22
  );
@@ -54,37 +54,33 @@ const OperatorCard = ({ item, featured = false, number, width, height }) => {
54
54
  }`}
55
55
  >
56
56
  <div className={styles.casinoText}>
57
- <div className={styles.casinoName}>
58
- <Link to={reviewPath} title={relation.name} className="operator-card-gtm">
59
- {relation.name}
60
- </Link>
61
- </div>
62
- <div className={styles.casinoBonus}>
63
- {!isInactive && <Bonus item={relation} tracker="main" />}
64
- </div>
57
+ <Link to={reviewPath} title={relation.name} className="operator-card-gtm">
58
+ {relation.name}
59
+ </Link>
60
+ {!isInactive && <Bonus item={relation} tracker="main" />}
65
61
  </div>
66
62
  <div
67
63
  className={`${styles.cardFooter} ${featured && styles.featured} ${
68
64
  backgroundImage && styles.hasBackground
69
65
  }`}
70
66
  >
71
- <div className={styles.reviewLink}>
72
- <Link to={reviewPath} title={relation.name} className="operator-card-gtm">
73
- {`${relation.name} ${translate(translations, 'read_review', 'Review')}`}
74
- </Link>
75
- </div>
76
- <div className={`${styles.cardButtons}`}>
77
- <OperatorCta
78
- tracker="main"
79
- operator={relation}
80
- playText={translate(translations, 'play_now', 'Play Now')}
81
- gtmClass="operator-card-gtm btn-cta"
82
- />
83
- </div>
67
+ <Link
68
+ to={reviewPath}
69
+ title={relation.name}
70
+ className={`${styles.reviewLink} operator-card-gtm`}
71
+ >
72
+ {`${relation.name} ${translate(translations, 'read_review', 'Review')}`}
73
+ </Link>
74
+ <OperatorCta
75
+ tracker="main"
76
+ operator={relation}
77
+ playText={translate(translations, 'play_now', 'Play Now')}
78
+ gtmClass="operator-card-gtm btn-cta"
79
+ />
84
80
  {relation?.extra_fields?.terms_and_conditions_text_enabled === '1' && (
85
- <div className={styles.tnc}>
81
+ <span className={styles.tnc}>
86
82
  <Tnc hasCollapse={false} operator={relation} />
87
- </div>
83
+ </span>
88
84
  )}
89
85
  </div>
90
86
  </div>
@@ -5,27 +5,7 @@
5
5
  padding: 0 1.6rem 2rem;
6
6
  position: relative;
7
7
  color: var(--color-44);
8
- .casinoName {
9
- font-size: 1.6rem;
10
- font-weight: 400;
11
- margin-bottom: 0.8rem;
12
- a {
13
- color: #000;
14
- }
15
- }
16
- .casinoBonus {
17
- div {
18
- font-size: 1.4rem;
19
- color: var(--color-44);
20
- font-weight: 400;
21
- }
22
- div:first-child {
23
- font-size: 1.6rem;
24
- font-weight: 700;
25
- color: var(--primary-color);
26
- font-weight: 700;
27
- }
28
- }
8
+
29
9
  .casinoText {
30
10
  @include flex-align(flex-start, flex-start);
31
11
  width: 100%;
@@ -33,56 +13,50 @@
33
13
  margin-bottom: 0.8rem;
34
14
  height: 8.2rem;
35
15
  overflow: hidden;
16
+
17
+ a {
18
+ color: #000;
19
+ font-size: 1.6rem;
20
+ font-weight: 400;
21
+ margin-bottom: 0.8rem;
22
+ }
36
23
  }
37
24
  &.featured {
38
25
  color: #fff;
39
- .casinoName {
26
+
27
+ .casinoText {
40
28
  a {
41
29
  color: #fff;
42
30
  }
43
31
  }
44
- .casinoBonus {
45
- div {
46
- color: #fff;
47
- }
48
- div:first-child {
49
- font-size: 2.4rem;
50
- line-height: 1.2;
51
- color: #fff;
52
- }
53
- }
54
32
  }
55
33
  }
56
34
  .cardFooter {
57
35
  width: 100%;
58
36
  color: var(--color-44);
37
+ @include flex-direction(column);
38
+
59
39
  .tnc {
60
40
  margin: 0.8rem 0 -0.7rem;
61
41
  p {
62
42
  font-size: 1rem;
63
43
  }
64
44
  }
65
- .cardButtons {
66
- @include flex-align(center, space-between);
67
- width: 100%;
68
- flex-direction: row-reverse;
69
45
 
70
- @include max(tablet) {
71
- flex-direction: column;
72
- a[class*='button'] {
73
- display: block;
74
- width: 100%;
75
- margin-bottom: 0.5rem;
76
- }
77
- }
46
+ a:last-of-type {
47
+ max-width: fit-content;
48
+ align-self: flex-end;
49
+ }
78
50
 
79
- .reviewLink {
80
- color: var(--text-link-color);
81
- font-size: 1.6rem;
82
- font-weight: 700;
83
- text-decoration: underline;
51
+ @include max(tablet) {
52
+ a[class*='button'] {
53
+ display: block;
54
+ width: 100%;
55
+ max-width: 100%;
56
+ margin-bottom: 0.5rem;
84
57
  }
85
58
  }
59
+
86
60
  &.featured {
87
61
  color: #fff;
88
62
  }
@@ -27,6 +27,7 @@ const PaymentMethodCard = ({ item, showTitle = true, showDesc = true, width, hei
27
27
  height={height}
28
28
  className={styles.logo}
29
29
  src={imagePrettyUrl(relation?.logo)}
30
+ alt={title}
30
31
  />
31
32
  </Link>
32
33
  {showTitle && (
@@ -38,6 +38,7 @@ const SoftwareProviderCard = ({
38
38
  height={height}
39
39
  className={styles.logo}
40
40
  src={imagePrettyUrl(relation?.logo)}
41
+ alt={title}
41
42
  />
42
43
  </Link>
43
44
  {showTitle && (
@@ -1,14 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
 
4
- const FooterBottom = () => {
5
- return <></>;
6
- };
7
-
8
- FooterBottom.propTypes = {
9
- section: PropTypes.shape({
10
- extra_fields: PropTypes.object,
11
- }),
12
- };
3
+ const FooterBottom = () => <></>;
13
4
 
14
5
  export default FooterBottom;
@@ -1,14 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
 
4
- const FooterTop = () => {
5
- return <></>;
6
- };
7
-
8
- FooterTop.propTypes = {
9
- section: PropTypes.shape({
10
- extra_fields: PropTypes.object,
11
- }),
12
- };
3
+ const FooterTop = () => <></>;
13
4
 
14
5
  export default FooterTop;
@@ -56,7 +56,7 @@ const Index = ({
56
56
  <div className={styles.details}>
57
57
  <div className={styles.logo}>
58
58
  <Link to={item.review_link} className="table-column-gtm">
59
- <LazyImage src={imagePrettyUrl(item.logo_url, 120, 45)} />
59
+ <LazyImage src={imagePrettyUrl(item.logo_url, 120, 45)} alt={item.name} />
60
60
  </Link>
61
61
 
62
62
  <p>{item.name}</p>
@@ -124,7 +124,10 @@ const Index = ({
124
124
  <div className={styles.licenses}>
125
125
  {licenses_list &&
126
126
  licenses_list.map((res) => (
127
- <LazyImage src={imagePrettyUrl(res.logo_filename, 63, 32)} />
127
+ <LazyImage
128
+ src={imagePrettyUrl(res.logo_filename, 63, 32)}
129
+ alt={`license ${res.logo_filename}`}
130
+ />
128
131
  ))}
129
132
  {licenses_list?.length > 3 && licensesMore ? (
130
133
  <FaAngleDown
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4
4
  import keygen from 'gatsby-core-theme/src/helpers/keygen';
5
5
  import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
6
6
  import Form from 'gatsby-core-theme/src/components/organisms/form';
7
- import Header from '../../molecules/header';
7
+ import Header from 'gatsby-core-theme/src/components/molecules/header';
8
8
  import AuthorCard from '../../atoms/author-card';
9
9
  import SocialIcons from '../../atoms/social-icons';
10
10
  import styles from './contact-us.module.scss';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
1
2
  import React from 'react';
2
3
  import {
3
4
  Title,
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import Spotlights from 'gatsby-core-theme/src/components/atoms/spotlights/index';
3
+ import styleTheme from './spotlights-theme.module.scss';
4
+ import styleSite from './spotlights-site.module.scss';
5
+
6
+ export default (props) => (
7
+ <Spotlights
8
+ {...props}
9
+ themeStyles={{
10
+ ...styleTheme,
11
+ ...styleSite,
12
+ }}
13
+ />
14
+ );
@@ -0,0 +1 @@
1
+ // To be overriden by sites and add custom styling
@@ -0,0 +1,101 @@
1
+ .testimonials {
2
+ ul {
3
+ li {
4
+ border: 1px solid var(--spotlight-testimonials-border-color);
5
+ border-radius: 0.8rem;
6
+ background-color: var(--spotlight-testimonials-background-color);
7
+
8
+ img {
9
+ border-radius: 8rem;
10
+ width: 15rem !important;
11
+ height: 15rem !important;
12
+ margin: 0 auto;
13
+ object-fit: cover;
14
+ }
15
+
16
+ > span,
17
+ label {
18
+ font-size: 1.4rem;
19
+ }
20
+
21
+ > label, > a > label {
22
+ padding-bottom: 0.8rem;
23
+ padding-top: 0.5rem;
24
+ font-size: var(--spotlight-testimonials-label-size);
25
+ color: var(--spotlight-testimonials-label-color);
26
+ }
27
+
28
+ > span {
29
+ width: 50%;
30
+ margin: 0 auto;
31
+ font-size: var(--spotlight-testimonials-subtitle-size);
32
+ color: var(--spotlight-testimonials-subtitle-color);
33
+ }
34
+
35
+ > div {
36
+ font-size: var(--spotlight-testimonials-text-size);
37
+ color: var(--spotlight-testimonials-text-color);
38
+ }
39
+ }
40
+ }
41
+ }
42
+
43
+ .boxes_with_icons {
44
+ ul {
45
+ display: flex;
46
+ flex-direction: column;
47
+
48
+ li {
49
+ border: 1px solid var(--spotlight-boxes-border-color);
50
+ background-color: var(--spotlight-boxes-background-color);
51
+ box-sizing: border-box;
52
+ border-radius: .6rem;
53
+ position: relative;
54
+ max-width: 568px;
55
+ margin-left: 4.5rem;
56
+ margin-bottom: 3rem;
57
+ padding: 2.4rem 2.4rem 2.8rem 7.2rem;
58
+ min-height: 15rem;
59
+ text-align: left;
60
+ justify-content: center;
61
+
62
+ > img {
63
+ position: absolute;
64
+ left: -4.5rem;
65
+ top: 50%;
66
+ transform: translateY(-50%);
67
+ display: inline-block;
68
+ min-width: 9.5rem !important;
69
+ width: 9.5rem;
70
+ height: 9.5rem !important;
71
+ border-radius: 50%;
72
+ object-fit: cover;
73
+ }
74
+
75
+ &:first-of-type {
76
+ margin-top: 3rem;
77
+ }
78
+
79
+ @include max(mobile) {
80
+ width: auto;
81
+ }
82
+
83
+ > label {
84
+ font-size: var(--spotlight-boxes-label-size);
85
+ color: var(--spotlight-boxes-label-color);
86
+ }
87
+
88
+ > div {
89
+ font-size: var(--spotlight-boxes-text-size);
90
+ color: var(--spotlight-boxes-text-color);
91
+ }
92
+ }
93
+
94
+ li:nth-child(2n) {
95
+ margin-left: auto;
96
+ @include max(mobile) {
97
+ margin-left: 4.5rem;
98
+ }
99
+ }
100
+ }
101
+ }
@@ -291,3 +291,19 @@
291
291
  .alignRight {
292
292
  @include content-img-align(right);
293
293
  }
294
+
295
+ .contentFrame {
296
+ background-color: #E0EAEA;
297
+ padding: 1.6rem 2.4rem 2.4rem;
298
+ border-radius: .8rem;
299
+ box-sizing: border-box;
300
+ img {
301
+ border-radius: .8rem;
302
+ }
303
+ @include max(mobile) {
304
+ img {
305
+ margin-left: 0;
306
+ width: 100%;
307
+ }
308
+ }
309
+ }
@@ -81,13 +81,13 @@ const Content = ({ module }) => {
81
81
 
82
82
  return (
83
83
  <>
84
- <div
85
- className={`${styles.content} ${showMore && styles.showMore} ${switchStyle(module.style)}`}
86
- >
87
- {module.value &&
88
- parse(module.value, {
89
- replace: replaceMedia,
90
- })}
84
+ <div className={`${styles.content} ${showMore && styles.showMore}`}>
85
+ <div className={`${switchStyle(module.style)}`}>
86
+ {module.value &&
87
+ parse(module.value, {
88
+ replace: replaceMedia,
89
+ })}
90
+ </div>
91
91
  </div>
92
92
  {showMore && (
93
93
  <button type="button" className={styles.button} onClick={handleChange}>
@@ -82,12 +82,17 @@
82
82
  flex-direction: column-reverse;
83
83
  justify-content: center;
84
84
  align-items: center;
85
+ margin-bottom: 3rem;
86
+
87
+ @include min(laptop) {
88
+ margin-bottom: 0;
89
+ }
85
90
 
86
91
  .copyrightDisclaimer {
87
- padding: 3rem 0;
92
+ margin: 3rem 0 2rem 0;
88
93
 
89
94
  @include min(laptop) {
90
- padding: 3rem 0 0 0;
95
+ margin: 3rem 0 2rem 0;
91
96
  }
92
97
 
93
98
  p {
@@ -99,6 +104,10 @@
99
104
  }
100
105
  }
101
106
 
107
+ .copyrightText {
108
+ order: -1;
109
+ }
110
+
102
111
  .logos {
103
112
  > ul {
104
113
  @include flex-align(center, center);
@@ -48,16 +48,15 @@ const Footer = ({
48
48
 
49
49
  <div className={styles.bottomPart}>
50
50
  {footerBottomCustom && <BottomSection section={section} page={page} />}
51
- <div className={styles.copyrightDisclaimer}>
52
- {copyrightDisclaimerValue && (
53
- <div
54
- dangerouslySetInnerHTML={{
55
- __html: copyrightDisclaimerValue.replace(/\. /g, '.<br />'),
56
- }}
57
- />
58
- )}
59
- <p>{copyrightText()}</p>
60
- </div>
51
+ {copyrightDisclaimerValue && (
52
+ <div
53
+ className={styles.copyrightDisclaimer}
54
+ dangerouslySetInnerHTML={{
55
+ __html: copyrightDisclaimerValue.replace(/\. /g, '.<br />'),
56
+ }}
57
+ />
58
+ )}
59
+ <p className={styles.copyrightText}>{copyrightText()}</p>
61
60
  <div className={styles.logos}>
62
61
  {footerLogos && getExtraField(section?.extra_fields, footerLogos) && (
63
62
  <LinkList
@@ -13,19 +13,27 @@ export const headerContent = (props) => {
13
13
  case 'article_detail':
14
14
  case 'article_casino':
15
15
  case 'article_sports': {
16
- ModuleComponent = loadable(() => import('./variants/article'));
16
+ ModuleComponent = loadable(() =>
17
+ import('../../../../components/molecules/header/variants/article')
18
+ );
17
19
  return <ModuleComponent page={props.section.page} />;
18
20
  }
19
21
  case 'operator_review': {
20
- ModuleComponent = loadable(() => import('./variants/operator'));
22
+ ModuleComponent = loadable(() =>
23
+ import('../../../../components/molecules/header/variants/operator')
24
+ );
21
25
  return <ModuleComponent operator={props.section.page.relation} />;
22
26
  }
23
27
  case 'game_review': {
24
- ModuleComponent = loadable(() => import('./variants/slot'));
28
+ ModuleComponent = loadable(() =>
29
+ import('../../../../components/molecules/header/variants/slot')
30
+ );
25
31
  return <ModuleComponent page={props.section.page} />;
26
32
  }
27
33
  case 'author': {
28
- ModuleComponent = loadable(() => import('./variants/author'));
34
+ ModuleComponent = loadable(() =>
35
+ import('../../../../components/molecules/header/variants/author')
36
+ );
29
37
  return <ModuleComponent page={props.section.page} />;
30
38
  }
31
39
  default:
@@ -5,9 +5,10 @@ import PropTypes from 'prop-types';
5
5
  import loadable from '@loadable/component';
6
6
  import { anchorLink } from 'gatsby-core-theme/src/helpers/strings';
7
7
  import { prettyTracker, getSectionExtraField } from 'gatsby-core-theme/src/helpers/getters';
8
- import styles from 'gatsby-core-theme/src/components/molecules/module/module.module.scss';
9
8
  import ModuleTitle from 'gatsby-core-theme/src/components/atoms/module-title';
10
9
 
10
+ import styles from './module.module.scss';
11
+
11
12
  const Modules = ({ module, page, pageContext }) => {
12
13
  const GetModuleComponent = (moduleItem) => {
13
14
  switch (moduleItem.name) {
@@ -15,7 +16,7 @@ const Modules = ({ module, page, pageContext }) => {
15
16
  case 'content':
16
17
  return loadable(() => import('../content'));
17
18
  case 'top_list':
18
- return loadable(() => import('../../../../components/organisms/toplist'));
19
+ return loadable(() => import('gatsby-core-theme/src/components/organisms/toplist'));
19
20
  case 'archive':
20
21
  if (!moduleItem.items || moduleItem.items.length === 0) return null;
21
22
  return loadable(() => import('../../organisms/archive'));
@@ -70,7 +71,7 @@ const Modules = ({ module, page, pageContext }) => {
70
71
  return loadable(() => import('gatsby-core-theme/src/components/atoms/operator-info-block'));
71
72
  case 'info_grid':
72
73
  case 'information_grid':
73
- return loadable(() => import('../../../../components/molecules/info-grid'));
74
+ return loadable(() => import('gatsby-core-theme/src/components/atoms/info-grid'));
74
75
  case 'content_box':
75
76
  return loadable(() => import('gatsby-core-theme/src/components/atoms/content-box'));
76
77
  case 'timeline':