@eeacms/volto-eea-website-theme 0.6.16 → 0.7.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 CHANGED
@@ -4,8 +4,30 @@ 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.7.0](https://github.com/eea/volto-eea-website-theme/compare/0.6.18...0.7.0)
8
+
9
+ - Update package.json [`a1bf047`](https://github.com/eea/volto-eea-website-theme/commit/a1bf0473236b1663d23c9b4bdf4c55db6a6f00aa)
10
+ - change(footer): Alignment as per storybook mockups [`f812944`](https://github.com/eea/volto-eea-website-theme/commit/f8129441b83ad484bf1b3bb9e7c7884031005a90)
11
+ - change(footer): Aligment as per storybook mockups [`1033166`](https://github.com/eea/volto-eea-website-theme/commit/103316636d53a08e8f627b554cfafb1180750a1f)
12
+
13
+ #### [0.6.18](https://github.com/eea/volto-eea-website-theme/compare/0.6.17...0.6.18)
14
+
15
+ > 4 August 2022
16
+
17
+ - change(megamenu): added icon on mega menu header section [`#53`](https://github.com/eea/volto-eea-website-theme/pull/53)
18
+
19
+ #### [0.6.17](https://github.com/eea/volto-eea-website-theme/compare/0.6.16...0.6.17)
20
+
21
+ > 3 August 2022
22
+
23
+ - Develop [`#52`](https://github.com/eea/volto-eea-website-theme/pull/52)
24
+ - Set focus on search input field in the popup on click [`#50`](https://github.com/eea/volto-eea-website-theme/pull/50)
25
+
7
26
  #### [0.6.16](https://github.com/eea/volto-eea-website-theme/compare/0.6.15...0.6.16)
8
27
 
28
+ > 1 August 2022
29
+
30
+ - Release [`#49`](https://github.com/eea/volto-eea-website-theme/pull/49)
9
31
  - Nonapi breadcrumbs [`#48`](https://github.com/eea/volto-eea-website-theme/pull/48)
10
32
  - Make Breadcrumbs behave better with non-content routes [`9407840`](https://github.com/eea/volto-eea-website-theme/commit/94078403458a5a3ea725ce9126fffed9d463097d)
11
33
  - change(megamenu): add border for active element of menu [`252efc4`](https://github.com/eea/volto-eea-website-theme/commit/252efc4485961c8d05e3703fee06179a0fdc8da3)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "0.6.16",
3
+ "version": "0.7.0",
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",
package/src/config.js CHANGED
@@ -14,26 +14,27 @@ import climateLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/ass
14
14
  // TODO: to be consolidated with headerLinks
15
15
  // Footer.jsx config options
16
16
  export const footerOpts = {
17
- header: 'EEA information systems',
17
+ header: 'Thematic information platforms',
18
18
  logosHeader: 'Managed by',
19
19
  contactHeader: 'Contact Us',
20
20
  actions: [
21
21
  {
22
- title: 'Login',
23
- link: '/login',
22
+ title: 'Privacy',
23
+ link: '/privacy',
24
24
  },
25
25
  {
26
26
  link: '/sitemap',
27
27
  title: 'Sitemap',
28
28
  },
29
29
  {
30
- link: '/privacy',
31
- title: 'Privacy',
30
+ link: '/login',
31
+ title: 'CMS Login',
32
32
  },
33
+ ],
34
+ copyright: [
33
35
  {
34
36
  link: '/copyright',
35
- title: 'Copyright',
36
- copy: true,
37
+ site: 'EEA',
37
38
  },
38
39
  ],
39
40
  sites: [
@@ -42,41 +43,36 @@ export const footerOpts = {
42
43
  src: marineLogo,
43
44
  alt: 'WISE marine',
44
45
  },
45
- {
46
- link: 'https://biodiversity.europa.eu/',
47
- src: biseLogo,
48
- alt: 'Biodiversity',
49
- },
50
- {
51
- link: 'https://climate-adapt.eea.europa.eu/observatory',
52
- src: climateLogo,
53
- alt: 'European Climate and Health Observatory',
54
- },
55
- {
56
- link: 'https://industry.eea.europa.eu/',
57
- src: industryLogo,
58
- alt: 'European industrial emissions portal',
59
- },
60
- {
61
- link: 'https://insitu.copernicus.eu/',
62
- src: insituLogo,
63
- alt: 'Copernicus in situ',
64
- },
65
46
  {
66
47
  link: 'https://water.europa.eu/freshwater',
67
48
  src: freshwaterLogo,
68
49
  alt: 'WISE freshwater',
69
50
  },
51
+ {
52
+ link: 'https://biodiversity.europa.eu/',
53
+ src: biseLogo,
54
+ alt: 'Biodiversity',
55
+ },
70
56
  {
71
57
  link: 'https://forest.eea.europa.eu/',
72
58
  src: fiseLogo,
73
59
  alt: 'Forest information system for europe',
74
60
  },
61
+ {
62
+ link: 'https://climate-adapt.eea.europa.eu/observatory',
63
+ src: climateLogo,
64
+ alt: 'European Climate and Health Observatory',
65
+ },
75
66
  {
76
67
  link: 'https://climate-adapt.eea.europa.eu/',
77
68
  src: ccaLogo,
78
69
  alt: 'Climate adapt',
79
70
  },
71
+ {
72
+ link: 'https://industry.eea.europa.eu/',
73
+ src: industryLogo,
74
+ alt: 'European industrial emissions portal',
75
+ },
80
76
  {
81
77
  link: 'https://climate-energy.eea.europa.eu/',
82
78
  src: energyLogo,
@@ -87,6 +83,11 @@ export const footerOpts = {
87
83
  src: copernicusLogo,
88
84
  alt: 'Copernicus land monitoring service',
89
85
  },
86
+ {
87
+ link: 'https://insitu.copernicus.eu/',
88
+ src: insituLogo,
89
+ alt: 'Copernicus in situ',
90
+ },
90
91
  ],
91
92
  managedBy: [
92
93
  {
@@ -97,7 +98,7 @@ export const footerOpts = {
97
98
  columnSize: {
98
99
  mobile: 6,
99
100
  tablet: 12,
100
- computer: 5,
101
+ computer: 4,
101
102
  },
102
103
  },
103
104
  {
@@ -108,7 +109,7 @@ export const footerOpts = {
108
109
  columnSize: {
109
110
  mobile: 6,
110
111
  tablet: 12,
111
- computer: 6,
112
+ computer: 4,
112
113
  },
113
114
  },
114
115
  ],
@@ -133,6 +134,11 @@ export const footerOpts = {
133
134
  icon: 'ri-youtube-fill',
134
135
  link: 'https://www.youtube.com/user/EEAvideos',
135
136
  },
137
+ {
138
+ name: 'instagram',
139
+ icon: 'ri-instagram-fill',
140
+ link: 'https://www.instagram.com/ourplanet_eu',
141
+ },
136
142
  {
137
143
  name: 'rss',
138
144
  icon: 'ri-rss-fill',
@@ -142,7 +148,22 @@ export const footerOpts = {
142
148
  contacts: [
143
149
  {
144
150
  icon: 'comment outline',
145
- text: 'Ask your question',
151
+ text: 'About us',
152
+ link: '/about',
153
+ children: [
154
+ {
155
+ link: '/faq',
156
+ text: 'FAQs',
157
+ },
158
+ {
159
+ link: '/careers',
160
+ text: 'Careers',
161
+ },
162
+ ],
163
+ },
164
+ {
165
+ icon: 'comment outline',
166
+ text: 'Contact us',
146
167
  link: '/contact-us',
147
168
  },
148
169
  {
@@ -3,7 +3,12 @@ import { Container, Input } from 'semantic-ui-react';
3
3
  import { withRouter } from 'react-router-dom';
4
4
  import { useClickOutside } from '@eeacms/volto-eea-design-system/helpers';
5
5
 
6
- function HeaderSearchPopUp({ history, onClose, triggerRefs = [] }) {
6
+ function HeaderSearchPopUp({
7
+ history,
8
+ onClose,
9
+ searchInputRef,
10
+ triggerRefs = [],
11
+ }) {
7
12
  const nodeRef = React.useRef();
8
13
  const [text, setText] = React.useState('');
9
14
 
@@ -30,6 +35,7 @@ function HeaderSearchPopUp({ history, onClose, triggerRefs = [] }) {
30
35
  <Container>
31
36
  <div className="wrapper">
32
37
  <Input
38
+ ref={searchInputRef}
33
39
  className="search"
34
40
  onChange={onChangeText}
35
41
  icon={{
@@ -11,9 +11,13 @@ const Footer = (props) => {
11
11
  const { eea } = config.settings;
12
12
  return (
13
13
  <EEAFooter>
14
+ <EEAFooter.SubFooter {...eea.footerOpts} />
14
15
  <EEAFooter.Header>{eea.footerOpts.header}</EEAFooter.Header>
15
16
  <EEAFooter.Sites sites={eea.footerOpts.sites} />
16
- <EEAFooter.SubFooter {...eea.footerOpts} />
17
+ <EEAFooter.Actions
18
+ actions={eea.footerOpts.actions}
19
+ copyright={eea.footerOpts.copyright}
20
+ />
17
21
  </EEAFooter>
18
22
  );
19
23
  };
@@ -203,8 +203,9 @@ const EEAHeader = ({ pathname, token, items, history }) => {
203
203
  active: item.url === router_pathname,
204
204
  })}
205
205
  >
206
- {props?.children}
206
+ {props?.iconPosition !== 'right' && props?.children}
207
207
  <span>{item.title}</span>
208
+ {props?.iconPosition === 'right' && props?.children}
208
209
  </UniversalLink>
209
210
  )}
210
211
  ></Header.Main>