@eeacms/volto-eea-website-theme 0.6.5 → 0.6.8

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 CHANGED
@@ -4,8 +4,41 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [0.6.8](https://github.com/eea/volto-eea-website-theme/compare/0.6.7...0.6.8)
8
+
9
+ - Fix HomepageView typo [`41582a3`](https://github.com/eea/volto-eea-website-theme/commit/41582a39f8e84cd3ef62d9ef302798627e8350f1)
10
+ - fix import to please jslint [`b4a6555`](https://github.com/eea/volto-eea-website-theme/commit/b4a655548600ef9b9c8ecdd156d0062d4b54d00e)
11
+ - change(header): added homepage and homepage_inverse views [`6df68d7`](https://github.com/eea/volto-eea-website-theme/commit/6df68d7a592d623af76c1036c38d2c480fc6ce88)
12
+ - Fifty shades of gray [`9deae59`](https://github.com/eea/volto-eea-website-theme/commit/9deae599dc0e1431727067b281c32a58c1ac544c)
13
+ - Minimal search integration for Header popup [`14870df`](https://github.com/eea/volto-eea-website-theme/commit/14870df1b0d82d1e04955bfa8cc07c7b853737c6)
14
+ - Customize eea-design-system HeaderSearchPopUp. Copied unchanged [`4c9306c`](https://github.com/eea/volto-eea-website-theme/commit/4c9306c6afe4c62cbc74f3510339c4a6dbbd210a)
15
+ - Customize available colors in volto-block-style [`5c5adb5`](https://github.com/eea/volto-eea-website-theme/commit/5c5adb541b3e7d84daf110e9eab7ec7950e0e989)
16
+ - change(theme): set draft bg to the content-area instead of the body area [`33be595`](https://github.com/eea/volto-eea-website-theme/commit/33be595a353afc570f8887c3bf55f6482c573fd8)
17
+ - change(header): add homepage class to plone site [`c6f912b`](https://github.com/eea/volto-eea-website-theme/commit/c6f912b59f288e7ddb4679f2a3b7011c6ce02c8c)
18
+
19
+ #### [0.6.7](https://github.com/eea/volto-eea-website-theme/compare/0.6.6...0.6.7)
20
+
21
+ > 9 June 2022
22
+
23
+ - change(footer): updated managed by grid sizes from footer.stories [`#38`](https://github.com/eea/volto-eea-website-theme/pull/38)
24
+ - change(footer): updated managed by grid sizes from footer.stories #37 [`63b86be`](https://github.com/eea/volto-eea-website-theme/commit/63b86becdf5a501b133e3b4ff05b1ab0e6281f12)
25
+ - change(footer): updated managed by grid sizes as se [`6be36fa`](https://github.com/eea/volto-eea-website-theme/commit/6be36fa6e8d8a2762fce65b71bb0e0c795a050a2)
26
+
27
+ #### [0.6.6](https://github.com/eea/volto-eea-website-theme/compare/0.6.5...0.6.6)
28
+
29
+ > 8 June 2022
30
+
31
+ - condition config of accordion only if found to avoid error [`#36`](https://github.com/eea/volto-eea-website-theme/pull/36)
32
+ - Add customization for volto-tabs-block [`#35`](https://github.com/eea/volto-eea-website-theme/pull/35)
33
+ - change(footer): update footer implementation [`#34`](https://github.com/eea/volto-eea-website-theme/pull/34)
34
+ - change(footer): update footer implementation to use subfooter section #33 [`e4cb3c0`](https://github.com/eea/volto-eea-website-theme/commit/e4cb3c042414ba5811924b40c532738da978fdbd)
35
+ - change(footer): update footer implementation to use latest changes to the subfooter component [`efa23fe`](https://github.com/eea/volto-eea-website-theme/commit/efa23fecee0786c3d9a254c8115b3f28a8be5302)
36
+
7
37
  #### [0.6.5](https://github.com/eea/volto-eea-website-theme/compare/0.6.4...0.6.5)
8
38
 
39
+ > 3 June 2022
40
+
41
+ - fix(tags): Replace customizations of volto-widgets-view with config r… [`#32`](https://github.com/eea/volto-eea-website-theme/pull/32)
9
42
  - fix(tags): Replace customizations of volto-widgets-view with config registry [`8f8c6fc`](https://github.com/eea/volto-eea-website-theme/commit/8f8c6fcdc6d48a56fbb35db781432390a703a215)
10
43
 
11
44
  #### [0.6.4](https://github.com/eea/volto-eea-website-theme/compare/0.6.3...0.6.4)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "0.6.5",
3
+ "version": "0.6.8",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,3 +1,3 @@
1
- body.view-viewview:not(.wf-state-published) {
1
+ .view-viewview:not(.wf-state-published) .content-area {
2
2
  background-image: url('draft.png') !important;
3
3
  }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Document view component.
3
+ * @module components/theme/View/HomePageInverseView
4
+ */
5
+
6
+ import React from 'react';
7
+ import PropTypes from 'prop-types';
8
+
9
+ import { DefaultView } from '@plone/volto/components/';
10
+
11
+ import { BodyClass } from '@plone/volto/helpers';
12
+
13
+ import { hasBlocksData } from '@plone/volto/helpers';
14
+
15
+ /**
16
+ * Component to display the default view.
17
+ * @function HomePageInverseView
18
+ * @param {Object} content Content object.
19
+ * @returns {string} Markup of the component.
20
+ */
21
+ const HomePageInverseView = ({ content }) => {
22
+ return hasBlocksData(content) ? (
23
+ <>
24
+ <BodyClass className="homepage homepage-inverse" />
25
+ <DefaultView content={content} />
26
+ </>
27
+ ) : null;
28
+ };
29
+
30
+ /**
31
+ * Property types.
32
+ * @property {Object} propTypes Property types.
33
+ * @static
34
+ */
35
+ HomePageInverseView.propTypes = {
36
+ /**
37
+ * Content of the object
38
+ */
39
+ content: PropTypes.shape({
40
+ /**
41
+ * Title of the object
42
+ */
43
+ title: PropTypes.string,
44
+ /**
45
+ * Description of the object
46
+ */
47
+ description: PropTypes.string,
48
+ /**
49
+ * Text of the object
50
+ */
51
+ text: PropTypes.shape({
52
+ /**
53
+ * Data of the text of the object
54
+ */
55
+ data: PropTypes.string,
56
+ }),
57
+ }).isRequired,
58
+ };
59
+
60
+ export default HomePageInverseView;
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Document view component.
3
+ * @module components/theme/View/HomePageView
4
+ */
5
+
6
+ import React from 'react';
7
+ import PropTypes from 'prop-types';
8
+
9
+ import { DefaultView } from '@plone/volto/components/';
10
+
11
+ import { BodyClass } from '@plone/volto/helpers';
12
+
13
+ import { hasBlocksData } from '@plone/volto/helpers';
14
+
15
+ /**
16
+ * Component to display the default view.
17
+ * @function HomePageView
18
+ * @param {Object} content Content object.
19
+ * @returns {string} Markup of the component.
20
+ */
21
+ const HomePageView = ({ content }) => {
22
+ return hasBlocksData(content) ? (
23
+ <>
24
+ <BodyClass className="homepage" />
25
+ <DefaultView content={content} />
26
+ </>
27
+ ) : null;
28
+ };
29
+
30
+ /**
31
+ * Property types.
32
+ * @property {Object} propTypes Property types.
33
+ * @static
34
+ */
35
+ HomePageView.propTypes = {
36
+ /**
37
+ * Content of the object
38
+ */
39
+ content: PropTypes.shape({
40
+ /**
41
+ * Title of the object
42
+ */
43
+ title: PropTypes.string,
44
+ /**
45
+ * Description of the object
46
+ */
47
+ description: PropTypes.string,
48
+ /**
49
+ * Text of the object
50
+ */
51
+ text: PropTypes.shape({
52
+ /**
53
+ * Data of the text of the object
54
+ */
55
+ data: PropTypes.string,
56
+ }),
57
+ }).isRequired,
58
+ };
59
+
60
+ export default HomePageView;
package/src/config.js CHANGED
@@ -8,60 +8,151 @@ import ccaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/
8
8
  import copernicusLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/copernicus.svg';
9
9
  import industryLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/industry.svg';
10
10
  import marineLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/marine.svg';
11
+ import eionetLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eionet.svg';
12
+ import eeaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eea.svg';
11
13
 
12
14
  // TODO: to be consolidated with headerLinks
13
- export const partnerWebsites = [
14
- {
15
- link: 'https://biodiversity.europa.eu/',
16
- src: biseLogo,
17
- alt: 'Biodiversity',
18
- },
19
- {
20
- link: 'https://climate-energy.eea.europa.eu/',
21
- src: energyLogo,
22
- alt: 'Climate and energy in the EU',
23
- },
24
- {
25
- link: 'https://insitu.copernicus.eu/',
26
- src: insituLogo,
27
- alt: 'Copernicus in situ',
28
- },
29
- {
30
- link: 'https://ipchem.jrc.ec.europa.eu/RDSIdiscovery/ipchem/index.html',
31
- src: ipchemLogo,
32
- alt: 'Information platform for chemical monitoring',
33
- },
34
- {
35
- link: 'https://water.europa.eu/freshwater',
36
- src: freshwaterLogo,
37
- alt: 'WISE freshwater',
38
- },
39
- {
40
- link: 'https://forest.eea.europa.eu/',
41
- src: fiseLogo,
42
- alt: 'Forest information system for europe',
43
- },
44
- {
45
- link: 'https://climate-adapt.eea.europa.eu/',
46
- src: ccaLogo,
47
- alt: 'Climate adapt',
48
- },
49
- {
50
- link: 'https://land.copernicus.eu/',
51
- src: copernicusLogo,
52
- alt: 'Copernicus land monitoring service',
53
- },
54
- {
55
- link: 'https://industry.eea.europa.eu/',
56
- src: industryLogo,
57
- alt: 'European industrial emissions portal',
58
- },
59
- {
60
- link: 'https://water.europa.eu/marine',
61
- src: marineLogo,
62
- alt: 'WISE marine',
63
- },
64
- ];
15
+ // Footer.jsx config options
16
+ export const footerOpts = {
17
+ header: 'EEA information systems',
18
+ logosHeader: 'Managed by',
19
+ contactHeader: 'Contact Us',
20
+ actions: [
21
+ {
22
+ title: 'Login',
23
+ link: '/login',
24
+ },
25
+ {
26
+ link: '/sitemap',
27
+ title: 'Sitemap',
28
+ },
29
+ {
30
+ link: '/privacy',
31
+ title: 'Privacy',
32
+ },
33
+ {
34
+ link: '/copyright',
35
+ title: 'Copyright',
36
+ copy: true,
37
+ },
38
+ ],
39
+ sites: [
40
+ {
41
+ link: 'https://biodiversity.europa.eu/',
42
+ src: biseLogo,
43
+ alt: 'Biodiversity',
44
+ },
45
+ {
46
+ link: 'https://climate-energy.eea.europa.eu/',
47
+ src: energyLogo,
48
+ alt: 'Climate and energy in the EU',
49
+ },
50
+ {
51
+ link: 'https://insitu.copernicus.eu/',
52
+ src: insituLogo,
53
+ alt: 'Copernicus in situ',
54
+ },
55
+ {
56
+ link: 'https://ipchem.jrc.ec.europa.eu/RDSIdiscovery/ipchem/index.html',
57
+ src: ipchemLogo,
58
+ alt: 'Information platform for chemical monitoring',
59
+ },
60
+ {
61
+ link: 'https://water.europa.eu/freshwater',
62
+ src: freshwaterLogo,
63
+ alt: 'WISE freshwater',
64
+ },
65
+ {
66
+ link: 'https://forest.eea.europa.eu/',
67
+ src: fiseLogo,
68
+ alt: 'Forest information system for europe',
69
+ },
70
+ {
71
+ link: 'https://climate-adapt.eea.europa.eu/',
72
+ src: ccaLogo,
73
+ alt: 'Climate adapt',
74
+ },
75
+ {
76
+ link: 'https://land.copernicus.eu/',
77
+ src: copernicusLogo,
78
+ alt: 'Copernicus land monitoring service',
79
+ },
80
+ {
81
+ link: 'https://industry.eea.europa.eu/',
82
+ src: industryLogo,
83
+ alt: 'European industrial emissions portal',
84
+ },
85
+ {
86
+ link: 'https://water.europa.eu/marine',
87
+ src: marineLogo,
88
+ alt: 'WISE marine',
89
+ },
90
+ ],
91
+ managedBy: [
92
+ {
93
+ link: 'https://www.eea.europa.eu/',
94
+ src: eeaLogo,
95
+ alt: 'EEA Logo',
96
+ className: 'site logo',
97
+ columnSize: {
98
+ mobile: 6,
99
+ tablet: 12,
100
+ computer: 5,
101
+ },
102
+ },
103
+ {
104
+ link: 'https://www.eionet.europa.eu/',
105
+ src: eionetLogo,
106
+ alt: 'EIONET Logo',
107
+ className: 'eionet logo',
108
+ columnSize: {
109
+ mobile: 6,
110
+ tablet: 12,
111
+ computer: 7,
112
+ },
113
+ },
114
+ ],
115
+ social: [
116
+ {
117
+ name: 'twitter',
118
+ icon: 'ri-twitter-fill',
119
+ link: 'https://twitter.com/euenvironment',
120
+ },
121
+ {
122
+ name: 'facebook',
123
+ icon: 'ri-facebook-box-fill',
124
+ link: 'https://www.facebook.com/European.Environment.Agency',
125
+ },
126
+ {
127
+ name: 'linkedin',
128
+ icon: 'ri-linkedin-fill',
129
+ link: 'https://www.linkedin.com/company/european-environment-agency',
130
+ },
131
+ {
132
+ name: 'youtube',
133
+ icon: 'ri-youtube-fill',
134
+ link: 'https://www.youtube.com/user/EEAvideos',
135
+ },
136
+ {
137
+ name: 'rss',
138
+ icon: 'ri-rss-fill',
139
+ link: '/subscription/news-feeds',
140
+ },
141
+ ],
142
+ contacts: [
143
+ {
144
+ icon: 'comment outline',
145
+ text: 'Ask your question',
146
+ link: '/contact-us',
147
+ },
148
+ {
149
+ icon: 'envelope outline',
150
+ text: 'Sign up to our newsletter',
151
+ link: '/newsletter',
152
+ },
153
+ ],
154
+ address: 'Kongens Nytorv 6 1050 Copenhagen K (+45) 33 36 71 00',
155
+ };
65
156
 
66
157
  export const globalHeaderPartnerLinks = {
67
158
  title: 'Environmental information systems',
@@ -101,64 +192,6 @@ export const globalHeaderPartnerLinks = {
101
192
  ],
102
193
  };
103
194
 
104
- export const globalActions = [
105
- {
106
- link: '/login',
107
- title: 'CMS Login',
108
- },
109
- {
110
- link: '/sitemap',
111
- title: 'Sitemap',
112
- },
113
- {
114
- link: '/privacy',
115
- title: 'Privacy',
116
- },
117
- {
118
- link: '/copyright',
119
- title: 'Copyright',
120
- copy: true,
121
- },
122
- ];
123
-
124
- export const socialActions = [
125
- {
126
- name: 'twitter',
127
- link: 'https://twitter.com/euenvironment',
128
- },
129
- {
130
- name: 'facebook',
131
- link: 'https://www.facebook.com/European.Environment.Agency',
132
- },
133
- {
134
- name: 'linkedin',
135
- link: 'https://www.linkedin.com/company/european-environment-agency',
136
- },
137
- {
138
- name: 'youtube',
139
- link: 'https://www.youtube.com/user/EEAvideos',
140
- },
141
- {
142
- name: 'rss',
143
- link: '/subscription/news-feeds',
144
- },
145
- ];
146
-
147
- export const footerActions = [
148
- {
149
- icon: 'comment outline',
150
- text: 'Ask your question',
151
- link: '/contact-us',
152
- },
153
- {
154
- icon: 'envelope outline',
155
- text: 'Sign up to our newsletter',
156
- link: '/newsletter',
157
- },
158
- ];
159
-
160
- export const address = 'Kongens Nytorv 6 1050 Copenhagen K (+45) 33 36 71 00';
161
-
162
195
  export const languages = [
163
196
  { name: 'Български', code: 'bg' },
164
197
  { name: 'čeština', code: 'cs' },
@@ -0,0 +1,38 @@
1
+ const updatedEEAColorcheme = [
2
+ // Primary & shades
3
+ '#007B6C',
4
+ '#005248',
5
+ '#007B6C',
6
+ '#00A390',
7
+ '#00CCB4',
8
+ '#00F5D8',
9
+ '#85FFF1',
10
+ '#C8FFF8',
11
+ // Secondary & shades
12
+ '#004B7F',
13
+ '#003052',
14
+ '#004B7F',
15
+ '#006BB8',
16
+ '#0083E0',
17
+ '#0A99FF',
18
+ '#47B3FF',
19
+ '#A0D7FF',
20
+ // Tertiary & shades
21
+ '#2E3E4C',
22
+ '#3D5265',
23
+ '#4C677F',
24
+ '#6989A5',
25
+ '#8EA6C2',
26
+ '#ACCAE5',
27
+ '#DAE8F4',
28
+ // Black & White shades
29
+ '#000000',
30
+ '#323232',
31
+ '#67696b',
32
+ '#BCBEC0',
33
+ '#E6E7E8',
34
+ '#F9F9F9',
35
+ '#FFFFFF',
36
+ ];
37
+
38
+ export default updatedEEAColorcheme;
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { Container, Input } from 'semantic-ui-react';
3
+ import { withRouter } from 'react-router-dom';
4
+ import { useClickOutside } from '@eeacms/volto-eea-design-system/helpers';
5
+
6
+ function HeaderSearchPopUp({ history, onClose, triggerRefs = [] }) {
7
+ const nodeRef = React.useRef();
8
+ const [text, setText] = React.useState('');
9
+
10
+ useClickOutside({ targetRefs: [nodeRef, ...triggerRefs], callback: onClose });
11
+
12
+ const onChangeText = (event, { value }) => {
13
+ setText(value);
14
+ event.preventDefault();
15
+ };
16
+
17
+ const onSubmit = (event) => {
18
+ history.push(`/en/advanced-search?q=${text}`);
19
+ onClose();
20
+ event.preventDefault();
21
+ };
22
+
23
+ return (
24
+ <form id="search-box" ref={nodeRef} method="get" onSubmit={onSubmit}>
25
+ <Container>
26
+ <div className="wrapper">
27
+ <Input
28
+ className="search"
29
+ onChange={onChangeText}
30
+ icon={{
31
+ className: 'ri-search-line',
32
+ link: true,
33
+ onClick: onSubmit,
34
+ }}
35
+ placeholder="Search..."
36
+ fluid
37
+ />
38
+ </div>
39
+ </Container>
40
+ </form>
41
+ );
42
+ }
43
+
44
+ export default withRouter(HeaderSearchPopUp);
@@ -5,68 +5,15 @@
5
5
 
6
6
  import React from 'react';
7
7
  import EEAFooter from '@eeacms/volto-eea-design-system/ui/Footer/Footer';
8
- import { Grid, Image } from 'semantic-ui-react';
9
- import { Link } from 'react-router-dom';
10
-
11
- import EIONETLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/EIONETLogo.png';
12
- import EEALogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/EEA-Logo-white.svg';
13
-
14
8
  import config from '@plone/volto/registry';
15
9
 
16
10
  const Footer = (props) => {
17
11
  const { eea } = config.settings;
18
-
19
12
  return (
20
13
  <EEAFooter>
21
- <EEAFooter.Header>The EEA also contributes to</EEAFooter.Header>
22
- <EEAFooter.Sites sites={config.settings.eea.partnerWebsites} />
23
-
24
- <EEAFooter.SubFooter>
25
- <div className="subfooter">
26
- <Grid>
27
- <Grid.Column mobile={6} tablet={7} computer={8}>
28
- <div className="item">
29
- <div className="site logo">
30
- <Link to="/">
31
- <Image src={EEALogo} alt="EEA Logo"></Image>
32
- </Link>
33
- <p className="description">An agency of the European Union</p>
34
- </div>
35
-
36
- <div className="eionet logo">
37
- <a href="https://www.eionet.europa.eu/">
38
- <Image src={EIONETLogo} alt="EIONET Logo"></Image>
39
- </a>
40
- <p className="description">
41
- European Environment
42
- <br />
43
- Information and
44
- <br />
45
- Observation Network
46
- </p>
47
- </div>
48
- </div>
49
- </Grid.Column>
50
- <Grid.Column mobile={6} tablet={5} computer={4}>
51
- <div className="item">
52
- <EEAFooter.Contact
53
- contacts={eea.footerActions}
54
- header="Contact Us"
55
- address={eea.address}
56
- />
57
- <EEAFooter.Social social={eea.socialActions} />
58
- </div>
59
- </Grid.Column>
60
- </Grid>
61
- <Grid>
62
- <Grid.Row>
63
- <Grid.Column>
64
- <EEAFooter.Actions actions={eea.globalActions} />
65
- </Grid.Column>
66
- </Grid.Row>
67
- </Grid>
68
- </div>
69
- </EEAFooter.SubFooter>
14
+ <EEAFooter.Header>{eea.footerOpts.header}</EEAFooter.Header>
15
+ <EEAFooter.Sites sites={eea.footerOpts.sites} />
16
+ <EEAFooter.SubFooter {...eea.footerOpts} />
70
17
  </EEAFooter>
71
18
  );
72
19
  };
@@ -18,6 +18,7 @@ import { getNavigation } from '@plone/volto/actions';
18
18
  import { Header, Logo } from '@eeacms/volto-eea-design-system/ui';
19
19
  import { usePrevious } from '@eeacms/volto-eea-design-system/helpers';
20
20
  import { find } from 'lodash';
21
+ import WhiteLogoImage from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eea.svg';
21
22
  import LogoImage from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/eea-logo.svg';
22
23
  import globeIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/global-line.svg';
23
24
  import eeaFlag from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Header/eea.png';
@@ -33,6 +34,9 @@ const EEAHeader = ({ pathname, token, items, history }) => {
33
34
  const translations = useSelector(
34
35
  (state) => state.content.data?.['@components']?.translations?.items,
35
36
  );
37
+ const isHomePageInverse = useSelector((state) => {
38
+ return state.content?.data?.layout === 'homepage_inverse_view';
39
+ });
36
40
 
37
41
  const { eea } = config.settings;
38
42
  const width = useSelector((state) => state.screen?.width);
@@ -154,9 +158,11 @@ const EEAHeader = ({ pathname, token, items, history }) => {
154
158
  </Header.TopHeader>
155
159
  <Header.Main
156
160
  pathname={pathname}
161
+ inverted={isHomePageInverse ? true : false}
162
+ transparency={isHomePageInverse ? true : false}
157
163
  logo={
158
164
  <Logo
159
- src={LogoImage}
165
+ src={isHomePageInverse ? WhiteLogoImage : LogoImage}
160
166
  title={eea.websiteTitle}
161
167
  alt={eea.organisationName}
162
168
  url={eea.logoTargetUrl}
package/src/index.js CHANGED
@@ -4,18 +4,34 @@ import installCustomTitle from '@eeacms/volto-eea-website-theme/components/manag
4
4
  import CustomCSS from '@eeacms/volto-eea-website-theme/components/theme/CustomCSS/CustomCSS';
5
5
  import DraftBackground from '@eeacms/volto-eea-website-theme/components/theme/DraftBackground/DraftBackground';
6
6
  import { TokenWidget } from '@eeacms/volto-eea-website-theme/components/theme/Widgets/TokenWidget';
7
+ import HomePageView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageView';
8
+ import HomePageInverseView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageInverseView';
7
9
 
8
10
  const applyConfig = (config) => {
9
11
  config.settings.eea = {
10
12
  ...eea,
11
13
  ...(config.settings.eea || {}),
12
14
  };
15
+ config.views.layoutViews = {
16
+ homepage_view: HomePageView,
17
+ homepage_inverse_view: HomePageInverseView,
18
+ };
13
19
 
14
20
  // Apply accordion block customization
15
21
  if (config.blocks.blocksConfig.accordion) {
16
22
  config.blocks.blocksConfig.accordion.semanticIcon = 'ri-arrow-down-s-line';
17
23
  }
18
24
 
25
+ // Apply tabs block customization
26
+ if (config.blocks.blocksConfig.tabs_block) {
27
+ if (config.blocks.blocksConfig.tabs_block.templates.accordion) {
28
+ config.blocks.blocksConfig.tabs_block.templates.accordion.semanticIcon = {
29
+ opened: 'ri-arrow-up-s-line',
30
+ closed: 'ri-arrow-down-s-line',
31
+ };
32
+ }
33
+ }
34
+
19
35
  // Description block custom CSS
20
36
  config.blocks.blocksConfig.description.className =
21
37
  'documentDescription eea callout';