gatsby-matrix-theme 14.0.0 → 15.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 CHANGED
@@ -1,3 +1,29 @@
1
+ # [15.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v14.0.0...v15.0.0) (2023-03-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix for NSA newsletter on footer ([fb0c6ef](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fb0c6efddd88d470fdb7843261c4292f910e14d0))
7
+ * slot image alt ([e4bfd06](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e4bfd06ada897e9791ad5f06c077514690c3bf99))
8
+ * slot image alt ([c4f28b7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c4f28b74619b8f86337c6dae223c6868bd6c62aa))
9
+
10
+
11
+ ### Code Refactoring
12
+
13
+ * change footer links to three ([4cae384](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4cae384008eef2623c0ee9d383952f48841cc07d))
14
+ * changes to code review ([47a1789](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/47a1789dd1552043f516a3cafe4c2eeec22ee57c))
15
+
16
+
17
+ * Merge branch 'tm-3298-footer' into 'master' ([e74374a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e74374a5c04f74b8254e7208f421306f1b19cbc6))
18
+ * Merge branch 'master' into tm-3298-footer ([5455405](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/54554054746a59bcfa1e8ba5a4e570317a411a55))
19
+ * Merge branch 'tm-3298-footer' into 'master' ([ca1f295](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ca1f2951b84db25de3a31f8d442c6ced12dc04cd))
20
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([4254aa1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4254aa16cc554450c37f27ba1dc2da921a6cb715))
21
+
22
+
23
+ ### Tests
24
+
25
+ * fix test scripts ([b99c4c5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b99c4c5d5553ea989be65f919c9806e09863019f))
26
+
1
27
  # [14.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v13.0.15...v14.0.0) (2023-03-08)
2
28
 
3
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "14.0.0",
3
+ "version": "15.0.0",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  > ul {
30
- @include flex-align(center, center);
30
+ @include flex-align(flex-start, flex-start);
31
31
  flex-wrap: wrap;
32
32
 
33
33
  li {
@@ -51,16 +51,26 @@
51
51
  }
52
52
  }
53
53
  }
54
+
55
+ @include min(tablet) {
56
+ @include flex-align(center, center);
57
+ }
54
58
  }
55
59
  }
56
60
 
57
61
  .templateTwo {
58
62
  border: none;
59
- @include flex-align(flex-start, center);
63
+ @include flex-align(flex-start, flex-start);
60
64
  padding: 0;
61
65
 
62
66
  > h5,
63
67
  > ul {
64
68
  margin: 0;
65
69
  }
70
+
71
+ > ul {
72
+ @include min(tablet) {
73
+ @include flex-align(flex-start, flex-start);
74
+ }
75
+ }
66
76
  }
@@ -48,6 +48,12 @@
48
48
  @include flex-direction(column);
49
49
  padding-bottom: 5rem;
50
50
 
51
+ > div {
52
+ @include min(laptop) {
53
+ flex: 0 1 491px;
54
+ }
55
+ }
56
+
51
57
  @include min(tablet) {
52
58
  .helpText {
53
59
  text-align: left;
@@ -56,5 +62,14 @@
56
62
 
57
63
  @include min(laptop) {
58
64
  @include flex-direction(row);
65
+ justify-content: space-between;
66
+
67
+ > div {
68
+ @include flex-align(flex-start, flex-start);
69
+ }
70
+
71
+ .phoneNum {
72
+ margin-left: 0;
73
+ }
59
74
  }
60
75
  }
@@ -38,8 +38,8 @@ const FooterLicense = ({
38
38
  {socialIcons && (
39
39
  <div className={styles.socialIcons}>
40
40
  <LinkList
41
- width="14"
42
- height="14"
41
+ width="16"
42
+ height="16"
43
43
  singleList
44
44
  imageOnly
45
45
  lists={socialIcons}
@@ -58,22 +58,23 @@
58
58
  .socialIcons {
59
59
  ul {
60
60
  @include flex-align(center, center);
61
+ flex-wrap: wrap;
61
62
 
62
63
  @include min(tablet) {
63
64
  @include flex-align(center, flex-start);
64
65
  }
65
66
 
66
67
  li {
67
- padding: 0.9rem;
68
+ padding: 1.2rem;
68
69
  background-color: var(--footer-socials-background-color, var(--color-49));
69
70
  border-radius: 2rem;
70
- margin-right: 1rem;
71
+ margin: 0 0.8rem 0.8rem 0;
71
72
 
72
73
  a {
73
74
  color: var(--footer-text-color, var(--color-4));
74
75
  display: flex;
75
- width: 14px;
76
- height: 14px;
76
+ width: 16px;
77
+ height: 16px;
77
78
 
78
79
  &:hover {
79
80
  color: var(--footer-text-color, var(--color-21));
@@ -104,32 +105,42 @@
104
105
 
105
106
  .templateTwo,
106
107
  .templateThree {
108
+ .gamblingText,
109
+ .socialIcons {
110
+ flex-basis: 100%;
111
+ }
112
+
113
+ .socialIcons {
114
+ order: 3;
115
+ }
116
+
117
+ .security {
118
+ order: 2;
119
+ }
120
+
107
121
  @include min(tablet) {
108
122
  flex-wrap: wrap;
109
123
  @include flex-align(flex-start, space-between);
110
124
  flex-direction: row;
111
125
  gap: unset;
112
- flex: 0 1 480px;
126
+ flex: 0 1 40%;
113
127
 
114
128
  .socialIcons {
115
129
  padding: 4rem 0;
116
130
  }
117
- }
118
131
 
119
- .gamblingText,
120
- .socialIcons {
121
- flex-basis: 100%;
122
- }
123
-
124
- .security {
125
- @include min(tablet) {
132
+ .security {
126
133
  margin: 2rem 0;
127
134
  position: absolute;
128
135
  top: 3.5rem;
129
- left: 50%;
136
+ left: calc(40% + 1.6rem);
130
137
  }
131
-
132
- @include min(laptop) {
138
+ }
139
+
140
+ @include min(laptop) {
141
+ flex: 0 1 491px;
142
+
143
+ .security {
133
144
  position: inherit;
134
145
  margin: 0;
135
146
  order: unset;
@@ -36,8 +36,6 @@ const TemplateOne = ({
36
36
 
37
37
  const AsSeenOn = asSeenOn ? loadable(() => import('../../../../atoms/footer/as-seen-on')) : null;
38
38
 
39
- footerMenu.children.map((each) => each.children.splice(3));
40
-
41
39
  return (
42
40
  <footer>
43
41
  {AsSeenOn && <AsSeenOn asSeenOn={asSeenOn} template="templateOne" />}
@@ -14,7 +14,7 @@
14
14
 
15
15
  > div {
16
16
  margin: 0 auto;
17
- max-width: calc(var(--main-container-max) + var(--side-container));
17
+ max-width: calc(var(--main-container-max) + var(--side-container) - 6rem);
18
18
  }
19
19
  }
20
20
 
@@ -59,12 +59,13 @@
59
59
  > ul {
60
60
  padding: 0.5rem;
61
61
  flex-grow: 1;
62
+ flex-basis: 0;
63
+
62
64
  li {
63
65
  padding-bottom: 2rem;
64
66
 
65
67
  &:first-child {
66
68
  font-weight: 700;
67
- text-transform: uppercase;
68
69
  color: var(--footer-links-heading-color, var(--color-49));
69
70
  }
70
71
 
@@ -74,21 +75,25 @@
74
75
  }
75
76
  }
76
77
  }
77
-
78
+
78
79
  .copyrightDisclaimer {
79
- margin: 3rem 0 2rem 0;
80
-
81
- @include min(laptop) {
82
- margin: 3rem 0 2rem 0;
80
+ margin: 3rem 0 2rem 0;
81
+
82
+ p {
83
+ text-align: left;
84
+
85
+ &:last-child {
86
+ padding-top: 2rem;
83
87
  }
84
-
88
+ }
89
+
90
+ @include min(laptop) {
91
+ margin: 3rem 0 2rem 0;
92
+
85
93
  p {
86
- text-align: center;
87
-
88
- &:last-child {
89
- padding-top: 2rem;
90
- }
94
+ text-align: justify;
91
95
  }
96
+ }
92
97
  }
93
98
 
94
99
  .copyrightText {
@@ -131,8 +131,8 @@ describe('Show template one', () => {
131
131
  expect(getByText(footerMenu.children[2].title)).toBeTruthy();
132
132
 
133
133
  // show correct number of child lists
134
- expect(getByText(footerMenu.children[1].title).closest('ul').children).toHaveLength(4);
135
- expect(getByText(footerMenu.children[3].title).closest('ul').children).toHaveLength(4);
134
+ expect(getByText(footerMenu.children[1].title).closest('ul').children).toHaveLength(7);
135
+ expect(getByText(footerMenu.children[3].title).closest('ul').children).toHaveLength(5);
136
136
 
137
137
  // show correct url
138
138
  expect(
@@ -36,7 +36,7 @@ const TemplateThree = ({
36
36
 
37
37
  const AsSeenOn = asSeenOn ? loadable(() => import('../../../../atoms/footer/as-seen-on')) : null;
38
38
 
39
- footerMenu.children.map((each) => each.children.splice(3));
39
+ footerMenu.children.splice(3);
40
40
 
41
41
  return (
42
42
  <footer>
@@ -14,7 +14,7 @@
14
14
 
15
15
  > div {
16
16
  margin: 0 auto;
17
- max-width: calc(var(--main-container-max) + var(--side-container));
17
+ max-width: calc(var(--main-container-max) + var(--side-container) - 6rem);
18
18
  }
19
19
  }
20
20
 
@@ -62,14 +62,18 @@
62
62
  }
63
63
 
64
64
  > ul {
65
- padding: 0.5rem;
66
65
  flex-grow: 1;
66
+ flex-basis: 0;
67
+
68
+ @include min(tablet) {
69
+ padding: 0.5rem;
70
+ }
71
+
67
72
  li {
68
73
  padding-bottom: 2rem;
69
74
 
70
75
  &:first-child {
71
76
  font-weight: 700;
72
- text-transform: uppercase;
73
77
  color: var(--footer-links-heading-color, var(--color-49));
74
78
  }
75
79
 
@@ -83,10 +87,6 @@
83
87
  .copyrightDisclaimer {
84
88
  margin: 3rem 0 2rem 0;
85
89
 
86
- @include min(laptop) {
87
- margin: 3rem 0 2rem 0;
88
- }
89
-
90
90
  p {
91
91
  text-align: left;
92
92
 
@@ -94,6 +94,14 @@
94
94
  padding-top: 2rem;
95
95
  }
96
96
  }
97
+
98
+ @include min(laptop) {
99
+ margin: 3rem 0 2rem 0;
100
+
101
+ p {
102
+ text-align: justify;
103
+ }
104
+ }
97
105
  }
98
106
 
99
107
  .copyrightText {
@@ -131,8 +131,8 @@ describe('Show template one', () => {
131
131
  expect(getByText(footerMenu.children[2].title)).toBeTruthy();
132
132
 
133
133
  // show correct number of child lists
134
- expect(getByText(footerMenu.children[1].title).closest('ul').children).toHaveLength(4);
135
- expect(getByText(footerMenu.children[3].title).closest('ul').children).toHaveLength(4);
134
+ expect(getByText(footerMenu.children[1].title).closest('ul').children).toHaveLength(7);
135
+ expect(getByText(footerMenu.children[2].title).closest('ul').children).toHaveLength(6);
136
136
 
137
137
  // show correct url
138
138
  expect(
@@ -33,7 +33,7 @@ const TemplateTwo = ({
33
33
  />
34
34
  );
35
35
 
36
- footerMenu.children.map((each) => each.children.splice(3));
36
+ footerMenu.children.splice(3);
37
37
 
38
38
  return (
39
39
  <footer>
@@ -14,7 +14,7 @@
14
14
 
15
15
  > div {
16
16
  margin: 0 auto;
17
- max-width: calc(var(--main-container-max) + var(--side-container));
17
+ max-width: calc(var(--main-container-max) + var(--side-container) - 6rem);
18
18
  }
19
19
  }
20
20
 
@@ -62,14 +62,18 @@
62
62
  }
63
63
 
64
64
  > ul {
65
- padding: 0.5rem;
66
65
  flex-grow: 1;
66
+ flex-basis: 0;
67
+
68
+ @include min(tablet) {
69
+ padding: 0.5rem;
70
+ }
71
+
67
72
  li {
68
73
  padding-bottom: 2rem;
69
74
 
70
75
  &:first-child {
71
76
  font-weight: 700;
72
- text-transform: uppercase;
73
77
  color: var(--footer-links-heading-color, var(--color-49));
74
78
  }
75
79
 
@@ -83,10 +87,6 @@
83
87
  .copyrightDisclaimer {
84
88
  margin: 3rem 0 2rem 0;
85
89
 
86
- @include min(laptop) {
87
- margin: 3rem 0 2rem 0;
88
- }
89
-
90
90
  p {
91
91
  text-align: left;
92
92
 
@@ -94,6 +94,14 @@
94
94
  padding-top: 2rem;
95
95
  }
96
96
  }
97
+
98
+ @include min(laptop) {
99
+ margin: 3rem 0 2rem 0;
100
+
101
+ p {
102
+ text-align: justify;
103
+ }
104
+ }
97
105
  }
98
106
 
99
107
  .copyrightText {
@@ -137,8 +137,8 @@ describe('Show template one', () => {
137
137
  expect(getByText(footerMenu.children[2].title)).toBeTruthy();
138
138
 
139
139
  // show correct number of child lists
140
- expect(getByText(footerMenu.children[1].title).closest('ul').children).toHaveLength(4);
141
- expect(getByText(footerMenu.children[3].title).closest('ul').children).toHaveLength(4);
140
+ expect(getByText(footerMenu.children[1].title).closest('ul').children).toHaveLength(7);
141
+ expect(getByText(footerMenu.children[2].title).closest('ul').children).toHaveLength(6);
142
142
 
143
143
  // show correct url
144
144
  expect(
@@ -27,7 +27,7 @@ export default function SlotHeader({ page, image }) {
27
27
  <div className={styles.slotHeader}>
28
28
  <div className={styles.data}>
29
29
  <img
30
- alt={getAltText(imageObject, page?.relation?.thumbnail_filename_object?.alt)}
30
+ alt={getAltText(imageObject, page?.relation?.name)}
31
31
  src={imagePrettyUrl(imageObject, 170, 170)}
32
32
  width={170}
33
33
  height={170}
@@ -22,6 +22,7 @@ describe('summary component', () => {
22
22
 
23
23
  const page = {
24
24
  relation: {
25
+ name: 'Halloween',
25
26
  thumbnail_filename_object: {
26
27
  filename: 'image.jpg',
27
28
  alt: 'Halloween',
@@ -22,7 +22,7 @@ const Newsletter = ({ page, openBtnText = 'Unlock Bonuses', footer = false, isSt
22
22
  : `${getUrl(page?.path)}/?subscribed=true`;
23
23
 
24
24
  const newsletterFloatingContainer = useRef(React.createRef());
25
- const ppcPage = page.template === 'ppc';
25
+ const ppcPage = page?.template === 'ppc';
26
26
 
27
27
  const statesCombined = () => {
28
28
  setToggleNewsletter(!toggleNewsetter);
@@ -156,6 +156,7 @@ function Body({ pageContext, children, excludeTemplateInPopup = [], hideOperator
156
156
  <Footer
157
157
  section={footer}
158
158
  template={template}
159
+ page={pageContext?.page}
159
160
  hasFooterLinks={FooterNavigation !== null}
160
161
  footerTemplate="template_one"
161
162
  />
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="20" fill="none" xmlns:v="https://vecta.io/nano"><path d="M15.63 1.65a1 1 0 0 0-.84-.2A8 8 0 0 1 8.57.18a1 1 0 0 0-1.14 0 8 8 0 0 1-6.22 1.27 1 1 0 0 0-.84.2 1 1 0 0 0-.274.348A1 1 0 0 0 0 2.43v7.45a9 9 0 0 0 3.77 7.33l3.65 2.6a1 1 0 0 0 1.16 0l3.65-2.6A9 9 0 0 0 16 9.88V2.43a1 1 0 0 0-.37-.78zM14 9.88a7 7 0 0 1-2.93 5.7L8 17.77l-3.07-2.2A7 7 0 0 1 2 9.88v-6.3a10 10 0 0 0 6-1.39 10 10 0 0 0 6 1.39v6.3zM9.54 7.6l-2.7 2.7-.9-.9c-.188-.188-.444-.294-.7-.294s-.522.106-.7.294-.294.444-.294.7.106.522.294.7l1.6 1.6a1 1 0 0 0 .71.296 1 1 0 0 0 .71-.296L11 9c.188-.188.294-.444.294-.7s-.106-.522-.294-.7-.444-.294-.7-.294-.522.106-.7.294l-.04.01z" fill="url(#A)"/><defs><linearGradient id="A" x1="15.945" y1="3.36" x2="2.181" y2="3.36" gradientUnits="userSpaceOnUse"><stop stop-color="#17d6cc"/><stop offset="1" stop-color="#17d68a"/></linearGradient></defs></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="20" fill="none" xmlns:v="https://vecta.io/nano"><path d="M15.63 1.65a1 1 0 0 0-.84-.2A8 8 0 0 1 8.57.18a1 1 0 0 0-1.14 0 8 8 0 0 1-6.22 1.27 1 1 0 0 0-.84.2 1 1 0 0 0-.274.348A1 1 0 0 0 0 2.43v7.45a9 9 0 0 0 3.77 7.33l3.65 2.6a1 1 0 0 0 1.16 0l3.65-2.6A9 9 0 0 0 16 9.88V2.43a1 1 0 0 0-.37-.78zM14 9.88a7 7 0 0 1-2.93 5.7L8 17.77l-3.07-2.2A7 7 0 0 1 2 9.88v-6.3a10 10 0 0 0 6-1.39 10 10 0 0 0 6 1.39v6.3zM9.54 7.6l-2.7 2.7-.9-.9c-.188-.188-.444-.294-.7-.294s-.522.106-.7.294-.294.444-.294.7.106.522.294.7l1.6 1.6a1 1 0 0 0 .71.296 1 1 0 0 0 .71-.296L11 9c.188-.188.294-.444.294-.7s-.106-.522-.294-.7-.444-.294-.7-.294-.522.106-.7.294l-.04.01z" fill="#1C1A28"/><defs><linearGradient id="A" x1="15.945" y1="3.36" x2="2.181" y2="3.36" gradientUnits="userSpaceOnUse"><stop stop-color="#17d6cc"/><stop offset="1" stop-color="#17d68a"/></linearGradient></defs></svg>