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
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendors~main.aac219e4.iframe.bundle.js","sources":[],"mappings":";;;;;A","sourceRoot":""}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
max-width: var(--main-container-max);
|
|
3
|
-
margin: 0 auto;
|
|
4
|
-
padding: 1.6rem;
|
|
5
|
-
@include flex-direction(column);
|
|
6
|
-
.innerContainer {
|
|
7
|
-
background-color: var(--color-9);
|
|
8
|
-
padding: 1.6rem;
|
|
9
|
-
border-radius: var(--border-radius);
|
|
10
|
-
.information {
|
|
11
|
-
@include flex-align(center, center);
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
img {
|
|
14
|
-
width: 15rem;
|
|
15
|
-
height: 15rem;
|
|
16
|
-
border-radius: 50%;
|
|
17
|
-
}
|
|
18
|
-
.name {
|
|
19
|
-
margin: 3rem 0 .5rem 0;
|
|
20
|
-
}
|
|
21
|
-
.title {
|
|
22
|
-
margin-bottom: 2rem;
|
|
23
|
-
font-weight: bold;
|
|
24
|
-
color: var(--color-3);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.description {
|
|
28
|
-
@include flex-align(center, center);
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
.links {
|
|
31
|
-
@include flex-align(center, center);
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
.contactLinks {
|
|
34
|
-
color: var(--text-link-color);
|
|
35
|
-
order: 2;
|
|
36
|
-
a {
|
|
37
|
-
padding: 0 .5rem;
|
|
38
|
-
line-height: 1.5rem;
|
|
39
|
-
&:hover {
|
|
40
|
-
text-decoration: underline;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
a:not(:last-child) {
|
|
44
|
-
border-right: 1px solid var(--text-link-color);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.socialIcons {
|
|
48
|
-
order: 3;
|
|
49
|
-
svg {
|
|
50
|
-
margin: 0 .3rem;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.biography {
|
|
54
|
-
padding-top: 2rem;
|
|
55
|
-
text-align: left;
|
|
56
|
-
color: var(--color-3);
|
|
57
|
-
order: 4;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
.button {
|
|
61
|
-
border: 2px solid var(--color-3);
|
|
62
|
-
padding: .8rem 3rem;
|
|
63
|
-
color: var(--color-3);
|
|
64
|
-
border-radius: .5rem;
|
|
65
|
-
font-weight: bold;
|
|
66
|
-
margin-top: 2rem;
|
|
67
|
-
&:hover {
|
|
68
|
-
text-decoration: none;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@include min(tablet) {
|
|
76
|
-
.container {
|
|
77
|
-
padding: 1.6rem 2.4rem;
|
|
78
|
-
.innerContainer {
|
|
79
|
-
display: grid;
|
|
80
|
-
grid-template-columns: 1fr 3fr;
|
|
81
|
-
grid-column-gap: 2rem;
|
|
82
|
-
.description {
|
|
83
|
-
.links {
|
|
84
|
-
.biography {
|
|
85
|
-
padding: 0 0 2rem 0;
|
|
86
|
-
order: 1;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
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
|
-
|
|
11
|
-
import AuthorBox from '.';
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
title: 'Matrix-Theme/Atoms/Author Box',
|
|
15
|
-
component: AuthorBox,
|
|
16
|
-
argTypes: {
|
|
17
|
-
author: {
|
|
18
|
-
name: 'author',
|
|
19
|
-
type: { name: 'object', required: false },
|
|
20
|
-
defaultValue: null,
|
|
21
|
-
description: 'The author object.',
|
|
22
|
-
},
|
|
23
|
-
translations: {
|
|
24
|
-
name: 'translations',
|
|
25
|
-
type: { name: 'object', required: false },
|
|
26
|
-
defaultValue: null,
|
|
27
|
-
description: 'The translations object',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
parameters: {
|
|
31
|
-
docs: {
|
|
32
|
-
description: {
|
|
33
|
-
component: 'Author box component',
|
|
34
|
-
},
|
|
35
|
-
page: () => (
|
|
36
|
-
<>
|
|
37
|
-
<Title />
|
|
38
|
-
<Description />
|
|
39
|
-
<Primary />
|
|
40
|
-
<ArgsTable story={PRIMARY_STORY} />
|
|
41
|
-
</>
|
|
42
|
-
),
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const Template = (args) => <AuthorBox {...args} />;
|
|
48
|
-
|
|
49
|
-
export const Default = Template.bind({});
|
|
50
|
-
Default.args = {
|
|
51
|
-
author: {
|
|
52
|
-
image_object: {
|
|
53
|
-
url: 'https://assets-srv.s3.eu-west-1.amazonaws.com/2020-09-25-15-01-46-imagesjpeg-191264.png',
|
|
54
|
-
width: '150',
|
|
55
|
-
height: '150',
|
|
56
|
-
},
|
|
57
|
-
name: 'Ida Moen Olsen',
|
|
58
|
-
author_title: 'Online Casino Specialist',
|
|
59
|
-
email_address: 'ida@gig.com',
|
|
60
|
-
personal_website: 'https://www.irishluck.ie',
|
|
61
|
-
additional_url: 'https://www.irishluck.ie',
|
|
62
|
-
facebook_profile: 'https://www.irishluck.ie',
|
|
63
|
-
instagram_profile: 'https://www.irishluck.ie',
|
|
64
|
-
linkedin_profile: 'https://www.irishluck.ie',
|
|
65
|
-
biography:
|
|
66
|
-
"The author's biography goes here. This author is cool and she likes writing articles. Something else about Irishluck and how this author has experience.",
|
|
67
|
-
profile_page_path: '/',
|
|
68
|
-
},
|
|
69
|
-
translations: {
|
|
70
|
-
read_more: 'Les mer',
|
|
71
|
-
},
|
|
72
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, cleanup } from '@testing-library/react';
|
|
3
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
4
|
-
|
|
5
|
-
import getPageData from 'gatsby-core-theme/tests/factories/pages/default.factory';
|
|
6
|
-
import { authorObject } from '../../../../tests/factories/modules/matrix/author-box.factory';
|
|
7
|
-
import AuthorBox from '.';
|
|
8
|
-
|
|
9
|
-
describe('author box component', () => {
|
|
10
|
-
test('render', () => {
|
|
11
|
-
const page = getPageData;
|
|
12
|
-
const author = authorObject;
|
|
13
|
-
const { container, getByText } = render(
|
|
14
|
-
<AuthorBox author={author} translations={page.translations} />
|
|
15
|
-
);
|
|
16
|
-
expect(container).toBeTruthy();
|
|
17
|
-
// Logo
|
|
18
|
-
expect(container.querySelector('img')).toBeFalsy();
|
|
19
|
-
expect(container.querySelectorAll('div.lazyload-placeholder')).toHaveLength(1);
|
|
20
|
-
// Name
|
|
21
|
-
expect(getByText('Ida Moen Olsen')).toBeTruthy();
|
|
22
|
-
// Title
|
|
23
|
-
expect(getByText('Casino Specialist')).toBeTruthy();
|
|
24
|
-
// Email, website, additional url
|
|
25
|
-
expect(container.querySelectorAll('.contactLinks a')).toBeTruthy();
|
|
26
|
-
// Facebook, Instagram, LinkedIn
|
|
27
|
-
expect(container.querySelectorAll('.socialIcons a')).toBeTruthy();
|
|
28
|
-
// Biography
|
|
29
|
-
expect(getByText('Here goes the biography of the author.')).toBeTruthy();
|
|
30
|
-
// CTA
|
|
31
|
-
expect(getByText('Read More')).toBeTruthy();
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
afterEach(() => {
|
|
35
|
-
cleanup();
|
|
36
|
-
});
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FaInstagram, FaFacebookSquare, FaTwitter, FaLinkedin } from 'react-icons/fa';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
5
|
-
import styles from './author-box.module.scss';
|
|
6
|
-
import LazyImage from '~hooks/lazy-image';
|
|
7
|
-
import Link from '~hooks/link';
|
|
8
|
-
|
|
9
|
-
export default function AuthorBox({ author, translations }) {
|
|
10
|
-
const socialLinks = [
|
|
11
|
-
{ link: author.facebook_profile, icon: <FaFacebookSquare /> },
|
|
12
|
-
{ link: author.instagram_profile, icon: <FaInstagram /> },
|
|
13
|
-
{ link: author.linkedin_profile, icon: <FaLinkedin /> },
|
|
14
|
-
{ link: author.twitter_profile, icon: <FaTwitter /> },
|
|
15
|
-
];
|
|
16
|
-
return (
|
|
17
|
-
<div className={styles.container}>
|
|
18
|
-
<div className={styles.innerContainer}>
|
|
19
|
-
<div className={styles.information}>
|
|
20
|
-
<LazyImage
|
|
21
|
-
src={author.image_object?.url}
|
|
22
|
-
alt={author.image_alt}
|
|
23
|
-
width={author.image_object?.width}
|
|
24
|
-
height={author.image_object?.height}
|
|
25
|
-
/>
|
|
26
|
-
<h3 className={styles.name}>{author.name}</h3>
|
|
27
|
-
<p className={styles.title}>{author.author_title}</p>
|
|
28
|
-
</div>
|
|
29
|
-
<div className={styles.description}>
|
|
30
|
-
<div className={styles.links}>
|
|
31
|
-
<p className={styles.contactLinks}>
|
|
32
|
-
{author.email_address && (
|
|
33
|
-
<a href={`mailto:${author.email_address}`} target="_blank" rel="noreferrer">
|
|
34
|
-
Email
|
|
35
|
-
</a>
|
|
36
|
-
)}
|
|
37
|
-
{author.personal_website && (
|
|
38
|
-
<a href={author.personal_website} target="_blank" rel="noreferrer">
|
|
39
|
-
Website
|
|
40
|
-
</a>
|
|
41
|
-
)}
|
|
42
|
-
{author.additional_url && (
|
|
43
|
-
<a href={author.additional_url} target="_blank" rel="noreferrer">
|
|
44
|
-
Contact
|
|
45
|
-
</a>
|
|
46
|
-
)}
|
|
47
|
-
</p>
|
|
48
|
-
<p className={styles.socialIcons}>
|
|
49
|
-
{socialLinks
|
|
50
|
-
.filter((socialLink) => socialLink.link)
|
|
51
|
-
.map((filteredLinks) => (
|
|
52
|
-
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
53
|
-
<a href={filteredLinks.link} target="_blank" rel="noreferrer">
|
|
54
|
-
{filteredLinks.icon}
|
|
55
|
-
</a>
|
|
56
|
-
))}
|
|
57
|
-
</p>
|
|
58
|
-
<p className={styles.biography}>{author.biography}</p>
|
|
59
|
-
</div>
|
|
60
|
-
{author.profile_page_path && (
|
|
61
|
-
<Link to={author.profile_page_path} title="Read More" className={styles.button}>
|
|
62
|
-
{translate(translations, 'read_more', 'Read More')}
|
|
63
|
-
</Link>
|
|
64
|
-
)}
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
AuthorBox.propTypes = {
|
|
72
|
-
author: PropTypes.shape({
|
|
73
|
-
image_object: PropTypes.shape({
|
|
74
|
-
url: PropTypes.string,
|
|
75
|
-
width: PropTypes.number,
|
|
76
|
-
height: PropTypes.number,
|
|
77
|
-
}),
|
|
78
|
-
image_alt: PropTypes.string,
|
|
79
|
-
name: PropTypes.string,
|
|
80
|
-
author_title: PropTypes.string,
|
|
81
|
-
email_address: PropTypes.string,
|
|
82
|
-
personal_website: PropTypes.string,
|
|
83
|
-
additional_url: PropTypes.string,
|
|
84
|
-
facebook_profile: PropTypes.string,
|
|
85
|
-
instagram_profile: PropTypes.string,
|
|
86
|
-
linkedin_profile: PropTypes.string,
|
|
87
|
-
twitter_profile: PropTypes.string,
|
|
88
|
-
biography: PropTypes.string,
|
|
89
|
-
profile_page_path: PropTypes.string,
|
|
90
|
-
}),
|
|
91
|
-
translations: PropTypes.shape({
|
|
92
|
-
read_more: PropTypes.string,
|
|
93
|
-
}),
|
|
94
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { FaAngleRight } from 'react-icons/fa';
|
|
4
|
-
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
5
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
|
-
import styles from 'gatsby-matrix-theme/src/components/atoms/module-title/module-title.module.scss';
|
|
7
|
-
import Link from '~hooks/link';
|
|
8
|
-
|
|
9
|
-
const ModuleTitle = ({
|
|
10
|
-
module,
|
|
11
|
-
viewMoreIcon = <FaAngleRight />,
|
|
12
|
-
pageContext = null,
|
|
13
|
-
translations,
|
|
14
|
-
}) => {
|
|
15
|
-
const tabsToplist = module?.items?.length > 1 && module?.name === 'top_list';
|
|
16
|
-
|
|
17
|
-
const CustomTag = `${module.module_title_tag}`;
|
|
18
|
-
|
|
19
|
-
const monthNames = [
|
|
20
|
-
'January',
|
|
21
|
-
'February',
|
|
22
|
-
'March',
|
|
23
|
-
'April',
|
|
24
|
-
'May',
|
|
25
|
-
'June',
|
|
26
|
-
'July',
|
|
27
|
-
'August',
|
|
28
|
-
'September',
|
|
29
|
-
'October',
|
|
30
|
-
'November',
|
|
31
|
-
'December',
|
|
32
|
-
];
|
|
33
|
-
const d = new Date();
|
|
34
|
-
const year = d.getFullYear();
|
|
35
|
-
const month = monthNames[d.getMonth()];
|
|
36
|
-
const currentMonth = module.show_last_updated_date
|
|
37
|
-
? translate(translations, month, month)
|
|
38
|
-
: false;
|
|
39
|
-
const getTitle = () => {
|
|
40
|
-
if (!module?.module_title_tag) {
|
|
41
|
-
return (
|
|
42
|
-
<h2 className={styles.noTag}>
|
|
43
|
-
{module.title}
|
|
44
|
-
{currentMonth ? (
|
|
45
|
-
<span className={styles.toplistDate}>
|
|
46
|
-
<small>•</small>
|
|
47
|
-
{`${currentMonth} ${year}`}
|
|
48
|
-
</span>
|
|
49
|
-
) : null}
|
|
50
|
-
</h2>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (module.module_title_tag)
|
|
55
|
-
return (
|
|
56
|
-
<CustomTag>
|
|
57
|
-
{module.module_title}
|
|
58
|
-
{currentMonth ? (
|
|
59
|
-
<span className={styles.toplistDate}>
|
|
60
|
-
<small>•</small>
|
|
61
|
-
{`${currentMonth} ${year}`}
|
|
62
|
-
</span>
|
|
63
|
-
) : null}
|
|
64
|
-
</CustomTag>
|
|
65
|
-
);
|
|
66
|
-
return (
|
|
67
|
-
<span className={styles.noTag}>
|
|
68
|
-
{module.module_title}
|
|
69
|
-
{currentMonth ? (
|
|
70
|
-
<span className={styles.toplistDate}>
|
|
71
|
-
<small>•</small>
|
|
72
|
-
{`${currentMonth} ${year}`}
|
|
73
|
-
</span>
|
|
74
|
-
) : null}
|
|
75
|
-
</span>
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
const template = pageContext && pageContext?.page?.template;
|
|
80
|
-
return (
|
|
81
|
-
<div className={`${tabsToplist ? styles.tabsToplist : null}`}>
|
|
82
|
-
{(module.module_title ||
|
|
83
|
-
module.link_label ||
|
|
84
|
-
(module.title && (module.name === 'cards' || module.name === 'top_list'))) && (
|
|
85
|
-
<div
|
|
86
|
-
className={`${styles.moduleTitle} ${styles[template]} ${
|
|
87
|
-
module?.style && styles[module.style]
|
|
88
|
-
}`}
|
|
89
|
-
>
|
|
90
|
-
<span className={styles.spanToplist}>
|
|
91
|
-
{(module?.title || module.module_title) && getTitle(module)}
|
|
92
|
-
</span>
|
|
93
|
-
|
|
94
|
-
{module.link_label && (
|
|
95
|
-
<Link to={module.link_value} className={styles.viewMore}>
|
|
96
|
-
{module.link_label}
|
|
97
|
-
{viewMoreIcon}
|
|
98
|
-
</Link>
|
|
99
|
-
)}
|
|
100
|
-
</div>
|
|
101
|
-
)}
|
|
102
|
-
</div>
|
|
103
|
-
);
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
ModuleTitle.propTypes = {
|
|
107
|
-
module: PropTypes.shape({
|
|
108
|
-
module_title: PropTypes.string,
|
|
109
|
-
module_title_tag: PropTypes.string,
|
|
110
|
-
link_label: PropTypes.string,
|
|
111
|
-
link_value: PropTypes.string,
|
|
112
|
-
name: PropTypes.string,
|
|
113
|
-
style: PropTypes.string,
|
|
114
|
-
items: PropTypes.shape({
|
|
115
|
-
length: PropTypes.number,
|
|
116
|
-
}),
|
|
117
|
-
show_last_updated_date: PropTypes.string,
|
|
118
|
-
title: PropTypes.string,
|
|
119
|
-
}),
|
|
120
|
-
viewMoreIcon: PropTypes.element,
|
|
121
|
-
pageContext: PropTypes.shape({}),
|
|
122
|
-
translations: PropTypes.shape({}),
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export default ModuleTitle;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
.moduleTitle {
|
|
2
|
-
@include flex-align(center, space-between);
|
|
3
|
-
|
|
4
|
-
.noTag {
|
|
5
|
-
display: block;
|
|
6
|
-
margin-bottom: 1rem;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.viewMore {
|
|
10
|
-
color: var(--text-link-color);
|
|
11
|
-
font-size: 1.6rem;
|
|
12
|
-
text-decoration: underline;
|
|
13
|
-
margin-bottom: 1rem;
|
|
14
|
-
|
|
15
|
-
svg {
|
|
16
|
-
margin-left: 1.2rem;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.tabsToplist{
|
|
21
|
-
@include min(tablet){
|
|
22
|
-
margin-bottom: -11rem !important;
|
|
23
|
-
max-width: 507px !important;
|
|
24
|
-
position: relative;
|
|
25
|
-
left: -127px;
|
|
26
|
-
}
|
|
27
|
-
@include min(laptop){
|
|
28
|
-
margin-bottom: -9rem !important;
|
|
29
|
-
max-width: 515px!important;
|
|
30
|
-
position: relative;
|
|
31
|
-
left: -217px;
|
|
32
|
-
}
|
|
33
|
-
.spanToplist{
|
|
34
|
-
h2{
|
|
35
|
-
max-width: 461px;
|
|
36
|
-
@include min(laptop){
|
|
37
|
-
margin-bottom: 2rem;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
.toplistDate{
|
|
43
|
-
color: var(--color-6);
|
|
44
|
-
font-weight: 300;
|
|
45
|
-
font-size: 1.4rem;
|
|
46
|
-
padding-left: .5rem;
|
|
47
|
-
position: relative;
|
|
48
|
-
bottom: 2px;
|
|
49
|
-
}
|
|
50
|
-
.spanToplist{
|
|
51
|
-
display: flex;
|
|
52
|
-
}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
.content {
|
|
2
|
-
width: 100%;
|
|
3
|
-
table{
|
|
4
|
-
@include min(tablet){
|
|
5
|
-
thead, tbody{
|
|
6
|
-
display: table;
|
|
7
|
-
width: 100%;
|
|
8
|
-
table-layout: fixed;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
p{
|
|
13
|
-
margin-bottom: 24px;
|
|
14
|
-
}
|
|
15
|
-
table {
|
|
16
|
-
width: 100% !important;
|
|
17
|
-
border: none;
|
|
18
|
-
margin-bottom: 1.4rem;
|
|
19
|
-
border-radius: var(--table-border-radius);
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
table-layout: auto;
|
|
22
|
-
@include link-color(var(--color-6));
|
|
23
|
-
|
|
24
|
-
thead {
|
|
25
|
-
tr {
|
|
26
|
-
th {
|
|
27
|
-
padding: 1rem;
|
|
28
|
-
vertical-align: top;
|
|
29
|
-
padding-left: 1.4rem;
|
|
30
|
-
color: var(--table-head-text);
|
|
31
|
-
background: var(--table-head-background);
|
|
32
|
-
font-weight: 700;
|
|
33
|
-
|
|
34
|
-
&:first-child {
|
|
35
|
-
border-top-left-radius: var(--table-border-radius);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:last-child {
|
|
39
|
-
border-top-right-radius: var(--table-border-radius);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
tbody {
|
|
46
|
-
tr {
|
|
47
|
-
background-color: var(--table-background);
|
|
48
|
-
|
|
49
|
-
&:nth-child(odd) {
|
|
50
|
-
background-color: var(--table-highlight);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
td {
|
|
54
|
-
padding: 1rem;
|
|
55
|
-
vertical-align: top;
|
|
56
|
-
padding-left: 1.4rem;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
tr:last-child td:last-child {
|
|
61
|
-
border-bottom-right-radius: var(--table-border-radius);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
tr:last-child td:first-child {
|
|
65
|
-
border-bottom-left-radius: var(--table-border-radius);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.firstTable {
|
|
71
|
-
table {
|
|
72
|
-
tbody tr td {
|
|
73
|
-
text-align: center;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.secondTable {
|
|
79
|
-
table {
|
|
80
|
-
thead {
|
|
81
|
-
tr th {
|
|
82
|
-
&:last-child {
|
|
83
|
-
text-align: left;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
tbody tr td {
|
|
89
|
-
&:first-child {
|
|
90
|
-
background-color: var(--second-table-background);
|
|
91
|
-
text-align: center;
|
|
92
|
-
|
|
93
|
-
a {
|
|
94
|
-
font-weight: 700;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:nth-child(2) {
|
|
99
|
-
text-align: center;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.tableResponsive,
|
|
106
|
-
.tableResponsive > div {
|
|
107
|
-
box-sizing: content-box;
|
|
108
|
-
width: 100%;
|
|
109
|
-
table{
|
|
110
|
-
display: block;
|
|
111
|
-
width: 100%;
|
|
112
|
-
@include overflow(overflow-x, auto, touch);
|
|
113
|
-
@include scrollbar(0.8rem, 0.8rem, var(--color-33));
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
* {
|
|
118
|
-
box-sizing: content-box;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
td,
|
|
122
|
-
th {
|
|
123
|
-
@include max(tablet) {
|
|
124
|
-
min-width: 25rem;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
.horizontalScrollImage{
|
|
129
|
-
p{
|
|
130
|
-
overflow-x: scroll;
|
|
131
|
-
img{
|
|
132
|
-
max-width: unset;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
ul,
|
|
138
|
-
ol {
|
|
139
|
-
color: var(--color-6);
|
|
140
|
-
font-size: 1.6rem;
|
|
141
|
-
list-style-position: inside;
|
|
142
|
-
padding: 1.6rem;
|
|
143
|
-
|
|
144
|
-
li {
|
|
145
|
-
margin: 0.35rem 0;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
ul {
|
|
150
|
-
list-style-type: disc;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
ol {
|
|
154
|
-
list-style-type: decimal;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
ul ul,
|
|
158
|
-
ol ul {
|
|
159
|
-
list-style-type: circle;
|
|
160
|
-
list-style-position: inside;
|
|
161
|
-
margin-left: 1.5rem;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
ol ol,
|
|
165
|
-
ul ol {
|
|
166
|
-
list-style-type: lower-latin;
|
|
167
|
-
list-style-position: inside;
|
|
168
|
-
margin-left: 1.5rem;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@each $heading, $size, $mobileSize in $heading-sizes {
|
|
172
|
-
#{$heading},
|
|
173
|
-
.#{$heading} {
|
|
174
|
-
margin-bottom: 1rem;
|
|
175
|
-
|
|
176
|
-
&:not(:first-child) {
|
|
177
|
-
margin-top: 2rem;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.floatLeft {
|
|
184
|
-
@include content-img-float(left);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.floatRight {
|
|
188
|
-
@include content-img-float(right);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.alignCenter {
|
|
192
|
-
@include content-img-align;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.alignLeft {
|
|
196
|
-
@include content-img-align(left);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.alignRight {
|
|
200
|
-
@include content-img-align(right);
|
|
201
|
-
}
|