srcdev-nuxt-components 2.2.4 → 2.2.5
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,16 @@ 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
|
+
|
|
252
|
+
@media screen and (min-width: 1024px) {
|
|
253
|
+
--_thumbnailWidth: 150px;
|
|
254
|
+
--_thumbnailHeight: 220px;
|
|
255
|
+
}
|
|
247
256
|
|
|
248
257
|
height: 100svh;
|
|
249
258
|
width: 100vw;
|
|
@@ -399,8 +408,8 @@ onMounted(() => {
|
|
|
399
408
|
gap: 20px;
|
|
400
409
|
|
|
401
410
|
.item {
|
|
402
|
-
width:
|
|
403
|
-
height:
|
|
411
|
+
width: var(--_thumbnailWidth);
|
|
412
|
+
height: var(--_thumbnailHeight);
|
|
404
413
|
flex-shrink: 0;
|
|
405
414
|
position: relative;
|
|
406
415
|
|
|
@@ -501,8 +510,8 @@ onMounted(() => {
|
|
|
501
510
|
.item {
|
|
502
511
|
&:nth-child(1) {
|
|
503
512
|
img {
|
|
504
|
-
width:
|
|
505
|
-
height:
|
|
513
|
+
width: var(--_thumbnailWidth);
|
|
514
|
+
height: var(--_thumbnailHeight);
|
|
506
515
|
position: absolute;
|
|
507
516
|
bottom: 50px;
|
|
508
517
|
left: 50%;
|
|
@@ -637,7 +646,7 @@ onMounted(() => {
|
|
|
637
646
|
|
|
638
647
|
@keyframes effectNext {
|
|
639
648
|
from {
|
|
640
|
-
transform: translateX(
|
|
649
|
+
transform: translateX(calc(1 * var(--_thumbnailWidth)));
|
|
641
650
|
}
|
|
642
651
|
}
|
|
643
652
|
|
|
@@ -652,8 +661,8 @@ onMounted(() => {
|
|
|
652
661
|
|
|
653
662
|
@keyframes outFrame {
|
|
654
663
|
to {
|
|
655
|
-
width:
|
|
656
|
-
height:
|
|
664
|
+
width: var(--_thumbnailWidth);
|
|
665
|
+
height: var(--_thumbnailHeight);
|
|
657
666
|
bottom: 50px;
|
|
658
667
|
left: 50%;
|
|
659
668
|
border-radius: 20px;
|
|
@@ -662,7 +671,7 @@ onMounted(() => {
|
|
|
662
671
|
|
|
663
672
|
@keyframes contentOut {
|
|
664
673
|
to {
|
|
665
|
-
transform: translateY(-
|
|
674
|
+
transform: translateY(calc(-1 * var(--_thumbnailWidth)));
|
|
666
675
|
filter: blur(20px);
|
|
667
676
|
opacity: 0;
|
|
668
677
|
}
|
|
@@ -670,7 +679,7 @@ onMounted(() => {
|
|
|
670
679
|
|
|
671
680
|
@keyframes effectPrev {
|
|
672
681
|
from {
|
|
673
|
-
transform: translateX(-
|
|
682
|
+
transform: translateX(calc(-1 * var(--_thumbnailWidth)));
|
|
674
683
|
}
|
|
675
684
|
to {
|
|
676
685
|
transform: translateX(0);
|
|
@@ -715,4 +724,5 @@ onMounted(() => {
|
|
|
715
724
|
background: conic-gradient(brightgreen 0deg, brightgreen 360deg);
|
|
716
725
|
}
|
|
717
726
|
}
|
|
727
|
+
|
|
718
728
|
</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.5",
|
|
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",
|