gatsby-matrix-theme 3.2.10 → 3.2.14

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 CHANGED
@@ -1,3 +1,58 @@
1
+ ## [3.2.14](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.13...v3.2.14) (2022-01-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added default article card for card module with no page type ([34f8013](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/34f8013046d2ef037017dbcda2ba122fa1689c49))
7
+ * added default images for articles ([93aa3b3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/93aa3b39e36b97e7d783a500150b37c0deedf173))
8
+
9
+ ## [3.2.13](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.12...v3.2.13) (2022-01-18)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * minor fixes ([0082bdf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0082bdf105de208b8987f079726f6bf7d8608835))
15
+
16
+
17
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([dccc488](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/dccc488f216ebe115db8c4189b102ea028b5b290))
18
+
19
+ ## [3.2.12](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.11...v3.2.12) (2022-01-18)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * make style ([7bdee3c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7bdee3cca0ed0734030933a28704dbb70c7c61ad))
25
+ * removed slider from anchor module ([f0ed893](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f0ed893e51c19ec7264827f1dc6a30f2c91c0c2e))
26
+ * small fix ([5c331cf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5c331cf2de55270811ffa316cd3d39c98c013176))
27
+ * update aria-label on newsletter inputs ([23b9bb9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/23b9bb91aab8ea57291989b01423ca27ee97c3b4))
28
+
29
+
30
+ ### Code Refactoring
31
+
32
+ * update html.js for w3 validator ([ffb2aa5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ffb2aa5ae3051657dd427571f99e9feed1eca642))
33
+
34
+
35
+ ### Config
36
+
37
+ * updated theme version ([98954f3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/98954f3a11f851ee66d620a32b1feac013f2642f))
38
+
39
+
40
+ * Merge branch 'tm-2567-update-theme-for-w3-validator' into 'master' ([1bb11dd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1bb11dded1f44fce70f0ac22bcc151f19cb92cfe))
41
+ * Merge branch 'tm-2655-anchor-module' into 'master' ([cfd8d53](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/cfd8d538e7b450fd1cf49e0ba10cd7f575d482f7))
42
+ * Merge branch 'tm-2567-update-theme-for-w3-validator' into 'master' ([7038322](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/703832269572f3bd5791d56c3a7747a72e1f4fb7))
43
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([e0925b2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e0925b293b241bfbe7ba2138838270ac2ad465d1))
44
+ * Merge branch 'tm-2585-comparisonTabel' into 'master' ([f36ce52](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f36ce52fc6f847cc89c03fc83269d023fcb1774d))
45
+
46
+ ## [3.2.11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.10...v3.2.11) (2022-01-13)
47
+
48
+
49
+ ### Code Refactoring
50
+
51
+ * update newsletter form for w3 validator ([11243b9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/11243b94527d6dc2a62310c60d530199e9be1516))
52
+
53
+
54
+ * Merge branch 'tm-2567-update-theme-for-w3-validator' into 'master' ([82c4eaf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/82c4eafbdac22cde92706d82a6e7365878f1854d))
55
+
1
56
  ## [3.2.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.9...v3.2.10) (2022-01-13)
2
57
 
3
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.10",
3
+ "version": "3.2.14",
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.1.0",
34
+ "gatsby-core-theme": "^2.2.0",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-postcss": "^4.3.0",
@@ -1,8 +1,8 @@
1
1
  .table {
2
2
  cursor: grabbing;
3
3
  tr {
4
- grid-template-columns: 15.2rem 27rem;
5
- grid-auto-columns: 27rem;
4
+ grid-template-columns: 15.2rem 30rem;
5
+ grid-auto-columns: 30rem;
6
6
  grid-auto-flow: column;
7
7
  display: grid;
8
8
 
@@ -44,7 +44,7 @@
44
44
  }
45
45
  .casinoName {
46
46
  @include flex-direction(row);
47
- @include flex-align(center, space-between);
47
+ @include flex-align(center, flex-start);
48
48
  padding: 1.6rem;
49
49
  img {
50
50
  border: 1px solid var(--color-9);
@@ -131,7 +131,7 @@
131
131
  width: 4.4rem;
132
132
  height: 2.4rem;
133
133
  padding: 0.499rem 0.8rem;
134
- color: #17182f;
134
+ display: inline-block;
135
135
  }
136
136
  }
137
137
  .paymentMethods {
@@ -144,7 +144,7 @@
144
144
  font-size: 14px;
145
145
  line-height: 18px;
146
146
  object-fit: contain;
147
- color: white;
147
+ color: black;
148
148
  margin-bottom: 0.5rem;
149
149
  margin-top: 0.5rem;
150
150
  img {
@@ -175,7 +175,8 @@
175
175
  .licenses {
176
176
  padding: 1.1rem;
177
177
  img {
178
- max-height: 3.2rem;
178
+ display: inline-block;
179
+ height: 3.2rem;
179
180
  width: 7.2rem;
180
181
  object-fit: contain;
181
182
  background-color: #fff;
@@ -45,8 +45,8 @@ const NewsletterForm =({
45
45
  }
46
46
  return(
47
47
  <form action={formAction} method="post" ref={form} onSubmit={handelSubmit}>
48
- <input type="hidden" name="listname" aria-label="hidden" value={newsletterListId} />
49
- <input type="hidden" name="redirect" aria-label="hidden" value={redirectUrl} />
48
+ <input type="hidden" name="listname" aria-label="listname-hidden" value={newsletterListId} />
49
+ <input type="hidden" name="redirect" aria-label="redirect-hidden" value={redirectUrl} />
50
50
  <input className={styles.input} placeholder={placeholderName} type="text" name="name" />
51
51
  <input className={styles.input} placeholder={placeholderEmail} type="email" name="email" />
52
52
  <button className={styles.button} type="submit">{buttonText}</button>
@@ -16,6 +16,7 @@ const Footer = ({
16
16
  template,
17
17
  page,
18
18
  hasFooterLinks = false,
19
+ hasDisclaimer = true,
19
20
  }) => {
20
21
  const TopSection = footerTopCustom;
21
22
  const BottomSection = footerBottomCustom;
@@ -62,7 +63,7 @@ const Footer = ({
62
63
  gtmClass="mobile-menu-gtm logo-cta"
63
64
  />
64
65
  )}
65
- <Disclaimer image={dmcaImg} />
66
+ {hasDisclaimer && <Disclaimer image={dmcaImg} />}
66
67
  </div>
67
68
  </div>
68
69
  </footer>
@@ -91,4 +92,5 @@ Footer.propTypes = {
91
92
  // eslint-disable-next-line react/forbid-prop-types
92
93
  page: PropTypes.object,
93
94
  hasFooterLinks: PropTypes.bool,
95
+ hasDisclaimer: PropTypes.bool,
94
96
  };
@@ -1,4 +1,15 @@
1
- .sliderWrapper {
1
+ .anchor {
2
+ @include flex-direction(row);
3
+ &::-webkit-scrollbar {
4
+ height: 0.5rem;
5
+ }
6
+ &::-webkit-scrollbar-track {
7
+ background: #fff;
8
+ }
9
+ &::-webkit-scrollbar-thumb {
10
+ background: var(--anchor-thumb-color);
11
+ }
12
+ overflow-x: scroll;
2
13
  .link {
3
14
  word-break: inherit;
4
15
  white-space: nowrap;
@@ -8,6 +19,8 @@
8
19
  color: #000;
9
20
  font-weight: 400;
10
21
  @include flex-align(center, center);
22
+ margin-right: 1.6rem;
23
+ margin-bottom: 0.5rem;
11
24
 
12
25
  svg {
13
26
  margin-left: 1rem;
@@ -1,17 +1,10 @@
1
1
  import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Slider from '~molecules/slider';
4
3
  import keygen from '~helpers/keygen';
5
4
  import { anchorLink } from '~helpers/strings';
6
5
  import styles from './anchor.module.scss';
7
6
 
8
- function Anchor({
9
- module: { items },
10
- headerOffset = 80,
11
- sliderGap = 0,
12
- isFixed = false,
13
- icon = null,
14
- }) {
7
+ function Anchor({ module: { items }, headerOffset = 80, isFixed = false, icon = null }) {
15
8
  const [isFixedMenu, setIsFixedMenu] = useState(false);
16
9
  if (isFixed && typeof window !== 'undefined') {
17
10
  window.addEventListener('scroll', () => {
@@ -48,13 +41,7 @@ function Anchor({
48
41
  return (
49
42
  <div id="faq-container">
50
43
  <div className={isFixedMenu && styles.isFixed}>
51
- <Slider
52
- useArrows={false}
53
- usePagination={false}
54
- settings={{ numberOfSlides: 0, sliderGap }}
55
- className={styles.sliderWrapper}
56
- gtmClass="anchor-carousel-gtm"
57
- >
44
+ <div className={styles.anchor}>
58
45
  {items?.map((anchor) => (
59
46
  <a
60
47
  className={`${styles.link} anchor-carousel-gtm anchor-menu-gtm`}
@@ -66,7 +53,7 @@ function Anchor({
66
53
  {icon}
67
54
  </a>
68
55
  ))}
69
- </Slider>
56
+ </div>
70
57
  </div>
71
58
  </div>
72
59
  );
@@ -81,7 +68,6 @@ Anchor.propTypes = {
81
68
  ),
82
69
  }).isRequired,
83
70
  headerOffset: PropTypes.number.isRequired,
84
- sliderGap: PropTypes.number,
85
71
  styles: PropTypes.shape({}),
86
72
  isFixed: PropTypes.bool,
87
73
  icon: PropTypes.element,
@@ -55,7 +55,9 @@ export default (props) => {
55
55
  );
56
56
  break;
57
57
  default:
58
- customCardComponent = loadable(() => import(`../../../../components/atoms/cards/base-card`));
58
+ customCardComponent = loadable(() =>
59
+ import(`../../../../components/atoms/cards/article-card`)
60
+ );
59
61
  }
60
62
  return <Card {...props} CustomCardComponent={customCardComponent} />;
61
63
  };
@@ -73,6 +73,14 @@ const Head = ({ page = {}, siteInfo }) => {
73
73
  <meta name="og:type" content={page.path === '/' ? 'website' : 'article'} />
74
74
  <meta name="og:image" content={pageImage} />
75
75
  <meta name="og:url" content={getUrl(page.path)} />
76
+ <meta
77
+ property="og:locale"
78
+ content={
79
+ getLanguage(page.language) === 'en' || getLanguage(page.language) === 'en-za'
80
+ ? 'en_GB'
81
+ : getLanguage(page.language)
82
+ }
83
+ />
76
84
 
77
85
  {schemaGenerator(page, pageImage).map(
78
86
  (schema) =>
@@ -135,4 +135,4 @@
135
135
 
136
136
 
137
137
 
138
- window['FEATURES'] = {"postcss":true};</script><script src="runtime~main.ce98447d.iframe.bundle.js"></script><script src="vendors~main.8e6f3896.iframe.bundle.js"></script><script src="main.cc4a6f61.iframe.bundle.js"></script></body></html>
138
+ window['FEATURES'] = {"postcss":true};</script><script src="runtime~main.ce98447d.iframe.bundle.js"></script><script src="vendors~main.7fc7de06.iframe.bundle.js"></script><script src="main.35edfd20.iframe.bundle.js"></script></body></html>