srcdev-nuxt-components 2.2.5 → 2.2.7
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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div v-if="showGallery" class="gallery-content" :class="[{ loaded: isLoading }]">
|
|
9
9
|
<div class="list" ref="sliderGalleryImagesList">
|
|
10
10
|
<div v-for="(item, index) in galleryData" :key="index" class="item">
|
|
11
|
-
<
|
|
11
|
+
<NuxtImg :src="item.src" :alt="item.alt" @load="handleImageLoad(index)" @error="handleImageError(index)" loading="lazy" />
|
|
12
12
|
<div class="content">
|
|
13
13
|
<div class="author">{{ item.stylist }}</div>
|
|
14
14
|
<div class="title">{{ item.title }}</div>
|
|
@@ -239,19 +239,17 @@ onMounted(() => {
|
|
|
239
239
|
</script>
|
|
240
240
|
|
|
241
241
|
<style lang="css">
|
|
242
|
-
/* slider-gallery */
|
|
243
242
|
.slider-gallery {
|
|
244
243
|
--_animationDuration: v-bind(animationDuration + 'ms');
|
|
245
244
|
|
|
246
245
|
--_thumbnailAspectRatio: 150 /220;
|
|
247
246
|
|
|
248
|
-
--_thumbnailWidth: 100px;
|
|
249
|
-
--_thumbnailHeight: 165px;
|
|
250
|
-
|
|
247
|
+
--_thumbnailWidth: var(--_thumbnailMobileWidth, 100px);
|
|
248
|
+
--_thumbnailHeight: var(--_thumbnailMobileHeight, 165px);
|
|
251
249
|
|
|
252
250
|
@media screen and (min-width: 1024px) {
|
|
253
|
-
--_thumbnailWidth: 150px;
|
|
254
|
-
--_thumbnailHeight: 220px;
|
|
251
|
+
--_thumbnailWidth: var(--_thumbnailDesktopWidth, 150px);
|
|
252
|
+
--_thumbnailHeight: var(--_thumbnailDesktopHeight, 220px);
|
|
255
253
|
}
|
|
256
254
|
|
|
257
255
|
height: 100svh;
|
|
@@ -425,20 +423,6 @@ onMounted(() => {
|
|
|
425
423
|
z-index: 2;
|
|
426
424
|
}
|
|
427
425
|
|
|
428
|
-
&:first-child {
|
|
429
|
-
/* Add the animated border effect */
|
|
430
|
-
&::before {
|
|
431
|
-
content: '';
|
|
432
|
-
position: absolute;
|
|
433
|
-
inset: -3px; /* Border outside the thumbnail */
|
|
434
|
-
border-radius: 20px;
|
|
435
|
-
/* background: conic-gradient(transparent 0deg, transparent 360deg); */
|
|
436
|
-
z-index: 1;
|
|
437
|
-
animation: none;
|
|
438
|
-
pointer-events: none;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
426
|
img {
|
|
443
427
|
width: 100%;
|
|
444
428
|
height: 100%;
|
|
@@ -532,12 +516,6 @@ onMounted(() => {
|
|
|
532
516
|
animation: effectNext 0.5s linear 1 forwards;
|
|
533
517
|
|
|
534
518
|
.item {
|
|
535
|
-
&:first-child {
|
|
536
|
-
/* Add the animated border effect */
|
|
537
|
-
&::before {
|
|
538
|
-
animation: countdownBorder 7s linear 1 forwards;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
519
|
&:nth-last-child(1) {
|
|
542
520
|
overflow: hidden;
|
|
543
521
|
animation: showThumbnail 0.5s linear 1 forwards;
|
|
@@ -714,15 +692,4 @@ onMounted(() => {
|
|
|
714
692
|
font-size: 30px;
|
|
715
693
|
}
|
|
716
694
|
}
|
|
717
|
-
|
|
718
|
-
/* Keyframe for the border animation */
|
|
719
|
-
@keyframes countdownBorder {
|
|
720
|
-
0% {
|
|
721
|
-
background: conic-gradient(brightgreen 0deg, transparent 0deg);
|
|
722
|
-
}
|
|
723
|
-
100% {
|
|
724
|
-
background: conic-gradient(brightgreen 0deg, brightgreen 360deg);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
|
|
728
695
|
</style>
|
package/package.json
CHANGED