gatsby-matrix-theme 4.0.2 → 5.0.0
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 +42 -0
- package/package.json +1 -1
- package/src/gatsby-core-theme/components/atoms/spotlights/spotlights-theme.module.scss +5 -2
- package/src/gatsby-core-theme/components/molecules/header/index.js +0 -1
- package/src/gatsby-core-theme/components/organisms/anchor/anchor.module.scss +3 -2
- package/src/gatsby-core-theme/components/organisms/anchor/index.js +14 -11
- package/src/gatsby-core-theme/components/pages/body/index.js +2 -2
- package/src/gatsby-core-theme/styles/utils/variables/_main.scss +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
# [5.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.4...v5.0.0) (2022-02-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* spotlight styling ([d329a15](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d329a15dc62e62aec155fd33e7d0d2a3a0d63fec))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* add active env for demo content deploy ([4f35c35](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4f35c3523b4318971422d942d24102bb8f722ca4))
|
|
12
|
+
* remove anchorTitle ([1bedbc5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1bedbc5925ef1a163a569901b55bc9aadf67dc3f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([124e121](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/124e12144dbc7feaa11b6499bdf553d3d45337aa))
|
|
16
|
+
* Merge branch 'remove-anchorTitle' into 'master' ([2570a32](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2570a329997924cc37721bdce3bd8ad2aceeb78d))
|
|
17
|
+
* Merge branch 'tm-2706-custom-demo-deployment' into 'master' ([0f4d6ba](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0f4d6ba19a809a75cdfabee864c197f791439493))
|
|
18
|
+
* Merge branch 'master' into tm-2706-custom-demo-deployment ([aaf6237](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/aaf6237e6e5b64e1c30224d9ac19be9236c650f3))
|
|
19
|
+
|
|
20
|
+
## [4.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.3...v4.0.4) (2022-02-22)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* add label for anchor title ([43eb394](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/43eb3942cee3dfdaced842f5d765c7a3ba4a4b83))
|
|
26
|
+
* change html structure of anchor ([f56376d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f56376d9bf4a527b11f806ed66d3185d46c5f9c1))
|
|
27
|
+
* minor styling fixes ([fed0936](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fed0936e0a4cc2d396838100bf69408ca82d9497))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([4fb14fe](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4fb14fe9b51426c3536119d665994ec289e82f19))
|
|
31
|
+
* Merge branch 'tm-2721-fixhtml-anchor' into 'master' ([032cdb3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/032cdb3a5ec2177cacde594734c41d326b3ec308))
|
|
32
|
+
|
|
33
|
+
## [4.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.2...v4.0.3) (2022-02-22)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* spotlight boxes styling ([46c5faa](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/46c5faaf002f866b601b4e00c52ffd07cac7c353))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([7af22fd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7af22fdb2b298f3a816632968fb5ab42e3a9a12b))
|
|
42
|
+
|
|
1
43
|
## [4.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.1...v4.0.2) (2022-02-21)
|
|
2
44
|
|
|
3
45
|
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
height: 15rem !important;
|
|
12
12
|
margin: 0 auto;
|
|
13
13
|
object-fit: cover;
|
|
14
|
+
min-height: 15rem;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
> span,
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
border: 1px solid var(--spotlight-boxes-border-color);
|
|
50
51
|
background-color: var(--spotlight-boxes-background-color);
|
|
51
52
|
box-sizing: border-box;
|
|
52
|
-
border-radius:
|
|
53
|
+
border-radius: var(--spotlight-boxes-border-radius);
|
|
53
54
|
position: relative;
|
|
54
55
|
max-width: 568px;
|
|
55
56
|
margin-left: 4.5rem;
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
text-align: left;
|
|
60
61
|
justify-content: center;
|
|
61
62
|
|
|
62
|
-
> img {
|
|
63
|
+
> a > img, > img {
|
|
63
64
|
position: absolute;
|
|
64
65
|
left: -4.5rem;
|
|
65
66
|
top: 50%;
|
|
@@ -83,6 +84,8 @@
|
|
|
83
84
|
> label {
|
|
84
85
|
font-size: var(--spotlight-boxes-label-size);
|
|
85
86
|
color: var(--spotlight-boxes-label-color);
|
|
87
|
+
line-height: var(--spotlight-boxes-label-line-height);
|
|
88
|
+
padding: var(--spotlight-boxes-label-padding);
|
|
86
89
|
}
|
|
87
90
|
|
|
88
91
|
> div {
|
|
@@ -6,6 +6,7 @@ import styles from './anchor.module.scss';
|
|
|
6
6
|
|
|
7
7
|
function Anchor({ module: { items }, headerOffset = 80, isFixed = false, icon = null }) {
|
|
8
8
|
const [isFixedMenu, setIsFixedMenu] = useState(false);
|
|
9
|
+
|
|
9
10
|
if (isFixed && typeof window !== 'undefined') {
|
|
10
11
|
window.addEventListener('scroll', () => {
|
|
11
12
|
const element = document.getElementById('faq-container').offsetTop - 120;
|
|
@@ -40,19 +41,21 @@ function Anchor({ module: { items }, headerOffset = 80, isFixed = false, icon =
|
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
return (
|
|
43
|
-
<
|
|
44
|
+
<ul id="faq-container" className={`${styles.anchor} ${isFixedMenu && styles.isFixed}`}>
|
|
44
45
|
{items?.map((anchor) => (
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
<li>
|
|
47
|
+
<a
|
|
48
|
+
className={`${styles.link} anchor-carousel-gtm anchor-menu-gtm`}
|
|
49
|
+
key={keygen()}
|
|
50
|
+
onClick={handleClick}
|
|
51
|
+
href={`#${anchor.label && anchorLink(anchor?.label?.toLowerCase().trim())}`}
|
|
52
|
+
>
|
|
53
|
+
{anchor.label}
|
|
54
|
+
{icon}
|
|
55
|
+
</a>
|
|
56
|
+
</li>
|
|
54
57
|
))}
|
|
55
|
-
</
|
|
58
|
+
</ul>
|
|
56
59
|
);
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -21,8 +21,8 @@ function Body({ pageContext, children }) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
if (
|
|
24
|
-
document.domain !== `prelive.${process.env.GATSBY_SITE_NAME}`
|
|
25
|
-
document.domain !== process.env.GATSBY_SITE_NAME
|
|
24
|
+
document.domain !== `prelive.${process.env.GATSBY_SITE_NAME}` &&
|
|
25
|
+
document.domain !== process.env.GATSBY_SITE_NAME &&
|
|
26
26
|
document.domain !== `www.${process.env.GATSBY_SITE_NAME}`
|
|
27
27
|
) {
|
|
28
28
|
// eslint-disable-next-line no-restricted-globals
|
|
@@ -96,9 +96,12 @@
|
|
|
96
96
|
--spotlight-testimonials-text-size: 1.6rem;
|
|
97
97
|
|
|
98
98
|
--spotlight-boxes-border-color: #000;
|
|
99
|
+
--spotlight-boxes-border-radius: 1.6rem;
|
|
99
100
|
--spotlight-boxes-background-color: #fff;
|
|
100
101
|
--spotlight-boxes-label-color: #000;
|
|
102
|
+
--spotlight-boxes-label-line-height: 3rem;
|
|
101
103
|
--spotlight-boxes-label-size: 1.8rem;
|
|
104
|
+
--spotlight-boxes-label-padding: 0;
|
|
102
105
|
--spotlight-boxes-text-color: #000;
|
|
103
106
|
--spotlight-boxes-text-size: 1.4rem;
|
|
104
107
|
}
|