@asd20/ui 3.2.1044 → 3.3.0

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 (29) 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/organisms/Asd20SiteMenu/index.vue +1 -1
  5. package/src/components/templates/Asd20ProfileTemplate/index.vue +1 -1
  6. package/src/components/templates/Asd20SchoolHomeTemplate/index.vue +1 -1
  7. package/src/components/templates/Asd20SchoolHomeVideoTemplate/index.vue +1 -1
  8. package/vue.config.js +41 -15
  9. package/package-lock.json +0 -93773
  10. package/public/statics/images/home-images/covid-19-bacgground-desktop.psd +0 -0
  11. package/public/statics/images/home-images/covid-19-background-mobile.jpg +0 -0
  12. package/public/statics/images/home-images/covid-19-background-mobile.psd +0 -0
  13. package/public/statics/images/home-images/covid-header-background.jpg +0 -0
  14. package/public/statics/images/home-images/tertiary-banner.png +0 -0
  15. package/public/statics/images/home-images/tertiary-text-background.png +0 -0
  16. package/src/components/organisms/Asd20BackToSchoolHeader/index.stories.js +0 -20
  17. package/src/components/organisms/Asd20BackToSchoolHeader/index.vue +0 -131
  18. package/src/components/organisms/Asd20CampaignPageHeader/index.stories.js +0 -35
  19. package/src/components/organisms/Asd20CampaignPageHeader/index.vue +0 -512
  20. package/src/components/organisms/Asd20ChoiceHeader/index.stories.js +0 -32
  21. package/src/components/organisms/Asd20ChoiceHeader/index.vue +0 -464
  22. package/src/components/organisms/Asd20CovidHeader/index.stories.js +0 -34
  23. package/src/components/organisms/Asd20CovidHeader/index.vue +0 -571
  24. package/src/components/organisms/Asd20GraduationHeader/index.stories.js +0 -33
  25. package/src/components/organisms/Asd20GraduationHeader/index.vue +0 -456
  26. package/src/components/organisms/Asd20KindergartenHeader/index.stories.js +0 -20
  27. package/src/components/organisms/Asd20KindergartenHeader/index.vue +0 -124
  28. package/src/components/organisms/Asd20ReturnToSchoolHeader/index.stories.js +0 -32
  29. package/src/components/organisms/Asd20ReturnToSchoolHeader/index.vue +0 -306
@@ -1,32 +0,0 @@
1
- import { storiesOf } from '@storybook/vue'
2
- import Asd20ChoiceHeader from '.'
3
-
4
- const info = {
5
- summary: 'Asd20ChoiceHeader',
6
- }
7
-
8
- const wrapper = {
9
- components: { Asd20ChoiceHeader },
10
- data: () => ({
11
- pageHeaderContent: {
12
- heading: '',
13
- lead: '',
14
- imageUrl: '',
15
- imageCaption: '',
16
- callsToAction: [
17
- { label: 'Graduation Information', url: '/graduation-ceremony' },
18
- ],
19
- detailLink: '',
20
- detailLinkLabel: '',
21
- },
22
- }),
23
- }
24
-
25
- storiesOf('Organisms - Asd20ChoiceHeader', module).add(
26
- 'Default',
27
- () => ({
28
- ...wrapper,
29
- template: `<Asd20ChoiceHeader v-bind="pageHeaderContent"></Asd20ChoiceHeader>`,
30
- }),
31
- { info }
32
- )
@@ -1,464 +0,0 @@
1
- <template>
2
- <header
3
- v-scroll-track.window
4
- class="asd20-choice-header"
5
- :class="classes"
6
- role="banner"
7
- >
8
- <div v-if="$slots.top" class="asd20-choice-header__top">
9
- <slot name="top" />
10
- </div>
11
-
12
- <video
13
- class="background-video"
14
- autoplay
15
- loop
16
- autobuffer
17
- muted
18
- playsinline
19
- poster="/videos/choice-header-still_optimized.jpg"
20
- >
21
- <source
22
- src="/videos/2021-2022-choicee-header-720p-optimized.mp4"
23
- type="video/mp4"
24
- />
25
- </video>
26
-
27
- <img
28
- class="background-image"
29
- src="/videos/choice-header-still_optimized.jpg"
30
- alt=""
31
- />
32
-
33
- <div class="asd20-choice-header__text">
34
- <h1>
35
- Apply for School Choice<br />
36
- <em
37
- >We are now accepting applications for students living in, and out of our district for the 2022-23 school year.</em
38
- >
39
- </h1>
40
- </div>
41
-
42
- <!-- <figure class="asd20-choice-header__image">
43
- <img
44
- src="/statics/images/home-images/choice-schools.png"
45
- alt="child entering school building"
46
- />
47
- </figure> -->
48
-
49
- <div
50
- v-if="callsToAction.length > 0"
51
- class="asd20-choice-header__call-to-action"
52
- >
53
- <asd20-button
54
- v-for="(cta, index) in callsToAction"
55
- :key="index"
56
- :size="['sm', 'md'].indexOf(mq) > -1 ? 'sm' : 'lg'"
57
- :label="cta.label"
58
- :icon="cta.icon"
59
- :link="cta.url"
60
- bordered
61
- reversed
62
- horizontal
63
- centered
64
- />
65
- </div>
66
-
67
- <slot />
68
- </header>
69
- </template>
70
-
71
- <script>
72
- import scrollTrack from '../../../directives/scroll-track'
73
- import Asd20Button from '../../atoms/Asd20Button'
74
-
75
- export default {
76
- name: 'Asd20ChoiceHeader',
77
- components: { Asd20Button },
78
- directives: { scrollTrack },
79
- props: {
80
- heading: { type: String, default: '' },
81
- lead: { type: String, default: '' },
82
- callsToAction: { type: Array, default: () => [] },
83
- imageUrl: { type: String, default: '' },
84
- imageCaption: { type: String, default: '' },
85
- fullscreen: { type: Boolean, default: false },
86
- detailLink: { type: String, default: '' },
87
- detailLinkLabel: { type: String, default: '' },
88
- },
89
- computed: {
90
- mq() {
91
- return this.$mq || 'sm'
92
- },
93
- classes() {
94
- return {
95
- 'asd20-choice-header--fullscreen': this.fullscreen,
96
- 'asd20-choice-header--has-cta': this.callsToAction.length > 0,
97
- }
98
- },
99
- isDetailPage() {
100
- if (typeof window === 'undefined') return false
101
- return (
102
- window.location.pathname.split('/').pop() ===
103
- this.detailLink.split('/').pop()
104
- )
105
- },
106
- },
107
- }
108
- </script>
109
-
110
- <style lang="scss" scoped>
111
- @import '../../../design/_variables.scss';
112
- @import '../../../design/_mixins.scss';
113
-
114
- .asd20-choice-header {
115
- position: relative;
116
- display: flex;
117
- flex-shrink: 0;
118
- flex-direction: column;
119
- color: asd20-swatch('primary');
120
- box-sizing: border-box;
121
- margin-bottom: space(1);
122
-
123
- .background-video {
124
- display: none;
125
- }
126
-
127
- .background-image {
128
- display: block;
129
- position: absolute;
130
- height: calc(100% - #{space(1)});
131
- width: 100%;
132
- z-index: 1;
133
- object-fit: fill;
134
- }
135
-
136
- & ::v-deep .notification-group--status .notifications {
137
- padding: 0.375rem;
138
- border-radius: 3rem;
139
- background: rgba(255,255,255,0.95);
140
- }
141
-
142
- &::before {
143
- content: '';
144
- display: block;
145
- position: absolute;
146
- top: 0;
147
- bottom: space(1);
148
- left: 0;
149
- right: 0;
150
- background-color: asd20-swatch('background-alt');
151
- background-image: url('/statics/images/home-images/choice-texture.png');
152
- background-position-y: top;
153
- background-size: 640px auto;
154
- }
155
- &::after {
156
- content: '';
157
- display: block;
158
- position: absolute;
159
- height: space(1);
160
- bottom: space(0);
161
- left: space(2);
162
- right: 0;
163
- background-color: asd20-swatch('background-alt');
164
- }
165
-
166
- &__top {
167
- --fill-one: rgba(255, 255, 255, 1);
168
- --fill-two: rgba(255, 255, 255, 0.625);
169
-
170
- position: relative;
171
- z-index: 100;
172
- padding: space(0.5) space(1);
173
-
174
- display: flex;
175
- justify-content: space-between;
176
- align-items: center;
177
- // flex-direction: column;
178
-
179
- & ::v-deep .asd20-district-logo {
180
- height: space(2);
181
- }
182
-
183
- & ::v-deep .notification-group--status {
184
- margin-left: -0.5rem;
185
- .asd20-notification {
186
- margin: 0;
187
- padding: 0 !important;
188
- }
189
- }
190
-
191
- & ::v-deep .notification-group--floating {
192
- margin-right: 0;
193
- }
194
- }
195
-
196
- &__text {
197
- box-sizing: border-box;
198
- margin: 0;
199
- z-index: 2;
200
- padding: space(1);
201
-
202
- h1 {
203
- margin-top: space(0);
204
- padding-bottom: space(3);
205
- @include fluid-type($base-font-size * 1.5, $base-font-size * 4);
206
- line-height: 1.2;
207
- font-weight: bold;
208
- color: white;
209
- em {
210
- font-size: 0.75em;
211
- font-style: normal;
212
- font-weight: normal;
213
- color: #bbdce4;
214
-
215
- }
216
- }
217
-
218
-
219
- p {
220
- margin-top: space(0.5);
221
- @include fluid-type($base-font-size * 1, $base-font-size * 2);
222
- color: asd20-swatch('background-alt');
223
- }
224
- }
225
-
226
- &__lead {
227
- position: relative;
228
- z-index: 1;
229
- color: asd20-swatch('background-dark');
230
- padding: 0 space(1) space(1) space(1);
231
- margin-bottom: 0;
232
- @include asd20-font(1, $font-family-headlines);
233
- // &:last-child {
234
- // margin-bottom: space(2);
235
- // }
236
- }
237
-
238
- h1 + &__lead {
239
- margin-top: space(-0.5);
240
- }
241
-
242
- &__call-to-action {
243
- // background: asd20-swatch('primary');
244
- // padding: space(1) space(1);
245
- margin-left: space(1);
246
- margin-right: space(1);
247
- z-index: 1;
248
- // &:nth-child(2) {
249
- // background: asd20-swatch('primary');
250
- // }
251
- }
252
-
253
- &__call-to-action ::v-deep .asd20-button {
254
- text-align: center;
255
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25);
256
- border: none;
257
- box-shadow: 1px 1px 10px black;
258
- font-size: 1rem !important;
259
- background: asd20-swatch('background-alt');
260
- color: asd20-swatch('primary');
261
- // background: #3B5175;
262
- &:focus {
263
- @include asd20-focus;
264
- }
265
- & + .asd20-button {
266
- margin: space(0.5) 0 0 0;
267
- }
268
- &:hover {
269
- background: white;
270
- color: asd20-swatch('primary');
271
- }
272
- }
273
-
274
- &__image {
275
- display: none;
276
- }
277
-
278
- &--has-cta {
279
- h1 {
280
- margin-bottom: 0;
281
- }
282
- &::after {
283
- height: space(1.5);
284
- bottom: space(-0.5);
285
- }
286
- }
287
- }
288
-
289
- $min: 3rem;
290
- $max: 4rem;
291
-
292
- @media (min-width: 1024px) {
293
- .asd20-choice-header {
294
- display: grid;
295
- grid-template-columns: space(3) repeat(5, 1fr space(3)) 1fr space(3);
296
- grid-template-rows:
297
- space(3) min-content 1fr min-content
298
- repeat(3, space(1));
299
-
300
- margin-bottom: space(2);
301
-
302
- &::before {
303
- content: '';
304
- display: block;
305
- position: relative;
306
- top: auto;
307
- bottom: auto;
308
- left: auto;
309
- right: auto;
310
- background: #08182b;
311
- opacity: 0.8;
312
- background-size: 1024px auto;
313
- grid-column: 1 / 8;
314
- grid-row: 4 / 5;
315
- }
316
-
317
- &::after {
318
- content: '';
319
- height: auto;
320
- display: block;
321
- position: absolute;
322
- z-index: 0;
323
- top: 0;
324
- bottom: auto;
325
- left: 0;
326
- width: 100%;
327
- height: 40%;
328
- background: asd20-swatch('background-alt');
329
- background: red;
330
- background: linear-gradient(170deg, rgba(6, 11, 31, 0.7) 10%, transparent 40%);
331
- }
332
-
333
- .background-video {
334
- display: block;
335
- }
336
- .background-image {
337
- display: none;
338
- }
339
-
340
- video {
341
- width: 100%;
342
- height: min-content;
343
- object-fit: cover;
344
- grid-column: 1 / -1;
345
- grid-row: 1 / -1;
346
- }
347
-
348
- & ::v-deep .asd20-district-logo {
349
- margin-top: space(-0.75);
350
- margin-right: auto;
351
- --fill-one: white;
352
- --fill-two: #ccc;
353
- & + .asd20-breadcrumb {
354
- margin-top: space(2);
355
- }
356
- }
357
-
358
- &__top {
359
- margin: 0;
360
- padding: 0;
361
-
362
- z-index: 3;
363
- grid-column: 2/-2;
364
- grid-row: 2/3;
365
- }
366
-
367
- &__text {
368
- position: relative;
369
- grid-column: 2 / 8;
370
- grid-row: 4 / 5;
371
- box-sizing: border-box;
372
- justify-content: flex-start;
373
- padding: 0 space(2) 0 0;
374
- background: none;
375
- z-index: 1;
376
- margin: 0;
377
- @include asd20-font(1, $font-family-headlines, 1.1, 400);
378
-
379
- h1 {
380
- // margin-top: space(3);
381
- // font-size: 5rem;
382
- // color: white;
383
- padding: space(3) space(0);
384
- @include asd20-font(2.5, $font-family-headlines, 1.0, 700);
385
-
386
-
387
- em {
388
- // font-size: 0.75em;
389
- // font-style: normal;
390
- // font-weight: normal;
391
- color: #bbdce4;
392
- }
393
- }
394
-
395
- p {
396
- margin-top: space(1);
397
- font-size: 2rem !important;
398
- margin-bottom: space(3) !important;
399
- // color: #80b3c0;
400
- }
401
- }
402
-
403
- &__call-to-action {
404
- // Reset mobile styles
405
- position: relative;
406
- bottom: auto;
407
- left: auto;
408
- right: auto;
409
- margin-right: space(-2);
410
- box-sizing: border-box;
411
- // padding: space(1) space(1);
412
- padding: 0;
413
- margin: space(-1.5) 0 0 0;
414
- grid-column: 2 / auto;
415
- grid-row: 5 / -2;
416
- // align-self: end;
417
- min-width: max-content;
418
- display: flex;
419
- // transform: translate3d(0, calc(-50% * var(--scroll-progress)), 0);
420
- z-index: 2;
421
- .asd20-button {
422
- padding: space(1);
423
- & + .asd20-button {
424
- margin: 0 0 0 space(1);
425
- }
426
-
427
- font-size: 1rem;
428
- }
429
- }
430
-
431
- // &__lead + &__call-to-action {
432
- // margin-top: 0;
433
- // }
434
-
435
- &__image {
436
- display: flex;
437
- flex-direction: column;
438
- position: relative;
439
- bottom: auto;
440
- left: auto;
441
- right: auto;
442
- top: auto;
443
- grid-column: 8 / -1;
444
- grid-row: 7 / 8;
445
- z-index: 0;
446
- height: auto;
447
- margin: 0;
448
- padding: 0;
449
- overflow: hidden;
450
- opacity: 0.5;
451
-
452
- img {
453
- display: block;
454
- width: auto;
455
- height: 100%;
456
- align-self: flex-start;
457
- // height: 100%;
458
- // object-fit: cover;
459
- // object-position: 100% 0;
460
- }
461
- }
462
- }
463
- }
464
- </style>
@@ -1,34 +0,0 @@
1
- import { storiesOf } from '@storybook/vue'
2
- import Asd20CovidHeader from '.'
3
-
4
- const info = {
5
- summary: 'Asd20CovidHeader',
6
- }
7
-
8
- const wrapper = {
9
- components: { Asd20CovidHeader },
10
- data: () => ({
11
- pageHeaderContent: {
12
- heading: 'Cultivating the&nbsp;next generation of&nbsp;leaders.',
13
- lead:
14
- 'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cras justo odio, dapibus ac facilisis in, egestas eget quam.',
15
- imageUrl: '/images/home-images/best-brass-section.jpg',
16
- imageCaption: '',
17
- callsToAction: [
18
- { label: 'Enroll Your Child', url: '/enroll' },
19
- { label: 'Browse Our Schools', url: '/schools' },
20
- ],
21
- detailLink: '',
22
- detailLinkLabel: '',
23
- },
24
- }),
25
- }
26
-
27
- storiesOf('Organisms - Asd20CovidHeader', module).add(
28
- 'Default',
29
- () => ({
30
- ...wrapper,
31
- template: `<Asd20CovidHeader v-bind="pageHeaderContent"></Asd20CovidHeader>`,
32
- }),
33
- { info }
34
- )