@asd20/ui 3.2.771 → 3.2.773

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.771",
8
+ "version": "3.2.773",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -143,7 +143,7 @@ export default {
143
143
  margin-top: space(0.50);
144
144
  font-family: var(--website-typography__font-family-headlines);
145
145
  font-weight: var(--website-typography__font-weight-body, normal);
146
- font-size: 0.5em;
146
+ font-size: 0.75rem;
147
147
  // text-transform: uppercase;
148
148
  opacity: 0.75;
149
149
  text-align: justify;
@@ -5,6 +5,12 @@
5
5
  We're sorry, it looks like you have a reached a location for a page that
6
6
  doesn't exist.
7
7
  </p>
8
+ <asd20-button class="go-back" reversed :link="referrerLink"
9
+ >Go back to the page you came from
10
+ </asd20-button>
11
+ <asd20-button class="go-back"reversed :link="homeLink"
12
+ >Go back to our Home Page
13
+ </asd20-button>
8
14
  <asd20-list
9
15
  v-if="suggestedPagesListItems.length > 0"
10
16
  :items="suggestedPagesListItems"
@@ -49,6 +55,7 @@
49
55
 
50
56
  <script>
51
57
  import Asd20List from '../../organisms/Asd20List'
58
+ import Asd20Button from '../../atoms/Asd20Button'
52
59
  import Asd20SiteNavigation from '../../../components/organisms/Asd20SiteNavigation'
53
60
  import Asd20WidgetsSection from '../../../components/organisms/Asd20WidgetsSection'
54
61
 
@@ -62,6 +69,7 @@ import Intersect from 'vue-intersect'
62
69
  export default {
63
70
  components: {
64
71
  Asd20List,
72
+ Asd20Button,
65
73
  Asd20SiteNavigation,
66
74
  Asd20WidgetsSection,
67
75
  Intersect,
@@ -71,6 +79,8 @@ export default {
71
79
 
72
80
  data: () => ({
73
81
  suggestedPagesListItems: [],
82
+ referrerLink: document.referrer || window.location.origin,
83
+ homeLink: window.location.origin,
74
84
  }),
75
85
 
76
86
  mounted() {
@@ -116,9 +126,9 @@ export default {
116
126
  small {
117
127
  position: relative;
118
128
  display: block;
119
- font-size: 40vw;
129
+ font-size: 20vw;
120
130
  opacity: 1;
121
- color: asd20-swatch('background-alt');
131
+ color: rgb(245, 245, 245);
122
132
  line-height: 1;
123
133
  margin-bottom: -10vw;
124
134
  z-index: -1;
@@ -127,6 +137,10 @@ export default {
127
137
  p {
128
138
  text-align: center;
129
139
  }
140
+ .go-back {
141
+ margin: 1rem;
142
+ width: 30%;
143
+ }
130
144
  .not-found {
131
145
  display: flex;
132
146
  height: 100%;
@@ -2,24 +2,61 @@
2
2
  "@odata.context": "https://asd20-search-prod.search.windows.net/indexes('messages-index')/$metadata#docs(*)",
3
3
  "@odata.count": 41,
4
4
  "@search.facets": {
5
- "categories": [
6
- { "count": 24, "value": "Graduation 2020" },
7
- { "count": 22, "value": "School Spotlight" },
8
- { "count": 22, "value": "Video" },
9
- { "count": 20, "value": "News" },
10
- { "count": 14, "value": "Featured" },
11
- { "count": 12, "value": "Arts" },
12
- { "count": 12, "value": "Sports" },
13
- { "count": 8, "value": "Kudos" },
14
- { "count": 4, "value": "20's People" },
15
- { "count": 4, "value": "School Trips" },
16
- { "count": 2, "value": "COVID-19" },
17
- { "count": 2, "value": "In the News" },
18
- { "count": 2, "value": "Uncategorized" }
5
+ "categories": [{
6
+ "count": 24,
7
+ "value": "Graduation 2020"
8
+ },
9
+ {
10
+ "count": 22,
11
+ "value": "School Spotlight"
12
+ },
13
+ {
14
+ "count": 22,
15
+ "value": "Video"
16
+ },
17
+ {
18
+ "count": 20,
19
+ "value": "News"
20
+ },
21
+ {
22
+ "count": 14,
23
+ "value": "Featured"
24
+ },
25
+ {
26
+ "count": 12,
27
+ "value": "Arts"
28
+ },
29
+ {
30
+ "count": 12,
31
+ "value": "Sports"
32
+ },
33
+ {
34
+ "count": 8,
35
+ "value": "Kudos"
36
+ },
37
+ {
38
+ "count": 4,
39
+ "value": "20's People"
40
+ },
41
+ {
42
+ "count": 4,
43
+ "value": "School Trips"
44
+ },
45
+ {
46
+ "count": 2,
47
+ "value": "COVID-19"
48
+ },
49
+ {
50
+ "count": 2,
51
+ "value": "In the News"
52
+ },
53
+ {
54
+ "count": 2,
55
+ "value": "Uncategorized"
56
+ }
19
57
  ]
20
58
  },
21
- "value": [
22
- {
59
+ "value": [{
23
60
  "@search.score": 7.313502,
24
61
  "type": "message",
25
62
  "id": "14801f20-ba12-11ea-89c6-97124e38f254",
@@ -42,7 +79,7 @@
42
79
  "channels": ["News & Stories"],
43
80
  "audiences": [],
44
81
  "ownerOrganizationId": "26eaf390-d8ab-11e9-a3a8-5de5bba4f125",
45
- "images": "[{\"files\":[{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-md/Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"name\":\"thumbnail-md\",\"width\":250,\"height\":250,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"filepath\":\"message-images//thumbnail-md/Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"filesize\":18750},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-sm/Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"name\":\"thumbnail-sm\",\"width\":100,\"height\":100,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"filepath\":\"message-images//thumbnail-sm/Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"filesize\":4884},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-xs/Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"name\":\"thumbnail-xs\",\"width\":50,\"height\":50,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"filepath\":\"message-images//thumbnail-xs/Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"filesize\":1840},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//banner/Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"name\":\"banner\",\"width\":800,\"height\":300,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"filepath\":\"message-images//banner/Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"filesize\":54628},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//full/Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"name\":\"full\",\"width\":1200,\"height\":800,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"filepath\":\"message-images//full/Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"filesize\":142032}],\"isCover\":true,\"metadata\":{\"alt\":\"\"}}]",
82
+ "images": "[{\"files\":[{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-md/Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"name\":\"thumbnail-md\",\"width\":250,\"height\":250,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"filepath\":\"message-images//thumbnail-md/Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"filesize\":18750},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-sm/Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"name\":\"thumbnail-sm\",\"width\":100,\"height\":100,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"filepath\":\"message-images//thumbnail-sm/Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"filesize\":4884},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-xs/Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"name\":\"thumbnail-xs\",\"width\":50,\"height\":50,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"filepath\":\"message-images//thumbnail-xs/Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"filesize\":1840},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//banner/Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"name\":\"banner\",\"width\":800,\"height\":300,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"filepath\":\"message-images//banner/Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"filesize\":54628},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//full/Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"name\":\"full\",\"width\":1200,\"height\":800,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"filepath\":\"message-images//full/Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"filesize\":142032}],\"isCover\":true,\"metadata\":{\"alt\":\"A Pine Creek High School Graduate looking very self-assured.\"}}]",
46
83
  "videos": "[{\"id\":\"LXIJ87xshpc\",\"embedUrl\":\"https://www.youtube.com/embed/LXIJ87xshpc\",\"watchUrl\":\"https://www.youtube.com/watch?v=LXIJ87xshpc\",\"coverImageUrl\":\"https://img.youtube.com/vi/LXIJ87xshpc/0.jpg\"}]",
47
84
  "translations": "null",
48
85
  "callsToAction": "null",
@@ -802,4 +839,4 @@
802
839
  "modifiedDateTime": "2020-07-15T14:59:40.6Z"
803
840
  }
804
841
  ]
805
- }
842
+ }
@@ -9,11 +9,11 @@ export default function mapMessageToCard(message, options = {}) {
9
9
  : message.images
10
10
  const coverImage = images.find(i => i.isCover) || null
11
11
  const coverImageFiles = coverImage ? coverImage.files || [] : []
12
+ const coverImageAlt = coverImage ? coverImage.metadata.alt : ''
12
13
  const bannerImageOrDefault =
13
14
  coverImageFiles.length > 0
14
15
  ? coverImageFiles.find(f => f.name === 'full') || coverImageFiles[0]
15
16
  : null
16
-
17
17
  const channelTitle =
18
18
  message.channels && message.channels.length ? message.channels[0] : 'none'
19
19
 
@@ -32,6 +32,7 @@ export default function mapMessageToCard(message, options = {}) {
32
32
  time: format(message.publishDateTime, 'h:mm A'),
33
33
  pinned: message.isFeatured || message.isDistrictFeatured,
34
34
  image: bannerImageOrDefault ? bannerImageOrDefault.url : '',
35
+ alt: bannerImageOrDefault ? coverImageAlt : '',
35
36
  link: `${channelPrefixMap[channelTitle]}${message.slug}`,
36
37
  hasGallery: images.length > 0,
37
38
  hasVideo: videos.length > 0,