@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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.583",
8
+ "version": "3.2.585",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -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
- messageImageUrl = coverImageFull
98
- ? coverImageFull.url
99
- : coverImage.url || ''
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 :class="imageUrl ? 'add-fade' : ''" class="asd20-page-header__main">
18
- <div class="asd20-page-header__content">
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(1) space(1);
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: 500px;
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: absolute;
465
- padding: space(1) space(3) space(1) space(3);
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
  }
@@ -178,7 +178,7 @@ export default {
178
178
  padding: space(2) space(1) space(2) space(2);
179
179
  &::v-deep > * {
180
180
  // flex: 1 1 var(--minimum-column-width);
181
- margin: space(1) !important;
181
+ // margin: space(1) !important;
182
182
  }
183
183
  }
184
184
  &--grid,
@@ -15,7 +15,11 @@
15
15
  <slot name="top" />
16
16
  </div>
17
17
  <div class="asd20-page-header__main">
18
- <div class="asd20-page-header__content">
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 (currentLocation.includes('schools') || currentLocation.includes('8080')) {
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%;
@@ -32,7 +32,7 @@ const wrapper = {
32
32
  floating: [],
33
33
  status: [],
34
34
  }
35
- return boolean('Show Notifications', true)
35
+ return boolean('Show Notifications', false)
36
36
  ? notifications || empty
37
37
  : empty
38
38
  },
@@ -215,7 +215,7 @@ export default {
215
215
  margin-top: space(2.25);
216
216
  .asd20-notification-group--floating {
217
217
  position: absolute;
218
- top: space(1.5375);
218
+ top: space(2.06);
219
219
  // .bell {
220
220
  // box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
221
221
  // svg {
@@ -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
  ],