gatsby-matrix-theme 2.0.2 → 2.1.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 +126 -0
- package/gatsby-config.js +36 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/popup-card/index.js +59 -0
- package/src/components/atoms/cards/popup-card/popup-card.module.scss +88 -0
- package/src/components/atoms/cards/popup-card/popup-card.stories.js +61 -0
- package/src/components/molecules/faq/faq.module.scss +14 -10
- package/src/components/molecules/header/variants/article/index.js +3 -3
- package/src/components/molecules/header/variants/operator/index.js +3 -3
- package/src/components/molecules/info-grid/index.js +10 -10
- package/src/components/molecules/toplist/row/variant-one.js +1 -1
- package/src/components/molecules/toplist/row/variant-one.test.js +2 -6
- package/src/components/organisms/footer-navigation/footer-navigation.module.scss +7 -3
- package/src/components/organisms/footer-navigation/index.js +1 -1
- package/src/components/organisms/popup/index.js +117 -0
- package/src/components/organisms/popup/popup.module.scss +96 -0
- package/src/components/organisms/popup/popup.stories.js +61 -0
- package/src/components/organisms/popup/popup.test.js +33 -0
- package/src/components/organisms/toplist/{comparisonTable/comparisonTable.module.scss → comparison-table/comparison-table.module.scss} +0 -0
- package/src/components/organisms/toplist/{comparisonTable → comparison-table}/index.js +3 -3
- package/src/components/organisms/toplist/index.js +29 -34
- package/src/components/organisms/toplist/list/index.js +1 -5
- package/src/gatsby-core-theme/components/atoms/archive/items/index.js +2 -1
- package/src/{components → gatsby-core-theme/components}/atoms/bonus/bonus.test.js +0 -0
- package/src/{components → gatsby-core-theme/components}/atoms/bonus/index.js +0 -0
- package/src/gatsby-core-theme/components/atoms/module-title/index.js +119 -3
- package/src/{components → gatsby-core-theme/components}/atoms/spotlights/index.js +0 -0
- package/src/{components → gatsby-core-theme/components}/atoms/spotlights/spotlights.module.scss +0 -0
- package/src/gatsby-core-theme/components/molecules/content/index.js +22 -11
- package/src/gatsby-core-theme/components/molecules/footer/index.js +0 -1
- package/src/gatsby-core-theme/components/molecules/main/index.js +49 -5
- package/src/gatsby-core-theme/components/molecules/module/index.js +6 -7
- package/src/gatsby-core-theme/components/molecules/search/index.js +2 -1
- package/src/{components → gatsby-core-theme/components}/organisms/anchor/anchor.module.scss +0 -0
- package/src/{components → gatsby-core-theme/components}/organisms/anchor/index.js +0 -1
- package/src/{components → gatsby-core-theme/components}/organisms/cards/cards.stories.js +6 -6
- package/src/{components → gatsby-core-theme/components}/organisms/cards/index.js +16 -8
- package/src/gatsby-core-theme/components/organisms/carousel/index.js +2 -1
- package/src/gatsby-core-theme/components/pages/body/index.js +16 -6
- package/src/helpers/popup.js +26 -0
- package/src/helpers/sitemap.js +24 -0
- package/storybook/public/0.50c23d5b.iframe.bundle.js +1 -0
- package/storybook/public/{1.5aafa1c6.iframe.bundle.js → 1.eef04bc1.iframe.bundle.js} +1 -1
- package/storybook/public/10.454cae2f.iframe.bundle.js +1 -0
- package/storybook/public/{10.ff4158b6.iframe.bundle.js → 11.6ec11208.iframe.bundle.js} +1 -1
- package/storybook/public/5.5635a723.iframe.bundle.js +3 -0
- package/storybook/public/{5.4b77de4e.iframe.bundle.js.LICENSE.txt → 5.5635a723.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/5.5635a723.iframe.bundle.js.map +1 -0
- package/storybook/public/6.a0f625e4.iframe.bundle.js +1 -0
- package/storybook/public/7.4b9a5033.iframe.bundle.js +1 -0
- package/storybook/public/8.4148b63e.iframe.bundle.js +3 -0
- package/storybook/public/{7.065bf31c.iframe.bundle.js.LICENSE.txt → 8.4148b63e.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/8.4148b63e.iframe.bundle.js.map +1 -0
- package/storybook/public/{8.02dc3716.iframe.bundle.js → 9.08fee7fe.iframe.bundle.js} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.38a6239c.iframe.bundle.js +1 -0
- package/storybook/public/runtime~main.d64660ee.iframe.bundle.js +1 -0
- package/storybook/public/vendors~main.aac219e4.iframe.bundle.js +7 -0
- package/storybook/public/{vendors~main.cec0edea.iframe.bundle.js.LICENSE.txt → vendors~main.aac219e4.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/vendors~main.aac219e4.iframe.bundle.js.map +1 -0
- package/src/components/atoms/author-box/author-box.module.scss +0 -92
- package/src/components/atoms/author-box/author-box.stories.js +0 -72
- package/src/components/atoms/author-box/author-box.test.js +0 -36
- package/src/components/atoms/author-box/index.js +0 -94
- package/src/components/atoms/module-title/index.js +0 -125
- package/src/components/atoms/module-title/module-title.module.scss +0 -52
- package/src/components/molecules/content/content.module.scss +0 -201
- package/src/components/molecules/content/content.stories.js +0 -79
- package/src/components/molecules/content/index.js +0 -81
- package/src/components/molecules/main/index.js +0 -51
- package/src/components/organisms/carousel/carousel.module.scss +0 -3
- package/src/components/organisms/carousel/index.js +0 -76
- package/src/gatsby-core-theme/components/molecules/header/index.js +0 -54
- package/src/gatsby-core-theme/components/organisms/toplist/index.js +0 -16
- package/src/gatsby-core-theme/components/organisms/toplist/toplist.stories.js +0 -105
- package/storybook/public/0.fcd9bade.iframe.bundle.js +0 -1
- package/storybook/public/5.4b77de4e.iframe.bundle.js +0 -3
- package/storybook/public/5.4b77de4e.iframe.bundle.js.map +0 -1
- package/storybook/public/6.df73e654.iframe.bundle.js +0 -1
- package/storybook/public/7.065bf31c.iframe.bundle.js +0 -3
- package/storybook/public/7.065bf31c.iframe.bundle.js.map +0 -1
- package/storybook/public/9.5532a106.iframe.bundle.js +0 -1
- package/storybook/public/main.3fea8a61.iframe.bundle.js +0 -1
- package/storybook/public/runtime~main.46d88268.iframe.bundle.js +0 -1
- package/storybook/public/vendors~main.cec0edea.iframe.bundle.js +0 -7
- package/storybook/public/vendors~main.cec0edea.iframe.bundle.js.map +0 -1
- package/tests/factories/modules/matrix/author-box.factory.js +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,129 @@
|
|
|
1
|
+
# [2.1.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.0.5...v2.1.0) (2021-10-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* another style issue ([d76bcb7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d76bcb7045a5c37c481d70b29993db973ec5d88c))
|
|
7
|
+
* faq all tags style ([45bff16](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/45bff16e3f00c2f018b4205f43af8e7a19fba3f6))
|
|
8
|
+
* max height faq ([e3da648](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e3da648f9d46e8039fbf73387a8b54309294f557))
|
|
9
|
+
* style issue ([704a93a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/704a93aa9e99d70316072d931f2ae50a34bd7df9))
|
|
10
|
+
* styling issues overriden on pcsa ([76806dd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/76806dde2ed65d6a2d1915943999e143f26a4906))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Code Refactoring
|
|
14
|
+
|
|
15
|
+
* correction to search keyword ([f8d1ddf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f8d1ddf1307547cbfcfcab570f66cac102354bac))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
* Merge branch 'tm-2509-faq-tags-style' into 'master' ([c87422c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c87422ca5ca9d0fc1cce60b945e5cb0267b27814))
|
|
19
|
+
* Merge branch 'tm-2469-popup-fix' into 'master' ([7afd323](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7afd3234f28854feb49e38d6237660003eacbeb4))
|
|
20
|
+
* Merge branch 'tm-2478-search' into 'master' ([1f78305](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1f783057eb15ffdc8e0c33e50ef3e64182133d5b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* search keyword ([741aefd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/741aefd8921f145815476f3474ab80b043e3e55e))
|
|
26
|
+
|
|
27
|
+
## [2.0.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.0.4...v2.0.5) (2021-10-19)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* add sitemap plugin in the config for all sites ([673f6ee](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/673f6eed413c1a47d8af12b8328f420dc2b36ac2))
|
|
33
|
+
* added close icon and translations ([8b920d2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8b920d20456ab4509df974c5d509ec2605d96a53))
|
|
34
|
+
* added once to stop lazyload ([25a702f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/25a702f67594ca69a36ec914a845dd658471d7b0))
|
|
35
|
+
* added operatorcta and moved all events to one useffect ([f5eeb34](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f5eeb34ac01327239303b79302e584500dde2661))
|
|
36
|
+
* added storybook ([f4b8c51](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f4b8c51bb9dc4439c73c77170757090137948b19))
|
|
37
|
+
* comparison table name ([39aef80](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/39aef80996d28d7927eb5e2afdf77a04bc09be29))
|
|
38
|
+
* deleted author-box ([dcc3cbf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/dcc3cbf26f337bb81c2c1fcb02e182f2bfbb5432))
|
|
39
|
+
* file path changed ([f7e75cd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f7e75cdb99c076878f0571e796c43d4f5ebb9d80))
|
|
40
|
+
* fixed a file ([707855a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/707855a67a2ac5c35792c5fa1427259d21b82efd))
|
|
41
|
+
* fixed files ([b3c5d12](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b3c5d12e1233783c220337d710574284bbda3e26))
|
|
42
|
+
* fixed some files ([fe742b3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fe742b359436f1c57f56ba7685e5c827d90b1d8f))
|
|
43
|
+
* fixed tests and added storybook for popupcard ([6fea540](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6fea540dfb44801d0d22c42dfff3f5f2dd3ba63e))
|
|
44
|
+
* merged master ([995e15b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/995e15bbd5d5841fdb4d764e697a9389c9993328))
|
|
45
|
+
* merged master ([423b98f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/423b98fec269182897e3ac4e5c9c095dd3601daa))
|
|
46
|
+
* merged master ([700efb8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/700efb82cf901a45366e132fc16471615e45e8f8))
|
|
47
|
+
* modify some files ([88eeea1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/88eeea122a4fc9970013332f05b2ed735c95a284))
|
|
48
|
+
* refactored all files and fixed popup scroll ([a1b98b4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a1b98b46f900b0590fae647a3044b7fc25b7928b))
|
|
49
|
+
* removed unused useffect ([bef38ad](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bef38ad57a46ec706d52be0190794279ed0c94fb))
|
|
50
|
+
* replaced cookies with session ([b5d5d88](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b5d5d884b38aa7e56f65e3e5c4c58533ccc72cf4))
|
|
51
|
+
* shadow files fix ([78f1322](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/78f1322ade609838dbbfb95b4eaa76f3978dd83c))
|
|
52
|
+
* shadow files fix ([03244d4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/03244d40eb5b5c8a369af4854d1231e4e72432ca))
|
|
53
|
+
* shadowing structure ([d65ff3e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d65ff3e2c0008887c6a912353339999af202e9cd))
|
|
54
|
+
* some component changes ([8fe90d3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8fe90d3a3b4df595f87d30d9f2d46baf739c701c))
|
|
55
|
+
* some files change ([fabed68](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fabed68852a1739957a2c527024a417f55f5c125))
|
|
56
|
+
* style centered modal ([26338dc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/26338dc7f44fd02ce14f967076ad4ed13f6bee3a))
|
|
57
|
+
* style component changed ([1a73575](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1a73575370e0cc5ecc256be7ae1f95700e3d8265))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Code Refactoring
|
|
61
|
+
|
|
62
|
+
* add error handling for popup ([3f95545](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3f955455038c8dd3ae786f354366579f6b2f8828))
|
|
63
|
+
* emoved mobile row prop and featured from toplist ([c799d01](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c799d01274adb54c88f618cb5a6914583bbf2bd0))
|
|
64
|
+
* fix build err ([8312a41](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8312a41b323fb91dee9dd78254ff12488accffac))
|
|
65
|
+
* remove unneeded code ([d6a322e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d6a322e6a2c279ba8ecc500553319ae8f4758db4))
|
|
66
|
+
* removed commented lines ([7c034dc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7c034dc98e232c947826777ef295d4cc98a9930b))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Config
|
|
70
|
+
|
|
71
|
+
* fixed conflict ([69999a8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/69999a8ab63fca1324c2e78cc9887a36e820fcc7))
|
|
72
|
+
* source to irishluck and tracker env change ([5f884ff](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5f884ff4c36c6e3915424609e324be3145fa6e10))
|
|
73
|
+
* updated core theme version ([e6e7a83](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e6e7a830617ee61433e5562bcb02c2b58cf0ad91))
|
|
74
|
+
* updated core theme version ([258e405](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/258e40510de8cb6996df2eb91ea9ef6b5f1aba39))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
* Merge branch 'tm-2540-matrix-theme-components' into 'master' ([a7271b3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a7271b3b9cbacd0bd85f360605e894d21d27d577))
|
|
78
|
+
* Merge branch 'tm-2491-toplist' into 'master' ([3bb864a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3bb864adfcc7ef8d6d3d45e9e183bc9bf17ce6ee))
|
|
79
|
+
* Merge branch 'tm-2520-sitemap-plugin' into 'master' ([3e0ffbb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3e0ffbba6a2abcdfd5845e8e9885f3f5b3b88ca7))
|
|
80
|
+
* Merge branch 'tm-2469-popup' into 'master' ([f64c132](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f64c132334a4da12c3de3df39f4693e422ff91e7))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### norelease
|
|
84
|
+
|
|
85
|
+
* merge branch 'master' into tm-2469-popup ([7303fe5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7303fe5a385482504edf3dd0cecb171b4fc7b738))
|
|
86
|
+
* resolve conflicts ([430bab1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/430bab128d94ee4da92173d041171d83262c4f35))
|
|
87
|
+
* wip popup ([59cc45b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/59cc45bbb37e7ea97fdb29f936230f23b834f738))
|
|
88
|
+
* wip popup, added event listeners ([25c481d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/25c481da741abd012ec564cd737b2284ad4a0d1f))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Tests
|
|
92
|
+
|
|
93
|
+
* corrected click close modal covering ([032bb0b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/032bb0b1a80c38c95ca53489b4399f05d80de6bf))
|
|
94
|
+
* fixing tests ([0f16d30](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0f16d30da3127a47765288b26e80dfdd7ca2abd9))
|
|
95
|
+
|
|
96
|
+
## [2.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.0.3...v2.0.4) (2021-10-12)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* content image scroll fix ([ae387a1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ae387a13500700ab7222ae7886ecb0a582052bef))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Code Refactoring
|
|
105
|
+
|
|
106
|
+
* lazyload changes to styles ([2cc7e68](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2cc7e68e64ea31fe14590122ec5e9c3ab89481ce))
|
|
107
|
+
* lazyload override ([991897a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/991897a6776442661c9f2a01df86c4b87239e1b6))
|
|
108
|
+
* remove overriden components ([836a1c9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/836a1c9a38ff71aed56247c9dd21b5a57f8290e9))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Config
|
|
112
|
+
|
|
113
|
+
* merge branch master ([0a1c795](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0a1c795f17e389d60db360b291825f2ba341cb3f))
|
|
114
|
+
* update core version ([34261fa](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/34261fae6805e7ffcf99d3e0402b86ea2caab873))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
* Merge branch 'tm-2480-content-fix' into 'master' ([fd44c4f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fd44c4f0e0e8532bb45fe4e74db69d89bf9d28bf))
|
|
118
|
+
* Merge branch 'tm-2496-mobile-footer-links' into 'master' ([954c7e4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/954c7e45f6621285e719fd059758f7a33a34e422))
|
|
119
|
+
|
|
120
|
+
## [2.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.0.2...v2.0.3) (2021-10-11)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Config
|
|
124
|
+
|
|
125
|
+
* release ([9d1aea3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9d1aea346bd96047ef0fd4d85c1e2ef14b4ed922))
|
|
126
|
+
|
|
1
127
|
## [2.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.0.1...v2.0.2) (2021-10-11)
|
|
2
128
|
|
|
3
129
|
|
package/gatsby-config.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
const { getSitemap } = require('./src/helpers/sitemap');
|
|
2
|
+
|
|
1
3
|
const activeEnv = process.env.GATSBY_ACTIVE_ENV || 'development';
|
|
4
|
+
const siteMapExcludes = process.env.SITEMAP_EXCLUDE.split(',') || [];
|
|
2
5
|
|
|
3
6
|
require('dotenv').config({
|
|
4
7
|
path: `.env.${activeEnv}`,
|
|
@@ -22,6 +25,39 @@ module.exports = {
|
|
|
22
25
|
],
|
|
23
26
|
},
|
|
24
27
|
},
|
|
28
|
+
{
|
|
29
|
+
resolve: `gatsby-plugin-sitemap`,
|
|
30
|
+
options: {
|
|
31
|
+
output: `/sitemap.xml`,
|
|
32
|
+
sitemapSize: 5000,
|
|
33
|
+
exclude: siteMapExcludes,
|
|
34
|
+
query: `
|
|
35
|
+
{
|
|
36
|
+
site {
|
|
37
|
+
siteMetadata {
|
|
38
|
+
siteUrl
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
allSitePage {
|
|
42
|
+
edges {
|
|
43
|
+
node {
|
|
44
|
+
path
|
|
45
|
+
context{
|
|
46
|
+
page{
|
|
47
|
+
robot_options{
|
|
48
|
+
page_index
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,
|
|
57
|
+
|
|
58
|
+
serialize: ({ site, allSitePage }) => getSitemap(site, allSitePage),
|
|
59
|
+
},
|
|
60
|
+
},
|
|
25
61
|
`gatsby-plugin-image`,
|
|
26
62
|
`gatsby-plugin-sharp`,
|
|
27
63
|
`gatsby-transformer-sharp`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://storybook-matrix.gigmedia.com/"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"gatsby-core-theme": "^1.
|
|
29
|
+
"gatsby-core-theme": "^1.3.1",
|
|
30
30
|
"babel-preset-gatsby": "^1.3.0",
|
|
31
31
|
"chalk": "^4.1.0",
|
|
32
32
|
"cross-env": "^7.0.2",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
|
|
4
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta';
|
|
5
|
+
import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
|
|
6
|
+
|
|
7
|
+
import styles from './popup-card.module.scss';
|
|
8
|
+
|
|
9
|
+
const PopupCard = ({ item, translations }) => {
|
|
10
|
+
const { logo_url: logoUrl } = item;
|
|
11
|
+
const oneLiner = item?.one_liners?.main?.one_liner;
|
|
12
|
+
const secondLiner = item?.one_liners?.secondary?.one_liner;
|
|
13
|
+
const [one, second] = (oneLiner?.includes('+') && oneLiner?.split('+')) || [
|
|
14
|
+
oneLiner,
|
|
15
|
+
secondLiner,
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div className={styles.popupCard}>
|
|
20
|
+
<div className={styles.wrapper}>
|
|
21
|
+
<div className={styles.imgContainer}>
|
|
22
|
+
<img width={98} height={98} src={imagePrettyUrl(logoUrl)} alt={oneLiner} />
|
|
23
|
+
</div>
|
|
24
|
+
<div className={styles.textContainer}>
|
|
25
|
+
<p className={styles.primaryText}>{one}</p>
|
|
26
|
+
<p className={styles.secondaryText}>{second}</p>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div className={styles.buttonContainer}>
|
|
30
|
+
<OperatorCta
|
|
31
|
+
tracker="popup"
|
|
32
|
+
operator={item}
|
|
33
|
+
translations={translations}
|
|
34
|
+
playText="Play Now"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
PopupCard.propTypes = {
|
|
42
|
+
item: PropTypes.shape({
|
|
43
|
+
links: PropTypes.shape({
|
|
44
|
+
main: PropTypes.string,
|
|
45
|
+
}),
|
|
46
|
+
logo_url: PropTypes.string,
|
|
47
|
+
one_liners: PropTypes.shape({
|
|
48
|
+
main: PropTypes.shape({
|
|
49
|
+
one_liner: PropTypes.string,
|
|
50
|
+
}),
|
|
51
|
+
secondary: PropTypes.shape({
|
|
52
|
+
one_liner: PropTypes.string,
|
|
53
|
+
}),
|
|
54
|
+
}),
|
|
55
|
+
}),
|
|
56
|
+
translations: PropTypes.shape({}),
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export default PopupCard;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.popupCard {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
padding-top: 16px;
|
|
7
|
+
border-top: 1px solid #a5bcf0;
|
|
8
|
+
|
|
9
|
+
@include min(tablet) {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
padding: 16px 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.wrapper {
|
|
15
|
+
height: 100%;
|
|
16
|
+
display: flex;
|
|
17
|
+
|
|
18
|
+
@include max(tablet) {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.imgContainer {
|
|
23
|
+
width: 8rem;
|
|
24
|
+
height: 8rem;
|
|
25
|
+
|
|
26
|
+
@include min(tablet) {
|
|
27
|
+
width: 9.8rem;
|
|
28
|
+
height: 9.8rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> img {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
border-radius: 0.4rem;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.textContainer {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
margin-left: 1.5rem;
|
|
43
|
+
|
|
44
|
+
.primaryText {
|
|
45
|
+
color: #e00028;
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
font-size: 1.4rem;
|
|
48
|
+
line-height: 2.3rem;
|
|
49
|
+
|
|
50
|
+
@include min(tablet) {
|
|
51
|
+
font-size: 2rem;
|
|
52
|
+
line-height: 3rem;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.secondaryText {
|
|
57
|
+
color: #17182f;
|
|
58
|
+
font-weight: 700;
|
|
59
|
+
line-height: 2.3rem;
|
|
60
|
+
font-size: 1.4rem;
|
|
61
|
+
|
|
62
|
+
@include min(tablet) {
|
|
63
|
+
line-height: 3rem;
|
|
64
|
+
font-size: 1.8rem;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.buttonContainer {
|
|
71
|
+
margin-left: 3rem;
|
|
72
|
+
|
|
73
|
+
@include max(mobile) {
|
|
74
|
+
width: 100%;
|
|
75
|
+
margin: 1.6rem 0;
|
|
76
|
+
|
|
77
|
+
a {
|
|
78
|
+
width: 100%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
a {
|
|
83
|
+
border-radius: 4px;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
font-size: 1.8rem;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { singleToplistData } from 'gatsby-core-theme/tests/factories/modules/toplist.factory';
|
|
11
|
+
|
|
12
|
+
import PopupCard from '.';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Matrix-Theme/Atoms/Cards/Popup Card',
|
|
16
|
+
component: PopupCard,
|
|
17
|
+
argTypes: {
|
|
18
|
+
item: {
|
|
19
|
+
name: 'item',
|
|
20
|
+
type: { name: 'object', required: true },
|
|
21
|
+
defaultValue: '',
|
|
22
|
+
description: 'item object',
|
|
23
|
+
table: {
|
|
24
|
+
type: { summary: 'object' },
|
|
25
|
+
defaultValue: { summary: '' },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
translations: {
|
|
29
|
+
name: 'translations',
|
|
30
|
+
type: { name: 'object', required: true },
|
|
31
|
+
defaultValue: '',
|
|
32
|
+
description: 'Translations object',
|
|
33
|
+
table: {
|
|
34
|
+
type: { summary: 'object' },
|
|
35
|
+
defaultValue: { summary: '' },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
description: {
|
|
42
|
+
component: 'A component that displays a single Popup Card',
|
|
43
|
+
},
|
|
44
|
+
page: () => (
|
|
45
|
+
<>
|
|
46
|
+
<Title />
|
|
47
|
+
<Description />
|
|
48
|
+
<Primary />
|
|
49
|
+
<ArgsTable story={PRIMARY_STORY} />
|
|
50
|
+
</>
|
|
51
|
+
),
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const Template = (args) => <PopupCard {...args} />;
|
|
57
|
+
export const Default = Template.bind({});
|
|
58
|
+
Default.args = {
|
|
59
|
+
isStorybook: true,
|
|
60
|
+
item: singleToplistData.items[0].items[0],
|
|
61
|
+
};
|
|
@@ -26,6 +26,17 @@
|
|
|
26
26
|
@include flex-align (center, center);
|
|
27
27
|
margin-right: 0.5rem;
|
|
28
28
|
}
|
|
29
|
+
> div{
|
|
30
|
+
margin: 0;
|
|
31
|
+
margin-right: 2rem;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
font-size: 1.8rem;
|
|
34
|
+
p, h2, h3, h4 {
|
|
35
|
+
margin: 0;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
font-size: 1.8rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
29
40
|
}
|
|
30
41
|
&:hover,
|
|
31
42
|
&:focus {
|
|
@@ -44,21 +55,14 @@
|
|
|
44
55
|
&:after {
|
|
45
56
|
transform: translateY(-50%) rotate(-135deg);
|
|
46
57
|
}
|
|
47
|
-
}
|
|
48
|
-
p {
|
|
49
|
-
margin-right: 2rem;
|
|
50
|
-
}
|
|
58
|
+
}
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
.content {
|
|
54
|
-
@include collapse(0.5s,
|
|
62
|
+
@include collapse(0.5s, 500rem);
|
|
55
63
|
font-size: 1.6rem;
|
|
56
64
|
color: var(--color-20);
|
|
57
65
|
padding: 0;
|
|
58
|
-
|
|
59
|
-
p {
|
|
60
|
-
padding: 1rem 0;
|
|
61
|
-
}
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
|
-
}
|
|
68
|
+
}
|
|
@@ -25,27 +25,27 @@ const InfoGrid = ({
|
|
|
25
25
|
|
|
26
26
|
let volatility = 'Low';
|
|
27
27
|
|
|
28
|
-
if (page
|
|
28
|
+
if (page?.relation?.volatility === 1) {
|
|
29
29
|
volatility = 'Medium';
|
|
30
|
-
} else if (page
|
|
30
|
+
} else if (page?.relation?.volatility === 2) {
|
|
31
31
|
volatility = 'High';
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
let slotType = '';
|
|
35
35
|
|
|
36
|
-
if (page
|
|
36
|
+
if (page?.relation?.game_categories?.length > 0) {
|
|
37
37
|
slotType = page.relation.game_categories[0].name;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
const gridValues = [
|
|
41
|
-
page
|
|
42
|
-
page
|
|
43
|
-
`${page
|
|
41
|
+
page?.relation?.game_provider?.name,
|
|
42
|
+
page?.relation?.launch_date,
|
|
43
|
+
`${page?.relation?.rtp}%`,
|
|
44
44
|
volatility,
|
|
45
|
-
page
|
|
46
|
-
page
|
|
47
|
-
page
|
|
48
|
-
page
|
|
45
|
+
page?.relation?.freespins === 1 ? 'Yes' : 'No',
|
|
46
|
+
page?.relation?.jackpots === 1 ? 'Yes' : 'No',
|
|
47
|
+
page?.relation?.winning_lines,
|
|
48
|
+
page?.relation?.number_of_reels,
|
|
49
49
|
slotType,
|
|
50
50
|
];
|
|
51
51
|
|
|
@@ -14,7 +14,7 @@ import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating';
|
|
|
14
14
|
import SellingPoints from 'gatsby-core-theme/src/components/atoms/selling-points';
|
|
15
15
|
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta';
|
|
16
16
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
17
|
-
import Bonus from '
|
|
17
|
+
import Bonus from 'gatsby-core-theme/src/components/atoms/bonus';
|
|
18
18
|
import styles from './variant-one.module.scss';
|
|
19
19
|
|
|
20
20
|
export default function Row({
|
|
@@ -33,9 +33,7 @@ describe('toplist row component', () => {
|
|
|
33
33
|
expect(getAllByText('name1 Review')[0].closest('a').getAttribute('href')).toEqual('/link1');
|
|
34
34
|
|
|
35
35
|
// CTA
|
|
36
|
-
expect(getByText('Visit').closest('a').getAttribute('href')).toEqual(
|
|
37
|
-
'/tracker_link/shortName1'
|
|
38
|
-
);
|
|
36
|
+
expect(getByText('Visit').closest('a').getAttribute('href')).toEqual('/shortName1');
|
|
39
37
|
});
|
|
40
38
|
|
|
41
39
|
test('render row grid format', () => {
|
|
@@ -64,9 +62,7 @@ describe('toplist row component', () => {
|
|
|
64
62
|
expect(getAllByText('name1 Review')[0].closest('a').getAttribute('href')).toEqual('/link1');
|
|
65
63
|
|
|
66
64
|
// CTA
|
|
67
|
-
expect(getByText('Visit').closest('a').getAttribute('href')).toEqual(
|
|
68
|
-
'/tracker_link/shortName1'
|
|
69
|
-
);
|
|
65
|
+
expect(getByText('Visit').closest('a').getAttribute('href')).toEqual('/shortName1');
|
|
70
66
|
});
|
|
71
67
|
});
|
|
72
68
|
afterEach(() => {
|
|
@@ -8,15 +8,19 @@
|
|
|
8
8
|
background-color: var(--color-7);
|
|
9
9
|
border-radius: 0;
|
|
10
10
|
z-index: 1001;
|
|
11
|
-
display:
|
|
11
|
+
display: flex;
|
|
12
|
+
opacity: 0;
|
|
13
|
+
visibility: hidden;
|
|
14
|
+
transition: all ease-in-out 0.2s;
|
|
12
15
|
|
|
13
16
|
&.storybookStyles {
|
|
14
|
-
display: flex;
|
|
15
17
|
position: absolute;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
@media only screen and (max-width: 767px) {
|
|
19
|
-
|
|
21
|
+
opacity: 1;
|
|
22
|
+
visibility: visible;
|
|
23
|
+
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
> ul {
|
|
@@ -9,7 +9,7 @@ const FooterNavigation = ({ section, isStorybook = false }) => {
|
|
|
9
9
|
const menuArray = getFirstModuleByName(section, 'menu');
|
|
10
10
|
return (
|
|
11
11
|
<div className={`${styles.footerLinks} ${isStorybook && styles.storybookStyles}`}>
|
|
12
|
-
<LinkList showListTitle={false} singleList lists={menuArray} />
|
|
12
|
+
<LinkList showListTitle={false} singleList lists={menuArray} once width={48} height={48} />
|
|
13
13
|
</div>
|
|
14
14
|
);
|
|
15
15
|
};
|