@asd20/ui 3.2.592 → 3.2.594

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.592",
8
+ "version": "3.2.594",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -110,7 +110,7 @@ $factoid-fg: var(--website-card__reverse-background-color);
110
110
  &__label {
111
111
  font-size: 0.875rem;
112
112
  font-weight: 300;
113
- text-transform: uppercase;
113
+ // text-transform: uppercase;
114
114
  color: $factoid-fg;
115
115
  // white-space: nowrap;
116
116
  opacity: 0.75;
@@ -77,22 +77,22 @@ $factoid-rule: var(--website-page__alternate-background-t80);
77
77
 
78
78
  &:first-child:nth-last-child(2),
79
79
  &:first-child:nth-last-child(2) ~ .asd20-factoid {
80
- width: (100% / 2);
80
+ width: calc(100% / 2);
81
81
  }
82
82
 
83
83
  &:first-child:nth-last-child(3),
84
84
  &:first-child:nth-last-child(3) ~ .asd20-factoid,
85
85
  &:first-child:nth-last-child(6),
86
86
  &:first-child:nth-last-child(6) ~ .asd20-factoid {
87
- width: (100% / 3);
87
+ width: calc(100% / 3);
88
88
  }
89
89
 
90
90
  &:first-child:nth-last-child(7),
91
91
  &:first-child:nth-last-child(7) ~ .asd20-factoid {
92
- width: (100% / 4);
92
+ width: calc(100% / 4);
93
93
  }
94
94
  &:first-child:nth-last-child(7) ~ .asd20-factoid:nth-child(n + 6) {
95
- width: (100% / 3);
95
+ width: calc(100% / 3);
96
96
  }
97
97
  }
98
98
  }
@@ -83,7 +83,7 @@ export default {
83
83
  }
84
84
 
85
85
  & > * {
86
- flex-basis: (100% / 3);
86
+ flex-basis: calc(100% / 3);
87
87
  }
88
88
  }
89
89
 
@@ -30,7 +30,7 @@ $factoids-header-fg: var(--color__primary);
30
30
 
31
31
  .asd20-factoids-section {
32
32
  position: relative;
33
- margin-bottom: space(1);
33
+ margin-bottom: space(3);
34
34
  padding: space(2) 0 0 0;
35
35
 
36
36
  h2 {
@@ -118,10 +118,10 @@ $logo-width: 50vw;
118
118
  align-items: center;
119
119
 
120
120
  &--condensed {
121
- height: $navbar-size / 2;
121
+ height: calc($navbar-size / 2);
122
122
  .menu-button,
123
123
  .search-button {
124
- height: $navbar-size / 2;
124
+ height: calc($navbar-size / 2);
125
125
  span {
126
126
  display: none;
127
127
  }
@@ -111,6 +111,11 @@
111
111
  @events-in-view="$emit('events-in-view')"
112
112
  ></asd20-feeds-section>
113
113
 
114
+ <asd20-factoids-section
115
+ v-if="factoids && factoids.length > 0"
116
+ :factoids="factoids"
117
+ />
118
+
114
119
  <!-- Quick Links -->
115
120
  <asd20-quicklinks-menu :quickLinks="quickLinks">
116
121
  <slot name="quicklinks-menu" />
@@ -148,7 +153,7 @@ import Asd20QuicklinksMenu from '../../../components/organisms/Asd20QuicklinksMe
148
153
  // import Asd20DistrictLogo from '../../../components/atoms/Asd20DistrictLogo'
149
154
  import Asd20OrganizationPicker from '../../../components/organisms/Asd20OrganizationPicker'
150
155
  import Asd20NotificationGroup from '@asd20/notifications-ui/src/components/Asd20NotificationGroup'
151
- // import Asd20FactoidsSection from '../../../components/organisms/Asd20FactoidsSection'
156
+ import Asd20FactoidsSection from '../../../components/organisms/Asd20FactoidsSection'
152
157
  import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
153
158
  import Asd20VideoHeader from '../../../components/organisms/Asd20VideoHeader'
154
159
  import Asd20VideoHeaderContent from '../../../components/organisms/Asd20VideoHeaderContent'
@@ -170,6 +175,38 @@ export default {
170
175
  return this.$mq || 'sm'
171
176
  },
172
177
  },
178
+ data: () => ({
179
+ factoids: [
180
+ {
181
+ start: 0,
182
+ end: 40,
183
+ suffix: '+',
184
+ label: 'Schools/Programs',
185
+ once: true,
186
+ },
187
+ {
188
+ start: 0,
189
+ end: 26000,
190
+ suffix: '+',
191
+ label: 'Students',
192
+ once: true,
193
+ },
194
+ {
195
+ start: 0,
196
+ end: 15,
197
+ suffix: 'years',
198
+ label: 'Accredited With Distiction',
199
+ once: true,
200
+ },
201
+ {
202
+ start: 0,
203
+ end: 94,
204
+ suffix: '%',
205
+ label: 'Graduation Rate',
206
+ once: true,
207
+ },
208
+ ],
209
+ }),
173
210
 
174
211
  components: {
175
212
  Asd20SkipTo,
@@ -179,7 +216,7 @@ export default {
179
216
  // Asd20DistrictLogo,
180
217
  Asd20OrganizationPicker,
181
218
  Asd20NotificationGroup,
182
- // Asd20FactoidsSection,
219
+ Asd20FactoidsSection,
183
220
  Asd20FeedsSection,
184
221
  Asd20VideoHeader,
185
222
  Asd20VideoHeaderContent,
@@ -14,8 +14,8 @@
14
14
  },
15
15
  {
16
16
  "start": 0,
17
- "end": 5,
18
- "label": "New Buildings",
17
+ "end": 15,
18
+ "label": "Accredited With Distinction",
19
19
  "once": true
20
20
  },
21
21
  {
@@ -1075,26 +1075,28 @@
1075
1075
  "factoids": [
1076
1076
  {
1077
1077
  "start": 0,
1078
- "end": 38,
1078
+ "end": 40,
1079
+ "suffix": "+",
1079
1080
  "label": "Schools/Programs",
1080
1081
  "once": true
1081
1082
  },
1082
1083
  {
1083
1084
  "start": 0,
1084
- "end": 26000,
1085
+ "end": 25000,
1085
1086
  "suffix": "+",
1086
1087
  "label": "Students",
1087
1088
  "once": true
1088
1089
  },
1089
1090
  {
1090
1091
  "start": 0,
1091
- "end": 5,
1092
- "label": "New Buildings",
1092
+ "end": 15,
1093
+ "suffix": "years",
1094
+ "label": "Accredited With Distiction",
1093
1095
  "once": true
1094
1096
  },
1095
1097
  {
1096
1098
  "start": 0,
1097
- "end": 96,
1099
+ "end": 94,
1098
1100
  "suffix": "%",
1099
1101
  "label": "Graduation Rate",
1100
1102
  "once": true
@@ -1,6 +1,9 @@
1
-
1
+ @use 'sass:math';
2
2
  @function strip-unit($value) {
3
- @return $value / ($value * 0 + 1);
3
+ @if type-of($value) == 'number' and not unitless($value) {
4
+ @return math.div($value, ($value * 0 + 1));
5
+ }
6
+ @return $value;
4
7
  }
5
8
 
6
9
  @mixin fluid-type($min-font-size, $max-font-size, $min-vw: 320px, $max-vw: 1200px, ) {
@@ -1,3 +1,4 @@
1
+ @use 'sass:math';
1
2
  // COLORS
2
3
  $colors: (
3
4
  old-brand-blue: #263969,
@@ -76,8 +77,8 @@ $rem-font-size: 16px;
76
77
  $base-font-size: 16px;
77
78
  $line-height: 1.4;
78
79
  $base-line-split: 3;
79
- $base-line-height: ceil($line-height * $base-font-size / $base-line-split);
80
- $line-height: $base-line-height * $base-line-split / $base-font-size;
80
+ $base-line-height: ceil(calc($line-height * $base-font-size / $base-line-split));
81
+ $line-height: calc($base-line-height * $base-line-split / $base-font-size);
81
82
  $copy-font: $base-font-size - 4;
82
83
 
83
84
  $font-family-headlines: var(--website-typography__font-family-headlines);
@@ -23,7 +23,7 @@ export default {
23
23
  // Page content
24
24
  messages: { type: Array, default: () => [] },
25
25
  primaryMessageLimit: { type: Number, default: 3 },
26
- factoids: { type: Array, default: () => [] },
26
+ // factoids: { type: Array, default: () => [] },
27
27
  websiteLogoProps: { type: Object, default: null },
28
28
 
29
29
  // Page state