gatsby-matrix-theme 30.0.0 → 31.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.
Files changed (32) hide show
  1. package/.storybook/main.js +4 -0
  2. package/CHANGELOG.md +41 -0
  3. package/package.json +2 -2
  4. package/src/gatsby-core-theme/components/atoms/contact-form/contact-form.module.scss +6 -4
  5. package/src/gatsby-core-theme/components/atoms/contact-form/contact-form.stories.js +51 -5
  6. package/src/gatsby-core-theme/components/atoms/contact-form/contact-form.test.js +21 -8
  7. package/src/gatsby-core-theme/components/atoms/contact-form/index.js +34 -18
  8. package/src/gatsby-core-theme/components/organisms/cookie-consent/cookie-consent.module.scss +1 -0
  9. package/src/gatsby-core-theme/constants/forms.js +156 -90
  10. package/src/gatsby-core-theme/styles/utils/variables/_main.scss +7 -7
  11. package/storybook/public/{238.37a0b647.iframe.bundle.js → 238.63241167.iframe.bundle.js} +1 -1
  12. package/storybook/public/{343.fc9c5b8f.iframe.bundle.js → 343.6a79d1f0.iframe.bundle.js} +1 -1
  13. package/storybook/public/{452.4baffdba.iframe.bundle.js → 353.bc06f7ed.iframe.bundle.js} +4 -4
  14. package/storybook/public/{452.4baffdba.iframe.bundle.js.map → 353.bc06f7ed.iframe.bundle.js.map} +1 -1
  15. package/storybook/public/408.e2d12757.iframe.bundle.js +2 -0
  16. package/storybook/public/{555.19082e83.iframe.bundle.js → 555.ea2f83c3.iframe.bundle.js} +1 -1
  17. package/storybook/public/{60.b5d116a5.iframe.bundle.js → 60.9dc681ce.iframe.bundle.js} +1 -1
  18. package/storybook/public/{694.8483833e.iframe.bundle.js → 694.133d4c3b.iframe.bundle.js} +1 -1
  19. package/storybook/public/696.2564afa3.iframe.bundle.js +1 -0
  20. package/storybook/public/{895.3984ff11.iframe.bundle.js → 895.e6166f2a.iframe.bundle.js} +1 -1
  21. package/storybook/public/{917.69d320d0.iframe.bundle.js → 917.ab319ca7.iframe.bundle.js} +1 -1
  22. package/storybook/public/{932.b2fa9f2a.iframe.bundle.js → 932.cb7dfc74.iframe.bundle.js} +1 -1
  23. package/storybook/public/iframe.html +1 -1
  24. package/storybook/public/main.11fe6ac0.iframe.bundle.js +2 -0
  25. package/storybook/public/{runtime~main.e1583481.iframe.bundle.js → runtime~main.109e903c.iframe.bundle.js} +1 -1
  26. package/src/gatsby-core-theme/components/molecules/content/content.module.scss +0 -333
  27. package/storybook/public/408.7984135f.iframe.bundle.js +0 -2
  28. package/storybook/public/696.a4cf872c.iframe.bundle.js +0 -1
  29. package/storybook/public/main.4c2273ea.iframe.bundle.js +0 -2
  30. /package/storybook/public/{452.4baffdba.iframe.bundle.js.LICENSE.txt → 353.bc06f7ed.iframe.bundle.js.LICENSE.txt} +0 -0
  31. /package/storybook/public/{408.7984135f.iframe.bundle.js.LICENSE.txt → 408.e2d12757.iframe.bundle.js.LICENSE.txt} +0 -0
  32. /package/storybook/public/{main.4c2273ea.iframe.bundle.js.LICENSE.txt → main.11fe6ac0.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -10,6 +10,10 @@ module.exports = {
10
10
  '../../node_modules/gatsby-core-theme/src/components/organisms/anchor/anchor.stories.js',
11
11
  '../../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-one/bonus.stories.js',
12
12
  '../../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-two/bonus.stories.js',
13
+ '../../node_modules/gatsby-core-theme/src/components/molecules/content/content.stories.js',
14
+ '../../node_modules/gatsby-core-theme/src/components/molecules/content/table/table.stories.js',
15
+ '../../node_modules/gatsby-core-theme/src/components/molecules/content/text/Images/text.stories.js',
16
+ '../../node_modules/gatsby-core-theme/src/components/molecules/content/lists/lists.stories.js',
13
17
  ],
14
18
  addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
15
19
  env: (config) => ({
package/CHANGELOG.md CHANGED
@@ -1,3 +1,44 @@
1
+ # [31.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v30.0.0...v31.0.0) (2023-08-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add blockquote style ([1c430a5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1c430a57592469b36eaa78aae513fda37e450f95))
7
+ * content module fixes and storybooks ([fcd10cc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fcd10cce3942dc877a65e04be2580970905795f3))
8
+ * cookie button ([bafc7f1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bafc7f1855186d6df8d2f573a90f9e1c15093ccc))
9
+ * imported all the content storybooks from core ([f14e4a2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f14e4a2153a34eeebcc258f2b2f90f42e57fff0d))
10
+ * update content module ([ff3af42](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ff3af428b1352635cad82b5319714f589dcf8191))
11
+
12
+
13
+ ### Code Refactoring
14
+
15
+ * add prop to show/hide button icon ([6daf7e2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6daf7e2d6db90d4d726eb0f2157e9e1d1de9620f))
16
+ * add props for heading and description ([29b0889](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/29b08896af9665391f57df779fcccba481e34f03))
17
+ * changes to form const ([9911518](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/99115188808e3ab5b0d3a15320b50e18080d804d))
18
+ * changes to storybook ([46c8736](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/46c8736d02b632145924ebed84ce84a6b5818e1d))
19
+ * correction to label display condition ([885e355](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/885e355013d4e8762ec09adec5f4edb57eaea3ae))
20
+ * dynamic button lable ([f4dabea](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f4dabea68ef73f1a55874eea354f173f0d6e48ac))
21
+ * enable multiple markets for form options ([7c806b4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7c806b48bd222046383f34c3a8ede3a18b221382))
22
+ * revert form style ([da51b4d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/da51b4d69f2cbaeeb8614a1a209b52309afdd7da))
23
+
24
+
25
+ ### Config
26
+
27
+ * update to latest core theme ([3d41b65](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3d41b657e30fef1ea318736a7c01cb27c03615f8))
28
+ * update to latest theme ([eca1c6f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/eca1c6f375be5b567266d51bc5533c4068f62cd0))
29
+
30
+
31
+ * Merge branch 'tm-3556-contact-us-page' into 'master' ([aa8f97a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/aa8f97aa92d7b1548fced219b89460fd9f053bed))
32
+ * Merge branch 'master' into tm-3556-contact-us-page ([6da885d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6da885d2ed90d6e30a8aa44c7b3e244cb522142f))
33
+ * Merge branch 'tm-3537-content-module' into 'master' ([0f2ed50](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0f2ed508904d88699776d2d12e5a74aeef28d819))
34
+ * Merge branch 'master' into tm-3556-contact-us-page ([0ad20e0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0ad20e0d1665951fbcbb1f784e3c73ce706233d9))
35
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme into tm-3537-content-module ([d96f70b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d96f70b8a3c5bbbbf9b39eb525af26993f233dbb))
36
+
37
+
38
+ ### Tests
39
+
40
+ * fix tests ([efcc02e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/efcc02e3affee6ded1b2980737a36f3d8673802a))
41
+
1
42
  # [30.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v29.0.0...v30.0.0) (2023-08-18)
2
43
 
3
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "30.0.0",
3
+ "version": "31.0.0",
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": "^5.11.0",
28
- "gatsby-core-theme": "27.0.0",
28
+ "gatsby-core-theme": "28.0.1",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-plugin-sitemap": "^3.3.0",
31
31
  "gatsby-transformer-sharp": "^5.11.0",
@@ -45,10 +45,6 @@
45
45
  }
46
46
  }
47
47
 
48
- form {
49
- grid-template-columns: repeat(2, minmax(0, 1fr));
50
- }
51
-
52
48
  > div {
53
49
  @include min(tablet) {
54
50
  gap: 2.4rem;
@@ -77,6 +73,12 @@
77
73
  line-height: 3.2rem;
78
74
  color: #1b1b1c;
79
75
  margin: 0;
76
+
77
+ @include min(tablet){
78
+ font-weight: bold;
79
+ font-size: 3.2rem;
80
+ line-height: 4rem;
81
+ }
80
82
  }
81
83
 
82
84
  p {
@@ -8,10 +8,26 @@ import {
8
8
  ArgsTable,
9
9
  } from '@storybook/addon-docs/blocks';
10
10
  import { siteSchema } from 'gatsby-core-theme/tests/factories/modules/site-schema.factory';
11
+ import getPageList from 'gatsby-core-theme/tests/factories/pages/page.factory';
11
12
  import ContactForm from '.';
12
13
 
13
- const page = {};
14
- page.siteSchema = { ...siteSchema };
14
+ const relationType = 'default';
15
+ const market = 'ie_en';
16
+ const samplePages = {
17
+ [market]: {
18
+ [relationType]: getPageList({
19
+ template: relationType,
20
+ count: 3,
21
+ relation: null,
22
+ relation_id: 5,
23
+ market,
24
+ siteSchema: { ...siteSchema },
25
+ }),
26
+ },
27
+ };
28
+
29
+ // const page = {};
30
+ // page.siteSchema = { ...siteSchema };
15
31
 
16
32
  export default {
17
33
  title: 'Theme/Modules/Template Blocks/Contact Form',
@@ -51,18 +67,48 @@ export default {
51
67
  defaultValue: 'Fill all the required fields.',
52
68
  description: 'sent message info',
53
69
  },
70
+ buttonLabel: {
71
+ name: 'buttonLabel',
72
+ type: { name: 'string', required: false },
73
+ defaultValue: 'Send Message',
74
+ description: 'Send button text',
75
+ },
54
76
  showFollowUs: {
55
77
  name: 'showFollowUs',
56
- type: { name: 'boolean', required: true },
78
+ type: { name: 'boolean', required: false },
57
79
  defaultValue: true,
58
80
  description: 'Show Follow us social media icons & links from Site Scheme',
59
81
  },
60
82
  showEmail: {
61
83
  name: 'showEmail',
62
- type: { name: 'boolean', required: true },
84
+ type: { name: 'boolean', required: false },
63
85
  defaultValue: true,
64
86
  description: 'Show email address only',
65
87
  },
88
+ showButtonIcon: {
89
+ name: 'showButtonIcon',
90
+ type: { name: 'boolean', required: false },
91
+ defaultValue: true,
92
+ description: 'Show/hide button icon',
93
+ },
94
+ showLabels: {
95
+ name: 'showLabels',
96
+ type: { name: 'boolean', required: false },
97
+ defaultValue: true,
98
+ description: 'Show/hide form field lables',
99
+ },
100
+ showHeading: {
101
+ name: 'showHeading',
102
+ type: { name: 'boolean', required: false },
103
+ defaultValue: true,
104
+ description: 'Show/hide intro title of page',
105
+ },
106
+ showDescription: {
107
+ name: 'showDescription',
108
+ type: { name: 'boolean', required: false },
109
+ defaultValue: true,
110
+ description: 'Show/hide intro description of page',
111
+ },
66
112
  },
67
113
  parameters: {
68
114
  docs: {
@@ -84,5 +130,5 @@ export default {
84
130
  const Template = (args) => <ContactForm {...args} />;
85
131
  export const Default = Template.bind({});
86
132
  Default.args = {
87
- page,
133
+ page: samplePages[market][relationType][0],
88
134
  };
@@ -3,18 +3,31 @@ import React from 'react';
3
3
  import { render, cleanup, waitFor } from '@testing-library/react';
4
4
  import '@testing-library/jest-dom/extend-expect';
5
5
  import { siteSchema } from 'gatsby-core-theme/tests/factories/modules/site-schema.factory';
6
- import { contactUsForm } from '../../../constants/forms';
6
+ import getPageList from 'gatsby-core-theme/tests/factories/pages/page.factory';
7
7
  import ContactForm from '.';
8
8
 
9
- const page = {};
9
+ const relationType = 'default';
10
+ const market = 'ie_en';
11
+ let samplePages = {};
10
12
 
11
13
  beforeEach(() => {
12
- page.siteSchema = { ...siteSchema };
14
+ samplePages = {
15
+ [market]: {
16
+ [relationType]: getPageList({
17
+ template: relationType,
18
+ count: 3,
19
+ relation: null,
20
+ relation_id: 5,
21
+ market,
22
+ siteSchema: { ...siteSchema },
23
+ }),
24
+ },
25
+ };
13
26
  });
14
27
  describe('Contact Us form Component', () => {
15
28
  test('render contact us form and follow us titles', async () => {
16
29
  const { container, getByText } = render(
17
- <ContactForm formOptions={contactUsForm} page={page} submitUrl="submit" />
30
+ <ContactForm page={samplePages[market][relationType][0]} submitUrl="submit" />
18
31
  );
19
32
 
20
33
  await waitFor(() => {
@@ -26,15 +39,15 @@ describe('Contact Us form Component', () => {
26
39
  });
27
40
  test('render contact us form ', async () => {
28
41
  const { container } = render(
29
- <ContactForm formOptions={contactUsForm} page={page} submitUrl="submit" />
42
+ <ContactForm page={samplePages[market][relationType][0]} submitUrl="submit" />
30
43
  );
31
44
 
32
45
  await waitFor(() => {
33
46
  expect(container.querySelector('.contactForm')).toBeTruthy();
34
- expect(container.querySelector('.contactForm').querySelectorAll('input')).toHaveLength(3);
47
+ expect(container.querySelector('.contactForm').querySelectorAll('input')).toHaveLength(4);
35
48
  expect(
36
49
  container.querySelector('.contactForm').querySelectorAll('input[type="text"]')
37
- ).toHaveLength(1);
50
+ ).toHaveLength(2);
38
51
  expect(
39
52
  container.querySelector('.contactForm').querySelectorAll('input[type="email"]')
40
53
  ).toHaveLength(1);
@@ -43,7 +56,7 @@ describe('Contact Us form Component', () => {
43
56
  });
44
57
  test('render follow us social media ', async () => {
45
58
  const { container } = render(
46
- <ContactForm formOptions={contactUsForm} page={page} submitUrl="submit" />
59
+ <ContactForm page={samplePages[market][relationType][0]} submitUrl="submit" />
47
60
  );
48
61
 
49
62
  const socialIcons =
@@ -16,8 +16,14 @@ const ContactForm = ({
16
16
  validationMessage = 'Fill all the required fields.',
17
17
  showFollowUs = true,
18
18
  showEmail = true,
19
+ buttonLabel = 'Send Message',
20
+ showButtonIcon = true,
21
+ showLabels = true,
22
+ showHeading = true,
23
+ showDescription = true,
19
24
  }) => {
20
25
  const { translations } = useContext(Context) || {};
26
+ const activeMarket = page?.market;
21
27
 
22
28
  const { siteSchema } = page || {};
23
29
  const socialIcons =
@@ -34,23 +40,27 @@ const ContactForm = ({
34
40
  const socialIconsNotNull = socialIcons && Object.values(socialIcons)?.some((value) => value);
35
41
 
36
42
  return (
37
- <div className={styles.contactForm}>
38
- <div className={styles.contactBox}>
39
- <div className={styles.formWrapper}>
40
- <h1>{translate(translations, 'contact_us', 'Contact Us')}</h1>
41
- <p>
42
- {translate(
43
- translations,
44
- 'contact_us_questions',
45
- `If you have questions about our reviews, games or content, or just want to leave some
46
- feedback, the Irish Luck team would love to hear from you. You can contact us any time
47
- using the details below and we'll endeavour to get back to you within 48 hours.`
48
- )}
49
- </p>
43
+ <div className={styles.contactForm || ''}>
44
+ <div className={styles.contactBox || ''}>
45
+ <div className={styles.formWrapper || ''}>
46
+ {showHeading && <h1>{translate(translations, 'contact_us', 'Contact Us')}</h1>}
47
+ {showDescription && (
48
+ <p>
49
+ {translate(
50
+ translations,
51
+ 'contact_us_questions',
52
+ `If you have questions about our reviews, games or content, or just want to leave some
53
+ feedback, the Irish Luck team would love to hear from you. You can contact us any time
54
+ using the details below and we'll endeavour to get back to you within 48 hours.`
55
+ )}
56
+ </p>
57
+ )}
50
58
  <Form
51
- formOptions={contactUsForm}
59
+ formOptions={contactUsForm[activeMarket]}
60
+ showLabels={showLabels}
52
61
  hasButton
53
- buttonLabel="Send"
62
+ showButtonIcon={showButtonIcon}
63
+ buttonLabel={buttonLabel}
54
64
  submitUrl={submitUrl}
55
65
  successMessage={successMessage}
56
66
  failMessage={failMessage}
@@ -58,14 +68,14 @@ const ContactForm = ({
58
68
  />
59
69
  </div>
60
70
  {(supportEmail || socialIconsNotNull) && (
61
- <div className={styles.socialSection}>
71
+ <div className={styles.socialSection || ''}>
62
72
  {showFollowUs && Object.values(socialIcons).some((value) => value) && (
63
73
  <SocialIcons socialIcons={socialIcons} />
64
74
  )}
65
75
  {showEmail && supportEmail && (
66
- <div className={styles.emailContainer}>
76
+ <div className={styles.emailContainer || ''}>
67
77
  <h2>{translate(translations, 'send_us_an_email', 'Send us an email')}</h2>
68
- <p className={styles.email}>
78
+ <p className={styles.email || ''}>
69
79
  <span>
70
80
  <FaEnvelope />
71
81
  </span>
@@ -92,6 +102,7 @@ export default ContactForm;
92
102
  ContactForm.propTypes = {
93
103
  page: PropTypes.shape({
94
104
  siteSchema: PropTypes.shape({}),
105
+ market: PropTypes.string,
95
106
  }).isRequired,
96
107
  submitUrl: PropTypes.string,
97
108
  successMessage: PropTypes.string,
@@ -99,4 +110,9 @@ ContactForm.propTypes = {
99
110
  validationMessage: PropTypes.string,
100
111
  showFollowUs: PropTypes.bool,
101
112
  showEmail: PropTypes.bool,
113
+ buttonLabel: PropTypes.string,
114
+ showButtonIcon: PropTypes.string,
115
+ showLabels: PropTypes.bool,
116
+ showHeading: PropTypes.bool,
117
+ showDescription: PropTypes.bool,
102
118
  };
@@ -111,6 +111,7 @@
111
111
  }
112
112
 
113
113
  .cookieButton {
114
+ cursor: pointer;
114
115
  z-index: var(--cookieButton-index, 5);
115
116
  position: fixed;
116
117
  left: var(--cookieButton-left, 1.6rem);
@@ -1,100 +1,166 @@
1
+ import React from 'react';
2
+ // import { IoMdCloseCircleOutline } from '@react-icons/all-files/io/IoMdCloseCircleOutline';
3
+ import { replaceWith } from 'gatsby-core-theme/src/helpers/strings';
4
+
1
5
  export const contactUsForm = {
2
- title: {
3
- label: 'Send us a message',
4
- translationKey: 'send_us_a_msg',
5
- },
6
- twoCol: true,
7
- hasReCAPTCHA: true,
8
- fields: [
9
- {
10
- label: 'Name',
11
- id: 'name',
12
- type: 'text',
13
- placeholder: 'Text placeholder',
14
- translationKey: 'text_translation',
15
- twoCol: true,
6
+ ie_en: {
7
+ title: {
8
+ label: 'Send us a message',
9
+ translationKey: 'send_us_a_msg',
16
10
  },
17
- {
18
- label: 'Email Address',
19
- id: 'email',
20
- type: 'email',
21
- placeholder: 'Email@placeholder.com',
22
- translationKey: 'email_translation',
23
- twoCol: true,
11
+ twoCol: false,
12
+ hasReCAPTCHA: true,
13
+ reCaptcha: {
14
+ // validations: {
15
+ // label: 'Please confirm',
16
+ // translationKey: 'valid_recaptcha',
17
+ // icon: <IoMdCloseCircleOutline />,
18
+ // },
24
19
  },
25
- {
26
- label: 'Textarea',
27
- id: 'comment',
28
- type: 'textarea',
29
- placeholder: 'Textarea placeholder',
30
- translationKey: 'textarea_translation',
31
- maxLength: '10',
32
- twoCol: false,
33
- },
34
- {
35
- id: 'tnc',
36
- type: 'checkbox',
37
- required: true,
38
- translationKey: 'checkbox_translation',
39
- twoCol: false,
40
- options: [
41
- {
42
- id: 'tnc',
43
- label:
44
- '+18 Lorem ipsum dolor sit amet consectetur. Egestas nibh ullamcorper venenatis vulputate. Sed elit diam at id feugiat orci ornare Privacy Policy',
45
- translationKey: 'option_one_translation',
20
+ fields: [
21
+ {
22
+ label: 'Field Label',
23
+ translationKey: 'text_translation',
24
+ id: 'name',
25
+ type: 'text',
26
+ placeholder: {
27
+ label: 'Write something',
28
+ translationKey: 'field_placeholder',
46
29
  },
47
- ],
48
- },
49
- ],
30
+ twoCol: true,
31
+ // validations: {
32
+ // label: 'Please enter a name',
33
+ // translationKey: 'valid_name',
34
+ // icon: <IoMdCloseCircleOutline />,
35
+ // },
36
+ },
37
+ {
38
+ label: 'Email Address',
39
+ id: 'email',
40
+ type: 'email',
41
+ placeholder: {
42
+ label: 'Email@placeholder.com',
43
+ translationKey: 'field_placeholder',
44
+ },
45
+ translationKey: 'email_translation',
46
+ twoCol: true,
47
+ // validations: {
48
+ // label: 'Please enter a valid email address',
49
+ // translationKey: 'valid_email',
50
+ // icon: <IoMdCloseCircleOutline />,
51
+ // },
52
+ },
53
+ {
54
+ label: 'Field Label',
55
+ id: 'subject',
56
+ type: 'text',
57
+ placeholder: {
58
+ label: 'Write something',
59
+ translationKey: 'field_placeholder',
60
+ },
61
+ translationKey: 'text_translation',
62
+ twoCol: true,
63
+ // validations: {
64
+ // label: 'Please enter a subject',
65
+ // translationKey: 'valid_subject',
66
+ // icon: <IoMdCloseCircleOutline />,
67
+ // },
68
+ },
69
+ {
70
+ label: 'Field Label',
71
+ id: 'comment',
72
+ type: 'textarea',
73
+ placeholder: {
74
+ label: 'Write something',
75
+ translationKey: 'field_placeholder',
76
+ },
77
+ translationKey: 'textarea_translation',
78
+ maxLength: '1000',
79
+ twoCol: false,
80
+ // validations: {
81
+ // label: 'Please enter a message',
82
+ // translationKey: 'valid_message',
83
+ // icon: <IoMdCloseCircleOutline />,
84
+ // },
85
+ },
86
+ {
87
+ id: 'tnc',
88
+ type: 'checkbox',
89
+ required: true,
90
+ translationKey: 'checkbox_translation',
91
+ twoCol: false,
92
+ options: [
93
+ {
94
+ id: 'tnc',
95
+ label: replaceWith(
96
+ '+18 Lorem ipsum dolor sit amet consectetur. Egestas nibh ullamcorper venenatis vulputate. Sed elit diam at id feugiat orci ornare [keyword]',
97
+ '[keyword]',
98
+ <a href="/privacy-policy">Privacy Policy</a>
99
+ ),
100
+ translationKey: 'option_one_translation',
101
+ },
102
+ ],
103
+ // validations: {
104
+ // label: 'Please select at least one',
105
+ // translationKey: 'valid_check',
106
+ // icon: <IoMdCloseCircleOutline />,
107
+ // },
108
+ },
109
+ ],
110
+ },
50
111
  };
51
112
 
52
113
  export const newsLetterForm = {
53
- title: {
54
- label: 'Sign up To our newsletters ',
55
- translationKey: 'sign_up_newsletter',
56
- },
57
- description: {
58
- label:
59
- "If you have questions about our reviews, games or content, or just want to leave some feedback, the Irish Luck team would love to hear from you. You can contact us any time using the details below and we'll endeavour to get back to you within 48 hours.",
60
- translationKey: 'contact_us_questions',
61
- },
62
- twoCol: false,
63
- hasReCAPTCHA: false,
64
- fields: [
65
- {
66
- label: 'Name',
67
- id: 'name',
68
- type: 'text',
69
- placeholder: 'Text placeholder',
70
- translationKey: 'text_translation',
71
- twoCol: true,
72
- // required: true,
114
+ ie_en: {
115
+ title: {
116
+ label: 'Sign up To our newsletters ',
117
+ translationKey: 'sign_up_newsletter',
73
118
  },
74
- {
75
- label: 'Email Address',
76
- id: 'email',
77
- type: 'email',
78
- placeholder: 'Email@placeholder.com',
79
- translationKey: 'email_translation',
80
- twoCol: true,
81
- // required: true,
119
+ description: {
120
+ label:
121
+ "If you have questions about our reviews, games or content, or just want to leave some feedback, the Irish Luck team would love to hear from you. You can contact us any time using the details below and we'll endeavour to get back to you within 48 hours.",
122
+ translationKey: 'contact_us_questions',
82
123
  },
83
- {
84
- label: 'Terms',
85
- id: 'tnc',
86
- type: 'checkbox',
87
- required: true,
88
- translationKey: 'checkbox_translation',
89
- twoCol: false,
90
- options: [
91
- {
92
- id: 'tnc',
93
- label:
94
- '+18 Lorem ipsum dolor sit amet consectetur. Egestas nibh ullamcorper venenatis vulputate. Sed elit diam at id feugiat orci ornare Privacy Policy',
95
- translationKey: 'option_one_translation',
96
- },
97
- ],
98
- },
99
- ],
124
+ twoCol: true,
125
+ hasReCAPTCHA: false,
126
+ fields: [
127
+ {
128
+ label: 'Name',
129
+ id: 'name',
130
+ type: 'text',
131
+ placeholder: 'Text placeholder',
132
+ translationKey: 'text_translation',
133
+ twoCol: true,
134
+ // required: true,
135
+ },
136
+ {
137
+ label: 'Email Address',
138
+ id: 'email',
139
+ type: 'email',
140
+ placeholder: 'Email@placeholder.com',
141
+ translationKey: 'email_translation',
142
+ twoCol: true,
143
+ // required: true,
144
+ },
145
+ {
146
+ label: 'Terms',
147
+ id: 'tnc',
148
+ type: 'checkbox',
149
+ required: true,
150
+ translationKey: 'checkbox_translation',
151
+ twoCol: false,
152
+ options: [
153
+ {
154
+ id: 'tnc',
155
+ label: replaceWith(
156
+ '+18 Lorem ipsum dolor sit amet consectetur. Egestas nibh ullamcorper venenatis vulputate. Sed elit diam at id feugiat orci ornare [keyword]',
157
+ '[keyword]',
158
+ <a href="/privacy-policy">Privacy Policy</a>
159
+ ),
160
+ translationKey: 'option_one_translation',
161
+ },
162
+ ],
163
+ },
164
+ ],
165
+ },
100
166
  };
@@ -147,13 +147,13 @@
147
147
  --toplist-ranking-third-color: var(--color-15);
148
148
  --toplist-ranking-base-color: var(--color-2);
149
149
 
150
- --table-background: var(--color-4);
151
- --table-highlight: var(--color-16);
152
- --table-border-radius: 0.75rem;
153
- --table-head-background: var(--color-2);
154
- --table-head-text: var(--color-4);
155
- --second-table-background: var(--color-17);
156
- --secondary-module-background: var(--color-42);
150
+ --table-background: #F4F4F4;
151
+ --table-highlight: #fff;
152
+ --table-border-radius: 1.6rem;
153
+ --table-head-background: #262629;
154
+ --table-head-text: #fff;
155
+ --second-table-background: #ffefe6;
156
+ --secondary-module-background: #f7f5fc;
157
157
 
158
158
  --pagination-with-midpoints-color: #ccc;
159
159