@eeacms/volto-cca-policy 0.1.8 → 0.1.10
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 +18 -0
- package/package.json +2 -2
- package/src/customizations/@eeacms/volto-banner/index.js +3 -0
- package/src/customizations/volto/components/theme/Header/Header.jsx +16 -7
- package/src/index.js +22 -6
- package/theme/elements/button.overrides +22 -0
- package/theme/globals/site.overrides +31 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ 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.1.10](https://github.com/eea/volto-cca-policy/compare/0.1.9...0.1.10) - 20 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Prettier [kreafox - [`89cd1e5`](https://github.com/eea/volto-cca-policy/commit/89cd1e5d8c72533227298dfa510e379b21aab8f4)]
|
|
12
|
+
- Add style for full class [kreafox - [`b124820`](https://github.com/eea/volto-cca-policy/commit/b124820402b0c775619f5f8e4865a08120811173)]
|
|
13
|
+
- Update footer link [kreafox - [`b587810`](https://github.com/eea/volto-cca-policy/commit/b5878105561ad5c2fcbb257aad4d50c112928809)]
|
|
14
|
+
- Add button.overrides [kreafox - [`0c4c12b`](https://github.com/eea/volto-cca-policy/commit/0c4c12bbc72cad147a5d4b192b58f0a9c724a873)]
|
|
15
|
+
### [0.1.9](https://github.com/eea/volto-cca-policy/compare/0.1.8...0.1.9) - 20 March 2023
|
|
16
|
+
|
|
17
|
+
#### :hammer_and_wrench: Others
|
|
18
|
+
|
|
19
|
+
- Set all paths not contaning /en/mission as external routes. (Disabled in development mode to prevent infinite redirect.) [GhitaB - [`42c76ae`](https://github.com/eea/volto-cca-policy/commit/42c76ae36687077c33f87c752310ad170b0a639e)]
|
|
20
|
+
- Remove unused import [kreafox - [`32229f6`](https://github.com/eea/volto-cca-policy/commit/32229f671fa11260da4441aab625c4b731c03744)]
|
|
21
|
+
- Fix eslint [kreafox - [`dc023e7`](https://github.com/eea/volto-cca-policy/commit/dc023e76b660ad6fd4880287df2a03c82284e6cf)]
|
|
22
|
+
- Use latest eea-design-system [kreafox - [`460a28b`](https://github.com/eea/volto-cca-policy/commit/460a28b99d7aa17d1eab27052772841e08ba44fe)]
|
|
23
|
+
- Better logo [kreafox - [`5dda132`](https://github.com/eea/volto-cca-policy/commit/5dda132268f5943e3fbfcf0689088afbc9a85d25)]
|
|
24
|
+
- Update footer [kreafox - [`680f29a`](https://github.com/eea/volto-cca-policy/commit/680f29acf1458ea238df114ad464c3d0025cd707)]
|
|
7
25
|
### [0.1.8](https://github.com/eea/volto-cca-policy/compare/0.1.7...0.1.8) - 16 March 2023
|
|
8
26
|
|
|
9
27
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "@eeacms/volto-cca-policy: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@eeacms/volto-eea-design-system"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@eeacms/volto-eea-design-system": "
|
|
24
|
+
"@eeacms/volto-eea-design-system": "*",
|
|
25
25
|
"@eeacms/volto-openlayers-map": "*"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import { Dropdown, Image } from 'semantic-ui-react';
|
|
8
8
|
import { connect, useDispatch, useSelector } from 'react-redux';
|
|
9
9
|
|
|
10
|
-
import { withRouter
|
|
10
|
+
import { withRouter } from 'react-router-dom';
|
|
11
11
|
import { UniversalLink } from '@plone/volto/components';
|
|
12
12
|
import {
|
|
13
13
|
getBaseUrl,
|
|
@@ -204,7 +204,7 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
|
204
204
|
transparency={isHomePageInverse ? true : false}
|
|
205
205
|
logo={
|
|
206
206
|
<div {...(isSubsite ? { className: 'logo-wrapper' } : {})}>
|
|
207
|
-
{!!subsite && subsite.title
|
|
207
|
+
{!!subsite && subsite.title ? (
|
|
208
208
|
<>
|
|
209
209
|
{subsite.subsite_logo ? (
|
|
210
210
|
<Logo
|
|
@@ -216,14 +216,23 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
|
216
216
|
) : (
|
|
217
217
|
subsite.title
|
|
218
218
|
)}
|
|
219
|
+
<div className="subsite-logo">
|
|
220
|
+
<Logo
|
|
221
|
+
src={isHomePageInverse ? logoWhite : logo}
|
|
222
|
+
title={eea.websiteTitle}
|
|
223
|
+
alt={eea.organisationName}
|
|
224
|
+
url={eea.logoTargetUrl}
|
|
225
|
+
/>
|
|
226
|
+
</div>
|
|
219
227
|
</>
|
|
220
|
-
)
|
|
221
|
-
|
|
222
|
-
<Image
|
|
228
|
+
) : (
|
|
229
|
+
<Logo
|
|
223
230
|
src={isHomePageInverse ? logoWhite : logo}
|
|
224
|
-
|
|
231
|
+
title={eea.websiteTitle}
|
|
232
|
+
alt={eea.organisationName}
|
|
233
|
+
url={eea.logoTargetUrl}
|
|
225
234
|
/>
|
|
226
|
-
|
|
235
|
+
)}
|
|
227
236
|
</div>
|
|
228
237
|
}
|
|
229
238
|
menuItems={items}
|
package/src/index.js
CHANGED
|
@@ -17,6 +17,20 @@ import europeanComissionLogo from '@eeacms/volto-cca-policy/../theme//assets/ima
|
|
|
17
17
|
import installBlocks from './components/manage/Blocks';
|
|
18
18
|
|
|
19
19
|
const applyConfig = (config) => {
|
|
20
|
+
const notInEnMission = /^(?!(\/en\/mission)).*$/;
|
|
21
|
+
if (!__DEVELOPMENT__) {
|
|
22
|
+
config.settings.externalRoutes = [
|
|
23
|
+
...(config.settings.externalRoutes || []),
|
|
24
|
+
{
|
|
25
|
+
match: {
|
|
26
|
+
path: notInEnMission,
|
|
27
|
+
exact: false,
|
|
28
|
+
strict: false,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
|
|
20
34
|
config.settings.dateLocale = 'en-gb';
|
|
21
35
|
config.settings.isMultilingual = true;
|
|
22
36
|
config.settings.defaultLanguage =
|
|
@@ -62,17 +76,23 @@ const applyConfig = (config) => {
|
|
|
62
76
|
},
|
|
63
77
|
],
|
|
64
78
|
social: [],
|
|
79
|
+
actions: [
|
|
80
|
+
{
|
|
81
|
+
link: '/en/mission/login',
|
|
82
|
+
title: 'CMS Login',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
65
85
|
contacts: [
|
|
66
86
|
{
|
|
67
87
|
icon: 'comment outline',
|
|
68
88
|
text: 'About us',
|
|
69
|
-
link: '/about',
|
|
89
|
+
link: '/en/mission/about-us',
|
|
70
90
|
children: [],
|
|
71
91
|
},
|
|
72
92
|
{
|
|
73
93
|
icon: 'comment outline',
|
|
74
94
|
text: 'Contact us',
|
|
75
|
-
link: '/contact-us',
|
|
95
|
+
link: '/en/mission/about-us/contact-us',
|
|
76
96
|
},
|
|
77
97
|
// {
|
|
78
98
|
// icon: 'envelope outline',
|
|
@@ -145,10 +165,6 @@ const applyConfig = (config) => {
|
|
|
145
165
|
config = installExpressMiddleware(config);
|
|
146
166
|
}
|
|
147
167
|
|
|
148
|
-
config.settings.eea.footerOpts.actions = [
|
|
149
|
-
{ link: '/en/mission/login', title: 'CMS Login' },
|
|
150
|
-
];
|
|
151
|
-
|
|
152
168
|
return installBlocks(config);
|
|
153
169
|
};
|
|
154
170
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.ui.basic.button {
|
|
2
|
+
padding: 0;
|
|
3
|
+
border: 0;
|
|
4
|
+
background: transparent;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
text-align: initial;
|
|
7
|
+
|
|
8
|
+
&:focus {
|
|
9
|
+
outline: none;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ui.basic.primary.button,
|
|
14
|
+
.ui.basic.secondary.button {
|
|
15
|
+
box-shadow: none !important;
|
|
16
|
+
|
|
17
|
+
&:hover,
|
|
18
|
+
&:active {
|
|
19
|
+
background: transparent !important;
|
|
20
|
+
box-shadow: none !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -13,6 +13,21 @@ p.has--clear--both:empty {
|
|
|
13
13
|
margin-bottom: 0;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
[class~='view-defaultview'] [id='page-document'] > .full,
|
|
17
|
+
[class~='view-viewview'] [id='page-document'] > .full {
|
|
18
|
+
max-width: initial !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.full {
|
|
22
|
+
position: relative !important;
|
|
23
|
+
right: 50%;
|
|
24
|
+
left: 50%;
|
|
25
|
+
width: 100vw !important;
|
|
26
|
+
max-width: initial !important;
|
|
27
|
+
margin-right: -50vw !important;
|
|
28
|
+
margin-left: -50vw !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
16
31
|
// Adaptation option view styles
|
|
17
32
|
div.adaptation-option-view,
|
|
18
33
|
div.case-study-view {
|
|
@@ -93,10 +108,6 @@ body.subsite-mkh {
|
|
|
93
108
|
max-width: 252px;
|
|
94
109
|
}
|
|
95
110
|
|
|
96
|
-
.eea.header .subsite-logo {
|
|
97
|
-
left: 280px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
111
|
.subfooter .footer-description {
|
|
101
112
|
margin-top: 3em;
|
|
102
113
|
margin-bottom: 1em;
|
|
@@ -138,8 +149,16 @@ body.subsite-mkh {
|
|
|
138
149
|
}
|
|
139
150
|
|
|
140
151
|
.eea.header .subsite-logo {
|
|
141
|
-
|
|
142
|
-
|
|
152
|
+
z-index: unset;
|
|
153
|
+
height: 100%;
|
|
154
|
+
|
|
155
|
+
.logo {
|
|
156
|
+
display: inline-block;
|
|
157
|
+
height: 100%;
|
|
158
|
+
|
|
159
|
+
img {
|
|
160
|
+
max-width: 320px;
|
|
161
|
+
}
|
|
143
162
|
}
|
|
144
163
|
|
|
145
164
|
&:before {
|
|
@@ -157,3 +176,9 @@ body.subsite-mkh {
|
|
|
157
176
|
background: @subsiteBackgroundGradient;
|
|
158
177
|
}
|
|
159
178
|
}
|
|
179
|
+
|
|
180
|
+
@media only screen and (min-width: @largestSmallMonitor) {
|
|
181
|
+
.eea.header .subsite-logo {
|
|
182
|
+
left: 280px !important;
|
|
183
|
+
}
|
|
184
|
+
}
|