|
|
@@ -1,6 +1,5 @@
|
|
1
|
1
|
<template lang="pug">
|
|
2
|
|
-.hero.w-max.f-col(v-if="showHero")
|
|
3
|
|
- //- .tint.z-top.w-max
|
|
|
2
|
+.hero.w-max.f-col(v-if="showHero && !loading")
|
|
4
|
3
|
.tint.w-max
|
|
5
|
4
|
.hero--video.w-max(v-if="heroType === 'video'")
|
|
6
|
5
|
iframe(
|
|
|
@@ -23,8 +22,9 @@
|
|
23
|
22
|
.hero--image(v-else)
|
|
24
|
23
|
.hero--image--overlay.w-max.f-col
|
|
25
|
24
|
div(v-html="heroText")
|
|
26
|
|
- //- if not hero image then heading overlay to show only in main article
|
|
27
|
|
-
|
|
|
25
|
+.hero.w-max.f-col(v-else-if="loading" style="justify-content: center !important;")
|
|
|
26
|
+ .tint.w-max
|
|
|
27
|
+ p loading...
|
|
28
|
28
|
</template>
|
|
29
|
29
|
|
|
30
|
30
|
<script>
|
|
|
@@ -42,6 +42,7 @@ export default {
|
|
42
|
42
|
...mapState({
|
|
43
|
43
|
showHero: state => state.hero.url,
|
|
44
|
44
|
heroText: state => state.hero.text,
|
|
|
45
|
+ loading: state => state.loading,
|
|
45
|
46
|
heroType: state => state.hero.type,
|
|
46
|
47
|
showPlaybutton: state => state.hero.playbutton,
|
|
47
|
48
|
}),
|
|
|
@@ -158,5 +159,4 @@ export default {
|
|
158
|
159
|
min-height: 50vh
|
|
159
|
160
|
.embedded
|
|
160
|
161
|
min-height: 50vh
|
|
161
|
|
-
|
|
162
|
162
|
</style>
|