@asd20/ui 3.2.583 → 3.2.585
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 +1 -1
- package/src/components/atoms/Asd20Messaging/index.vue +7 -3
- package/src/components/organisms/Asd20ImageHeader/index.vue +53 -49
- package/src/components/organisms/Asd20PageContent/index.vue +1 -1
- package/src/components/organisms/Asd20PageHeader/index.vue +41 -2
- package/src/components/templates/Asd20WayfindingImageTemplate/index.stories.js +1 -1
- package/src/components/templates/Asd20WayfindingImageTemplate/index.vue +1 -1
- package/src/data/page-queries/landing-page-query-result.json +1 -0
- package/src/data/page-queries/sublanding-page-query-result.json +831 -885
- package/src/mixins/pageTemplateMixin.js +19 -4
package/package.json
CHANGED
|
@@ -94,9 +94,13 @@ export default {
|
|
|
94
94
|
if (coverImage) {
|
|
95
95
|
const coverImageFiles = coverImage.files || []
|
|
96
96
|
const coverImageFull = coverImageFiles.find(f => f.name === 'full')
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
if (coverImageFull && coverImageFull.filename.includes('headerimage')) {
|
|
98
|
+
messageImageUrl = ''
|
|
99
|
+
} else {
|
|
100
|
+
messageImageUrl = coverImageFull
|
|
101
|
+
? coverImageFull.url
|
|
102
|
+
: coverImage.url || ''
|
|
103
|
+
}
|
|
100
104
|
}
|
|
101
105
|
return messageImageUrl
|
|
102
106
|
},
|
|
@@ -14,8 +14,12 @@
|
|
|
14
14
|
</client-only>
|
|
15
15
|
<slot name="top" />
|
|
16
16
|
</div>
|
|
17
|
-
<div
|
|
18
|
-
<div
|
|
17
|
+
<div class="asd20-page-header__main">
|
|
18
|
+
<div
|
|
19
|
+
class="asd20-page-header__content"
|
|
20
|
+
:class="imageUrl ? 'add-fade' : ''"
|
|
21
|
+
:style="styles"
|
|
22
|
+
>
|
|
19
23
|
<div class="asd20-page-header__tools">
|
|
20
24
|
<asd20-breadcrumb
|
|
21
25
|
v-if="breadcrumbLinks.length"
|
|
@@ -81,9 +85,9 @@
|
|
|
81
85
|
</div>
|
|
82
86
|
</div>
|
|
83
87
|
|
|
84
|
-
<div v-if="imageUrl && !$slots.aside" class="asd20-page-header__image">
|
|
88
|
+
<!-- <div v-if="imageUrl && !$slots.aside" class="asd20-page-header__image">
|
|
85
89
|
<img :src="imageUrl" :alt="imageCaption" />
|
|
86
|
-
</div>
|
|
90
|
+
</div> -->
|
|
87
91
|
</div>
|
|
88
92
|
|
|
89
93
|
<aside class="asd20-page-header__aside" v-if="$slots.aside">
|
|
@@ -197,7 +201,13 @@ export default {
|
|
|
197
201
|
.pop()
|
|
198
202
|
)
|
|
199
203
|
},
|
|
204
|
+
styles() {
|
|
205
|
+
return {
|
|
206
|
+
'--imageBackground': `url('${this.imageUrl}')`,
|
|
207
|
+
}
|
|
208
|
+
},
|
|
200
209
|
},
|
|
210
|
+
|
|
201
211
|
methods: {
|
|
202
212
|
goBack() {
|
|
203
213
|
if (typeof window === 'undefined') return
|
|
@@ -241,10 +251,6 @@ export default {
|
|
|
241
251
|
border-bottom-left-radius: 0;
|
|
242
252
|
border-bottom-right-radius: 0;
|
|
243
253
|
}
|
|
244
|
-
&__main {
|
|
245
|
-
background: var(--website-header__background-color)
|
|
246
|
-
var(--website-header__background-style);
|
|
247
|
-
}
|
|
248
254
|
|
|
249
255
|
&__tools {
|
|
250
256
|
display: flex;
|
|
@@ -332,9 +338,12 @@ export default {
|
|
|
332
338
|
}
|
|
333
339
|
|
|
334
340
|
&__content {
|
|
341
|
+
z-index: 1;
|
|
335
342
|
position: relative;
|
|
336
343
|
color: var(--website-header__foreground-color);
|
|
337
|
-
padding: space(1) space(1) space(
|
|
344
|
+
padding: space(1.5) space(1) space(3) space(1);
|
|
345
|
+
background: var(--website-header__background-color) var(--imageBackground)
|
|
346
|
+
50% 50% / cover no-repeat;
|
|
338
347
|
&::v-deep .asd20-breadcrumb {
|
|
339
348
|
margin: space(1) 0 0 0;
|
|
340
349
|
}
|
|
@@ -342,6 +351,26 @@ export default {
|
|
|
342
351
|
max-width: 100%;
|
|
343
352
|
}
|
|
344
353
|
}
|
|
354
|
+
.add-fade {
|
|
355
|
+
&::before {
|
|
356
|
+
content: '';
|
|
357
|
+
// height: auto;
|
|
358
|
+
display: block;
|
|
359
|
+
position: absolute;
|
|
360
|
+
z-index: -1;
|
|
361
|
+
top: 0;
|
|
362
|
+
bottom: auto;
|
|
363
|
+
left: 0;
|
|
364
|
+
width: 100%;
|
|
365
|
+
height: 100%;
|
|
366
|
+
background: linear-gradient(
|
|
367
|
+
30deg,
|
|
368
|
+
rgba(6, 11, 31, 0.7) 10%,
|
|
369
|
+
rgba(6, 11, 31, 0.5) 55%,
|
|
370
|
+
transparent 70%
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
345
374
|
|
|
346
375
|
h1 {
|
|
347
376
|
position: relative;
|
|
@@ -438,31 +467,11 @@ export default {
|
|
|
438
467
|
.asd20-page-header {
|
|
439
468
|
&__main {
|
|
440
469
|
position: relative;
|
|
441
|
-
min-height:
|
|
442
|
-
}
|
|
443
|
-
.add-fade {
|
|
444
|
-
&::before {
|
|
445
|
-
content: '';
|
|
446
|
-
height: auto;
|
|
447
|
-
display: block;
|
|
448
|
-
position: absolute;
|
|
449
|
-
z-index: 0;
|
|
450
|
-
top: 0;
|
|
451
|
-
bottom: auto;
|
|
452
|
-
left: 0;
|
|
453
|
-
width: 100%;
|
|
454
|
-
height: 100%;
|
|
455
|
-
background: linear-gradient(
|
|
456
|
-
30deg,
|
|
457
|
-
rgba(6, 11, 31, 0.7) 10%,
|
|
458
|
-
rgba(6, 11, 31, 0.5) 50%,
|
|
459
|
-
transparent 70%
|
|
460
|
-
);
|
|
461
|
-
}
|
|
470
|
+
min-height: 300px;
|
|
462
471
|
}
|
|
463
472
|
&__content {
|
|
464
|
-
position:
|
|
465
|
-
padding: space(1) space(
|
|
473
|
+
position: relative;
|
|
474
|
+
padding: space(1) space(2) space(1) space(2);
|
|
466
475
|
min-height: 300px;
|
|
467
476
|
top: 0;
|
|
468
477
|
right: 0;
|
|
@@ -470,6 +479,10 @@ export default {
|
|
|
470
479
|
}
|
|
471
480
|
&__title-content {
|
|
472
481
|
max-width: 80%;
|
|
482
|
+
margin-bottom: space(2);
|
|
483
|
+
}
|
|
484
|
+
&__call-to-action {
|
|
485
|
+
margin: space(-1) space(2) space(-1) space(2);
|
|
473
486
|
}
|
|
474
487
|
|
|
475
488
|
&::after {
|
|
@@ -508,28 +521,11 @@ export default {
|
|
|
508
521
|
|
|
509
522
|
@media (min-width: 1024px) {
|
|
510
523
|
.asd20-page-header {
|
|
511
|
-
.add-fade {
|
|
512
|
-
&::before {
|
|
513
|
-
background: linear-gradient(
|
|
514
|
-
70deg,
|
|
515
|
-
rgba(6, 11, 31, 0.7) 10%,
|
|
516
|
-
rgba(6, 11, 31, 0.5) 40%,
|
|
517
|
-
transparent 70%
|
|
518
|
-
);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
524
|
&::v-deep .asd20-organization-picker {
|
|
522
525
|
display: flex;
|
|
523
526
|
margin: space(0) auto space(0) space(0);
|
|
524
527
|
}
|
|
525
528
|
|
|
526
|
-
// &::v-deep .asd20-district-logo {
|
|
527
|
-
// height: space(1.5);
|
|
528
|
-
// margin: space(1) auto space(1) 0;
|
|
529
|
-
// display: block;
|
|
530
|
-
// --fill-one: var(--color__primary);
|
|
531
|
-
// --fill-two: var(--color__secondary-t30);
|
|
532
|
-
// }
|
|
533
529
|
&__image {
|
|
534
530
|
max-height: 60vh;
|
|
535
531
|
}
|
|
@@ -545,6 +541,14 @@ export default {
|
|
|
545
541
|
order: 2;
|
|
546
542
|
}
|
|
547
543
|
}
|
|
544
|
+
&__content {
|
|
545
|
+
position: relative;
|
|
546
|
+
padding: space(1) space(2) space(1) space(2);
|
|
547
|
+
min-height: 450px;
|
|
548
|
+
top: 0;
|
|
549
|
+
right: 0;
|
|
550
|
+
left: 0;
|
|
551
|
+
}
|
|
548
552
|
&__title-content {
|
|
549
553
|
max-width: 60%;
|
|
550
554
|
}
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
<slot name="top" />
|
|
16
16
|
</div>
|
|
17
17
|
<div class="asd20-page-header__main">
|
|
18
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
class="asd20-page-header__content"
|
|
20
|
+
:class="headerImageUrl ? 'new-header add-fade' : ''"
|
|
21
|
+
:style="styles"
|
|
22
|
+
>
|
|
19
23
|
<div class="asd20-page-header__tools">
|
|
20
24
|
<asd20-breadcrumb
|
|
21
25
|
v-if="breadcrumbLinks.length"
|
|
@@ -166,6 +170,7 @@ export default {
|
|
|
166
170
|
lead: { type: String, default: '' },
|
|
167
171
|
callsToAction: { type: Array, default: () => [] },
|
|
168
172
|
imageUrl: { type: String, default: '' },
|
|
173
|
+
headerImageUrl: { type: String, default: '' },
|
|
169
174
|
imageCaption: { type: String, default: '' },
|
|
170
175
|
fullscreen: { type: Boolean, default: false },
|
|
171
176
|
detailLink: { type: String, default: '' },
|
|
@@ -218,6 +223,11 @@ export default {
|
|
|
218
223
|
// console.log(publishDateTimePlusOne, modifiedDateTimeString)
|
|
219
224
|
return modifiedDateTimeString > publishDateTimePlusOne ? true : false
|
|
220
225
|
},
|
|
226
|
+
styles() {
|
|
227
|
+
return {
|
|
228
|
+
'--imageBackground': `url('${this.headerImageUrl}')`,
|
|
229
|
+
}
|
|
230
|
+
},
|
|
221
231
|
},
|
|
222
232
|
mounted() {
|
|
223
233
|
this.goBack()
|
|
@@ -226,7 +236,10 @@ export default {
|
|
|
226
236
|
goBack() {
|
|
227
237
|
if (typeof window === 'undefined') return
|
|
228
238
|
const currentLocation = window.location.href
|
|
229
|
-
if (
|
|
239
|
+
if (
|
|
240
|
+
currentLocation.includes('schools') ||
|
|
241
|
+
currentLocation.includes('8080')
|
|
242
|
+
) {
|
|
230
243
|
const currentURL = new URL(window.location.href)
|
|
231
244
|
this.returnURL = currentURL.origin
|
|
232
245
|
return
|
|
@@ -389,10 +402,35 @@ export default {
|
|
|
389
402
|
var(--website-header__background-style);
|
|
390
403
|
color: var(--website-header__foreground-color);
|
|
391
404
|
padding: space(1) space(1) space(1) space(1);
|
|
405
|
+
z-index: 1;
|
|
392
406
|
&::v-deep .asd20-breadcrumb {
|
|
393
407
|
margin: space(1) 0;
|
|
394
408
|
}
|
|
395
409
|
}
|
|
410
|
+
.new-header {
|
|
411
|
+
background: var(--website-header__background-color) var(--imageBackground)
|
|
412
|
+
50% 50% / cover no-repeat;
|
|
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
|
+
}
|
|
396
434
|
|
|
397
435
|
h1 {
|
|
398
436
|
position: relative;
|
|
@@ -541,6 +579,7 @@ export default {
|
|
|
541
579
|
);
|
|
542
580
|
}
|
|
543
581
|
&__title-content {
|
|
582
|
+
position: relative;
|
|
544
583
|
max-width: space(35);
|
|
545
584
|
// .asd20-page-header__lead {
|
|
546
585
|
// margin-right: 25%;
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"name": "full",
|
|
189
|
+
"filename": "PES Accredidation Hero_1280x711_2023-08-29T21_16_58.jpg",
|
|
189
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"
|
|
190
191
|
}
|
|
191
192
|
],
|