gatsby-matrix-theme 3.2.25 → 3.2.26
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 +10 -0
- package/package.json +1 -1
- package/src/components/atoms/cards/game-card/index.js +11 -9
- package/src/gatsby-core-theme/components/atoms/module-title/index.js +11 -14
- package/src/gatsby-core-theme/components/molecules/content/index.js +7 -7
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/{main.043a2c57.iframe.bundle.js → main.87a6ab42.iframe.bundle.js} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [3.2.26](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.25...v3.2.26) (2022-02-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removing unused divs ([7f5bc6d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7f5bc6dcc182d025117e2005c3973f41973588f3))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([f704c0b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f704c0b58a8a8e124790281ad36637454216bdde))
|
|
10
|
+
|
|
1
11
|
## [3.2.25](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.24...v3.2.25) (2022-02-07)
|
|
2
12
|
|
|
3
13
|
|
package/package.json
CHANGED
|
@@ -25,15 +25,17 @@ const GameCard = ({ item, button_text = 'play_now', width, height }) => {
|
|
|
25
25
|
return (
|
|
26
26
|
<BaseCard item={item} isLinked cardType="game">
|
|
27
27
|
{!featured && (
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
)}
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
<Link
|
|
29
|
+
to={path}
|
|
30
|
+
className={`game-card-gtm ${styles.cardBanner}`}
|
|
31
|
+
aria-label={`${title} Link`}
|
|
32
|
+
>
|
|
33
|
+
{banner ? (
|
|
34
|
+
<LazyImage width={width} height={height} src={imagePrettyUrl(banner)} alt={title} />
|
|
35
|
+
) : (
|
|
36
|
+
<GatsbyImg filename="default-slot.jpg" alt={title} />
|
|
37
|
+
)}
|
|
38
|
+
</Link>
|
|
37
39
|
)}
|
|
38
40
|
<div className={`${styles.cardContent} ${featured && styles.featured}`}>
|
|
39
41
|
<Link to={path} className="game-card-gtm">
|
|
@@ -32,12 +32,12 @@ const ModuleTitle = ({ module, viewMoreIcon = <FaAngleRight />, pageContext = nu
|
|
|
32
32
|
? translate(translations, month, month)
|
|
33
33
|
: false;
|
|
34
34
|
|
|
35
|
-
const getTitle = () => {
|
|
35
|
+
const getTitle = (className) => {
|
|
36
36
|
const moduleTitle = module?.title || module?.module_title;
|
|
37
37
|
|
|
38
38
|
if (!module?.module_title_tag) {
|
|
39
39
|
return (
|
|
40
|
-
<h2 className={styles.noTag}>
|
|
40
|
+
<h2 className={`${styles.noTag} ${className}`}>
|
|
41
41
|
{moduleTitle}
|
|
42
42
|
{currentMonth ? (
|
|
43
43
|
<span className={styles.toplistDate}>
|
|
@@ -51,7 +51,7 @@ const ModuleTitle = ({ module, viewMoreIcon = <FaAngleRight />, pageContext = nu
|
|
|
51
51
|
|
|
52
52
|
if (module.module_title_tag)
|
|
53
53
|
return (
|
|
54
|
-
<CustomTag>
|
|
54
|
+
<CustomTag className={className}>
|
|
55
55
|
{moduleTitle}
|
|
56
56
|
{currentMonth ? (
|
|
57
57
|
<span className={styles.toplistDate}>
|
|
@@ -62,7 +62,7 @@ const ModuleTitle = ({ module, viewMoreIcon = <FaAngleRight />, pageContext = nu
|
|
|
62
62
|
</CustomTag>
|
|
63
63
|
);
|
|
64
64
|
return (
|
|
65
|
-
<span className={styles.noTag}>
|
|
65
|
+
<span className={`${styles.noTag} ${className}`}>
|
|
66
66
|
{moduleTitle}
|
|
67
67
|
{currentMonth ? (
|
|
68
68
|
<span className={styles.toplistDate}>
|
|
@@ -84,9 +84,7 @@ const ModuleTitle = ({ module, viewMoreIcon = <FaAngleRight />, pageContext = nu
|
|
|
84
84
|
module?.style && styles[module.style]
|
|
85
85
|
} ${tabsToplist ? styles.tabsToplist : null}`}
|
|
86
86
|
>
|
|
87
|
-
|
|
88
|
-
{(module?.title || module.module_title) && getTitle(module)}
|
|
89
|
-
</div>
|
|
87
|
+
{(module?.title || module.module_title) && getTitle(styles.toplistTitle)}
|
|
90
88
|
|
|
91
89
|
{module.link_label && (
|
|
92
90
|
<Link to={module.link_value} className={`${styles.viewMore} module-title-gtm`}>
|
|
@@ -96,13 +94,12 @@ const ModuleTitle = ({ module, viewMoreIcon = <FaAngleRight />, pageContext = nu
|
|
|
96
94
|
)}
|
|
97
95
|
</div>
|
|
98
96
|
) : (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
</div>
|
|
97
|
+
(module?.title || module.module_title) &&
|
|
98
|
+
getTitle(
|
|
99
|
+
`${styles.moduleTitle} ${styles[template]} ${module?.style && styles[module.style]} ${
|
|
100
|
+
styles.toplistTitle
|
|
101
|
+
} ${tabsToplist ? styles.tabsToplist : null}`
|
|
102
|
+
)
|
|
106
103
|
))
|
|
107
104
|
);
|
|
108
105
|
};
|
|
@@ -81,13 +81,13 @@ const Content = ({ module }) => {
|
|
|
81
81
|
|
|
82
82
|
return (
|
|
83
83
|
<>
|
|
84
|
-
<div
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
<div
|
|
85
|
+
className={`${styles.content} ${showMore && styles.showMore} ${switchStyle(module.style)}`}
|
|
86
|
+
>
|
|
87
|
+
{module.value &&
|
|
88
|
+
parse(module.value, {
|
|
89
|
+
replace: replaceMedia,
|
|
90
|
+
})}
|
|
91
91
|
</div>
|
|
92
92
|
{showMore && (
|
|
93
93
|
<button type="button" className={styles.button} onClick={handleChange}>
|
|
@@ -135,4 +135,4 @@
|
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
window['FEATURES'] = {"postcss":true};</script><script src="runtime~main.3e464ba9.iframe.bundle.js"></script><script src="vendors~main.1f5a74cb.iframe.bundle.js"></script><script src="main.
|
|
138
|
+
window['FEATURES'] = {"postcss":true};</script><script src="runtime~main.3e464ba9.iframe.bundle.js"></script><script src="vendors~main.1f5a74cb.iframe.bundle.js"></script><script src="main.87a6ab42.iframe.bundle.js"></script></body></html>
|