@asd20/ui 3.2.585 → 3.2.586

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.585",
8
+ "version": "3.2.586",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -17,7 +17,7 @@
17
17
  <div class="asd20-page-header__main">
18
18
  <div
19
19
  class="asd20-page-header__content"
20
- :class="imageUrl ? 'add-fade' : ''"
20
+ :class="imageUrl || headerImageUrl ? 'new-header add-fade' : ''"
21
21
  :style="styles"
22
22
  >
23
23
  <div class="asd20-page-header__tools">
@@ -164,6 +164,7 @@ export default {
164
164
  lead: { type: String, default: '' },
165
165
  callsToAction: { type: Array, default: () => [] },
166
166
  imageUrl: { type: String, default: '' },
167
+ headerImageUrl: { type: String, default: '' },
167
168
  imageCaption: { type: String, default: '' },
168
169
  fullscreen: { type: Boolean, default: false },
169
170
  detailLink: { type: String, default: '' },
@@ -202,8 +203,14 @@ export default {
202
203
  )
203
204
  },
204
205
  styles() {
205
- return {
206
- '--imageBackground': `url('${this.imageUrl}')`,
206
+ if (this.headerImageUrl) {
207
+ return {
208
+ '--imageBackground': `url('${this.headerImageUrl}')`,
209
+ }
210
+ } else {
211
+ return {
212
+ '--imageBackground': `url('${this.imageUrl}')`,
213
+ }
207
214
  }
208
215
  },
209
216
  },
@@ -342,8 +349,10 @@ export default {
342
349
  position: relative;
343
350
  color: var(--website-header__foreground-color);
344
351
  padding: space(1.5) space(1) space(3) space(1);
345
- background: var(--website-header__background-color) var(--imageBackground)
346
- 50% 50% / cover no-repeat;
352
+ background: var(--website-header__background-color)
353
+ var(--website-header__background-style);
354
+ // background: var(--website-header__background-color) var(--imageBackground)
355
+ // 50% 50% / cover no-repeat;
347
356
  &::v-deep .asd20-breadcrumb {
348
357
  margin: space(1) 0 0 0;
349
358
  }
@@ -351,6 +360,10 @@ export default {
351
360
  max-width: 100%;
352
361
  }
353
362
  }
363
+ .new-header {
364
+ background: var(--website-header__background-color) var(--imageBackground)
365
+ 50% 50% / cover no-repeat;
366
+ }
354
367
  .add-fade {
355
368
  &::before {
356
369
  content: '';
@@ -206,7 +206,7 @@ export default {
206
206
  const coverImageFiles = coverImage.files || []
207
207
  const coverImageFull = coverImageFiles.find(f => f.name === 'full')
208
208
  if (coverImageFull && coverImageFull.filename.includes('headerimage')) {
209
- imageUrl = ''
209
+ imageUrl = null
210
210
  headerImageUrl = coverImageFull ? coverImageFull.url : coverImage.url || ''
211
211
  } else {
212
212
  imageUrl = coverImageFull ? coverImageFull.url : coverImage.url || ''