gatsby-matrix-theme 2.3.7 → 3.0.2

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/package.json +2 -2
  3. package/src/components/atoms/author-card/author-card.module.scss +44 -0
  4. package/src/components/atoms/author-card/author-card.stories.js +47 -0
  5. package/src/components/atoms/author-card/author-card.test.js +29 -0
  6. package/src/components/atoms/author-card/index.js +41 -0
  7. package/src/components/atoms/cards/article-card/index.js +1 -1
  8. package/src/components/atoms/cards/game-card/index.js +1 -1
  9. package/src/components/atoms/cards/operator-card/index.js +8 -13
  10. package/src/components/atoms/cards/payment-method-card/index.js +5 -1
  11. package/src/components/atoms/cards/software-provider-card/index.js +5 -1
  12. package/src/components/atoms/social-icons/index.js +56 -0
  13. package/src/components/atoms/social-icons/social-icons.module.scss +33 -0
  14. package/src/components/atoms/social-icons/social-icons.stories.js +55 -0
  15. package/src/components/atoms/social-icons/social-icons.test.js +31 -0
  16. package/src/components/molecules/small-welcome-bonus/index.js +1 -0
  17. package/src/components/organisms/footer-navigation/index.js +1 -1
  18. package/src/components/pages/contact-us/contact-us.module.scss +86 -0
  19. package/src/components/pages/contact-us/contact-us.stories.js +92 -0
  20. package/src/components/pages/contact-us/contact-us.test.js +26 -0
  21. package/src/components/pages/contact-us/index.js +85 -3
  22. package/src/gatsby-core-theme/components/molecules/main/index.js +7 -1
  23. package/src/gatsby-core-theme/components/organisms/head/index.js +4 -6
  24. package/src/gatsby-core-theme/components/organisms/navigation/index.js +6 -1
  25. package/src/gatsby-core-theme/components/pages/body/index.js +1 -1
  26. package/src/hooks/tabs/index.js +1 -1
  27. package/storybook/public/0.83ad5c1a.iframe.bundle.js +1 -0
  28. package/storybook/public/{1.b16d9cbb.iframe.bundle.js → 1.303d4a8e.iframe.bundle.js} +1 -1
  29. package/storybook/public/10.2bb842e6.iframe.bundle.js +1 -0
  30. package/storybook/public/11.7ad7ba28.iframe.bundle.js +1 -0
  31. package/storybook/public/12.c91443b3.iframe.bundle.js +1 -0
  32. package/storybook/public/13.9ac1db9d.iframe.bundle.js +1 -0
  33. package/storybook/public/{10.f8a18169.iframe.bundle.js → 14.604f9747.iframe.bundle.js} +1 -1
  34. package/storybook/public/{11.7ed16ae2.iframe.bundle.js → 15.16fa9e43.iframe.bundle.js} +1 -1
  35. package/storybook/public/5.58b2efe7.iframe.bundle.js +3 -0
  36. package/storybook/public/{5.3bdb3f72.iframe.bundle.js.LICENSE.txt → 5.58b2efe7.iframe.bundle.js.LICENSE.txt} +0 -0
  37. package/storybook/public/5.58b2efe7.iframe.bundle.js.map +1 -0
  38. package/storybook/public/6.9d06c32b.iframe.bundle.js +1 -0
  39. package/storybook/public/7.9e532498.iframe.bundle.js +1 -0
  40. package/storybook/public/{8.1df784e4.iframe.bundle.js → 8.95fa4570.iframe.bundle.js} +3 -3
  41. package/storybook/public/{8.1df784e4.iframe.bundle.js.LICENSE.txt → 8.95fa4570.iframe.bundle.js.LICENSE.txt} +0 -0
  42. package/storybook/public/8.95fa4570.iframe.bundle.js.map +1 -0
  43. package/storybook/public/{9.d2817f50.iframe.bundle.js → 9.bc7480f3.iframe.bundle.js} +1 -1
  44. package/storybook/public/iframe.html +1 -1
  45. package/storybook/public/main.3f17eb62.iframe.bundle.js +1 -0
  46. package/storybook/public/runtime~main.540b02a0.iframe.bundle.js +1 -0
  47. package/storybook/public/vendors~main.60c9a523.iframe.bundle.js +7 -0
  48. package/storybook/public/{vendors~main.364411ac.iframe.bundle.js.LICENSE.txt → vendors~main.60c9a523.iframe.bundle.js.LICENSE.txt} +0 -0
  49. package/storybook/public/vendors~main.60c9a523.iframe.bundle.js.map +1 -0
  50. package/src/components/atoms/sitemap/index.js +0 -81
  51. package/src/components/atoms/sitemap/sitemap.module.scss +0 -111
  52. package/src/components/atoms/sitemap/sitemap.stories.js +0 -104
  53. package/src/gatsby-core-theme/pages/sitemap/index.js +0 -31
  54. package/storybook/public/0.32053ec6.iframe.bundle.js +0 -1
  55. package/storybook/public/5.3bdb3f72.iframe.bundle.js +0 -3
  56. package/storybook/public/5.3bdb3f72.iframe.bundle.js.map +0 -1
  57. package/storybook/public/6.d5dd48d0.iframe.bundle.js +0 -1
  58. package/storybook/public/7.99f26915.iframe.bundle.js +0 -1
  59. package/storybook/public/8.1df784e4.iframe.bundle.js.map +0 -1
  60. package/storybook/public/main.b9b80be9.iframe.bundle.js +0 -1
  61. package/storybook/public/runtime~main.76a8717d.iframe.bundle.js +0 -1
  62. package/storybook/public/vendors~main.364411ac.iframe.bundle.js +0 -7
  63. package/storybook/public/vendors~main.364411ac.iframe.bundle.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,78 @@
1
+ ## [3.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.1...v3.0.2) (2021-11-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * sitemap and core theme update ([64e430d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/64e430d3841c8e7ff1104e29a547ef6a926535c4))
7
+
8
+
9
+ ### Config
10
+
11
+ * update core theme ([9a98e8e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9a98e8eb428bc1a8d4aadd02e7f2005d28172712))
12
+
13
+
14
+ * Merge branch 'testing' into 'master' ([36eb0c8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/36eb0c889796f812257f73d127fb9349e7d363b7))
15
+
16
+
17
+ ### Tests
18
+
19
+ * changes ([d00d853](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d00d853b99c976913781b324bd0620cd05edae35))
20
+ * removing hed ([3a7c732](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3a7c732d86b6e74b398b8d9638229ada31e5baa6))
21
+
22
+ ## [3.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.0...v3.0.1) (2021-11-24)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * core theme update and general fixes ([26fe04d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/26fe04d969b8bd0d0505e576c2422e4c8a7a2653))
28
+ * translation fix ([d115bc0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d115bc0f7d4d032107eb62033d54fa9952a17fc8))
29
+
30
+
31
+ * Merge branch 'general_fixes' into 'master' ([ae536eb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ae536eb6882679b2495bce34b557144753c7c6c9))
32
+
33
+ # [3.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.8...v3.0.0) (2021-11-24)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * accessibility fixes ([d43d834](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d43d83448879a5806c6927ec35942dee2b5c2236))
39
+ * tab change lazyload issue ([f41e887](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f41e887022bc4779f411ff1a9fffe3e158fcc8cb))
40
+
41
+
42
+ ### Code Refactoring
43
+
44
+ * fixes on accessibility ([946ec97](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/946ec9757eee7d8a77b4a5be830d860409a6b4c8))
45
+
46
+
47
+ ### Config
48
+
49
+ * updated core theme version ([d7f394d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d7f394d5c312f1dc2e1a09a57a5b6f7829529158))
50
+
51
+
52
+ * Merge branch 'tm-2478-search' into 'master' ([47022c5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/47022c50b9ee86cada8cfab92acfce25afe6216d))
53
+ * Merge branch 'master' into tm-2478-search ([24c25cd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/24c25cd408240021bc6c67b6c1e4983e222e25bf))
54
+ * Merge branch 'tm-2595-accessibility-scores' into 'master' ([191f7ce](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/191f7cee4eedeee855e8848d20c6910ff1db1195))
55
+
56
+ ## [2.3.8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.7...v2.3.8) (2021-11-23)
57
+
58
+
59
+ ### Bug Fixes
60
+
61
+ * contact us page template ([4960ca9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4960ca912a5eb8f0b2f9ce6aaf27a27d84cbe7be))
62
+ * contact us template ([d85be6f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d85be6fee147dd9f7b998865df12d9f41358a01c))
63
+ * follow us ([02699fc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/02699fc26abf94f85c844e2716728d85f0853e68))
64
+ * merged master branch ([cb5ce66](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/cb5ce66f2882e9da0e3bd8c25daf85eab8aec941))
65
+ * style issue ([8694bf7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8694bf7e92c802166d85b1da3202f6713767ac7c))
66
+
67
+
68
+ ### Config
69
+
70
+ * updated core theme version ([6bf96c3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6bf96c35a1d720c19bf748e9b5ab82220f057b40))
71
+
72
+
73
+ * Merge branch 'tm-2565-matrix-contact-us' into 'master' ([917bfc1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/917bfc1747da5a96e5b8e67db8eb43641b568ad8))
74
+ * Merge branch 'master' into tm-2565-matrix-contact-us ([a4a682f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a4a682fc9355a9f97c68196d8feaf235f6935fca))
75
+
1
76
  ## [2.3.7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.6...v2.3.7) (2021-11-22)
2
77
 
3
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "2.3.7",
3
+ "version": "3.0.2",
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": "^1.6.5",
34
+ "gatsby-core-theme": "^1.6.12",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-postcss": "^4.3.0",
@@ -0,0 +1,44 @@
1
+ .authorCard {
2
+ width: 100%;
3
+ background: var(--color-2);
4
+ border-radius: var(--border-radius);
5
+ @include flex-direction(row);
6
+ padding: 1.6rem;
7
+ .img {
8
+ width: 6rem;
9
+ height: 6rem;
10
+ img {
11
+ width: 100%;
12
+ height: 100%;
13
+ border-radius: 50%;
14
+ }
15
+ }
16
+ .txt {
17
+ padding-left: 1.2rem;
18
+ height: 6rem;
19
+ @include flex-direction(column);
20
+ align-content: center;
21
+ justify-content: center;
22
+ div {
23
+ line-height: 1.8rem;
24
+ }
25
+ }
26
+ .name {
27
+ font-weight: 600;
28
+ font-size: 1.6rem;
29
+ color: var(--color-33);
30
+ line-height: 2.4rem;
31
+ }
32
+ .position {
33
+ font-weight: normal;
34
+ font-size: 1.2rem;
35
+ color: var(--color-32);
36
+ margin: 0.4rem 0 0 0;
37
+ }
38
+ .email {
39
+ font-weight: 600;
40
+ font-size: 1.2rem;
41
+ line-height: 1.8rem;
42
+ color:var(--color-51);
43
+ }
44
+ }
@@ -0,0 +1,47 @@
1
+ import React from 'react';
2
+ // eslint-disable-next-line import/no-extraneous-dependencies
3
+ import {
4
+ Title,
5
+ Description,
6
+ Primary,
7
+ PRIMARY_STORY,
8
+ ArgsTable,
9
+ } from '@storybook/addon-docs/blocks';
10
+ import { authors } from 'gatsby-core-theme/tests/factories/modules/contact-us-authors.factory';
11
+ import AuthorCard from '.';
12
+
13
+ const authorsKeys = Object.keys(authors);
14
+
15
+ export default {
16
+ title: 'Matrix-Theme/Atoms/Author Card',
17
+ component: AuthorCard,
18
+ argTypes: {
19
+ author: {
20
+ name: 'author',
21
+ type: { name: 'object', required: true },
22
+ defaultValue: '',
23
+ description: 'author object data',
24
+ },
25
+ },
26
+ parameters: {
27
+ docs: {
28
+ description: {
29
+ component: 'A component that displays authors cards',
30
+ },
31
+ page: () => (
32
+ <>
33
+ <Title />
34
+ <Description />
35
+ <Primary />
36
+ <ArgsTable story={PRIMARY_STORY} />
37
+ </>
38
+ ),
39
+ },
40
+ },
41
+ };
42
+
43
+ const Template = (args) => <AuthorCard {...args} />;
44
+ export const Default = Template.bind({});
45
+ Default.args = {
46
+ author: authors[authorsKeys[0]],
47
+ };
@@ -0,0 +1,29 @@
1
+ /* eslint-disable camelcase */
2
+ import React from 'react';
3
+ import { render, cleanup } from '@testing-library/react';
4
+ import { authors } from 'gatsby-core-theme/tests/factories/modules/contact-us-authors.factory';
5
+ import '@testing-library/jest-dom/extend-expect';
6
+ import AuthorCard from '.';
7
+
8
+ const authorsKeys = Object.keys(authors);
9
+
10
+ describe('AuthorCard Component', () => {
11
+ test('render one author', () => {
12
+ const { container } = render(<AuthorCard author={authors[authorsKeys[0]]} />);
13
+ const { name } = authors[authorsKeys[0]];
14
+ expect(container).toBeTruthy();
15
+ expect(container.querySelector('.name').innerHTML).toEqual(name);
16
+ });
17
+
18
+ test('render each author', () => {
19
+ Object.keys(authors).forEach((author) => {
20
+ const { name, email_address } = authors[author];
21
+ const { container } = render(<AuthorCard author={authors[author]} />);
22
+ expect(container.querySelector('.name').innerHTML).toEqual(name);
23
+ expect(container.querySelector('a').innerHTML).toEqual(email_address);
24
+ });
25
+ });
26
+ });
27
+ afterEach(() => {
28
+ cleanup();
29
+ });
@@ -0,0 +1,41 @@
1
+ /* eslint-disable camelcase */
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
5
+ import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
6
+ import styles from './author-card.module.scss';
7
+
8
+ const AuthorCard = ({ author }) => {
9
+ const { name, author_title, email_address, image } = author || {};
10
+
11
+ return (
12
+ <div className={styles.authorCard}>
13
+ <div className={styles.img}>
14
+ <LazyImage src={imagePrettyUrl(image)} alt={name} />
15
+ </div>
16
+ <div className={styles.txt}>
17
+ <div className={styles.name}>{name}</div>
18
+ <div className={styles.position}>{author_title}</div>
19
+ <a
20
+ className={styles.email}
21
+ href={`mailto:${email_address}`}
22
+ target="_blank"
23
+ rel="noreferrer"
24
+ >
25
+ {email_address}
26
+ </a>
27
+ </div>
28
+ </div>
29
+ );
30
+ };
31
+
32
+ AuthorCard.propTypes = {
33
+ author: PropTypes.shape({
34
+ name: PropTypes.string,
35
+ author_title: PropTypes.string,
36
+ email_address: PropTypes.string,
37
+ image: PropTypes.string,
38
+ }).isRequired,
39
+ };
40
+
41
+ export default AuthorCard;
@@ -32,7 +32,7 @@ const ArticleCard = ({ item }) => {
32
32
  <BaseCard item={item} cardType="article">
33
33
  {!featured && (
34
34
  <div className={styles.cardBanner}>
35
- <Link to={path} className="article-card-gtm">
35
+ <Link to={path} className="article-card-gtm" aria-label={`${title} Link`}>
36
36
  {banner ? (
37
37
  <LazyImage src={imagePrettyUrl(banner)} alt={title} />
38
38
  ) : (
@@ -25,7 +25,7 @@ const GameCard = ({ item, button_text = 'play_now' }) => {
25
25
  <BaseCard item={item} isLinked cardType="game">
26
26
  {!featured && (
27
27
  <div className={styles.cardBanner}>
28
- <Link to={path} className="game-card-gtm">
28
+ <Link to={path} className="game-card-gtm" aria-label={`${title} Link`}>
29
29
  <LazyImage src={imagePrettyUrl(banner)} alt={title} />
30
30
  </Link>
31
31
  </div>
@@ -3,22 +3,20 @@ import React, { useContext } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { FaStar } from 'react-icons/fa';
5
5
  import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating';
6
- import { imagePrettyUrl, prettyTracker, translate } from 'gatsby-core-theme/src/helpers/getters';
7
- import Button from 'gatsby-core-theme/src/components/atoms/button';
6
+ import { imagePrettyUrl, translate } from 'gatsby-core-theme/src/helpers/getters';
8
7
  import Link from 'gatsby-core-theme/src/hooks/link';
9
8
  import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
10
9
  import Bonus from 'gatsby-core-theme/src/components/atoms/bonus';
11
10
  import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
12
11
  import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
12
+ import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta';
13
13
  import BaseCard from '../base-card';
14
14
  import styles from './operator-card.module.scss';
15
15
 
16
16
  const OperatorCard = ({ item, featured = false, number }) => {
17
17
  const { relation, path } = item;
18
- const prettyLink = prettyTracker(relation);
19
18
  const reviewPath = path || relation.path;
20
19
  const status = relation?.status;
21
- const isActive = status === 'active';
22
20
  const isInactive = status === 'inactive';
23
21
  const backgroundImage = number === 1 ? 'featuredCasino' : null;
24
22
  const { translations } = useContext(Context) || {};
@@ -71,15 +69,12 @@ const OperatorCard = ({ item, featured = false, number }) => {
71
69
  </Link>
72
70
  </div>
73
71
  <div className={`${styles.cardButtons}`}>
74
- {isActive && (
75
- <Button
76
- to={prettyLink}
77
- btnText={translate(translations, 'play_now', 'Sign Up')}
78
- isInternalLink={false}
79
- disabled={!isActive}
80
- gtmClass="operator-card-gtm btn-cta"
81
- />
82
- )}
72
+ <OperatorCta
73
+ tracker="main"
74
+ operator={relation}
75
+ playText={translate(translations, 'play_now', 'Play Now')}
76
+ gtmClass="operator-card-gtm btn-cta"
77
+ />
83
78
  </div>
84
79
  {relation?.extra_fields?.terms_and_conditions_text_enabled === '1' && (
85
80
  <div className={styles.tnc}>
@@ -17,7 +17,11 @@ const PaymentMethodCard = ({ item, showTitle = true, showDesc = true }) => {
17
17
  <BaseCard item={item} cardType="payment_method">
18
18
  <div className={styles.content}>
19
19
  <div className={styles.header}>
20
- <Link className={`${styles.links} payment-method-card-gtm`} to={path}>
20
+ <Link
21
+ className={`${styles.links} payment-method-card-gtm`}
22
+ aria-label={`${title} Link`}
23
+ to={path}
24
+ >
21
25
  <LazyImage className={styles.logo} src={imagePrettyUrl(relation?.logo)} />
22
26
  </Link>
23
27
  {showTitle && (
@@ -26,7 +26,11 @@ const SoftwareProviderCard = ({
26
26
  <BaseCard item={item} cardType="software_provider">
27
27
  <div className={styles.content}>
28
28
  <div className={styles.header}>
29
- <Link className={`${styles.links} software-provider-card-gtm`} to={path}>
29
+ <Link
30
+ className={`${styles.links} software-provider-card-gtm`}
31
+ aria-label={`${title} Link`}
32
+ to={path}
33
+ >
30
34
  <LazyImage className={styles.logo} src={imagePrettyUrl(relation?.logo)} />
31
35
  </Link>
32
36
  {showTitle && (
@@ -0,0 +1,56 @@
1
+ import React, { useContext } from 'react';
2
+ import { FaInstagram, FaFacebookSquare, FaTwitter, FaLinkedin, FaYoutube } from 'react-icons/fa';
3
+ import PropTypes from 'prop-types';
4
+ import keygen from 'gatsby-core-theme/src/helpers/keygen';
5
+ import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
6
+ import { translate } from '~helpers/getters';
7
+ import styles from './social-icons.module.scss';
8
+
9
+ const SocialIcons = ({ socialIcons }) => {
10
+ const { translations } = useContext(Context) || {};
11
+ const keys = Object.keys(socialIcons);
12
+ const switchIcons = (icons) => {
13
+ switch (icons) {
14
+ case 'instagram':
15
+ return <FaInstagram />;
16
+ case 'facebook':
17
+ return <FaFacebookSquare />;
18
+ case 'twitter':
19
+ return <FaTwitter />;
20
+ case 'linkedin':
21
+ return <FaLinkedin />;
22
+ case 'youtube':
23
+ return <FaYoutube />;
24
+ default:
25
+ return null;
26
+ }
27
+ };
28
+
29
+ return (
30
+ <div className={styles.container}>
31
+ <div className={styles.title}>{translate(translations, 'follow_us', 'Follow Us')}</div>
32
+ <div className={styles.socialIcons}>
33
+ {keys.map(
34
+ (key) =>
35
+ socialIcons[key] && (
36
+ <a
37
+ key={keygen()}
38
+ aria-label={`${key} Link`}
39
+ href={socialIcons[key]}
40
+ target="_blank"
41
+ rel="noreferrer"
42
+ >
43
+ {switchIcons(key)}
44
+ </a>
45
+ )
46
+ )}
47
+ </div>
48
+ </div>
49
+ );
50
+ };
51
+
52
+ export default SocialIcons;
53
+
54
+ SocialIcons.propTypes = {
55
+ socialIcons: PropTypes.shape({}),
56
+ };
@@ -0,0 +1,33 @@
1
+ .container {
2
+ width: 100%;
3
+ @include flex-direction(column);
4
+ .title{
5
+ padding-bottom: 1.6rem;
6
+ font-weight: 600;
7
+ font-size: 1.6rem;
8
+ line-height: 2.4rem;
9
+ color: var(--color-33);
10
+ @include min(tablet){
11
+ font-weight: bold;
12
+ font-size: 3.6rem;
13
+ line-height: 4.6rem;
14
+ }
15
+ }
16
+ .socialIcons{
17
+ display: inline-flex;
18
+ a {
19
+ display: inline-block;
20
+ width: 4rem;
21
+ height: 4rem;
22
+ line-height: 4.7rem;
23
+ border-radius: 50%;
24
+ background: var(--color-52);
25
+ margin: 0 1.6rem 0 0;
26
+ text-align: center;
27
+ font-size: 2rem;
28
+ svg{
29
+ color: var(--color-16);
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ // eslint-disable-next-line import/no-extraneous-dependencies
3
+ import {
4
+ Title,
5
+ Description,
6
+ Primary,
7
+ PRIMARY_STORY,
8
+ ArgsTable,
9
+ } from '@storybook/addon-docs/blocks';
10
+ import { siteSchema } from 'gatsby-core-theme/tests/factories/modules/site-schema.factory';
11
+ import SocialIcons from '.';
12
+
13
+ const socialIcons =
14
+ siteSchema &&
15
+ (({ instagram, facebook, twitter, linkedin, youtube }) => ({
16
+ instagram,
17
+ facebook,
18
+ twitter,
19
+ linkedin,
20
+ youtube,
21
+ }))(siteSchema);
22
+
23
+ export default {
24
+ title: 'Matrix-Theme/Atoms/Social Icons',
25
+ component: SocialIcons,
26
+ argTypes: {
27
+ socialIcons: {
28
+ name: 'social icons',
29
+ type: { name: 'object', required: true },
30
+ defaultValue: '',
31
+ description: 'social icons object data',
32
+ },
33
+ },
34
+ parameters: {
35
+ docs: {
36
+ description: {
37
+ component: 'A component that displays social icons',
38
+ },
39
+ page: () => (
40
+ <>
41
+ <Title />
42
+ <Description />
43
+ <Primary />
44
+ <ArgsTable story={PRIMARY_STORY} />
45
+ </>
46
+ ),
47
+ },
48
+ },
49
+ };
50
+
51
+ const Template = (args) => <SocialIcons {...args} />;
52
+ export const Default = Template.bind({});
53
+ Default.args = {
54
+ socialIcons,
55
+ };
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { render, cleanup } from '@testing-library/react';
3
+ import '@testing-library/jest-dom';
4
+ import { siteSchema } from 'gatsby-core-theme/tests/factories/modules/site-schema.factory';
5
+ import SocialIcons from '.';
6
+
7
+ const socialIcons =
8
+ siteSchema &&
9
+ (({ instagram, facebook, twitter, linkedin, youtube }) => ({
10
+ instagram,
11
+ facebook,
12
+ twitter,
13
+ linkedin,
14
+ youtube,
15
+ }))(siteSchema);
16
+
17
+ const socialIconsLength = Object.keys(socialIcons);
18
+
19
+ describe('SocialIcons Component', () => {
20
+ test('render with props and social icons list', () => {
21
+ const { container } = render(<SocialIcons socialIcons={socialIcons} />);
22
+ expect(container).toBeTruthy();
23
+ const socialLinksWrapper = container.querySelector('.socialIcons');
24
+ expect(socialLinksWrapper.querySelectorAll('a')).toHaveLength(socialIconsLength.length);
25
+ expect(socialLinksWrapper.querySelectorAll('a')[2].innerText).toEqual(siteSchema[2]);
26
+ expect(socialLinksWrapper.querySelectorAll('a')[4].innerText).toEqual(siteSchema[4]);
27
+ });
28
+ });
29
+ afterEach(() => {
30
+ cleanup();
31
+ });
@@ -40,6 +40,7 @@ const Index = ({ page }) => {
40
40
  target="_blank"
41
41
  rel="noreferrer"
42
42
  className="small-welcome-bonus-gtm logo-cta"
43
+ aria-label={`${operator?.name} Link`}
43
44
  >
44
45
  <LazyImage
45
46
  width={120}
@@ -13,7 +13,7 @@ const FooterNavigation = ({ section, isStorybook = false }) => {
13
13
  showListTitle={false}
14
14
  singleList
15
15
  lists={menuArray}
16
- once
16
+ disableLazyLoad
17
17
  width={48}
18
18
  height={48}
19
19
  gtmClass="mobile-menu-gtm"
@@ -0,0 +1,86 @@
1
+ .pageContainer {
2
+ background-color: white;
3
+ padding: 6rem 0 0;
4
+ @include min(laptop) {
5
+ padding: 8rem 0 0;
6
+ }
7
+ .contactUsContainer {
8
+ max-width: var(--main-container-max);
9
+ margin: 0 auto;
10
+ @include flex-direction(column);
11
+ padding: 1.6rem 2.4rem;
12
+ background-color: transparent;
13
+
14
+ header{
15
+ padding-top: 0;
16
+ > div{
17
+ padding: 0;
18
+ a, li{
19
+ font-weight: normal;
20
+ font-size: 1.4rem;
21
+ line-height: 2.4rem;
22
+ color:var(--color-41);
23
+ }
24
+ div:last-of-type{
25
+ display: none;
26
+ }
27
+ }
28
+ }
29
+
30
+ .contactBox {
31
+ width: 100%;
32
+ padding-top: 1.2rem;
33
+ padding-bottom: 4.6rem;
34
+ border-radius: var(--border-radius);
35
+ @include min(tablet) {
36
+ @include flex-direction(row);
37
+ padding-bottom: 3.3rem;
38
+ }
39
+ }
40
+ .formWrapper {
41
+ flex-basis: 100%;
42
+ padding: 0;
43
+ p {
44
+ font-weight: normal;
45
+ font-size: 1.6rem;
46
+ line-height: 2.4rem;
47
+ color: var(--color-38);
48
+ padding-top: 0.8rem;
49
+ }
50
+ h1 {
51
+ margin: 0;
52
+ font-weight: bold;
53
+ font-size: 3.6rem;
54
+ line-height: 4.6rem;
55
+ color: var(--color-33);
56
+ }
57
+ @include min(tablet) {
58
+ flex-basis: 61rem;
59
+ padding-right: 3.3rem;
60
+ }
61
+ }
62
+ .authors {
63
+ width: 100%;
64
+ @include min(desktop) {
65
+ }
66
+ ul {
67
+ width: 100%;
68
+ @include flex-direction(column);
69
+ @include min(tablet) {
70
+ display: grid;
71
+ grid-template-columns: 1fr 1fr;
72
+ grid-gap: 1.6rem;
73
+ }
74
+ @include min(desktop) {
75
+ grid-template-columns: 1fr 1fr 1fr;
76
+ }
77
+ li {
78
+ margin-bottom: 1.6rem;
79
+ @include min(tablet) {
80
+ margin-bottom: 0;
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }