@explorer-1/vue 0.2.99 → 0.2.100
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/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/components/HeroMedia/HeroMedia.vue +35 -33
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explorer-1/vue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.100",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vue-bind-once": "^0.2.1",
|
|
31
31
|
"vue3-compare-image": "^1.2.5",
|
|
32
32
|
"vue3-observe-visibility": "^1.0.1",
|
|
33
|
-
"@explorer-1/common": "1.1.
|
|
33
|
+
"@explorer-1/common": "1.1.24"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
@@ -3,40 +3,42 @@
|
|
|
3
3
|
v-if="image || video"
|
|
4
4
|
class="HeroMedia"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
7
|
-
<div class="
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<button
|
|
30
|
-
class="bg-opacity-90 text-gray-dark flex items-center justify-center w-12 h-12 ml-auto bg-white cursor-pointer"
|
|
31
|
-
aria-label="Toggle caption"
|
|
32
|
-
@click="toggleCaption"
|
|
6
|
+
<div>
|
|
7
|
+
<div class="vh-crop max-w-screen-3xl relative flex items-center mx-auto overflow-hidden">
|
|
8
|
+
<div class="hero w-full">
|
|
9
|
+
<template v-if="theImageData">
|
|
10
|
+
<img
|
|
11
|
+
v-if="theImageData.src"
|
|
12
|
+
class="object-cover object-center w-full h-full"
|
|
13
|
+
:srcset="theSrcSet"
|
|
14
|
+
:src="theImageData.src.url"
|
|
15
|
+
:width="theImageData.src.width"
|
|
16
|
+
:height="theImageData.src.height"
|
|
17
|
+
:alt="theImageData.alt"
|
|
18
|
+
itemprop="image"
|
|
19
|
+
data-chromatic="ignore"
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
|
22
|
+
<template v-else-if="video">
|
|
23
|
+
<MixinVideoBg :video="video" />
|
|
24
|
+
</template>
|
|
25
|
+
</div>
|
|
26
|
+
<div
|
|
27
|
+
v-if="hasCaptionArea"
|
|
28
|
+
class="lg:hidden absolute bottom-0 left-0 w-full h-auto mx-auto print:hidden"
|
|
33
29
|
>
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
<button
|
|
31
|
+
class="bg-opacity-90 text-gray-dark flex items-center justify-center w-12 h-12 ml-auto bg-white cursor-pointer"
|
|
32
|
+
aria-label="Toggle caption"
|
|
33
|
+
@click="toggleCaption"
|
|
34
|
+
>
|
|
35
|
+
<IconInfo
|
|
36
|
+
v-show="!captionVisible"
|
|
37
|
+
class="text-xl"
|
|
38
|
+
/>
|
|
39
|
+
<IconClose v-show="captionVisible" />
|
|
40
|
+
</button>
|
|
41
|
+
</div>
|
|
40
42
|
</div>
|
|
41
43
|
</div>
|
|
42
44
|
|