@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,306 +0,0 @@
1
- <template>
2
- <header
3
- v-scroll-track.window
4
- class="asd20-return-header"
5
- :class="classes"
6
- role="banner"
7
- >
8
- <div v-if="$slots.top" class="asd20-return-header__top">
9
- <slot name="top" />
10
- </div>
11
-
12
- <div class="asd20-return-header__text">
13
- <h1>
14
- Educating and&nbsp;inspiring
15
- students&nbsp;to&nbsp;<strong>thrive</strong>
16
- </h1>
17
- <p>
18
- Rooted in strategy and guided&nbsp;by&nbsp;our&nbsp;mission, vision&nbsp;and&nbsp;values.
19
- </p>
20
- </div>
21
-
22
- <div
23
- v-if="callsToAction.length > 0"
24
- class="asd20-return-header__call-to-action"
25
- >
26
- <asd20-button
27
- v-for="(cta, index) in callsToAction"
28
- :key="index"
29
- :size="['sm', 'md'].indexOf(mq) > -1 ? 'sm' : 'lg'"
30
- :label="cta.label"
31
- :icon="cta.icon"
32
- :link="cta.url"
33
- bordered
34
- reversed
35
- horizontal
36
- centered
37
- />
38
- </div>
39
-
40
- <slot />
41
- </header>
42
- </template>
43
-
44
- <script>
45
- import scrollTrack from '../../../directives/scroll-track'
46
- import Asd20Button from '../../atoms/Asd20Button'
47
-
48
- export default {
49
- name: 'Asd20ReturnToSchoolHeader',
50
- components: { Asd20Button },
51
- directives: { scrollTrack },
52
- props: {
53
- heading: { type: String, default: '' },
54
- lead: { type: String, default: '' },
55
- callsToAction: { type: Array, default: () => [] },
56
- imageUrl: { type: String, default: '' },
57
- imageCaption: { type: String, default: '' },
58
- fullscreen: { type: Boolean, default: false },
59
- detailLink: { type: String, default: '' },
60
- detailLinkLabel: { type: String, default: '' },
61
- },
62
- computed: {
63
- mq() {
64
- return this.$mq || 'sm'
65
- },
66
- classes() {
67
- return {
68
- 'asd20-return-header--fullscreen': this.fullscreen,
69
- 'asd20-return-header--has-cta': this.callsToAction.length > 0,
70
- }
71
- },
72
- isDetailPage() {
73
- if (typeof window === 'undefined') return false
74
- return (
75
- window.location.pathname.split('/').pop() ===
76
- this.detailLink.split('/').pop()
77
- )
78
- },
79
- },
80
- }
81
- </script>
82
-
83
- <style lang="scss" scoped>
84
- @import '../../../design/_variables.scss';
85
- @import '../../../design/_mixins.scss';
86
-
87
- .asd20-return-header {
88
- position: relative;
89
- display: flex;
90
- flex-shrink: 0;
91
- flex-direction: column;
92
- color: asd20-swatch('primary');
93
- box-sizing: border-box;
94
- margin-bottom: space(1);
95
-
96
- & ::v-deep .notification-group--status .notifications {
97
- padding: 0.375rem;
98
- border-radius: 3rem;
99
- background: rgba(255, 255, 255, 0.95);
100
- }
101
-
102
- &::before {
103
- content: '';
104
- display: block;
105
- position: absolute;
106
- top: 0;
107
- bottom: space(1);
108
- left: 0;
109
- right: 0;
110
- background: asd20-swatch('background-alt')
111
- url('/statics/images/home-images/girl-wearing-sunglasses.jpg') 0 50% /
112
- cover no-repeat;
113
- }
114
- &::after {
115
- content: '';
116
- display: block;
117
- position: absolute;
118
- }
119
-
120
- &__top {
121
- --fill-one: rgba(255, 255, 255, 1);
122
- --fill-two: rgba(255, 255, 255, 0.625);
123
-
124
- position: relative;
125
- z-index: 100;
126
- padding: 0;
127
-
128
- display: flex;
129
- justify-content: space-between;
130
- align-items: center;
131
- // flex-direction: column;
132
-
133
- & ::v-deep .asd20-district-logo {
134
- height: space(2);
135
- }
136
-
137
- & ::v-deep .notification-group--status {
138
- margin-left: -0.5rem;
139
- .asd20-notification {
140
- margin: 0;
141
- padding: 0 !important;
142
- }
143
- }
144
-
145
- & ::v-deep .notification-group--floating {
146
- margin-right: 0;
147
- }
148
- }
149
-
150
- &__text {
151
- box-sizing: border-box;
152
- margin-top: 0;
153
- z-index: 2;
154
- padding: space(1) space(2) space(0) space(1);
155
-
156
- h1 {
157
- margin-top: space(0);
158
- padding-top: space(0);
159
- @include fluid-type($base-font-size * 1.5, $base-font-size * 4);
160
- line-height: 1.2;
161
- font-weight: bold;
162
- color: asd20-swatch('primary');
163
- small {
164
- font-size: 0.75em;
165
- font-style: normal;
166
- font-weight: normal;
167
- line-height: 1.2;
168
- text-transform: inherit;
169
- color: asd20-swatch('background-dark');
170
- }
171
- strong {
172
- position: relative;
173
- color: white;
174
- display: inline-block;
175
- overflow: visible;
176
- &:before {
177
- content: '';
178
- display: block;
179
- position: absolute;
180
- top: 0;
181
- left: -0.4em;
182
- width: calc(100% + 0.8em);
183
- height: 100%;
184
- background: transparent url('/statics/images/swoosh.svg') 50% 50% /
185
- 100% auto no-repeat;
186
- color: asd20-swatch('accent-one');
187
- z-index: -1;
188
- }
189
- }
190
- }
191
-
192
- p {
193
- margin-top: space(0.25);
194
- @include fluid-type($base-font-size * 1, $base-font-size * 2);
195
- @include asd20-font(1, $font-family-headlines);
196
- color: asd20-swatch('background-dark');
197
- }
198
- }
199
-
200
- &__lead {
201
- position: relative;
202
- z-index: 1;
203
- color: asd20-swatch('background-dark');
204
- padding: 0 space(1) space(1) space(1);
205
- margin-bottom: 0;
206
- @include asd20-font(1, $font-family-headlines);
207
- // &:last-child {
208
- // margin-bottom: space(2);
209
- // }
210
- }
211
-
212
- h1 + &__lead {
213
- margin-top: space(-0.5);
214
- }
215
-
216
- &__call-to-action {
217
- // background: #193074ee;
218
- padding: space(1) space(1) space(1) space(1);
219
- margin-bottom: space(-0.75);
220
- // margin-right: space(1);
221
- z-index: 1;
222
- // &:nth-child(2) {
223
- // background: asd20-swatch('primary');
224
- // }
225
- }
226
-
227
- &__call-to-action ::v-deep .asd20-button {
228
- text-align: center;
229
-
230
- box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25);
231
- border: none;
232
- font-size: 1rem !important;
233
- font-weight: normal;
234
- background: asd20-swatch('primary');
235
- padding: space(0.5) space(1);
236
- &:focus {
237
- @include asd20-focus;
238
- }
239
- & + .asd20-button {
240
- margin: space(0.5) 0 0 0;
241
- }
242
- }
243
-
244
- &__image {
245
- display: none;
246
- }
247
-
248
- &--has-cta {
249
- h1 {
250
- margin-bottom: 0;
251
- }
252
- &::after {
253
- height: space(1.5);
254
- bottom: space(-0.5);
255
- }
256
- }
257
- }
258
-
259
- $min: 3rem;
260
- $max: 4rem;
261
-
262
- @media (min-width: 1024px) {
263
- .asd20-return-header {
264
- margin-bottom: space(0);
265
-
266
- & ::v-deep .asd20-district-logo {
267
- margin-top: space(-0.5);
268
- margin-right: auto;
269
- --fill-one: #162b68;
270
- --fill-two: #fff;
271
- & + .asd20-breadcrumb {
272
- margin-top: space(2);
273
- }
274
- }
275
-
276
- &__top {
277
- margin: space(3) space(3) space(2) space(3);
278
- padding: 0;
279
-
280
- z-index: 3;
281
- }
282
-
283
- &__text {
284
- padding: space(3) space(0) space(0) space(3);
285
- max-width: 40vw;
286
- h1 {
287
- @include asd20-font(2.5, $font-family-headlines, 1.1, 700);
288
- }
289
- }
290
-
291
- &__call-to-action {
292
- padding: space(1) space(3) space(1) space(3);
293
- margin-bottom: space(4);
294
-
295
- .asd20-button {
296
- padding: space(1);
297
- & + .asd20-button {
298
- margin: 0 0 0 space(1);
299
- }
300
-
301
- font-size: 1.25rem !important;
302
- }
303
- }
304
- }
305
- }
306
- </style>