@eeacms/volto-eea-design-system 1.12.1 → 1.13.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,6 +4,35 @@ 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
+ ### [1.13.0](https://github.com/eea/volto-eea-design-system/compare/1.12.1...1.13.0) - 8 June 2023
8
+
9
+ #### :boom: Breaking Change
10
+
11
+ - breaking(footer): use url parameter instead of link for footer actions [David Ichim - [`5b9cc2c`](https://github.com/eea/volto-eea-design-system/commit/5b9cc2c8a2979f3d49d69841a57684b3f80d5ea2)]
12
+ - breaking(footer): renamed contact-block to contact-wrapper [David Ichim - [`2fbb7df`](https://github.com/eea/volto-eea-design-system/commit/2fbb7df66eb37e17ab5391feb46d7ce2cfdfcbf3)]
13
+
14
+ #### :rocket: New Features
15
+
16
+ - feat(search): added matchpath to specify search location #352 from eea/searchpopup_update [ichim-david - [`7c236d5`](https://github.com/eea/volto-eea-design-system/commit/7c236d52f5de620f77b820387181fe1d902247d3)]
17
+
18
+ #### :nail_care: Enhancements
19
+
20
+ - change(footer): add dedicated classes for theme sites logos [David Ichim - [`adebd04`](https://github.com/eea/volto-eea-design-system/commit/adebd04bcf5dc5b28b90db540816384fc60b4073)]
21
+ - change(footer): header can now be added anywhere in the footer section [David Ichim - [`6ae4872`](https://github.com/eea/volto-eea-design-system/commit/6ae48728dd961d783c6a8120c8a88dc38f63eed6)]
22
+
23
+ #### :house: Internal changes
24
+
25
+
26
+ #### :house: Documentation changes
27
+
28
+ - docs: Update and rename Corporate-site-templates to 2-corporate-site-templates.md [Antonio De Marinis - [`41ffc55`](https://github.com/eea/volto-eea-design-system/commit/41ffc5545def9034e3955bf967a2b0b947023528)]
29
+
30
+ #### :hammer_and_wrench: Others
31
+
32
+ - test: Fix test config, coverage Refs #253277 [valentinab25 - [`12f31a2`](https://github.com/eea/volto-eea-design-system/commit/12f31a2018d8c73173fc7ff091c5c3ddd3b29f64)]
33
+ - bump package version due to breaking changes [David Ichim - [`75c83f0`](https://github.com/eea/volto-eea-design-system/commit/75c83f024dc40388086faeaec449f04da68c0d9b)]
34
+ - Rename to eea-storybook Refs #251478 [valentinab25 - [`bc4e753`](https://github.com/eea/volto-eea-design-system/commit/bc4e753a8e604ab323a32a1315c46fc5827aadbd)]
35
+ - added matchpath, we can independently specify on which location to apply a rule for the search popup [Zoltan Szabo - [`f4a40e0`](https://github.com/eea/volto-eea-design-system/commit/f4a40e04f50e87f5b0383a1b28d3459a2b91199b)]
7
36
  ### [1.12.1](https://github.com/eea/volto-eea-design-system/compare/1.12.0...1.12.1) - 24 May 2023
8
37
 
9
38
  #### :bug: Bug Fixes
@@ -326,7 +355,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
326
355
 
327
356
  - Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
328
357
  - better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
329
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
330
358
  - feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
331
359
  - prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
332
360
  - fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
@@ -397,7 +425,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
397
425
 
398
426
  #### :house: Internal changes
399
427
 
400
- - chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
401
428
  - style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
402
429
 
403
430
  #### :house: Documentation changes
@@ -594,7 +621,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
594
621
 
595
622
  - Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
596
623
  - Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
597
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
598
624
  - Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
599
625
  ### [1.0.0-alpha.9](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.8...1.0.0-alpha.9) - 28 December 2022
600
626
 
@@ -652,7 +678,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
652
678
  - bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
653
679
  - feature(docusaurus, storybook): logos selection for sites plus inverted options #253 from eea/doc-logo-page [ichim-david - [`dbfc90d`](https://github.com/eea/volto-eea-design-system/commit/dbfc90d035dc40e9d4054347f00fde4de486d63d)]
654
680
  - (feat): Add ability to disable the language select from website top menu - refs #158616 [dobri1408 - [`411c8e4`](https://github.com/eea/volto-eea-design-system/commit/411c8e4afaf0b2b9edfdeeecdca22aa4cc41f329)]
655
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
656
681
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
657
682
  - Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
658
683
  ### [1.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
@@ -684,7 +709,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
684
709
  #### :hammer_and_wrench: Others
685
710
 
686
711
  - Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
687
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
688
712
  - added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
689
713
  - Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
690
714
  - Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
@@ -772,7 +796,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
772
796
  #### :hammer_and_wrench: Others
773
797
 
774
798
  - feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
775
- - Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
776
799
  - Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
777
800
  - perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
778
801
  ### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
@@ -865,7 +888,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
865
888
  - modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
866
889
  - WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
867
890
  - fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
868
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
869
891
  - fix broken variable call for contentBox.variables introduced in previous commit by mistake [David Ichim - [`d249c11`](https://github.com/eea/volto-eea-design-system/commit/d249c1160d19bedb174a2fde3fdab48d9ce297d4)]
870
892
  - clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
871
893
  - Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
@@ -967,7 +989,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
967
989
 
968
990
  #### :nail_care: Enhancements
969
991
 
970
- - change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
971
992
  - change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
972
993
  - change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
973
994
  - change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
@@ -1002,7 +1023,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1002
1023
  #### :hammer_and_wrench: Others
1003
1024
 
1004
1025
  - Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
1005
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
1006
1026
  - Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
1007
1027
  ### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
1008
1028
 
@@ -1758,10 +1778,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1758
1778
  #### :hammer_and_wrench: Others
1759
1779
 
1760
1780
  - prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
1761
- - [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
1762
- - [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
1763
- - [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
1764
- - [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
1765
1781
  ### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
1766
1782
 
1767
1783
  #### :rocket: New Features
@@ -2186,7 +2202,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2186
2202
  - set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
2187
2203
  - remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
2188
2204
  - fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
2189
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
2190
2205
  - fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
2191
2206
  - removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
2192
2207
  - update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
@@ -2273,7 +2288,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2273
2288
  - remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
2274
2289
  - Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
2275
2290
  - fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
2276
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
2277
2291
  - fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
2278
2292
  - refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
2279
2293
  - removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
@@ -2842,7 +2856,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2842
2856
  - Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
2843
2857
  - Refs #140454 updated eea-design-system readme with extra info on package contents [David Ichim - [`d2efc3d`](https://github.com/eea/volto-eea-design-system/commit/d2efc3ddae7b91efc82cf3bce8fb8e42d696a780)]
2844
2858
  - Refs #140454 add h1 to the list of elements that are max 800px and centered [David Ichim - [`7d3c30f`](https://github.com/eea/volto-eea-design-system/commit/7d3c30f409aa4cb43810839f8960589456cc1b2e)]
2845
- - Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
2846
2859
  ### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
2847
2860
 
2848
2861
  #### :hammer_and_wrench: Others
@@ -5,6 +5,7 @@ module.exports = {
5
5
  '!src/**/*.d.ts',
6
6
  ],
7
7
  moduleNameMapper: {
8
+ '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
8
9
  '@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
9
10
  '@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
10
11
  '@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
@@ -17,7 +18,6 @@ module.exports = {
17
18
  '~/(.*)$': '<rootDir>/src/$1',
18
19
  'load-volto-addons':
19
20
  '<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
20
- '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
21
21
  },
22
22
  transform: {
23
23
  '^.+\\.js(x)?$': 'babel-jest',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "description": "@eeacms/volto-eea-design-system: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -8,16 +8,16 @@ const Contact = ({ children, contacts }) =>
8
8
  children?.length ? (
9
9
  children
10
10
  ) : (
11
- <div className="contact-block">
11
+ <div className="contact-wrapper">
12
12
  {contacts?.map((contact, index) => (
13
13
  <div className="contact" key={index}>
14
- {isInternalURL(contact.link) ? (
15
- <Link to={contact.link} className="bold">
14
+ {isInternalURL(contact.url) ? (
15
+ <Link to={contact.url} className="bold">
16
16
  {contact.text}
17
17
  </Link>
18
18
  ) : (
19
19
  <a
20
- href={contact.link}
20
+ href={contact.url}
21
21
  target={'_blank'}
22
22
  rel="noopener noreferrer"
23
23
  className={'bold'}
@@ -28,21 +28,21 @@ const Contact = ({ children, contacts }) =>
28
28
  {contact.children && (
29
29
  <div className="subcontact">
30
30
  {contact.children.map((child, index) => (
31
- <>
32
- {isInternalURL(child.link) ? (
33
- <Link to={child.link} key={index}>
31
+ <React.Fragment key={index}>
32
+ {isInternalURL(child.url) ? (
33
+ <Link to={child.url} key={index}>
34
34
  {child.text}
35
35
  </Link>
36
36
  ) : (
37
37
  <a
38
- href={child.link}
38
+ href={child.url}
39
39
  target={'_blank'}
40
40
  rel="noopener noreferrer"
41
41
  >
42
42
  {child.text}
43
43
  </a>
44
44
  )}
45
- </>
45
+ </React.Fragment>
46
46
  ))}
47
47
  </div>
48
48
  )}
@@ -33,64 +33,82 @@ Default.args = {
33
33
  header: 'Environmental information systems',
34
34
  description: '',
35
35
  actions: [
36
- { link: '/privacy', title: 'Privacy' },
37
- { link: '/sitemap', title: 'Sitemap' },
38
- { link: 'https://www.eea.europa.eu/en/login', title: 'CMS Login' },
36
+ { url: '/privacy', title: 'Privacy' },
37
+ { url: '/sitemap', title: 'Sitemap' },
38
+ { url: 'https://www.eea.europa.eu/en/login', title: 'CMS Login' },
39
39
  ],
40
40
  copyright: [
41
- { link: 'https://status.eea.europa.eu/', title: 'System status' },
41
+ { url: 'https://status.eea.europa.eu/', title: 'System status' },
42
42
  {
43
- link: '/copyright',
43
+ url: '/copyright',
44
44
  title: '© Copyright 2023 EEA',
45
45
  },
46
46
  ],
47
47
  sites: [
48
- { link: 'https://water.europa.eu/marine', src: Marine, alt: 'WISE marine' },
49
48
  {
50
- link: 'https://water.europa.eu/freshwater',
49
+ url: 'https://water.europa.eu/marine',
50
+ src: Marine,
51
+ alt: 'WISE marine',
52
+ className: 'marine logo',
53
+ },
54
+ {
55
+ url: 'https://water.europa.eu/freshwater',
51
56
  src: Freshwater,
52
57
  alt: 'WISE freshwater',
58
+ className: 'freshwater logo',
59
+ },
60
+ {
61
+ url: 'https://biodiversity.europa.eu/',
62
+ src: Bise,
63
+ alt: 'Biodiversity',
64
+ className: 'biodiversity logo',
53
65
  },
54
- { link: 'https://biodiversity.europa.eu/', src: Bise, alt: 'Biodiversity' },
55
66
  {
56
- link: 'https://forest.eea.europa.eu/',
67
+ url: 'https://forest.eea.europa.eu/',
57
68
  src: Fise,
58
69
  alt: 'Forest information system for europe',
70
+ className: 'fise logo',
59
71
  },
60
72
  {
61
- link: 'https://climate-adapt.eea.europa.eu/observatory',
73
+ url: 'https://climate-adapt.eea.europa.eu/observatory',
62
74
  src: ClimateHealth,
63
75
  alt: 'Information platform for chemical monitoring',
76
+ className: 'climate logo',
64
77
  },
65
78
  {
66
- link: 'https://climate-adapt.eea.europa.eu/',
79
+ url: 'https://climate-adapt.eea.europa.eu/',
67
80
  src: Cca,
68
81
  alt: 'Climate adapt',
82
+ className: 'cca logo',
69
83
  },
70
84
  {
71
- link: 'https://industry.eea.europa.eu/',
85
+ url: 'https://industry.eea.europa.eu/',
72
86
  src: Industry,
73
87
  alt: 'European industrial emissions portal',
88
+ className: 'industry logo',
74
89
  },
75
90
  {
76
- link: 'https://climate-energy.eea.europa.eu/',
91
+ url: 'https://climate-energy.eea.europa.eu/',
77
92
  src: Energy,
78
93
  alt: 'Climate and energy in the EU',
94
+ className: 'energy logo',
79
95
  },
80
96
  {
81
- link: 'https://land.copernicus.eu/',
97
+ url: 'https://land.copernicus.eu/',
82
98
  src: Copernicus,
83
99
  alt: 'Copernicus land monitoring service',
100
+ className: 'copernicus logo',
84
101
  },
85
102
  {
86
- link: 'https://insitu.copernicus.eu/',
103
+ url: 'https://insitu.copernicus.eu/',
87
104
  src: Insitu,
88
105
  alt: 'Copernicus in situ',
106
+ className: 'insitu logo',
89
107
  },
90
108
  ],
91
109
  managedBy: [
92
110
  {
93
- link: 'https://www.eea.europa.eu/',
111
+ url: 'https://www.eea.europa.eu/',
94
112
  src: EEA,
95
113
  alt: 'EEA Logo',
96
114
  className: 'site logo',
@@ -101,7 +119,7 @@ Default.args = {
101
119
  },
102
120
  },
103
121
  {
104
- link: 'https://www.eionet.europa.eu/',
122
+ url: 'https://www.eionet.europa.eu/',
105
123
  src: Eionet,
106
124
  alt: 'EIONET Logo',
107
125
  className: 'eionet logo',
@@ -116,40 +134,40 @@ Default.args = {
116
134
  {
117
135
  name: 'twitter',
118
136
  icon: 'ri-twitter-fill',
119
- link: 'https://twitter.com/euenvironment',
137
+ url: 'https://twitter.com/euenvironment',
120
138
  },
121
139
  {
122
140
  name: 'facebook',
123
141
  icon: 'ri-facebook-box-fill',
124
- link: 'https://www.facebook.com/European.Environment.Agency',
142
+ url: 'https://www.facebook.com/European.Environment.Agency',
125
143
  },
126
144
  {
127
145
  name: 'linkedin',
128
146
  icon: 'ri-linkedin-fill',
129
- link: 'https://www.linkedin.com/company/european-environment-agency',
147
+ url: 'https://www.linkedin.com/company/european-environment-agency',
130
148
  },
131
149
  {
132
150
  name: 'youtube',
133
151
  icon: 'ri-youtube-fill',
134
- link: 'https://www.youtube.com/user/EEAvideos',
152
+ url: 'https://www.youtube.com/user/EEAvideos',
135
153
  },
136
154
  {
137
155
  name: 'instagram',
138
156
  icon: 'ri-instagram-fill',
139
- link: 'https://www.instagram.com/ourplanet_eu',
157
+ url: 'https://www.instagram.com/ourplanet_eu',
140
158
  },
141
- { name: 'rss', icon: 'ri-rss-fill', link: '/subscription/news-feeds' },
159
+ { name: 'rss', icon: 'ri-rss-fill', url: '/subscription/news-feeds' },
142
160
  ],
143
161
  contacts: [
144
162
  {
145
163
  text: 'About us',
146
- link: '/about',
164
+ url: '/about',
147
165
  children: [
148
- { text: 'FAQs', link: 'http://external.site' },
149
- { text: 'Careers', link: '/careers' },
166
+ { text: 'FAQs', url: 'http://external.site' },
167
+ { text: 'Careers', url: '/careers' },
150
168
  ],
151
169
  },
152
- { text: 'Contact us', link: '/contact-us' },
153
- { text: 'Sign up to our newsletter', link: '/newsletter' },
170
+ { text: 'Contact us', url: '/contact-us' },
171
+ { text: 'Sign up to our newsletter', url: '/newsletter' },
154
172
  ],
155
173
  };
@@ -15,13 +15,13 @@ const FooterActions = (props) => {
15
15
  <div className="actions">
16
16
  {props.actions &&
17
17
  props.actions.map((action, index) =>
18
- isInternalURL(action.link) ? (
19
- <Link to={action.link} key={index}>
18
+ isInternalURL(action.url) ? (
19
+ <Link to={action.url} key={index}>
20
20
  {action.title}
21
21
  </Link>
22
22
  ) : (
23
23
  <a
24
- href={action.link}
24
+ href={action.url}
25
25
  key={index}
26
26
  target={'_blank'}
27
27
  rel={'noreferrer'}
@@ -37,13 +37,13 @@ const FooterActions = (props) => {
37
37
  <div className="copyright">
38
38
  {props.copyright &&
39
39
  props.copyright.map((copyright, index) =>
40
- isInternalURL(copyright.link) ? (
41
- <Link to={copyright.link} key={index}>
40
+ isInternalURL(copyright.url) ? (
41
+ <Link to={copyright.url} key={index}>
42
42
  {copyright.title}
43
43
  </Link>
44
44
  ) : (
45
45
  <a
46
- href={copyright.link}
46
+ href={copyright.url}
47
47
  key={index}
48
48
  target={'_blank'}
49
49
  rel={'noreferrer'}
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
2
 
3
3
  const FooterHeader = (props) => {
4
- return (
5
- <div className="theme-sites">
6
- <h3 className="header text-center">{props.children}</h3>
7
- </div>
8
- );
4
+ return props.children ? (
5
+ <h2 className="footer-header text-center">{props.children}</h2>
6
+ ) : null;
9
7
  };
10
8
  export default FooterHeader;
@@ -12,14 +12,22 @@ const Sites = (props) => {
12
12
  const nextItem = logos[i + 1];
13
13
  column.push(
14
14
  <Grid.Column className="logo" key={i}>
15
- <a className="logo" href={item.link}>
15
+ <a className="logo" href={item.url}>
16
16
  <LazyLoadComponent>
17
- <Image src={item.src} alt={item.alt}></Image>
17
+ <Image
18
+ className={item.className}
19
+ src={item.src}
20
+ alt={item.alt}
21
+ ></Image>
18
22
  </LazyLoadComponent>
19
23
  </a>
20
- <a className="logo" href={nextItem.link}>
24
+ <a className="logo" href={nextItem.url}>
21
25
  <LazyLoadComponent>
22
- <Image src={nextItem.src} alt={nextItem.alt}></Image>
26
+ <Image
27
+ className={nextItem.className}
28
+ src={nextItem.src}
29
+ alt={nextItem.alt}
30
+ ></Image>
23
31
  </LazyLoadComponent>
24
32
  </a>
25
33
  </Grid.Column>,
@@ -11,7 +11,7 @@ const Social = (props) => {
11
11
  <Grid.Row>
12
12
  <div className="social">
13
13
  {props.social?.map((item, index) => (
14
- <a href={item.link} aria-label={`${item.name} link`} key={index}>
14
+ <a href={item.url} aria-label={`${item.name} link`} key={index}>
15
15
  <Icon className={item.icon}></Icon>
16
16
  </a>
17
17
  ))}
@@ -23,7 +23,7 @@ const SubFooter = (props) => {
23
23
  >
24
24
  <div className="item">
25
25
  <div className={manager.className}>
26
- <a href={manager.link}>
26
+ <a href={manager.url}>
27
27
  <LazyLoadComponent>
28
28
  <Image src={manager.src} alt={manager.alt}></Image>
29
29
  </LazyLoadComponent>
@@ -55,7 +55,7 @@ const SubFooter = (props) => {
55
55
  >
56
56
  <div className="item">
57
57
  <div className={manager.className}>
58
- <a href={manager.link}>
58
+ <a href={manager.url}>
59
59
  <LazyLoadComponent>
60
60
  <Image src={manager.src} alt={manager.alt}></Image>
61
61
  </LazyLoadComponent>
@@ -23,7 +23,7 @@ function HeaderSearchPopUp({
23
23
  const headerSearchViews = headerSearchBox || [];
24
24
  const defaultView = headerSearchViews.filter((v) => v.isDefault);
25
25
  const localView = headerSearchViews.filter((v) =>
26
- location.pathname.includes(v.path),
26
+ location.pathname.match(v.matchpath ? v.matchpath : v.path),
27
27
  );
28
28
  const activeView = localView.length > 0 ? localView[0] : defaultView[0];
29
29
 
@@ -38,11 +38,21 @@ footer .theme-sites {
38
38
  margin: @mobileThemeSitesLogoMargin;
39
39
  }
40
40
 
41
- .header {
42
- font-size: @mobileFooterTitleFontSize;
43
- }
41
+ }
42
+ footer .footer-header {
43
+ font-size: @mobileFooterTitleFontSize;
44
44
  }
45
45
 
46
+ .theme-sites .logo.freshwater {
47
+ max-width: @freshwaterLogoMaxWidth;
48
+ }
49
+ .subfooter .item {
50
+ display: @subFooterItemDisplay;
51
+ justify-content: @subFooterItemJustifyContent;
52
+ width: @subFooterItemWidth;
53
+ height: @subFooterItemHeight;
54
+ align-items: @subFooterItemAlignItems;
55
+ }
46
56
  .subfooter .item .ui.grid {
47
57
  align-items: center;
48
58
  }
@@ -54,11 +64,11 @@ footer .theme-sites {
54
64
  }
55
65
  }
56
66
 
57
- .subfooter .contact-block {
67
+ .subfooter .contact-wrapper {
58
68
  margin-bottom: @tabletContactBlockMarginBottom;
59
69
  }
60
70
 
61
- .contact-block .subcontact a {
71
+ .contact-wrapper .subcontact a {
62
72
  font-size: @computerSubContactIconFontSize;
63
73
  margin-right: @computerSubContactIconMarginRight;
64
74
  font-weight: @computerSubContactIconFontWeight;
@@ -149,7 +159,7 @@ footer .footer-wrapper .menu {
149
159
  font-weight: @mobileMenuCopyrightFontWeight;
150
160
  }
151
161
 
152
- .contact-block .subcontact {
162
+ .contact-wrapper .subcontact {
153
163
  margin-top: @mobileSubcontactBlockMarginTop;
154
164
  }
155
165
  }
@@ -159,7 +169,7 @@ footer .footer-wrapper .menu {
159
169
  background: @computerFooterBackgroundGradient;
160
170
  }
161
171
 
162
- footer .theme-sites .header {
172
+ footer .footer-header {
163
173
  font-size: @tabletFooterTitleFontSize;
164
174
  }
165
175
 
@@ -167,14 +177,6 @@ footer .footer-wrapper .menu {
167
177
  .logo img {
168
178
  max-height: 100px;
169
179
  }
170
-
171
- .site.logo img {
172
- padding-right: @siteLogoPaddingRight;
173
- }
174
-
175
- .contact-block {
176
- padding-left: @siteLogoPaddingRight;
177
- }
178
180
  }
179
181
 
180
182
  .subfooter .contact {
@@ -184,11 +186,11 @@ footer .footer-wrapper .menu {
184
186
  gap: @tabletContactGap;
185
187
  }
186
188
 
187
- .subfooter .contact-block {
189
+ .subfooter .contact-wrapper {
188
190
  margin-inline: @tabletContactBlockMarginInline;
189
191
  }
190
192
 
191
- .contact-block .subcontact a {
193
+ .contact-wrapper .subcontact a {
192
194
  font-size: @tabletSubContactIconFontSize;
193
195
  margin-right: @tabletSubContactIconMarginRight;
194
196
  }
@@ -239,7 +241,7 @@ footer .footer-wrapper .menu {
239
241
  }
240
242
  }
241
243
 
242
- .contact-block .subcontact a {
244
+ .contact-wrapper .subcontact a {
243
245
  font-size: @computerSubContactIconFontSize;
244
246
  margin-right: @computerSubContactIconMarginRight;
245
247
  }
@@ -23,15 +23,20 @@
23
23
  @computerThemeSitesLogoMargin : 0 auto @rem-space-10;
24
24
  @mobileFooterTitleFontSize : @mobileH4;
25
25
  @tabletFooterTitleFontSize : @h3;
26
+ @freshwaterLogoMaxWidth : 122px;
27
+
28
+ /* Sub-footer Item */
29
+ @subFooterItemDisplay: flex;
30
+ @subFooterItemJustifyContent: center;
31
+ @subFooterItemAlignItems: center;
32
+ @subFooterItemWidth: 100%;
33
+ @subFooterItemHeight: 100%;
26
34
 
27
35
  /* Sub-footer Item Header */
28
36
  @mobileItemHeaderMarginBottom : @space-5;
29
37
  @computerItemHeaderMarginBottom : @space-12;
30
38
  @computerLogoHeaderMarginLeft : -50px;
31
39
 
32
- /* Site Logo */
33
- @siteLogoPaddingRight : 20%;
34
-
35
40
  /* Contact Info */
36
41
  @tabletContactBlockMarginInline : 0;
37
42
  @tabletContactBlockMarginBottom : @space-4;