gatsby-matrix-theme 43.0.4 → 44.0.1
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 +46 -0
- package/package.json +2 -2
- package/src/components/atoms/author/socials/index.js +3 -0
- package/src/components/atoms/author/template-two/index.js +10 -6
- package/src/components/atoms/author-card/index.js +1 -1
- package/src/components/atoms/cards/article-card/template-one/index.js +6 -1
- package/src/components/atoms/cards/author/template-one/index.js +6 -4
- package/src/components/atoms/cards/author/template-two/index.js +6 -4
- package/src/components/atoms/cards/comparison-table/table/index.js +22 -9
- package/src/components/atoms/cards/operator-card/template-four/index.js +6 -2
- package/src/components/atoms/cards/operator-card/template-one/index.js +13 -5
- package/src/components/atoms/cards/operator-card/template-three/index.js +6 -2
- package/src/components/atoms/cards/operator-card/template-two/index.js +13 -5
- package/src/components/atoms/cards/popup-card/index.js +7 -3
- package/src/components/atoms/circle-rating/circle-rating.js +2 -1
- package/src/components/atoms/circle-rating/svg-gradient.js +21 -6
- package/src/components/atoms/feedback/template-two/index.js +5 -1
- package/src/components/atoms/header-operator-bannner/index.js +7 -3
- package/src/components/atoms/recommended-operators/index.js +6 -0
- package/src/components/atoms/social-icons/index.js +3 -0
- package/src/components/atoms/statistics-counter/index.js +79 -0
- package/src/components/atoms/statistics-counter/statistics-counter.module.scss +57 -0
- package/src/components/atoms/statistics-counter/statistics-counter.stories.js +60 -0
- package/src/components/atoms/statistics-counter/statistics-counter.test.js +57 -0
- package/src/components/atoms/table/column/index.js +12 -1
- package/src/components/molecules/cookie-modal/index.js +3 -0
- package/src/components/molecules/game-iframe/index.js +5 -1
- package/src/components/molecules/header/variants/author/assets/portrait/index.js +6 -4
- package/src/components/molecules/header/variants/default/template-one/index.js +16 -4
- package/src/components/molecules/header/variants/default/template-one/template-one.module.scss +9 -7
- package/src/components/molecules/header/variants/operator/template-five/index.js +14 -6
- package/src/components/molecules/header/variants/operator/template-four/index.js +7 -3
- package/src/components/molecules/header/variants/operator/template-one-two/index.js +7 -3
- package/src/components/molecules/header/variants/operator/template-three/index.js +7 -3
- package/src/components/molecules/header/variants/payment/template-five/index.js +7 -3
- package/src/components/molecules/header/variants/payment/template-four/index.js +7 -3
- package/src/components/molecules/header/variants/payment/template-one-three/index.js +7 -3
- package/src/components/molecules/header/variants/payment/template-two/index.js +7 -3
- package/src/components/molecules/header/variants/slot/template-one/index.js +12 -4
- package/src/components/molecules/header/variants/slot/template-two/index.js +6 -4
- package/src/components/molecules/operator-exclusive/index.js +8 -4
- package/src/components/molecules/operator-summary/template-one/index.js +11 -2
- package/src/components/molecules/operator-summary/template-three/index.js +1 -1
- package/src/components/molecules/operator-summary/template-two/index.js +5 -1
- package/src/components/molecules/toplist/row/variant-one.js +6 -0
- package/src/constants/statistics-counter.js +53 -0
- package/src/gatsby-core-theme/styles/utils/variables/_main.scss +19 -0
- package/src/helpers/statistics-counter.js +10 -0
- package/src/helpers/statistics-counter.test.js +33 -0
- package/src/images/icons/affiliate-disclaimer.js +10 -1
- package/src/images/icons/contributors.js +3 -0
- package/src/images/icons/countryFlag.js +26 -0
- package/src/images/icons/fact-check.js +3 -0
- package/src/images/icons/review-disclaimer.js +10 -1
- package/src/images/icons/triangle.js +25 -0
- package/src/images/loading.svg +5 -1
- package/src/images/security.svg +4 -3
- package/src/images/verifiedAuthor.svg +5 -4
- package/src/images/verify.svg +11 -10
- package/static/images/logo.svg +2 -2
- package/static/images/security.svg +4 -1
- package/storybook/public/177.d5565ade.iframe.bundle.js +1 -0
- package/storybook/public/{341.c306ae50.iframe.bundle.js → 251.d28bc7da.iframe.bundle.js} +4 -4
- package/storybook/public/{341.c306ae50.iframe.bundle.js.map → 251.d28bc7da.iframe.bundle.js.map} +1 -1
- package/storybook/public/631.e17e9cc4.iframe.bundle.js +1 -0
- package/storybook/public/678.c2ec32e9.iframe.bundle.js +1 -0
- package/storybook/public/778.594a3c7f.iframe.bundle.js +1 -0
- package/storybook/public/909.74e18dad.iframe.bundle.js +1 -0
- package/storybook/public/942.e8dbb060.iframe.bundle.js +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.8fce2273.iframe.bundle.js +1 -0
- package/storybook/public/project.json +1 -1
- package/storybook/public/{runtime~main.1b681f09.iframe.bundle.js → runtime~main.a176b461.iframe.bundle.js} +1 -1
- package/storybook/public/static/media/{bell.1b8a0bac.svg → bell.d8123576.svg} +2 -2
- package/storybook/public/static/media/check-circle.bf637323.svg +6 -0
- package/storybook/public/static/media/check.488c4e6e.svg +4 -0
- package/storybook/public/static/media/clock.696aca89.svg +6 -0
- package/storybook/public/static/media/copyIcon.f81f6579.svg +6 -0
- package/storybook/public/static/media/{logo.7d3e288b.svg → logo.4219f6a5.svg} +2 -2
- package/storybook/public/static/media/{logo.b2fdcd1e.svg → logo.85a94354.svg} +2 -2
- package/storybook/public/static/media/notification-bubble.ac945c7c.svg +5 -0
- package/storybook/public/static/media/verifiedAuthor.a7e3f6b7.svg +6 -0
- package/storybook/public/static/media/verify.d0f80e8a.svg +12 -0
- package/storybook-images/authorship.svg +3 -2
- package/storybook-images/check-circle.svg +5 -4
- package/storybook-images/check.svg +3 -2
- package/storybook-images/clock.svg +4 -4
- package/storybook-images/copyIcon.svg +5 -4
- package/storybook-images/icons/fact-check.js +3 -0
- package/storybook-images/logo.svg +2 -2
- package/storybook-images/security.svg +4 -1
- package/storybook-images/verifiedAuthor.svg +5 -4
- package/storybook-images/verify.svg +11 -10
- package/tests/factories/pages/default.factory.js +37 -1
- package/storybook/public/177.a8e9fc85.iframe.bundle.js +0 -1
- package/storybook/public/420.a736e0a4.iframe.bundle.js +0 -1
- package/storybook/public/631.01156847.iframe.bundle.js +0 -1
- package/storybook/public/678.1d945eb2.iframe.bundle.js +0 -1
- package/storybook/public/778.f7d4bb94.iframe.bundle.js +0 -1
- package/storybook/public/909.7768e2ce.iframe.bundle.js +0 -1
- package/storybook/public/main.ee9aab26.iframe.bundle.js +0 -1
- package/storybook/public/static/media/check-circle.656aad7e.svg +0 -5
- package/storybook/public/static/media/check.5e5ea2ac.svg +0 -3
- package/storybook/public/static/media/clock.916cecc5.svg +0 -6
- package/storybook/public/static/media/copyIcon.a536836b.svg +0 -5
- package/storybook/public/static/media/notification-bubble.8e749777.svg +0 -5
- package/storybook/public/static/media/verifiedAuthor.129f7601.svg +0 -5
- package/storybook/public/static/media/verify.e944570b.svg +0 -11
- /package/storybook/public/{341.c306ae50.iframe.bundle.js.LICENSE.txt → 251.d28bc7da.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
## [44.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v44.0.0...v44.0.1) (2024-06-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Code Refactoring
|
|
5
|
+
|
|
6
|
+
* typo fix ([7effc18](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7effc18a01a6333313c8f125996c8654dc127a3c))
|
|
7
|
+
|
|
8
|
+
# [44.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v43.0.4...v44.0.0) (2024-06-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* conflicts ([552a685](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/552a6856f3fd0074d2eba75d5f1a4e560a439e7b))
|
|
14
|
+
* conflicts ([5a39f70](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5a39f70836411a75f0ae6457d7627525f2c69844))
|
|
15
|
+
* images ([c7428a4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c7428a4ce0fbccb882bea07669b45a0278d77e68))
|
|
16
|
+
* images ([7dec223](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7dec2236e5060f38bda603d6dc8f792b301dc6fe))
|
|
17
|
+
* update theme ([92fb848](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/92fb848bae99dc13cc855f7bc9b6fff4ebecbf8e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Code Refactoring
|
|
21
|
+
|
|
22
|
+
* add border ([2779d6a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2779d6a3da67925396ca5973c6b6bc268618235c))
|
|
23
|
+
* add css vars ([a98cc2a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a98cc2a714fc0df9f91c3fa0e7092d765a133644))
|
|
24
|
+
* add gap ([b6cd5b6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b6cd5b6d7fca18c692c3e5ae7d811b47f1d09fe6))
|
|
25
|
+
* change component to accommodate demosite data ([b2d706f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b2d706f8ac6165673f000b6d0feaab3055d36190))
|
|
26
|
+
* changes to aria labels ([f3c42b5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f3c42b56db4c251e4f2d98168e16711aba47d4e2))
|
|
27
|
+
* changes to statistics component ([9e22b07](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9e22b07cc517b6cb51db44f6a66bcf8ee2581535))
|
|
28
|
+
* changes to stats counter ([d42a86c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d42a86c37675356bef6a5a83e8ab42d2463fe04a))
|
|
29
|
+
* correction to alignment ([ad5ba5d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ad5ba5d5f3b443fa80b4677499d3bc337cde7200))
|
|
30
|
+
* raise start point for larger numbers ([ef5a87d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ef5a87d90c304d6a7f663cc78ad19a58cf1d47b6))
|
|
31
|
+
* rearrange css vars ([77c3f3d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/77c3f3d94f7d8fd003d02236cf5445051931d6ba))
|
|
32
|
+
* remove stats module from matrix ([b387421](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b3874212266a4005e1f4af276d364dda7d0aaa78))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* Merge branch 'tm-4416-aria-labels' into 'master' ([1b388ac](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1b388ac3c3d9ceab08a61c224ce3e08dc0430e89))
|
|
36
|
+
* Merge branch 'tm-4327-stats' into 'master' ([489d90a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/489d90a923d8eea59902b59ac088220dd43071d9))
|
|
37
|
+
* Merge branch 'master' into tm-4327-stats ([572e14a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/572e14a9f71858182d20672ef10d4d24144a3936))
|
|
38
|
+
* Merge branch 'tm-4358-image-resize' into 'master' ([3701730](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3701730c7f3f10c9548a8edf720c99437ed045ff))
|
|
39
|
+
* Merge branch 'master' into tm-4327-stats ([34379ef](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/34379effb92213838cf8f4e3e1dd4a22769c5a9e))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Tests
|
|
43
|
+
|
|
44
|
+
* add tests ([0d24bdc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0d24bdce287ef67213bb5af679adb508300560fd))
|
|
45
|
+
* fix test ([23a16b2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/23a16b25cb94cf4572b21466a8b559dde1a7fe9d))
|
|
46
|
+
|
|
1
47
|
## [43.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v43.0.3...v43.0.4) (2024-06-05)
|
|
2
48
|
|
|
3
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "44.0.1",
|
|
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": "
|
|
28
|
+
"gatsby-core-theme": "33.0.1",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
31
31
|
"prop-types": "15.7.2",
|
|
@@ -17,12 +17,15 @@ export default function Socials({
|
|
|
17
17
|
linkedin: <FaLinkedin title="Linkedin Icon" />,
|
|
18
18
|
twitter: (
|
|
19
19
|
<svg
|
|
20
|
+
role="img"
|
|
21
|
+
aria-labelledby="twitterIcon"
|
|
20
22
|
width="1em"
|
|
21
23
|
height="1em"
|
|
22
24
|
viewBox="0 0 13 12"
|
|
23
25
|
fill="currentcolor"
|
|
24
26
|
xmlns="http://www.w3.org/2000/svg"
|
|
25
27
|
>
|
|
28
|
+
<title id="twitterIcon">Twitter Icon</title>
|
|
26
29
|
<path d="M9.97574 0H11.9181L7.67469 4.84989L12.6667 11.4495H8.75802L5.69659 7.44685L2.19363 11.4495H0.250147L4.78881 6.26203L0 0H4.0079L6.7752 3.65856L9.97574 0ZM9.29408 10.287H10.3703L3.42314 1.1015H2.26822L9.29408 10.287Z" />
|
|
27
30
|
</svg>
|
|
28
31
|
),
|
|
@@ -11,14 +11,16 @@ const AuthorTemplateTwo = ({
|
|
|
11
11
|
authorImage,
|
|
12
12
|
showLinks = true,
|
|
13
13
|
verify = '../../../../images/verifiedAuthor.svg',
|
|
14
|
+
width = '21',
|
|
15
|
+
height = '21',
|
|
14
16
|
}) => (
|
|
15
17
|
<span className={styles.authorImage}>
|
|
16
18
|
{showLinks ? (
|
|
17
19
|
<Link to={authorPath}>
|
|
18
20
|
<LazyImage
|
|
19
|
-
src={imagePrettyUrl(authorImage,
|
|
20
|
-
width={
|
|
21
|
-
height={
|
|
21
|
+
src={imagePrettyUrl(authorImage, width, height)}
|
|
22
|
+
width={width}
|
|
23
|
+
height={height}
|
|
22
24
|
alt={authorName}
|
|
23
25
|
/>
|
|
24
26
|
<LazyImage src={verify} alt="verify" width={10} height={10} />
|
|
@@ -26,9 +28,9 @@ const AuthorTemplateTwo = ({
|
|
|
26
28
|
) : (
|
|
27
29
|
<>
|
|
28
30
|
<LazyImage
|
|
29
|
-
src={imagePrettyUrl(authorImage,
|
|
30
|
-
width={
|
|
31
|
-
height={
|
|
31
|
+
src={imagePrettyUrl(authorImage, width, height)}
|
|
32
|
+
width={width}
|
|
33
|
+
height={height}
|
|
32
34
|
alt={authorName}
|
|
33
35
|
/>
|
|
34
36
|
<LazyImage src={verify} alt="verify" width={10} height={10} />
|
|
@@ -43,6 +45,8 @@ AuthorTemplateTwo.propTypes = {
|
|
|
43
45
|
authorImage: PropTypes.string,
|
|
44
46
|
verify: PropTypes.string,
|
|
45
47
|
showLinks: PropTypes.bool,
|
|
48
|
+
width: PropTypes.string,
|
|
49
|
+
height: PropTypes.string,
|
|
46
50
|
};
|
|
47
51
|
|
|
48
52
|
export default AuthorTemplateTwo;
|
|
@@ -13,7 +13,7 @@ const AuthorCard = ({ author, width = 60, height = 60 }) => {
|
|
|
13
13
|
<div className={styles.authorCard || ''}>
|
|
14
14
|
<div className={styles.img || ''}>
|
|
15
15
|
<LazyImage
|
|
16
|
-
src={imagePrettyUrl(image)}
|
|
16
|
+
src={imagePrettyUrl(image, width, height)}
|
|
17
17
|
alt={getAltText(image_object, image_alt || name)}
|
|
18
18
|
width={width}
|
|
19
19
|
height={height}
|
|
@@ -30,7 +30,12 @@ const ArticleCard = ({
|
|
|
30
30
|
aria-label={`${title} Link`}
|
|
31
31
|
>
|
|
32
32
|
{banner ? (
|
|
33
|
-
<LazyImage
|
|
33
|
+
<LazyImage
|
|
34
|
+
width={width}
|
|
35
|
+
height={height}
|
|
36
|
+
src={imagePrettyUrl(banner, width, height)}
|
|
37
|
+
alt={title}
|
|
38
|
+
/>
|
|
34
39
|
) : (
|
|
35
40
|
<GatsbyImg
|
|
36
41
|
alt={title}
|
|
@@ -8,7 +8,7 @@ import Socials from '../../../author/socials';
|
|
|
8
8
|
import styles from './template-one.module.scss';
|
|
9
9
|
import { imagePrettyUrl, getAltText, translate, textWordsLimit } from '~helpers/getters';
|
|
10
10
|
|
|
11
|
-
export default function TemplateOne({ item }) {
|
|
11
|
+
export default function TemplateOne({ item, width = '72', height = '72' }) {
|
|
12
12
|
const author = item.relation;
|
|
13
13
|
const { translations } = useContext(Context);
|
|
14
14
|
|
|
@@ -18,10 +18,10 @@ export default function TemplateOne({ item }) {
|
|
|
18
18
|
{author.pages_count} {translate(translations, 'posts', 'Posts')}
|
|
19
19
|
</span>
|
|
20
20
|
<LazyImage
|
|
21
|
-
src={imagePrettyUrl(author.image_object.filename,
|
|
21
|
+
src={imagePrettyUrl(author.image_object.filename, width, height)}
|
|
22
22
|
alt={getAltText(author.image_object, author.image_alt || author.name)}
|
|
23
|
-
width={
|
|
24
|
-
height={
|
|
23
|
+
width={width}
|
|
24
|
+
height={height}
|
|
25
25
|
/>
|
|
26
26
|
<span className={styles?.title || ''}>{author.author_title}</span>
|
|
27
27
|
<span className={styles?.name || ''}>{author.name}</span>
|
|
@@ -54,4 +54,6 @@ TemplateOne.propTypes = {
|
|
|
54
54
|
}),
|
|
55
55
|
}),
|
|
56
56
|
}),
|
|
57
|
+
width: PropTypes.string,
|
|
58
|
+
height: PropTypes.string,
|
|
57
59
|
};
|
|
@@ -7,17 +7,17 @@ import Socials from '../../../author/socials';
|
|
|
7
7
|
import styles from './template-two.module.scss';
|
|
8
8
|
import { imagePrettyUrl, getAltText, translate } from '~helpers/getters';
|
|
9
9
|
|
|
10
|
-
export default function TemplateTwo({ item }) {
|
|
10
|
+
export default function TemplateTwo({ item, width = '80', height = '80' }) {
|
|
11
11
|
const author = item.relation;
|
|
12
12
|
const { translations } = useContext(Context);
|
|
13
13
|
|
|
14
14
|
return (
|
|
15
15
|
<div className={styles.container}>
|
|
16
16
|
<LazyImage
|
|
17
|
-
src={imagePrettyUrl(author.image_object.filename,
|
|
17
|
+
src={imagePrettyUrl(author.image_object.filename, width, height)}
|
|
18
18
|
alt={getAltText(author.image_object, author.image_alt || author.name)}
|
|
19
|
-
width={
|
|
20
|
-
height={
|
|
19
|
+
width={width}
|
|
20
|
+
height={height}
|
|
21
21
|
/>
|
|
22
22
|
<div className={styles.nameContainer}>
|
|
23
23
|
<span className={styles.title}>{author.author_title}</span>
|
|
@@ -48,4 +48,6 @@ TemplateTwo.propTypes = {
|
|
|
48
48
|
}),
|
|
49
49
|
}),
|
|
50
50
|
}),
|
|
51
|
+
width: PropTypes.string,
|
|
52
|
+
height: PropTypes.string,
|
|
51
53
|
};
|
|
@@ -67,6 +67,12 @@ export default function ComparisonTable({
|
|
|
67
67
|
ctaKey = 'play_now',
|
|
68
68
|
type,
|
|
69
69
|
tempate,
|
|
70
|
+
operatorWidth = '89',
|
|
71
|
+
operatorHeight = '89',
|
|
72
|
+
paymentWidth = '72',
|
|
73
|
+
paymentHeight = '32',
|
|
74
|
+
licenseWidth = '72',
|
|
75
|
+
licenseHeight = '32',
|
|
70
76
|
showRoundedRating = false,
|
|
71
77
|
}) {
|
|
72
78
|
const { translations } = useContext(Context) || {};
|
|
@@ -87,9 +93,9 @@ export default function ComparisonTable({
|
|
|
87
93
|
<td key={key} className={styles.casinoName}>
|
|
88
94
|
{imageObject?.filename ? (
|
|
89
95
|
<LazyImg
|
|
90
|
-
src={imagePrettyUrl(imageObject?.filename,
|
|
91
|
-
height={
|
|
92
|
-
width={
|
|
96
|
+
src={imagePrettyUrl(imageObject?.filename, operatorWidth, operatorHeight)}
|
|
97
|
+
height={operatorHeight}
|
|
98
|
+
width={operatorWidth}
|
|
93
99
|
alt={itemName}
|
|
94
100
|
/>
|
|
95
101
|
) : (
|
|
@@ -150,6 +156,7 @@ export default function ComparisonTable({
|
|
|
150
156
|
);
|
|
151
157
|
case 'bonus':
|
|
152
158
|
return (
|
|
159
|
+
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
153
160
|
<td key={key} className={styles.bonus}>
|
|
154
161
|
<Bonus module="comparison_table" tracker="main" item={item?.relation} />
|
|
155
162
|
</td>
|
|
@@ -182,9 +189,9 @@ export default function ComparisonTable({
|
|
|
182
189
|
<Link to={deposit?.path}>
|
|
183
190
|
<LazyImg
|
|
184
191
|
key={`${key}-${deposit.name}`}
|
|
185
|
-
src={imagePrettyUrl(logo,
|
|
186
|
-
width={
|
|
187
|
-
height={
|
|
192
|
+
src={imagePrettyUrl(logo, paymentWidth, paymentHeight)}
|
|
193
|
+
width={paymentWidth}
|
|
194
|
+
height={paymentHeight}
|
|
188
195
|
alt={deposit.name}
|
|
189
196
|
/>
|
|
190
197
|
</Link>
|
|
@@ -229,9 +236,9 @@ export default function ComparisonTable({
|
|
|
229
236
|
return (
|
|
230
237
|
<LazyImg
|
|
231
238
|
key={license.name}
|
|
232
|
-
src={imagePrettyUrl(license?.logo_filename,
|
|
233
|
-
height={
|
|
234
|
-
width={
|
|
239
|
+
src={imagePrettyUrl(license?.logo_filename, licenseWidth, licenseHeight)}
|
|
240
|
+
height={licenseHeight}
|
|
241
|
+
width={licenseWidth}
|
|
235
242
|
alt={license.name}
|
|
236
243
|
/>
|
|
237
244
|
);
|
|
@@ -275,4 +282,10 @@ export default function ComparisonTable({
|
|
|
275
282
|
ComparisonTable.propTypes = {
|
|
276
283
|
items: PropTypes.arrayOf(PropTypes.object),
|
|
277
284
|
showRoundedRating: PropTypes.bool,
|
|
285
|
+
operatorWidth: PropTypes.string,
|
|
286
|
+
operatorHeight: PropTypes.string,
|
|
287
|
+
paymentWidth: PropTypes.string,
|
|
288
|
+
paymentHeight: PropTypes.string,
|
|
289
|
+
licenseWidth: PropTypes.string,
|
|
290
|
+
licenseHeight: PropTypes.string,
|
|
278
291
|
};
|
|
@@ -20,6 +20,8 @@ const TemplateFour = ({
|
|
|
20
20
|
authorTemplateTwo = true,
|
|
21
21
|
verifyIcon = '../../../images/verify.svg',
|
|
22
22
|
showBonusForAll = false,
|
|
23
|
+
width = '88',
|
|
24
|
+
height = '88',
|
|
23
25
|
BonusTemplate = BonusTemplateDefault,
|
|
24
26
|
}) => {
|
|
25
27
|
const { ribbons } = item?.relation;
|
|
@@ -38,8 +40,8 @@ const TemplateFour = ({
|
|
|
38
40
|
item={item}
|
|
39
41
|
showReviewLink={false}
|
|
40
42
|
costumeStyle={styles.operatorDetails}
|
|
41
|
-
imageWidth={
|
|
42
|
-
imageHeight={
|
|
43
|
+
imageWidth={width}
|
|
44
|
+
imageHeight={height}
|
|
43
45
|
ribbons={ribbons}
|
|
44
46
|
showRibbon={showRibbon}
|
|
45
47
|
icon={verifyIcon}
|
|
@@ -125,6 +127,8 @@ TemplateFour.propTypes = {
|
|
|
125
127
|
showRatingDecimal: PropTypes.bool,
|
|
126
128
|
showBonusForAll: PropTypes.bool,
|
|
127
129
|
BonusTemplate: PropTypes.string,
|
|
130
|
+
width: PropTypes.string,
|
|
131
|
+
height: PropTypes.string,
|
|
128
132
|
};
|
|
129
133
|
|
|
130
134
|
export default TemplateFour;
|
|
@@ -34,6 +34,10 @@ const TemplateOne = ({
|
|
|
34
34
|
showBonusForAll = false,
|
|
35
35
|
verifyIcon = '../../../images/verify.svg',
|
|
36
36
|
showOperatorCta = true,
|
|
37
|
+
operatorLogoWidth = '88',
|
|
38
|
+
operatorLogoHeight = '88',
|
|
39
|
+
paymentLogoWidth = '54',
|
|
40
|
+
paymentLogoHeight = '36',
|
|
37
41
|
BonusTemplate = Bonus,
|
|
38
42
|
}) => {
|
|
39
43
|
const ribbons = item?.relation?.ribbons || [];
|
|
@@ -54,8 +58,8 @@ const TemplateOne = ({
|
|
|
54
58
|
item={item}
|
|
55
59
|
showReviewLink={false}
|
|
56
60
|
costumeStyle={styles.operatorDetails}
|
|
57
|
-
imageWidth={
|
|
58
|
-
imageHeight={
|
|
61
|
+
imageWidth={operatorLogoWidth}
|
|
62
|
+
imageHeight={operatorLogoHeight}
|
|
59
63
|
ribbons={ribbons}
|
|
60
64
|
showRibbon={showRibbon}
|
|
61
65
|
icon={verifyIcon}
|
|
@@ -130,9 +134,9 @@ const TemplateOne = ({
|
|
|
130
134
|
<Link to={deposit?.path}>
|
|
131
135
|
<LazyImage
|
|
132
136
|
key={`${deposit.id}-${deposit.name}`}
|
|
133
|
-
src={imagePrettyUrl(logo,
|
|
134
|
-
width={
|
|
135
|
-
height={
|
|
137
|
+
src={imagePrettyUrl(logo, paymentLogoWidth, paymentLogoHeight)}
|
|
138
|
+
width={paymentLogoWidth}
|
|
139
|
+
height={paymentLogoHeight}
|
|
136
140
|
alt={deposit.name}
|
|
137
141
|
/>
|
|
138
142
|
</Link>
|
|
@@ -202,6 +206,10 @@ TemplateOne.propTypes = {
|
|
|
202
206
|
showRatingDecimal: PropTypes.bool,
|
|
203
207
|
BonusTemplate: PropTypes.string,
|
|
204
208
|
showOperatorCta: PropTypes.bool,
|
|
209
|
+
operatorLogoWidth: PropTypes.string,
|
|
210
|
+
operatorLogoHeight: PropTypes.string,
|
|
211
|
+
paymentLogoWidth: PropTypes.string,
|
|
212
|
+
paymentLogoHeight: PropTypes.string,
|
|
205
213
|
};
|
|
206
214
|
|
|
207
215
|
export default TemplateOne;
|
|
@@ -24,6 +24,8 @@ const TemplateThree = ({
|
|
|
24
24
|
hasVariableComponent = false,
|
|
25
25
|
showBonusForAll = false,
|
|
26
26
|
showOperatorCta = true,
|
|
27
|
+
operatorLogoWidth = '88',
|
|
28
|
+
operatorLogoHeight = '88',
|
|
27
29
|
BonusTemplate = BonusTemplateDefault,
|
|
28
30
|
}) => {
|
|
29
31
|
const { ribbons } = item?.relation;
|
|
@@ -42,8 +44,8 @@ const TemplateThree = ({
|
|
|
42
44
|
item={item}
|
|
43
45
|
showReviewLink={false}
|
|
44
46
|
costumeStyle={styles.operatorDetails}
|
|
45
|
-
imageWidth={
|
|
46
|
-
imageHeight={
|
|
47
|
+
imageWidth={operatorLogoWidth}
|
|
48
|
+
imageHeight={operatorLogoHeight}
|
|
47
49
|
ribbons={ribbons}
|
|
48
50
|
showRibbon={showRibbon}
|
|
49
51
|
icon={verifyIcon}
|
|
@@ -148,6 +150,8 @@ TemplateThree.propTypes = {
|
|
|
148
150
|
showBonusForAll: PropTypes.bool,
|
|
149
151
|
BonusTemplate: PropTypes.string,
|
|
150
152
|
showOperatorCta: PropTypes.bool,
|
|
153
|
+
operatorLogoWidth: PropTypes.string,
|
|
154
|
+
operatorLogoHeight: PropTypes.string,
|
|
151
155
|
};
|
|
152
156
|
|
|
153
157
|
export default TemplateThree;
|
|
@@ -28,6 +28,10 @@ const TemplateTwo = ({
|
|
|
28
28
|
hasVariableComponent = false,
|
|
29
29
|
verifyIcon = '../../../images/verify.svg',
|
|
30
30
|
showBonusForAll = false,
|
|
31
|
+
operatorLogoWidth = '88',
|
|
32
|
+
operatorLogoHeight = '88',
|
|
33
|
+
width = '54',
|
|
34
|
+
height = '36',
|
|
31
35
|
BonusTemplate = BonusTemplateDefault,
|
|
32
36
|
}) => {
|
|
33
37
|
const ribbons = item?.relation?.ribbons || [];
|
|
@@ -48,8 +52,8 @@ const TemplateTwo = ({
|
|
|
48
52
|
item={item}
|
|
49
53
|
showReviewLink={false}
|
|
50
54
|
costumeStyle={styles.operatorDetails}
|
|
51
|
-
imageWidth={
|
|
52
|
-
imageHeight={
|
|
55
|
+
imageWidth={operatorLogoWidth}
|
|
56
|
+
imageHeight={operatorLogoHeight}
|
|
53
57
|
ribbons={ribbons}
|
|
54
58
|
showRibbon={showRibbon}
|
|
55
59
|
contentRibbon={contentRibbon}
|
|
@@ -103,9 +107,9 @@ const TemplateTwo = ({
|
|
|
103
107
|
<Link to={deposit?.path}>
|
|
104
108
|
<LazyImage
|
|
105
109
|
key={`${deposit.id}-${deposit.name}`}
|
|
106
|
-
src={imagePrettyUrl(logo,
|
|
107
|
-
width={
|
|
108
|
-
height={
|
|
110
|
+
src={imagePrettyUrl(logo, width, height)}
|
|
111
|
+
width={width}
|
|
112
|
+
height={height}
|
|
109
113
|
alt={deposit.name}
|
|
110
114
|
/>
|
|
111
115
|
</Link>
|
|
@@ -181,6 +185,10 @@ TemplateTwo.propTypes = {
|
|
|
181
185
|
contentRibbon: PropTypes.bool,
|
|
182
186
|
showBonusForAll: PropTypes.bool,
|
|
183
187
|
BonusTemplate: PropTypes.string,
|
|
188
|
+
width: PropTypes.string,
|
|
189
|
+
height: PropTypes.string,
|
|
190
|
+
operatorLogoWidth: PropTypes.string,
|
|
191
|
+
operatorLogoHeight: PropTypes.string,
|
|
184
192
|
};
|
|
185
193
|
|
|
186
194
|
export default TemplateTwo;
|
|
@@ -22,6 +22,8 @@ const PopupCard = ({
|
|
|
22
22
|
buttonType = 'primary',
|
|
23
23
|
template,
|
|
24
24
|
showRoundedRating = false,
|
|
25
|
+
width = '98',
|
|
26
|
+
height = '98',
|
|
25
27
|
}) => {
|
|
26
28
|
const operatorName = item.name;
|
|
27
29
|
const oneLiner = item?.one_liners?.main?.one_liner;
|
|
@@ -32,10 +34,10 @@ const PopupCard = ({
|
|
|
32
34
|
<div className={styles?.popupCard || ''}>
|
|
33
35
|
<div className={styles?.imgContainer || ''}>
|
|
34
36
|
<LazyImage
|
|
35
|
-
src={imagePrettyUrl(imageObject?.filename || item?.logo_url,
|
|
37
|
+
src={imagePrettyUrl(imageObject?.filename || item?.logo_url, width, height)}
|
|
36
38
|
alt={getAltText(imageObject, oneLiner)}
|
|
37
|
-
width={
|
|
38
|
-
height={
|
|
39
|
+
width={height}
|
|
40
|
+
height={width}
|
|
39
41
|
/>
|
|
40
42
|
{showRating && (
|
|
41
43
|
<StarRating numOfStars={5} rating={item?.rating} showRoundedRating={showRoundedRating} />
|
|
@@ -118,6 +120,8 @@ PopupCard.propTypes = {
|
|
|
118
120
|
buttonSize: PropTypes.string,
|
|
119
121
|
buttonType: PropTypes.string,
|
|
120
122
|
showRoundedRating: PropTypes.bool,
|
|
123
|
+
width: PropTypes.string,
|
|
124
|
+
height: PropTypes.string,
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
export default PopupCard;
|
|
@@ -8,7 +8,8 @@ const getCircleSection = (radius, section) =>
|
|
|
8
8
|
Math.floor(getCircumference(radius) - section * (getCircumference(radius) / 5));
|
|
9
9
|
|
|
10
10
|
const CircleRating = ({ rating, radius, strokeWidth, gradientId, backgroundColor }) => (
|
|
11
|
-
<svg xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<svg role="img" aria-labelledby="circleRatingIcon" xmlns="http://www.w3.org/2000/svg">
|
|
12
|
+
<title id="circleRatingIcon">Circle Rating icon</title>
|
|
12
13
|
<circle
|
|
13
14
|
cx={radius + 10}
|
|
14
15
|
cy={radius + 10}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
|
|
3
4
|
// Call once to create gradient, then use in your SVG's
|
|
4
5
|
const SvgGradient = ({ gradientId, startGradientColor, endGradientColor }) => (
|
|
5
|
-
<svg
|
|
6
|
+
<svg
|
|
7
|
+
role="img"
|
|
8
|
+
aria-labelledby="svgGradient"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
className="invisible"
|
|
11
|
+
width="0"
|
|
12
|
+
height="0"
|
|
13
|
+
>
|
|
14
|
+
<title id="svgGradient">SVG Gradient</title>
|
|
6
15
|
<defs>
|
|
7
16
|
<linearGradient id={gradientId} x1="0%" y1="0%" x2="100%" y2="100%">
|
|
8
17
|
<stop stopColor={startGradientColor} offset="25%" />
|
|
@@ -10,12 +19,18 @@ const SvgGradient = ({ gradientId, startGradientColor, endGradientColor }) => (
|
|
|
10
19
|
</linearGradient>
|
|
11
20
|
</defs>
|
|
12
21
|
</svg>
|
|
13
|
-
)
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
SvgGradient.propTypes = {
|
|
25
|
+
gradientId: PropTypes.string,
|
|
26
|
+
startGradientColor: PropTypes.string,
|
|
27
|
+
endGradientColor: PropTypes.string,
|
|
28
|
+
};
|
|
14
29
|
|
|
15
30
|
SvgGradient.defaultProps = {
|
|
16
31
|
gradientId: 'diagonal-gradient',
|
|
17
32
|
startGradientColor: '#4ecdc4',
|
|
18
|
-
endGradientColor: '#1a535c'
|
|
19
|
-
}
|
|
33
|
+
endGradientColor: '#1a535c',
|
|
34
|
+
};
|
|
20
35
|
|
|
21
|
-
export default SvgGradient
|
|
36
|
+
export default SvgGradient;
|
|
@@ -18,6 +18,8 @@ const FeedBack = ({
|
|
|
18
18
|
falseVotes,
|
|
19
19
|
contactUs = '/contact-us',
|
|
20
20
|
operatorImg,
|
|
21
|
+
width = '80',
|
|
22
|
+
height = '80',
|
|
21
23
|
}) => {
|
|
22
24
|
const { translations } = useContext(Context) || {};
|
|
23
25
|
const [voted, setVote] = useState(null);
|
|
@@ -118,7 +120,7 @@ const FeedBack = ({
|
|
|
118
120
|
|
|
119
121
|
return (
|
|
120
122
|
<div className={styles?.feedbackBox || ''}>
|
|
121
|
-
<LazyImage src={imagePrettyUrl(operatorImg)} />
|
|
123
|
+
<LazyImage src={imagePrettyUrl(operatorImg, width, height)} width={width} height={height} />
|
|
122
124
|
{voted === null && (
|
|
123
125
|
<span className={styles.title}>
|
|
124
126
|
{translate(
|
|
@@ -142,6 +144,8 @@ FeedBack.propTypes = {
|
|
|
142
144
|
falseVotes: PropTypes.number,
|
|
143
145
|
contactUs: PropTypes.string,
|
|
144
146
|
operatorImg: PropTypes.string,
|
|
147
|
+
width: PropTypes.string,
|
|
148
|
+
height: PropTypes.string,
|
|
145
149
|
};
|
|
146
150
|
|
|
147
151
|
export default FeedBack;
|
|
@@ -13,6 +13,8 @@ const HeaderOperatorBaner = ({
|
|
|
13
13
|
buttonType = 'primary',
|
|
14
14
|
template,
|
|
15
15
|
module = 'header_operator',
|
|
16
|
+
width = '64',
|
|
17
|
+
height = '64',
|
|
16
18
|
}) => {
|
|
17
19
|
const { translations } = useContext(Context) || {};
|
|
18
20
|
|
|
@@ -46,9 +48,9 @@ const HeaderOperatorBaner = ({
|
|
|
46
48
|
{logo?.filename && (
|
|
47
49
|
<LazyImage
|
|
48
50
|
loading="eager"
|
|
49
|
-
src={imagePrettyUrl(logo?.filename,
|
|
50
|
-
width={
|
|
51
|
-
height={
|
|
51
|
+
src={imagePrettyUrl(logo?.filename, width, height)}
|
|
52
|
+
width={width}
|
|
53
|
+
height={height}
|
|
52
54
|
alt={getAltText(logo, operator?.name)}
|
|
53
55
|
/>
|
|
54
56
|
)}
|
|
@@ -74,6 +76,8 @@ HeaderOperatorBaner.propTypes = {
|
|
|
74
76
|
template: PropTypes.string,
|
|
75
77
|
buttonType: PropTypes.string,
|
|
76
78
|
module: PropTypes.string,
|
|
79
|
+
width: PropTypes.string,
|
|
80
|
+
height: PropTypes.string,
|
|
77
81
|
};
|
|
78
82
|
|
|
79
83
|
export default HeaderOperatorBaner;
|
|
@@ -18,6 +18,8 @@ const RecommendedOperators = ({
|
|
|
18
18
|
title = 'Recommended Casinos:',
|
|
19
19
|
buttonType = 'primary',
|
|
20
20
|
operators,
|
|
21
|
+
operatorLogoWidth,
|
|
22
|
+
operatorLogoHeight,
|
|
21
23
|
}) => (
|
|
22
24
|
<div className={styles.reccommendedCasinos}>
|
|
23
25
|
<h3>{title}</h3>
|
|
@@ -33,6 +35,8 @@ const RecommendedOperators = ({
|
|
|
33
35
|
showReviewLink={false}
|
|
34
36
|
costumeStyle={styles.operatorDetails}
|
|
35
37
|
module="wagering_calculator"
|
|
38
|
+
imageWidth={operatorLogoWidth}
|
|
39
|
+
imageHeight={operatorLogoHeight}
|
|
36
40
|
/>
|
|
37
41
|
<div className={styles.operatorBonus}>
|
|
38
42
|
<PrettyLink
|
|
@@ -86,4 +90,6 @@ RecommendedOperators.propTypes = {
|
|
|
86
90
|
name: PropTypes.string,
|
|
87
91
|
}),
|
|
88
92
|
]),
|
|
93
|
+
operatorLogoWidth: PropTypes.string,
|
|
94
|
+
operatorLogoHeight: PropTypes.string,
|
|
89
95
|
};
|
|
@@ -18,12 +18,15 @@ const SocialIcons = ({
|
|
|
18
18
|
facebook: <FaFacebookSquare title="Facebook Icon" />,
|
|
19
19
|
twitter: (
|
|
20
20
|
<svg
|
|
21
|
+
role="img"
|
|
22
|
+
aria-labelledby="twitterIcon"
|
|
21
23
|
width="1em"
|
|
22
24
|
height="1em"
|
|
23
25
|
viewBox="0 0 13 12"
|
|
24
26
|
fill="currentcolor"
|
|
25
27
|
xmlns="http://www.w3.org/2000/svg"
|
|
26
28
|
>
|
|
29
|
+
<title id="twitterIcon">Twitter Icon</title>
|
|
27
30
|
<path d="M9.97574 0H11.9181L7.67469 4.84989L12.6667 11.4495H8.75802L5.69659 7.44685L2.19363 11.4495H0.250147L4.78881 6.26203L0 0H4.0079L6.7752 3.65856L9.97574 0ZM9.29408 10.287H10.3703L3.42314 1.1015H2.26822L9.29408 10.287Z" />
|
|
28
31
|
</svg>
|
|
29
32
|
),
|