@asd20/ui 3.2.1043 → 3.2.1045

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.
Files changed (43) hide show
  1. package/.eslintrc.js +44 -5
  2. package/package.json +25 -32
  3. package/src/components/atoms/Asd20Factoid/index.vue +1 -1
  4. package/src/components/molecules/Asd20CommitteeContactCard/index.vue +1 -1
  5. package/src/components/molecules/Asd20DepartmentContactCard/index.vue +1 -1
  6. package/src/components/organisms/Asd20EventModal/index.vue +1 -1
  7. package/src/components/organisms/Asd20PersonModal/index.vue +1 -1
  8. package/src/components/organisms/Asd20SchoolPageHeader/index.vue +2 -2
  9. package/src/components/organisms/Asd20SiteMenu/index.vue +1 -1
  10. package/src/components/templates/Asd20ProfileTemplate/index.vue +1 -1
  11. package/src/components/templates/Asd20SchoolHomeTemplate/index.vue +1 -1
  12. package/src/components/templates/Asd20SchoolHomeVideoTemplate/index.vue +1 -1
  13. package/src/config/configurations.json +2 -2
  14. package/src/data/page-queries/campus-page-query-result.json +2 -2
  15. package/src/data/page-queries/digest-page-query-result.json +2 -2
  16. package/src/data/page-queries/filelist-page-query-result.json +2 -2
  17. package/src/data/page-queries/home-page-query-result.json +2 -2
  18. package/src/data/page-queries/landing-page-query-result.json +2 -2
  19. package/src/data/page-queries/page-not-found.json +2 -2
  20. package/src/data/page-queries/profile-page-query-result.json +2 -2
  21. package/src/data/page-queries/salary-calculator-page-result.json +2 -2
  22. package/src/data/page-queries/school-home-page-query-result.json +2 -2
  23. package/src/data/page-queries/story-index-page-query-result.json +2 -2
  24. package/src/data/page-queries/sublanding-page-query-result.json +2 -2
  25. package/src/data/page-queries/video-page-query-result.json +2 -2
  26. package/src/design/tokens.base.json +2 -2
  27. package/src/design/tokens.json +2 -2
  28. package/vue.config.js +41 -15
  29. package/package-lock.json +0 -93773
  30. package/src/components/organisms/Asd20BackToSchoolHeader/index.stories.js +0 -20
  31. package/src/components/organisms/Asd20BackToSchoolHeader/index.vue +0 -131
  32. package/src/components/organisms/Asd20CampaignPageHeader/index.stories.js +0 -35
  33. package/src/components/organisms/Asd20CampaignPageHeader/index.vue +0 -536
  34. package/src/components/organisms/Asd20ChoiceHeader/index.stories.js +0 -32
  35. package/src/components/organisms/Asd20ChoiceHeader/index.vue +0 -467
  36. package/src/components/organisms/Asd20CovidHeader/index.stories.js +0 -34
  37. package/src/components/organisms/Asd20CovidHeader/index.vue +0 -571
  38. package/src/components/organisms/Asd20GraduationHeader/index.stories.js +0 -33
  39. package/src/components/organisms/Asd20GraduationHeader/index.vue +0 -456
  40. package/src/components/organisms/Asd20KindergartenHeader/index.stories.js +0 -20
  41. package/src/components/organisms/Asd20KindergartenHeader/index.vue +0 -124
  42. package/src/components/organisms/Asd20ReturnToSchoolHeader/index.stories.js +0 -32
  43. package/src/components/organisms/Asd20ReturnToSchoolHeader/index.vue +0 -306
@@ -1,571 +0,0 @@
1
- <template>
2
- <header
3
- v-scroll-track.window
4
- class="asd20-covid-header"
5
- :class="classes"
6
- role="banner"
7
- >
8
- <div v-if="$slots.top" class="asd20-covid-header__top">
9
- <slot name="top" />
10
- </div>
11
-
12
- <h1 v-if="heading" v-html="heading" />
13
- <p v-if="lead" class="asd20-covid-header__lead">
14
- <span v-html="lead"></span>
15
- <a v-if="detailLink && !isDetailPage" :href="detailLink">
16
- {{ detailLinkLabel }}
17
- </a>
18
- </p>
19
-
20
- <figure v-if="imageUrl && !$slots.aside" class="asd20-covid-header__image">
21
- <img :src="imageUrl" :alt="imageCaption" />
22
- </figure>
23
-
24
- <aside class="asd20-covid-header__aside" v-if="$slots.aside">
25
- <slot name="aside" />
26
- </aside>
27
-
28
- <div
29
- v-if="callsToAction.length > 0"
30
- class="asd20-covid-header__call-to-action"
31
- >
32
- <asd20-button
33
- v-for="(cta, index) in callsToAction"
34
- :key="index"
35
- :size="['sm', 'md'].indexOf(mq) > -1 ? 'sm' : 'lg'"
36
- :label="cta.label"
37
- :icon="cta.icon"
38
- :link="cta.url"
39
- bordered
40
- reversed
41
- horizontal
42
- centered
43
- />
44
- </div>
45
-
46
- <div v-if="fullscreen" class="scroll-down-indicator"></div>
47
- <slot />
48
- </header>
49
- </template>
50
-
51
- <script>
52
- import scrollTrack from '../../../directives/scroll-track'
53
- import Asd20Button from '../../atoms/Asd20Button'
54
-
55
- export default {
56
- name: 'Asd20CovidHeader',
57
- components: { Asd20Button },
58
- directives: { scrollTrack },
59
- props: {
60
- heading: { type: String, default: '' },
61
- lead: { type: String, default: '' },
62
- callsToAction: { type: Array, default: () => [] },
63
- imageUrl: { type: String, default: '' },
64
- imageCaption: { type: String, default: '' },
65
- fullscreen: { type: Boolean, default: false },
66
- detailLink: { type: String, default: '' },
67
- detailLinkLabel: { type: String, default: '' },
68
- },
69
- computed: {
70
- mq() {
71
- return this.$mq || 'sm'
72
- },
73
- classes() {
74
- return {
75
- 'asd20-covid-header--fullscreen': this.fullscreen,
76
- 'asd20-covid-header--has-cta': this.callsToAction.length > 0,
77
- }
78
- },
79
- isDetailPage() {
80
- if (typeof window === 'undefined') return false
81
- return (
82
- window.location.pathname.split('/').pop() ===
83
- this.detailLink.split('/').pop()
84
- )
85
- },
86
- },
87
- }
88
- </script>
89
-
90
- <style lang="scss" scoped>
91
- @import '../../../design/_variables.scss';
92
- @import '../../../design/_mixins.scss';
93
-
94
- .asd20-covid-header {
95
- position: relative;
96
- display: flex;
97
- flex-shrink: 0;
98
- flex-direction: column;
99
- color: asd20-swatch('primary');
100
- box-sizing: border-box;
101
- margin-bottom: space(2);
102
-
103
- &::before {
104
- content: '';
105
- display: block;
106
- position: absolute;
107
- top: 0;
108
- bottom: space(1);
109
- left: 0;
110
- right: 0;
111
- background-color: asd20-swatch('background-alt');
112
- background-image: url('/images/covid-header-background-mobile.jpg');
113
- background-position: right bottom;
114
- background-size: 100% auto;
115
- background-repeat: no-repeat;
116
- }
117
- &::after {
118
- content: '';
119
- display: block;
120
- position: absolute;
121
- height: space(1);
122
- bottom: space(0);
123
- left: space(2);
124
- right: 0;
125
- background-color: asd20-swatch('background-dark');
126
- }
127
-
128
- &__top {
129
- --fill-one: rgba(255, 255, 255, 1);
130
- --fill-two: rgba(255, 255, 255, 0.625);
131
-
132
- position: relative;
133
- z-index: 1;
134
- margin: space(2) space(1) space(0) space(1);
135
-
136
- &::v-deep .asd20-district-logo {
137
- height: space(2);
138
- }
139
-
140
- &::v-deep .asd20-breadcrumb {
141
- margin-bottom: space(-2);
142
- }
143
- }
144
-
145
- h1 {
146
- position: relative;
147
- color: asd20-swatch('primary');
148
- @include asd20-font(2, $font-family-headlines, 1.2, 700);
149
- margin-top: space(1);
150
- margin-bottom: space(1);
151
- padding: space(0) space(1) space(1) space(1);
152
- z-index: 1;
153
- }
154
-
155
- &__lead {
156
- position: relative;
157
- z-index: 1;
158
- color: asd20-swatch('background-dark');
159
- padding: 0 space(1) space(1) space(1);
160
- margin-bottom: 0;
161
- @include asd20-font(1, $font-family-headlines);
162
- // &:last-child {
163
- // margin-bottom: space(2);
164
- // }
165
- }
166
-
167
- h1 + &__lead {
168
- margin-top: space(-0.5);
169
- }
170
-
171
- &__call-to-action {
172
- // background: asd20-swatch('primary');
173
- // padding: space(1) space(1);
174
- margin-left: space(1);
175
- margin-right: space(1);
176
- z-index: 1;
177
- // &:nth-child(2) {
178
- // background: asd20-swatch('primary');
179
- // }
180
- }
181
-
182
- &::v-deep .asd20-button {
183
- text-align: center;
184
-
185
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25) !important;
186
- border: none;
187
- font-size: 1rem !important;
188
- & + .asd20-button {
189
- margin: space(0.5) 0 0 0;
190
- }
191
- &:first-child {
192
- background: var(--color__danger);
193
- }
194
- }
195
-
196
- &__image {
197
- display: none;
198
- }
199
-
200
- &__aside {
201
- position: relative;
202
- z-index: 1;
203
- margin: 0 0 0 space(2);
204
- padding: space(1) space(1) space(3) space(1);
205
-
206
- &::before {
207
- content: '';
208
- display: block;
209
- position: absolute;
210
- z-index: -1;
211
- top: space(2);
212
- bottom: space(0);
213
- left: space(-2);
214
- right: 0;
215
- background-color: asd20-swatch('background-alt');
216
- }
217
-
218
- &::after {
219
- content: '';
220
- display: block;
221
- position: absolute;
222
- z-index: -1;
223
- top: 0;
224
- bottom: 0;
225
- left: 0;
226
- right: 0;
227
- background-color: white;
228
- }
229
- }
230
- &__aside + &__call-to-action {
231
- margin-top: space(-2);
232
- }
233
-
234
- .scroll-down-indicator {
235
- position: relative;
236
- z-index: 3;
237
- text-transform: uppercase;
238
- display: none;
239
- flex-direction: column;
240
- align-items: center;
241
- padding-bottom: space(2.125);
242
- text-align: center;
243
- font-weight: 400;
244
- color: transparent;
245
- &::before {
246
- content: '';
247
- position: absolute;
248
- display: block;
249
- width: space(2);
250
- height: space(2);
251
- bottom: space(0.15);
252
- border-radius: 100%;
253
- background: asd20-swatch('background-dark');
254
- box-shadow: 0 5px 5px 0 rgba(black, 0.125);
255
- transform: translateX(0) translateY(0);
256
- transform-origin: 50% 50%;
257
- animation: slide-top 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite
258
- alternate-reverse both;
259
- }
260
- &::after {
261
- content: '';
262
- position: absolute;
263
- display: block;
264
- width: space(0.5);
265
- height: space(0.5);
266
- bottom: space(1);
267
- border: 2px solid asd20-swatch('primary', 9);
268
- border-top-color: transparent;
269
- border-left-color: transparent;
270
- transform: translateX(0) translateY(0) rotate(45deg);
271
- transform-origin: 50% 50%;
272
- animation: slide-top-rotate 1s cubic-bezier(0.785, 0.135, 0.15, 0.86)
273
- infinite alternate-reverse both;
274
- }
275
- }
276
-
277
- &--has-cta {
278
- h1 {
279
- margin-bottom: 0;
280
- }
281
- &::after {
282
- height: space(1.5);
283
- bottom: space(-0.5);
284
- }
285
- }
286
-
287
- @keyframes slide-top {
288
- 0% {
289
- transform: translateX(0) translateY(0);
290
- }
291
- 100% {
292
- transform: translateX(0) translateY(space(1));
293
- }
294
- }
295
-
296
- @keyframes slide-top-rotate {
297
- 0% {
298
- transform: translateX(0) translateY(0) rotate(45deg);
299
- }
300
- 100% {
301
- transform: translateX(0) translateY(space(1)) rotate(45deg);
302
- }
303
- }
304
- }
305
-
306
- $min: 3rem;
307
- $max: 4rem;
308
-
309
- @media (min-width: 1024px) {
310
- .asd20-covid-header {
311
- display: grid;
312
- grid-template-columns: space(3) repeat(5, 1fr space(3)) 1fr space(3);
313
- grid-template-rows: repeat(3, space(1)) min-content min-content min-content auto repeat(
314
- 3,
315
- space(1)
316
- );
317
-
318
- margin-bottom: space(-3);
319
-
320
- &::before {
321
- content: '';
322
- display: block;
323
- position: relative;
324
- top: auto;
325
- bottom: auto;
326
- left: auto;
327
- right: auto;
328
- background-color: asd20-swatch('background-alt');
329
- background-image: url('/images/covid-header-background.jpg');
330
- background-position: right bottom;
331
- background-size: 100% auto;
332
- background-repeat: none;
333
- grid-column: 1 / -2;
334
- grid-row: 1 / -4;
335
- }
336
-
337
- &::after {
338
- content: '';
339
- height: auto;
340
- display: block;
341
- position: relative;
342
- z-index: -1;
343
- top: auto;
344
- bottom: auto;
345
- left: auto;
346
- right: auto;
347
- background: asd20-swatch('background-dark');
348
- transform: translate3d(0, calc(5% * var(--scroll-progress)), 0);
349
- margin-left: space(2);
350
- grid-column: 2 / -1;
351
- grid-row: 3 / -2;
352
- }
353
-
354
- &::v-deep .asd20-district-logo {
355
- margin-top: space(-0.75);
356
- --fill-one: #{asd20-color('brand-blue')};
357
- --fill-two: #{asd20-color('brand-gray')};
358
- & + .asd20-breadcrumb {
359
- margin-top: space(2);
360
- }
361
- }
362
-
363
- &__top {
364
- margin: 0;
365
- z-index: 3;
366
- grid-column: 2/5;
367
- grid-row: 4/5;
368
- &::v-deep .asd20-breadcrumb {
369
- margin-bottom: space(-0.5);
370
- }
371
- }
372
-
373
- h1 {
374
- position: relative;
375
- grid-column: 2 / 9;
376
- grid-row: 5 / 6;
377
- box-sizing: border-box;
378
- justify-content: flex-start;
379
- padding: 0 space(2) 0 0;
380
- background: none;
381
- z-index: 1;
382
- margin: 0 0 space(1) 0;
383
- @include asd20-font(2.5, $font-family-headlines, 1.1, 700);
384
- }
385
-
386
- &__top + h1 {
387
- margin-top: space(2);
388
- }
389
-
390
- &__lead {
391
- grid-column: 2 / 9;
392
- grid-row: 6 / 7;
393
- margin: 0 space(2) space(0) 0;
394
- padding: 0 0 0 0;
395
- background: transparent;
396
- color: asd20-swatch('background-dark');
397
- // font-size: 1.75rem;
398
- @include asd20-font(1.5, $font-family-headlines, 1.2, normal);
399
- }
400
-
401
- h1 + &__lead {
402
- margin-top: space(1);
403
- }
404
-
405
- &__call-to-action {
406
- // Reset mobile styles
407
- position: relative;
408
- bottom: auto;
409
- left: auto;
410
- right: auto;
411
- margin-right: space(-2);
412
- box-sizing: border-box;
413
- // padding: space(1) space(1);
414
- margin-top: space(2);
415
- grid-column: 2 / auto;
416
- grid-row: 7 / -1;
417
- // align-self: end;
418
- min-width: max-content;
419
- display: flex;
420
- transform: translate3d(0, calc(-50% * var(--scroll-progress)), 0);
421
- z-index: 2;
422
- .asd20-button {
423
- padding: space(1);
424
- & + .asd20-button {
425
- margin: 0 0 0 space(1);
426
- }
427
-
428
- font-size: 1rem;
429
- }
430
- }
431
-
432
- &__lead + &__call-to-action {
433
- margin-top: 0;
434
- }
435
-
436
- &__image {
437
- display: block;
438
- position: relative;
439
- bottom: auto;
440
- left: auto;
441
- right: auto;
442
- top: auto;
443
- grid-column: 9 / -1;
444
- grid-row: 4 / -3;
445
- z-index: 0;
446
- height: auto;
447
- margin: 0;
448
- padding: 0;
449
-
450
- img {
451
- display: block;
452
- width: 100%;
453
- height: 100%;
454
- object-fit: cover;
455
- // object-position: 0 0;
456
- }
457
- }
458
-
459
- &__aside {
460
- position: relative;
461
- bottom: auto;
462
- left: auto;
463
- right: auto;
464
- top: auto;
465
- grid-column: 9 / -1;
466
- grid-row: 4 / -3;
467
- z-index: 0;
468
- height: auto;
469
- margin-left: 0;
470
- padding: space(2);
471
- display: flex;
472
- flex-direction: column;
473
- align-items: stretch;
474
- justify-content: flex-start;
475
- height: min-content;
476
- align-self: end;
477
- &::before {
478
- display: none;
479
- }
480
- }
481
-
482
- &__aside + &__call-to-action {
483
- margin-top: 0;
484
- }
485
-
486
- &--has-cta {
487
- margin-bottom: 0;
488
- h1 {
489
- margin-bottom: 0;
490
- }
491
- .asd20-covid-header__call-to-action {
492
- margin: space(1) 0 space(2) 0;
493
- }
494
- }
495
-
496
- &--fullscreen {
497
- min-height: 100vh;
498
- margin-bottom: 0;
499
- &::before {
500
- grid-column: 1 / 7;
501
- grid-row: 1 / -1;
502
- transform: translate3d(0, calc(5% * var(--scroll-progress)), 0);
503
- }
504
- &::after {
505
- grid-column: -4 / -1;
506
- grid-row: 4 / -1;
507
- transform: translate3d(0, calc(10% * var(--scroll-progress)), 0);
508
- }
509
- h1 {
510
- grid-column: 2 / 6;
511
- }
512
- .asd20-covid-header__image {
513
- grid-column: 7 / -2;
514
- grid-row: 3 / -1;
515
- margin-bottom: 0;
516
- }
517
- .asd20-covid-header__aside {
518
- grid-column: 6 / -2;
519
- grid-row: 3 / -1;
520
- }
521
- .asd20-covid-header__call-to-action {
522
- position: absolute;
523
- bottom: 0;
524
- left: 0;
525
- right: 0;
526
- z-index: 2;
527
- grid-column: 2 / 7;
528
- grid-row: 6 / -4;
529
- margin-right: 0;
530
- margin-bottom: 0 !important;
531
- // background: asd20-swatch('primary');
532
- // padding: space(1);
533
- transform: translate3d(0, calc(-25% * var(--scroll-progress)), 0);
534
- .asd20-button {
535
- // border: 2px solid asd20-swatch('primary', 1);
536
- flex-grow: 1;
537
- }
538
- }
539
- }
540
-
541
- .scroll-down-indicator {
542
- display: flex;
543
- position: relative;
544
- z-index: 3;
545
- // outline: 1px solid red;
546
- grid-column: 6 / 9;
547
- grid-row: -5 / -4;
548
- align-self: end;
549
- justify-self: center;
550
- }
551
- }
552
- }
553
-
554
- @media (min-width: 1300px) {
555
- .asd20-covid-header {
556
- &--fullscreen {
557
- &::before {
558
- grid-column: 1 / 6;
559
- grid-row: 1 / -1;
560
- transform: translate3d(0, calc(5% * var(--scroll-progress)), 0);
561
- }
562
-
563
- .asd20-covid-header__image {
564
- grid-column: 6 / -2;
565
- grid-row: 3 / -1;
566
- margin-bottom: 0;
567
- }
568
- }
569
- }
570
- }
571
- </style>
@@ -1,33 +0,0 @@
1
- import { storiesOf } from '@storybook/vue'
2
- import Asd20GraduationHeader from '.'
3
-
4
- const info = {
5
- summary: 'Asd20GraduationHeader',
6
- }
7
-
8
- const wrapper = {
9
- components: { Asd20GraduationHeader },
10
- data: () => ({
11
- pageHeaderContent: {
12
- heading: '',
13
- lead: '',
14
- imageUrl: '',
15
- imageCaption: '',
16
- callsToAction: [
17
- { label: 'Ceremony Details', url: '/2021-graduation' },
18
- { label: 'Watch Livestreams', url: '/2021-graduation-videos' },
19
- ],
20
- detailLink: '',
21
- detailLinkLabel: '',
22
- },
23
- }),
24
- }
25
-
26
- storiesOf('Organisms - Asd20GraduationHeader', module).add(
27
- 'Default',
28
- () => ({
29
- ...wrapper,
30
- template: `<div>GRAADUAsdsT<Asd20GraduationHeader v-bind="pageHeaderContent"></Asd20GraduationHeader></div>`,
31
- }),
32
- { info }
33
- )