gatsby-matrix-theme 10.0.12 → 10.0.13

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,25 @@
1
+ ## [10.0.13](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v10.0.12...v10.0.13) (2023-01-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove date and read more button also fixed the image url ([95a6b5d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/95a6b5d8f8d13f194a46157031b986f35537b41c))
7
+ * update theme ([89fc8e3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/89fc8e3e644b61caa29c68beeb380a3111eda0c6))
8
+
9
+
10
+ ### Code Refactoring
11
+
12
+ * update ul/ol bullets/numbering for spotlights module ([607f64d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/607f64def26b62969840e2564ae5ba41905aeaa6))
13
+ * update ul/ol bullets/numbering for spotlights module ([75050a4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/75050a4305be245d96e4071cdc309ef0da8305c2))
14
+ * update ul/ol bullets/numbering for spotlights module ([639b96c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/639b96c7bcdc7307ab311d63552d968bf4a96406))
15
+ * update ul/ol bullets/numbering for spotlights module ([8c140b7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8c140b73b5f9806da3f7be66524a118da5652034))
16
+
17
+
18
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([ce064bf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ce064bfa764c807db087707dd9d9c32da9c4c469))
19
+ * Merge branch 'tm-3247-update-spotlights-bullets' into 'master' ([b7e746b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b7e746b864c57c719478fafec90e58bc65d0ef8b))
20
+ * Merge branch 'tm-3261-remove-date-and-readnore' into 'master' ([52ba61f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/52ba61fb593b508480e5e8602c6dc8bd7518165b))
21
+ * Merge branch 'tm-3247-update-spotlights-bullets' into 'master' ([98fdd7a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/98fdd7ab48a8ee3649af74dc48ba89b59a192605))
22
+
1
23
  ## [10.0.12](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v10.0.11...v10.0.12) (2023-01-12)
2
24
 
3
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "10.0.12",
3
+ "version": "10.0.13",
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.1",
28
+ "gatsby-core-theme": "18.0.2",
29
29
  "gatsby-plugin-sharp": "^4.10.2",
30
30
  "gatsby-plugin-sitemap": "^3.3.0",
31
31
  "gatsby-transformer-sharp": "^4.10.0",
@@ -1,24 +1,18 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
2
  /* eslint-disable camelcase */
3
- import React, { useContext } from 'react';
3
+ import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import Button from 'gatsby-core-theme/src/components/atoms/button';
6
5
  import Link from 'gatsby-core-theme/src/hooks/link';
7
- import {
8
- imagePrettyUrl,
9
- getSectionExtraField,
10
- translate,
11
- } from 'gatsby-core-theme/src/helpers/getters';
6
+ import { imagePrettyUrl, getSectionExtraField } from 'gatsby-core-theme/src/helpers/getters';
12
7
  import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
13
8
  import LazyPicture from 'gatsby-core-theme/src/hooks/lazy-picture';
14
- import { Context } from 'gatsby-core-theme/src/context/MainProvider';
15
9
  import Author from 'gatsby-core-theme/src/components/atoms/author';
16
10
 
17
11
  import BaseCard from '../base-card';
18
12
  import styles from './article-card.module.scss';
19
13
 
20
14
  const ArticleCard = ({ item, width, height, authorImage = false }) => {
21
- const { author, updated_at, created_at, title, path, banner } = item;
15
+ const { author, title, path, banner } = item;
22
16
  const pictureSource = {
23
17
  webp: '../../../../../../../images/default-article.webp',
24
18
  fallback: '../../../../../../../images/default-article.jpg',
@@ -26,7 +20,6 @@ const ArticleCard = ({ item, width, height, authorImage = false }) => {
26
20
  const cardBackgroundImage = getSectionExtraField(null, item, 'card_background_image');
27
21
  const featured = !!cardBackgroundImage;
28
22
  const AuthorName = author && author.name;
29
- const { translations } = useContext(Context) || {};
30
23
 
31
24
  return (
32
25
  <BaseCard item={item} cardType="article">
@@ -49,21 +42,13 @@ const ArticleCard = ({ item, width, height, authorImage = false }) => {
49
42
  <Link to={path} className="article-card-gtm">
50
43
  <span className={styles.cardTitle}>{title}</span>
51
44
  </Link>
52
- <Button
53
- to={path}
54
- primaryColor={false}
55
- btnText={translate(translations, 'read_more', 'Read More')}
56
- invertColors={!featured}
57
- className={styles.readMore}
58
- gtmClass="article-card-gtm btn-cta"
59
- />
60
45
  <div className={styles.cardMeta}>
61
46
  <Author
62
47
  prefix="by"
63
48
  name={AuthorName}
64
- date={updated_at || created_at}
65
49
  isCardsAuthor
66
50
  authorImg={authorImage ? item?.author?.image : false}
51
+ date={false}
67
52
  />
68
53
  </div>
69
54
  </div>
@@ -1,18 +1,10 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import React, { useContext } from 'react';
2
+ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import loadable from '@loadable/component';
5
5
  import Link from 'gatsby-core-theme/src/hooks/link';
6
6
  import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
7
- import {
8
- getAltText,
9
- imagePrettyUrl,
10
- textWordsLimit,
11
- translate,
12
- } from 'gatsby-core-theme/src/helpers/getters';
13
- import Button from 'gatsby-core-theme/src/components/atoms/button';
14
- import { Context } from 'gatsby-core-theme/src/context/MainProvider';
15
-
7
+ import { getAltText, imagePrettyUrl, textWordsLimit } from 'gatsby-core-theme/src/helpers/getters';
16
8
  import BaseCard from '../base-card/index';
17
9
  import styles from './payment-method-card.module.scss';
18
10
 
@@ -27,7 +19,6 @@ const PaymentMethodCard = ({
27
19
  const { title, path, relation, sections } = item;
28
20
 
29
21
  const imageObject = relation?.standardised_logo_filename_object || relation?.logo_filename_object;
30
- const { translations } = useContext(Context) || {};
31
22
  const StarRating =
32
23
  showRating &&
33
24
  loadable(() => import('gatsby-core-theme/src/components/molecules/star-rating/one-star'));
@@ -65,13 +56,6 @@ const PaymentMethodCard = ({
65
56
  )}
66
57
  </div>
67
58
  )}
68
- <div className={styles.bottom}>
69
- <Button
70
- to={path}
71
- btnText={translate(translations, 'read_more', 'Read More')}
72
- gtmClass="payment-method-card-gtm btn-cta"
73
- />
74
- </div>
75
59
  </div>
76
60
  </BaseCard>
77
61
  );
@@ -1,67 +1,41 @@
1
- .content{
2
- width: 100%;
3
- background-color: #fff;
4
- padding: 1.6rem 1.8rem 2.3rem;
5
- display: flex;
6
- flex-direction: column;
7
- justify-content: space-between;
8
- border-radius: .6rem;
9
- height: 100%;
10
- .header{
11
- @include flex-direction(column);
1
+ .content {
2
+ width: 100%;
3
+ background-color: #fff;
4
+ padding: 1.6rem 1.8rem 2.3rem;
5
+ display: flex;
6
+ flex-direction: column;
7
+ justify-content: space-between;
8
+ border-radius: 0.6rem;
9
+ height: 100%;
10
+ .header {
11
+ @include flex-direction(column);
12
12
 
13
- a:first-child {
14
- height: 6rem;
15
- }
16
-
17
- .links{
18
- @include flex-align(center, center);
19
-
20
- .logo{
21
- max-height: 5rem;
22
- width: auto;
23
- margin-bottom: 1rem;
24
- }
25
- .title{
26
- color: #08202e;
27
- font-weight: 400;
28
- padding-top: .8rem;
29
- font-size: 1.6rem;
30
- }
31
- }
32
-
33
- }
34
- .excerpt {
35
- color: #6b7982;
36
- font-size: 1.4rem;
37
- padding-bottom: 1.6rem;
13
+ a:first-child {
14
+ height: 6rem;
38
15
  }
39
- .bottom{
40
- @include flex-direction(column);
41
- .links{
42
- @include flex-align(center, center);
43
- &.button{
44
- color: #fff;
45
- background-color: var(--color-16);
46
- width: 100%;
47
- height: 4.4rem;
48
- text-decoration: none;
49
- }
50
- }
51
- .links:hover{
52
- box-shadow: 0 0.4rem 1.6rem 0 rgba(255, 0, 54, 0.3);
53
- }
54
- p{
55
- color: #00889e;
56
- font-size: 1.4rem;
57
- text-align: center;
58
- padding: 0 3rem 1.6rem;
59
- font-weight: 400;
60
- span{
61
- font-weight: 500;
62
- }
63
- }
64
- }
65
-
66
16
 
67
- }
17
+ .links {
18
+ @include flex-align(center, center);
19
+ &:hover {
20
+ text-decoration: underline;
21
+ color: #08202e;
22
+ }
23
+ .logo {
24
+ max-height: 5rem;
25
+ width: auto;
26
+ margin-bottom: 1rem;
27
+ }
28
+ .title {
29
+ color: #08202e;
30
+ font-weight: 400;
31
+ padding-top: 0.8rem;
32
+ font-size: 1.6rem;
33
+ }
34
+ }
35
+ }
36
+ .excerpt {
37
+ color: #6b7982;
38
+ font-size: 1.4rem;
39
+ padding-bottom: 1.6rem;
40
+ }
41
+ }
@@ -1,16 +1,9 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import React, { useContext } from 'react';
2
+ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import Link from 'gatsby-core-theme/src/hooks/link';
5
5
  import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
6
- import {
7
- getAltText,
8
- imagePrettyUrl,
9
- textWordsLimit,
10
- translate,
11
- } from 'gatsby-core-theme/src/helpers/getters';
12
- import Button from 'gatsby-core-theme/src/components/atoms/button';
13
- import { Context } from 'gatsby-core-theme/src/context/MainProvider';
6
+ import { getAltText, imagePrettyUrl, textWordsLimit } from 'gatsby-core-theme/src/helpers/getters';
14
7
 
15
8
  import BaseCard from '../base-card/index';
16
9
  import styles from './software-provider-card.module.scss';
@@ -28,9 +21,8 @@ const SoftwareProviderCard = ({
28
21
  height,
29
22
  }) => {
30
23
  const { title, path, relation, sections } = item;
31
- const { translations } = useContext(Context) || {};
32
- const logUrlObject = relation?.logo_object;
33
-
24
+ const logUrlObject =
25
+ relation?.standardised_logo_filename_object || relation?.logo_filename_object;
34
26
  return (
35
27
  <BaseCard item={item} cardType="software_provider">
36
28
  <div className={styles.content}>
@@ -44,7 +36,7 @@ const SoftwareProviderCard = ({
44
36
  width={width}
45
37
  height={height}
46
38
  className={styles.logo}
47
- src={imagePrettyUrl(relation?.logo)}
39
+ src={imagePrettyUrl(logUrlObject?.filename, width, height)}
48
40
  alt={getAltText(logUrlObject, title)}
49
41
  />
50
42
  </Link>
@@ -70,11 +62,6 @@ const SoftwareProviderCard = ({
70
62
  {gameProvider.textTwo}
71
63
  </p>
72
64
  )}
73
- <Button
74
- to={path}
75
- btnText={translate(translations, 'read_more', 'Read More')}
76
- gtmClass="software-provider-card-gtm btn-cta"
77
- />
78
65
  </div>
79
66
  </div>
80
67
  </BaseCard>
@@ -94,7 +81,12 @@ SoftwareProviderCard.propTypes = {
94
81
  relation: PropTypes.shape({
95
82
  games_count: PropTypes.number,
96
83
  logo: PropTypes.string,
97
- logo_object: PropTypes.shape({}),
84
+ logo_filename_object: PropTypes.shape({
85
+ alt: PropTypes.string,
86
+ }),
87
+ standardised_logo_filename_object: PropTypes.shape({
88
+ alt: PropTypes.string,
89
+ }),
98
90
  }),
99
91
  sections: PropTypes.shape({
100
92
  header: PropTypes.shape({
@@ -1,61 +1,49 @@
1
- .content{
2
- width: 100%;
3
- background-color: #fff;
4
- padding: 1.6rem 1.8rem 2.3rem;
5
- display: flex;
6
- flex-direction: column;
7
- justify-content: space-between;
8
- border-radius: .6rem;
9
- height: 100%;
10
- .header{
11
- @include flex-direction(column);
12
- .links{
13
- @include flex-align(center, center);
14
- .logo{
15
- max-width: 17.9rem;
16
- max-height: 4rem;
17
- margin-bottom: 1rem;
18
- }
19
- .title{
20
- color: #08202e;
21
- font-weight: 400;
22
- padding-top: .8rem;
23
- font-size: 1.6rem;
24
- }
25
- }
26
-
1
+ .content {
2
+ width: 100%;
3
+ background-color: #fff;
4
+ padding: 1.6rem 1.8rem 2.3rem;
5
+ display: flex;
6
+ flex-direction: column;
7
+ justify-content: space-between;
8
+ border-radius: 0.6rem;
9
+ height: 100%;
10
+ .header {
11
+ @include flex-direction(column);
12
+ .links {
13
+ @include flex-align(center, center);
14
+ &:hover {
15
+ text-decoration: underline;
16
+ color: #08202e;
17
+ }
18
+ .logo {
19
+ max-width: 17.9rem;
20
+ max-height: 4rem;
21
+ margin-bottom: 1rem;
22
+ }
23
+ .title {
24
+ color: #08202e;
25
+ font-weight: 400;
26
+ padding-top: 0.8rem;
27
+ font-size: 1.6rem;
28
+ }
27
29
  }
28
- .excerpt {
29
- color: #6b7982;
30
- font-size: 1.4rem;
31
- padding-bottom: 1.6rem;
30
+ }
31
+ .excerpt {
32
+ color: #6b7982;
33
+ font-size: 1.4rem;
34
+ padding-bottom: 1.6rem;
35
+ }
36
+ .bottom {
37
+ @include flex-direction(column);
38
+ p {
39
+ color: #00889e;
40
+ font-size: 1.4rem;
41
+ text-align: center;
42
+ padding: 0 3rem 1.6rem;
43
+ font-weight: 400;
44
+ span {
45
+ font-weight: 500;
46
+ }
32
47
  }
33
- .bottom{
34
- @include flex-direction(column);
35
- .links{
36
- @include flex-align(center, center);
37
- &.button{
38
- color: #fff;
39
- background-color: var(--color-16);
40
- width: 100%;
41
- height: 4.4rem;
42
- text-decoration: none;
43
- }
44
- }
45
- .links:hover{
46
- box-shadow: 0 0.4rem 1.6rem 0 rgba(255, 0, 54, 0.3);
47
- }
48
- p{
49
- color: #00889e;
50
- font-size: 1.4rem;
51
- text-align: center;
52
- padding: 0 3rem 1.6rem;
53
- font-weight: 400;
54
- span{
55
- font-weight: 500;
56
- }
57
- }
58
- }
59
-
60
-
61
- }
48
+ }
49
+ }
@@ -1,21 +1,27 @@
1
1
  .testimonials {
2
- li {
2
+ > li {
3
3
  border: var(--spotlight-testimonials-border);
4
4
  border-radius: var(--spotlight-testimonials-border-radius);
5
5
  background-color: var(--spotlight-testimonials-background-color);
6
6
 
7
+ ul,
7
8
  ol {
8
- counter-reset: LI_ITEM;
9
+ padding: 0 1.6rem 1.6rem;
10
+ list-style-position: inside;
9
11
 
10
12
  li {
13
+ display: list-item;
11
14
  flex-direction: row;
15
+ text-align: left;
12
16
  }
17
+ }
13
18
 
14
- li::before {
15
- margin-right: 0.4rem;
16
- content: counter(LI_ITEM) '.';
17
- counter-increment: LI_ITEM;
18
- }
19
+ ul {
20
+ list-style-type: disc;
21
+ }
22
+
23
+ ol {
24
+ list-style-type: decimal;
19
25
  }
20
26
 
21
27
  img {
@@ -63,7 +69,7 @@
63
69
  flex-direction: column;
64
70
  align-items: flex-end;
65
71
 
66
- li {
72
+ > li {
67
73
  border: var(--spotlight-boxes-border);
68
74
  background-color: var(--spotlight-boxes-background-color);
69
75
  box-sizing: border-box;
@@ -76,18 +82,24 @@
76
82
  justify-content: center;
77
83
  width: calc(100% - 4.5rem);
78
84
 
85
+ ul,
79
86
  ol {
80
- counter-reset: LI_ITEM;
87
+ padding: 0 1.6rem 1.6rem;
88
+ list-style-position: inside;
81
89
 
82
90
  li {
91
+ display: list-item;
83
92
  flex-direction: row;
93
+ text-align: left;
84
94
  }
95
+ }
85
96
 
86
- li::before {
87
- margin-right: 0.4rem;
88
- content: counter(LI_ITEM) '.';
89
- counter-increment: LI_ITEM;
90
- }
97
+ ul {
98
+ list-style-type: disc;
99
+ }
100
+
101
+ ol {
102
+ list-style-type: decimal;
91
103
  }
92
104
 
93
105
  > a > img,
@@ -14,7 +14,7 @@
14
14
  grid-template-columns: repeat(3, 1fr);
15
15
  column-gap: 1.6rem;
16
16
  }
17
- li {
17
+ > li {
18
18
  text-align: center;
19
19
  background-color: var(--color-9);
20
20
  border: none;
@@ -27,18 +27,24 @@
27
27
 
28
28
  @include flex-direction(column);
29
29
 
30
+ ul,
30
31
  ol {
31
- counter-reset: LI_ITEM;
32
+ padding: 0 1.6rem 1.6rem;
33
+ list-style-position: inside;
32
34
 
33
35
  li {
36
+ display: list-item;
34
37
  flex-direction: row;
38
+ text-align: left;
35
39
  }
40
+ }
36
41
 
37
- li::before {
38
- margin-right: 0.4rem;
39
- content: counter(LI_ITEM) '.';
40
- counter-increment: LI_ITEM;
41
- }
42
+ ul {
43
+ list-style-type: disc;
44
+ }
45
+
46
+ ol {
47
+ list-style-type: decimal;
42
48
  }
43
49
 
44
50
  img {
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.66d840c7.iframe.bundle.js"></script><script src="455.4a66b118.iframe.bundle.js"></script><script src="main.19dfecb4.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.66d840c7.iframe.bundle.js"></script><script src="455.4a66b118.iframe.bundle.js"></script><script src="main.eadbf337.iframe.bundle.js"></script></body></html>