@eeacms/volto-clms-theme 1.0.208 → 1.0.209

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,18 @@ 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.0.209](https://github.com/eea/volto-clms-theme/compare/1.0.208...1.0.209) - 24 May 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - style [Unai - [`3a18444`](https://github.com/eea/volto-clms-theme/commit/3a18444caf19394cffa6404d73d03dcf8f8a2f23)]
12
+ - basic image editor style [Unai - [`3d1f0ef`](https://github.com/eea/volto-clms-theme/commit/3d1f0ef685ae9f9216d23e8eee966465511ddb91)]
13
+ - green bg image working [Unai - [`90e1d1d`](https://github.com/eea/volto-clms-theme/commit/90e1d1d98c3c2a4d7d40257f8ce5f9289b031395)]
14
+ - image white background working [Unai - [`7d4c3cf`](https://github.com/eea/volto-clms-theme/commit/7d4c3cfff8855663f49a41028b4ec016c3e6bd26)]
15
+ - block choser position fix inside section [Unai - [`787b713`](https://github.com/eea/volto-clms-theme/commit/787b71325a9d95fc5e13a820a9a1c379720f3521)]
16
+ - srcSet adjustment and unused background style commented [Unai - [`aac7a02`](https://github.com/eea/volto-clms-theme/commit/aac7a0225d9f22f9479bd331871f2c0e7c2df1d3)]
17
+ - new scales added [Unai - [`b37168d`](https://github.com/eea/volto-clms-theme/commit/b37168d5258c4a77a0c336f07dd4e1830c38a155)]
18
+ - feat CLMS:2142: first try changing home white bg block to use srcSet [Unai - [`89611cd`](https://github.com/eea/volto-clms-theme/commit/89611cd6fde1e86b53dbf3d7f0abb2477ef20389)]
7
19
  ### [1.0.208](https://github.com/eea/volto-clms-theme/compare/1.0.207...1.0.208) - 19 May 2023
8
20
 
9
21
  #### :hammer_and_wrench: Others
@@ -1131,7 +1143,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1131
1143
  #### :hammer_and_wrench: Others
1132
1144
 
1133
1145
  - related products and datasets added to news and meeting views and login-plone route created [Unai - [`5704a1a`](https://github.com/eea/volto-clms-theme/commit/5704a1a766148746162b60efaf232ea90dc20cf4)]
1134
- - Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
1135
1146
  - sort items according to the lowercased label and put those with special meaning at the end [Mikel Larreategi - [`6410abe`](https://github.com/eea/volto-clms-theme/commit/6410abe096f60dcad54dced2026c9df9b7946d68)]
1136
1147
  - lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
1137
1148
  - footer newsletter subscription change, global search maxLength change from 8000 to 200 and /login design change [Unai - [`a09d24a`](https://github.com/eea/volto-clms-theme/commit/a09d24adbb6fa053fb2a2cc0071506b906593b42)]
@@ -1282,7 +1293,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1282
1293
  - search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
1283
1294
  - language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
1284
1295
  - toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
1285
- - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
1286
1296
  ### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
1287
1297
 
1288
1298
  #### :hammer_and_wrench: Others
@@ -2187,13 +2197,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2187
2197
  #### :hammer_and_wrench: Others
2188
2198
 
2189
2199
  - replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
2190
- - yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
2191
2200
  - add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
2192
2201
  - upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
2193
2202
  - HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
2194
2203
  - babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
2195
2204
  - prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
2196
- - add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
2197
2205
  - Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
2198
2206
  - cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
2199
2207
  - some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.208",
3
+ "version": "1.0.209",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -7,12 +7,23 @@ const CclGreenBgView = (props) => {
7
7
  const { showInfo, setShowInfo } = props?.content || {};
8
8
  return (
9
9
  <div className="ccl-banner-top-container">
10
- <div
11
- className="ccl-banner-top-main"
12
- style={{
13
- backgroundImage: `url(${data?.image?.url}/@@images/image/huge)`,
14
- }}
15
- >
10
+ <div className="ccl-banner-top-main">
11
+ <img
12
+ src={
13
+ `${data?.image?.url}/@@images/image/huge` ||
14
+ 'https://eu-copernicus.github.io/copernicus-component-library/assets/images/image_placeholder.jpg'
15
+ }
16
+ srcSet={`${data?.image?.url}/@@images/image/huge4000 4200w,
17
+ ${data?.image?.url}/@@images/image/huge3000 4000w,
18
+ ${data?.image?.url}/@@images/image/huge2400 3000w,
19
+ ${data?.image?.url}/@@images/image/huge 2400w,
20
+ ${data?.image?.url}/@@images/image/great 1600w,
21
+ ${data?.image?.url}/@@images/image/larger 1000w,
22
+ ${data?.image?.url}/@@images/image/large 800w,
23
+ ${data?.image?.url}/@@images/image/teaser 600w,
24
+ `}
25
+ alt={data.image.alt}
26
+ />
16
27
  {isEditMode && <CclHomeImageEditor {...props} />}
17
28
  <div className="ccl-container">
18
29
  <div className="ccl-banner-top-main-block-title">
@@ -6,14 +6,23 @@ const CclWhiteBgView = (props) => {
6
6
  const { data, isEditMode } = props;
7
7
 
8
8
  return (
9
- <div
10
- className="home-map-container"
11
- style={{
12
- backgroundImage:
13
- `url(${data?.image?.url}/@@images/image)` ||
14
- 'url(https://eu-copernicus.github.io/copernicus-component-library/assets/images/image_placeholder.jpg)',
15
- }}
16
- >
9
+ <div className="home-map-container">
10
+ <img
11
+ src={
12
+ `${data?.image?.url}/@@images/image/huge` ||
13
+ 'https://eu-copernicus.github.io/copernicus-component-library/assets/images/image_placeholder.jpg'
14
+ }
15
+ srcSet={`${data?.image?.url}/@@images/image/huge4000 4200w,
16
+ ${data?.image?.url}/@@images/image/huge3000 4000w,
17
+ ${data?.image?.url}/@@images/image/huge2400 3000w,
18
+ ${data?.image?.url}/@@images/image/huge 2400w,
19
+ ${data?.image?.url}/@@images/image/great 1600w,
20
+ ${data?.image?.url}/@@images/image/larger 1000w,
21
+ ${data?.image?.url}/@@images/image/large 800w,
22
+ ${data?.image?.url}/@@images/image/teaser 600w,
23
+ `}
24
+ alt={data.image.alt}
25
+ />
17
26
  {isEditMode && <CclHomeImageEditor {...props} />}
18
27
  <div className="ccl-container">
19
28
  <div className="home-map-banner">
@@ -8,6 +8,11 @@
8
8
  }
9
9
 
10
10
  .image-message {
11
+ position: absolute !important;
12
+ z-index: 9999 !important;
13
+ width: auto;
14
+ min-width: 100%;
15
+ max-width: 100%;
11
16
  opacity: 0.8;
12
17
  }
13
18
 
@@ -96,9 +96,9 @@
96
96
  .ccl-banner-top-bar .ccl-container {
97
97
  display: flex;
98
98
  height: 100%;
99
- padding: 0 2rem;
100
99
  align-items: center;
101
100
  justify-content: space-between;
101
+ padding: 0 2rem;
102
102
  }
103
103
 
104
104
  .ccl-banner-top-bar-left .ccl-banner-top-bar-right {
@@ -118,12 +118,37 @@
118
118
  margin-left: 0.5rem;
119
119
  }
120
120
 
121
- .home-carousel .ccl-banner-top-main {
121
+ /* .home-carousel .ccl-banner-top-main {
122
122
  padding: 4rem 4rem;
123
123
  background-position: center;
124
124
  background-repeat: no-repeat;
125
125
  background-size: cover;
126
+ } */
127
+
128
+ .ccl-banner-top-main {
129
+ position: relative;
130
+ display: flex;
131
+ justify-content: center;
132
+ }
133
+
134
+ .ccl-banner-top-main img {
135
+ width: auto;
136
+ min-width: 100%;
137
+ max-width: 100%;
138
+ min-height: 349px;
139
+ max-height: 349px;
140
+ object-fit: cover;
141
+ object-position: center;
142
+ }
143
+
144
+ .ccl-banner-top-main > .ccl-container {
145
+ position: absolute;
146
+ bottom: 4rem;
147
+ width: 100%;
148
+ max-width: 1400px;
149
+ padding: 0 2rem;
126
150
  }
151
+
127
152
  @media (max-width: 480px) {
128
153
  .home-carousel .ccl-banner-top-main {
129
154
  padding: 2rem 2rem;
@@ -327,12 +352,26 @@
327
352
 
328
353
  /* Map band */
329
354
  .home-map-container {
330
- padding: 4rem 1rem;
331
- background: url(../img/home-map-background.jpg) no-repeat center;
332
- background-size: cover;
355
+ position: relative;
356
+ display: flex;
357
+ justify-content: center;
358
+ }
359
+
360
+ .home-map-container img {
361
+ width: auto;
362
+ min-width: 100%;
363
+ max-width: 100%;
364
+ min-height: 262px;
365
+ max-height: 262px;
366
+ object-fit: cover;
367
+ object-position: center;
333
368
  }
334
369
 
335
370
  .home-map-container > .ccl-container {
371
+ position: absolute;
372
+ bottom: 4rem;
373
+ width: 100%;
374
+ max-width: 1400px;
336
375
  padding: 0 2rem;
337
376
  }
338
377
 
@@ -717,10 +717,9 @@ main .search-form button {
717
717
  }
718
718
 
719
719
  .ccl-banner-top-container {
720
- padding: 4rem 2rem;
721
- background-image: url('../img/home-main-background.png');
722
- background-position: center;
723
- background-size: cover;
720
+ position: relative;
721
+ display: flex;
722
+ justify-content: center;
724
723
  }
725
724
  @media (max-width: 1250px) {
726
725
  .ccl-banner-top-container {
@@ -754,10 +753,10 @@ main .search-form button {
754
753
  height: 2rem;
755
754
  }
756
755
 
757
- .ccl-banner-top-container .ccl-banner-top-main-block-title {
756
+ /* .ccl-banner-top-container .ccl-banner-top-main-block-title {
758
757
  max-width: 100%;
759
758
  padding: 1.5rem;
760
- }
759
+ } */
761
760
 
762
761
  @media (min-width: 576px) {
763
762
  .ccl-banner-top-container .ccl-banner-top-main-block-title {
@@ -837,9 +836,26 @@ main .search-form button {
837
836
  }
838
837
 
839
838
  .home-map-container {
840
- padding: 4rem 1rem;
841
- background: url('../img/home-map-background.jpg') no-repeat center;
842
- background-size: cover;
839
+ position: relative;
840
+ display: flex;
841
+ justify-content: center;
842
+ }
843
+
844
+ .home-map-container img {
845
+ width: auto;
846
+ min-width: 100%;
847
+ min-height: 262px;
848
+ max-height: 262px;
849
+ object-fit: cover;
850
+ object-position: center;
851
+ }
852
+
853
+ .home-map-container > .ccl-container {
854
+ position: absolute;
855
+ bottom: 4rem;
856
+ width: 100%;
857
+ max-width: 1400px;
858
+ padding: 0 2rem;
843
859
  }
844
860
 
845
861
  .home-datasets-container h4 {
@@ -395,3 +395,9 @@ body:not(.is-authenticated):not(.document_wide_view).stretch {
395
395
  left: auto !important;
396
396
  margin-top: 50px;
397
397
  }
398
+
399
+ .section-block .blocks-chooser {
400
+ right: 0;
401
+ left: auto !important;
402
+ margin-top: 50px;
403
+ }