srcdev-nuxt-components 2.2.4 → 2.2.6
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.
|
@@ -243,7 +243,15 @@ onMounted(() => {
|
|
|
243
243
|
.slider-gallery {
|
|
244
244
|
--_animationDuration: v-bind(animationDuration + 'ms');
|
|
245
245
|
|
|
246
|
-
--
|
|
246
|
+
--_thumbnailAspectRatio: 150 /220;
|
|
247
|
+
|
|
248
|
+
--_thumbnailWidth: 100px;
|
|
249
|
+
--_thumbnailHeight: 165px;
|
|
250
|
+
|
|
251
|
+
@media screen and (min-width: 1024px) {
|
|
252
|
+
--_thumbnailWidth: 150px;
|
|
253
|
+
--_thumbnailHeight: 220px;
|
|
254
|
+
}
|
|
247
255
|
|
|
248
256
|
height: 100svh;
|
|
249
257
|
width: 100vw;
|
|
@@ -399,8 +407,8 @@ onMounted(() => {
|
|
|
399
407
|
gap: 20px;
|
|
400
408
|
|
|
401
409
|
.item {
|
|
402
|
-
width:
|
|
403
|
-
height:
|
|
410
|
+
width: var(--_thumbnailWidth);
|
|
411
|
+
height: var(--_thumbnailHeight);
|
|
404
412
|
flex-shrink: 0;
|
|
405
413
|
position: relative;
|
|
406
414
|
|
|
@@ -416,20 +424,6 @@ onMounted(() => {
|
|
|
416
424
|
z-index: 2;
|
|
417
425
|
}
|
|
418
426
|
|
|
419
|
-
&:first-child {
|
|
420
|
-
/* Add the animated border effect */
|
|
421
|
-
&::before {
|
|
422
|
-
content: '';
|
|
423
|
-
position: absolute;
|
|
424
|
-
inset: -3px; /* Border outside the thumbnail */
|
|
425
|
-
border-radius: 20px;
|
|
426
|
-
/* background: conic-gradient(transparent 0deg, transparent 360deg); */
|
|
427
|
-
z-index: 1;
|
|
428
|
-
animation: none;
|
|
429
|
-
pointer-events: none;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
427
|
img {
|
|
434
428
|
width: 100%;
|
|
435
429
|
height: 100%;
|
|
@@ -501,8 +495,8 @@ onMounted(() => {
|
|
|
501
495
|
.item {
|
|
502
496
|
&:nth-child(1) {
|
|
503
497
|
img {
|
|
504
|
-
width:
|
|
505
|
-
height:
|
|
498
|
+
width: var(--_thumbnailWidth);
|
|
499
|
+
height: var(--_thumbnailHeight);
|
|
506
500
|
position: absolute;
|
|
507
501
|
bottom: 50px;
|
|
508
502
|
left: 50%;
|
|
@@ -523,12 +517,6 @@ onMounted(() => {
|
|
|
523
517
|
animation: effectNext 0.5s linear 1 forwards;
|
|
524
518
|
|
|
525
519
|
.item {
|
|
526
|
-
&:first-child {
|
|
527
|
-
/* Add the animated border effect */
|
|
528
|
-
&::before {
|
|
529
|
-
animation: countdownBorder 7s linear 1 forwards;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
520
|
&:nth-last-child(1) {
|
|
533
521
|
overflow: hidden;
|
|
534
522
|
animation: showThumbnail 0.5s linear 1 forwards;
|
|
@@ -637,7 +625,7 @@ onMounted(() => {
|
|
|
637
625
|
|
|
638
626
|
@keyframes effectNext {
|
|
639
627
|
from {
|
|
640
|
-
transform: translateX(
|
|
628
|
+
transform: translateX(calc(1 * var(--_thumbnailWidth)));
|
|
641
629
|
}
|
|
642
630
|
}
|
|
643
631
|
|
|
@@ -652,8 +640,8 @@ onMounted(() => {
|
|
|
652
640
|
|
|
653
641
|
@keyframes outFrame {
|
|
654
642
|
to {
|
|
655
|
-
width:
|
|
656
|
-
height:
|
|
643
|
+
width: var(--_thumbnailWidth);
|
|
644
|
+
height: var(--_thumbnailHeight);
|
|
657
645
|
bottom: 50px;
|
|
658
646
|
left: 50%;
|
|
659
647
|
border-radius: 20px;
|
|
@@ -662,7 +650,7 @@ onMounted(() => {
|
|
|
662
650
|
|
|
663
651
|
@keyframes contentOut {
|
|
664
652
|
to {
|
|
665
|
-
transform: translateY(-
|
|
653
|
+
transform: translateY(calc(-1 * var(--_thumbnailWidth)));
|
|
666
654
|
filter: blur(20px);
|
|
667
655
|
opacity: 0;
|
|
668
656
|
}
|
|
@@ -670,7 +658,7 @@ onMounted(() => {
|
|
|
670
658
|
|
|
671
659
|
@keyframes effectPrev {
|
|
672
660
|
from {
|
|
673
|
-
transform: translateX(-
|
|
661
|
+
transform: translateX(calc(-1 * var(--_thumbnailWidth)));
|
|
674
662
|
}
|
|
675
663
|
to {
|
|
676
664
|
transform: translateX(0);
|
|
@@ -705,14 +693,4 @@ onMounted(() => {
|
|
|
705
693
|
font-size: 30px;
|
|
706
694
|
}
|
|
707
695
|
}
|
|
708
|
-
|
|
709
|
-
/* Keyframe for the border animation */
|
|
710
|
-
@keyframes countdownBorder {
|
|
711
|
-
0% {
|
|
712
|
-
background: conic-gradient(brightgreen 0deg, transparent 0deg);
|
|
713
|
-
}
|
|
714
|
-
100% {
|
|
715
|
-
background: conic-gradient(brightgreen 0deg, brightgreen 360deg);
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
696
|
</style>
|
package/nuxt.config.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export default defineNuxtConfig({
|
|
3
3
|
devtools: { enabled: true },
|
|
4
4
|
css: ['modern-normalize', './assets/styles/main.css'],
|
|
5
|
-
modules: ['@nuxt/icon', '@nuxt/image'],
|
|
5
|
+
modules: ['@nuxt/icon', '@nuxt/image', '@nuxt/eslint'],
|
|
6
6
|
app: {
|
|
7
7
|
head: {
|
|
8
8
|
htmlAttrs: {
|
|
@@ -34,4 +34,8 @@ export default defineNuxtConfig({
|
|
|
34
34
|
typescript: {
|
|
35
35
|
includeWorkspace: true,
|
|
36
36
|
},
|
|
37
|
+
eslint: {
|
|
38
|
+
// Add any custom options here
|
|
39
|
+
|
|
40
|
+
},
|
|
37
41
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "srcdev-nuxt-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.6",
|
|
5
5
|
"main": "nuxt.config.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@iconify-json/akar-icons": "1.2.2",
|
|
29
29
|
"@iconify-json/bitcoin-icons": "1.2.2",
|
|
30
|
+
"@nuxt/eslint": "^1.3.0",
|
|
30
31
|
"@nuxt/eslint-config": "1.2.0",
|
|
31
32
|
"@nuxt/icon": "1.11.0",
|
|
32
33
|
"@nuxt/image": "1.10.0",
|
|
33
|
-
"eslint": "9.22.0",
|
|
34
34
|
"happy-dom": "16.8.1",
|
|
35
35
|
"nuxt": "3.16.0",
|
|
36
36
|
"release-it": "18.1.2",
|