@asd20/ui 3.2.582 → 3.2.584
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/Asd20DistrictVideoTemplate/index.vue +9 -52
- 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: 0;
|
|
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%;
|
|
@@ -208,18 +208,24 @@ export default {
|
|
|
208
208
|
margin-top: space(2.25);
|
|
209
209
|
|
|
210
210
|
.asd20-video-header {
|
|
211
|
+
&__top {
|
|
212
|
+
position: absolute;
|
|
213
|
+
}
|
|
211
214
|
.weather-status-and-translation-container {
|
|
212
215
|
display: flex;
|
|
213
216
|
flex-direction: row;
|
|
214
217
|
align-items: center;
|
|
218
|
+
margin: space(0.25) 0;
|
|
219
|
+
justify-content: flex-end;
|
|
215
220
|
}
|
|
216
221
|
.asd20-language-translation {
|
|
217
|
-
position: absolute;
|
|
222
|
+
// position: absolute;
|
|
218
223
|
top: 3.5rem;
|
|
219
224
|
right: 0.5rem;
|
|
220
225
|
background: rgba(255, 255, 255, 0.9);
|
|
221
226
|
border-radius: 3rem;
|
|
222
227
|
border: 1px solid var(--website-page__alternate-background-color);
|
|
228
|
+
margin-left: 0.5rem;
|
|
223
229
|
.asd20-select-input {
|
|
224
230
|
padding: 0.25rem 0.25rem;
|
|
225
231
|
color: currentColor;
|
|
@@ -238,12 +244,6 @@ export default {
|
|
|
238
244
|
.asd20-language-loader {
|
|
239
245
|
order: 1;
|
|
240
246
|
}
|
|
241
|
-
|
|
242
|
-
.translation-button-adjust {
|
|
243
|
-
position: absolute;
|
|
244
|
-
top: space(1);
|
|
245
|
-
right: space(0.5);
|
|
246
|
-
}
|
|
247
247
|
.weather-link {
|
|
248
248
|
text-decoration: none;
|
|
249
249
|
border-radius: 3rem;
|
|
@@ -258,33 +258,10 @@ export default {
|
|
|
258
258
|
}
|
|
259
259
|
.double-notification-wrapper {
|
|
260
260
|
display: flex;
|
|
261
|
-
flex-direction:
|
|
262
|
-
justify-content: flex-end;
|
|
263
|
-
align-items: center;
|
|
264
|
-
flex-wrap: wrap;
|
|
261
|
+
flex-direction: column;
|
|
265
262
|
}
|
|
266
263
|
}
|
|
267
|
-
// .asd20-video-header-content {
|
|
268
|
-
// position: absolute;
|
|
269
|
-
// top: space(2);
|
|
270
|
-
// }
|
|
271
264
|
}
|
|
272
|
-
// .asd20-notification-group--floating {
|
|
273
|
-
// .bell {
|
|
274
|
-
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
|
|
275
|
-
// svg {
|
|
276
|
-
// fill: var(--color__accent) !important;
|
|
277
|
-
// }
|
|
278
|
-
// span {
|
|
279
|
-
// background: var(--color__accent) !important;
|
|
280
|
-
// top: inherit !important;
|
|
281
|
-
// right: inherit !important;
|
|
282
|
-
// width: 1.2rem !important;
|
|
283
|
-
// height: 1.2rem !important;
|
|
284
|
-
// font-size: 0.75rem !important;
|
|
285
|
-
// }
|
|
286
|
-
// }
|
|
287
|
-
// }
|
|
288
265
|
|
|
289
266
|
@keyframes slide_left {
|
|
290
267
|
from {
|
|
@@ -297,7 +274,7 @@ export default {
|
|
|
297
274
|
}
|
|
298
275
|
}
|
|
299
276
|
|
|
300
|
-
@media (min-width:
|
|
277
|
+
@media (min-width: 768px) {
|
|
301
278
|
.asd20-district-video-template {
|
|
302
279
|
.asd20-video-header {
|
|
303
280
|
.asd20-language-translation {
|
|
@@ -312,17 +289,11 @@ export default {
|
|
|
312
289
|
--fill-color: var(--color__accent) !important;
|
|
313
290
|
}
|
|
314
291
|
}
|
|
315
|
-
.translation-button-adjust {
|
|
316
|
-
position: absolute;
|
|
317
|
-
top: space(1);
|
|
318
|
-
right: space(0.5);
|
|
319
|
-
}
|
|
320
292
|
.double-notification-wrapper {
|
|
321
293
|
justify-content: center;
|
|
322
294
|
}
|
|
323
295
|
}
|
|
324
296
|
.asd20-video-header-content {
|
|
325
|
-
// position: absolute;
|
|
326
297
|
top: inherit;
|
|
327
298
|
bottom: 0%;
|
|
328
299
|
}
|
|
@@ -334,22 +305,8 @@ export default {
|
|
|
334
305
|
display: block;
|
|
335
306
|
margin-left: space(3);
|
|
336
307
|
margin-top: 0;
|
|
337
|
-
// .notification-group--floating {
|
|
338
|
-
// .bell {
|
|
339
|
-
// span {
|
|
340
|
-
// background: var(--color__accent);
|
|
341
|
-
// top: -0.6em !important;
|
|
342
|
-
// right: -0.6em !important;
|
|
343
|
-
// }
|
|
344
|
-
// }
|
|
345
|
-
// }
|
|
346
308
|
}
|
|
347
309
|
.asd20-video-header {
|
|
348
|
-
.translation-button-adjust {
|
|
349
|
-
position: absolute;
|
|
350
|
-
top: space(-1) !important;
|
|
351
|
-
right: space(0) !important;
|
|
352
|
-
}
|
|
353
310
|
.double-notification-wrapper {
|
|
354
311
|
justify-content: flex-end !important;
|
|
355
312
|
}
|
|
@@ -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
|
],
|