@asd20/ui 3.2.901 → 3.2.903

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.901",
8
+ "version": "3.2.903",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -84,7 +84,7 @@
84
84
  </div>
85
85
  <div v-if="lead" class="asd20-page-header__lead">
86
86
  <span v-html="lead"></span>
87
- <a v-if="detailLink && !isDetailPage" :href="detailLink">
87
+ <a v-show="detailLink && !isDetailPage" :href="detailLink">
88
88
  {{ detailLinkLabel }}
89
89
  </a>
90
90
  </div>
@@ -123,8 +123,8 @@ export default {
123
123
  left: 0;
124
124
  right: space(1);
125
125
  z-index: -1;
126
- background: var(--website-header__background-color)
127
- var(--website-header__background-style);
126
+ background: var(--website-header__background-style);
127
+ background-color: var(--website-header__background-color);
128
128
  border-radius: var(--website-shape__radius-l);
129
129
  border-top-left-radius: 0;
130
130
  border-top-right-radius: 0;
@@ -206,7 +206,6 @@ export default {
206
206
 
207
207
  &__content {
208
208
  margin-top: space(2);
209
- background: rgba(0, 0, 0, 0.01);
210
209
  }
211
210
 
212
211
  &__lead {
@@ -1,11 +1,15 @@
1
1
  <template>
2
2
  <div class="page-content-404">
3
- <h1><small>404</small>"Not all who wander are lost."</h1>
3
+ <h1><small>404</small>We're lost. But, we do have a map.</h1>
4
+ <p class="lead">
5
+ Let us humbly provide some directions to get you back on track:
6
+ </p>
7
+ <!-- <h1><small>404</small>"Not all who wander are lost."</h1>
4
8
  <span><i>~ J.R.R. Tolkien, The Fellowship of the Ring</i></span>
5
9
  <p class="lead">
6
10
  Well, at least in this case, we can't determine your journey's end. Let us
7
11
  humbly provide a few options to get you back on track:
8
- </p>
12
+ </p> -->
9
13
  <div class="options">
10
14
  <asd20-button class="option-button" reversed @click.native="trySearch"
11
15
  >Try a Search
@@ -43,7 +43,7 @@
43
43
  logo-size="lg"
44
44
  ></asd20-organization-picker>
45
45
  <a
46
- v-if="websiteLogoProps"
46
+ v-if="websiteLogoProps && showLogo"
47
47
  :href="websiteLogoProps.logoLink ? websiteLogoProps.logoLink : ''"
48
48
  >
49
49
  <img
@@ -54,6 +54,9 @@
54
54
  : ''
55
55
  "
56
56
  :alt="websiteLogoProps.logoAlt ? websiteLogoProps.logoAlt : ''"
57
+ :aria-label="
58
+ websiteLogoProps.logoAlt ? websiteLogoProps.logoAlt : ''
59
+ "
57
60
  />
58
61
  </a>
59
62
  </div>
@@ -181,10 +184,17 @@ export default {
181
184
  languageCode: { type: String, default: 'en' },
182
185
  },
183
186
 
187
+ data: () => ({
188
+ showLogo: true,
189
+ }),
190
+
184
191
  computed: {
185
192
  firstMessage() {
186
193
  return this.messages.length > 0 ? this.messages[0] : null
187
194
  },
195
+ // showLogo() {
196
+ // return this.screenWidth > 1024 // Show the logo only if the screen width is greater than 1024px
197
+ // },
188
198
 
189
199
  pageHeaderContent() {
190
200
  if (!this.firstMessage) return null
@@ -213,6 +223,15 @@ export default {
213
223
  }
214
224
  },
215
225
  },
226
+ mounted() {
227
+ this.showLogo = window.innerWidth >= 1350
228
+ window.addEventListener('resize', this.handleResize)
229
+ },
230
+ methods: {
231
+ handleResize() {
232
+ this.showLogo = window.innerWidth >= 1350
233
+ },
234
+ },
216
235
  }
217
236
  </script>
218
237
 
@@ -351,9 +370,9 @@ export default {
351
370
  // }
352
371
  .pickerContainer {
353
372
  display: flex;
354
- .optionalLogo {
355
- display: none;
356
- }
373
+ // .optionalLogo {
374
+ // display: none;
375
+ // }
357
376
  }
358
377
  .asd20-quicklinks-menu {
359
378
  padding-bottom: space(1);