@asd20/ui 3.2.585 → 3.2.587
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/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<div class="asd20-page-header__main">
|
|
18
18
|
<div
|
|
19
19
|
class="asd20-page-header__content"
|
|
20
|
-
:class="imageUrl ? 'add-fade' : ''"
|
|
20
|
+
:class="imageUrl ? 'add-fade' : headerImageUrl ? 'new-header' : ''"
|
|
21
21
|
:style="styles"
|
|
22
22
|
>
|
|
23
23
|
<div class="asd20-page-header__tools">
|
|
@@ -164,6 +164,7 @@ export default {
|
|
|
164
164
|
lead: { type: String, default: '' },
|
|
165
165
|
callsToAction: { type: Array, default: () => [] },
|
|
166
166
|
imageUrl: { type: String, default: '' },
|
|
167
|
+
headerImageUrl: { type: String, default: '' },
|
|
167
168
|
imageCaption: { type: String, default: '' },
|
|
168
169
|
fullscreen: { type: Boolean, default: false },
|
|
169
170
|
detailLink: { type: String, default: '' },
|
|
@@ -202,8 +203,14 @@ export default {
|
|
|
202
203
|
)
|
|
203
204
|
},
|
|
204
205
|
styles() {
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
if (this.headerImageUrl) {
|
|
207
|
+
return {
|
|
208
|
+
'--imageBackground': `url('${this.headerImageUrl}')`,
|
|
209
|
+
}
|
|
210
|
+
} else {
|
|
211
|
+
return {
|
|
212
|
+
'--imageBackground': `url('${this.imageUrl}')`,
|
|
213
|
+
}
|
|
207
214
|
}
|
|
208
215
|
},
|
|
209
216
|
},
|
|
@@ -342,8 +349,10 @@ export default {
|
|
|
342
349
|
position: relative;
|
|
343
350
|
color: var(--website-header__foreground-color);
|
|
344
351
|
padding: space(1.5) space(1) space(3) space(1);
|
|
345
|
-
background: var(--website-header__background-color)
|
|
346
|
-
|
|
352
|
+
background: var(--website-header__background-color)
|
|
353
|
+
var(--website-header__background-style);
|
|
354
|
+
// background: var(--website-header__background-color) var(--imageBackground)
|
|
355
|
+
// 50% 50% / cover no-repeat;
|
|
347
356
|
&::v-deep .asd20-breadcrumb {
|
|
348
357
|
margin: space(1) 0 0 0;
|
|
349
358
|
}
|
|
@@ -351,6 +360,10 @@ export default {
|
|
|
351
360
|
max-width: 100%;
|
|
352
361
|
}
|
|
353
362
|
}
|
|
363
|
+
.new-header {
|
|
364
|
+
background: var(--website-header__background-color) var(--imageBackground)
|
|
365
|
+
left center / cover no-repeat;
|
|
366
|
+
}
|
|
354
367
|
.add-fade {
|
|
355
368
|
&::before {
|
|
356
369
|
content: '';
|
|
@@ -409,28 +409,28 @@ export default {
|
|
|
409
409
|
}
|
|
410
410
|
.new-header {
|
|
411
411
|
background: var(--website-header__background-color) var(--imageBackground)
|
|
412
|
-
|
|
413
|
-
}
|
|
414
|
-
.add-fade {
|
|
415
|
-
&::before {
|
|
416
|
-
content: '';
|
|
417
|
-
// height: auto;
|
|
418
|
-
display: block;
|
|
419
|
-
position: absolute;
|
|
420
|
-
z-index: -1;
|
|
421
|
-
top: 0;
|
|
422
|
-
bottom: auto;
|
|
423
|
-
left: 0;
|
|
424
|
-
width: 100%;
|
|
425
|
-
height: 100%;
|
|
426
|
-
background: linear-gradient(
|
|
427
|
-
30deg,
|
|
428
|
-
rgba(6, 11, 31, 0.7) 10%,
|
|
429
|
-
rgba(6, 11, 31, 0.5) 55%,
|
|
430
|
-
transparent 70%
|
|
431
|
-
);
|
|
432
|
-
}
|
|
412
|
+
left center / cover no-repeat;
|
|
433
413
|
}
|
|
414
|
+
// .add-fade {
|
|
415
|
+
// &::before {
|
|
416
|
+
// content: '';
|
|
417
|
+
// // height: auto;
|
|
418
|
+
// display: block;
|
|
419
|
+
// position: absolute;
|
|
420
|
+
// z-index: -1;
|
|
421
|
+
// top: 0;
|
|
422
|
+
// bottom: auto;
|
|
423
|
+
// left: 0;
|
|
424
|
+
// width: 100%;
|
|
425
|
+
// height: 100%;
|
|
426
|
+
// background: linear-gradient(
|
|
427
|
+
// 30deg,
|
|
428
|
+
// rgba(6, 11, 31, 0.7) 10%,
|
|
429
|
+
// rgba(6, 11, 31, 0.5) 55%,
|
|
430
|
+
// transparent 70%
|
|
431
|
+
// );
|
|
432
|
+
// }
|
|
433
|
+
// }
|
|
434
434
|
|
|
435
435
|
h1 {
|
|
436
436
|
position: relative;
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"name": "full",
|
|
189
|
-
"filename": "
|
|
189
|
+
"filename": "headerimagePES Accredidation Hero_1280x711_2023-08-29T21_16_58.jpg",
|
|
190
190
|
"url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images/accredited-with-distinction/full/PES Accredidation Hero_1280x711_2023-08-29T21_16_58.jpg"
|
|
191
191
|
}
|
|
192
192
|
],
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
206
206
|
const coverImageFiles = coverImage.files || []
|
|
207
207
|
const coverImageFull = coverImageFiles.find(f => f.name === 'full')
|
|
208
208
|
if (coverImageFull && coverImageFull.filename.includes('headerimage')) {
|
|
209
|
-
imageUrl =
|
|
209
|
+
imageUrl = null
|
|
210
210
|
headerImageUrl = coverImageFull ? coverImageFull.url : coverImage.url || ''
|
|
211
211
|
} else {
|
|
212
212
|
imageUrl = coverImageFull ? coverImageFull.url : coverImage.url || ''
|