srcdev-nuxt-components 2.5.12 → 2.5.14
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,14 +8,14 @@
|
|
|
8
8
|
<div v-if="showGallery" class="gallery-content" :class="[{ galleryLoaded: !galleryLoaded }]">
|
|
9
9
|
<div class="list" ref="sliderGalleryImagesList">
|
|
10
10
|
<div v-for="(item, index) in galleryData" :key="index" class="item">
|
|
11
|
-
<NuxtImg
|
|
11
|
+
<NuxtImg @load="handleImageLoad(index)" @error="handleImageError(index)" :src="item.src" :alt="item.alt"
|
|
12
12
|
loading="lazy" />
|
|
13
|
-
<div class="content">
|
|
14
|
-
<div class="author">{{ item.stylist }}</div>
|
|
15
|
-
<div class="title">{{ item.title }}</div>
|
|
16
|
-
<div class="topic">{{ item.category }}</div>
|
|
17
|
-
<div class="des">{{ item.description }}</div>
|
|
18
|
-
<div class="buttons">
|
|
13
|
+
<div class="content" :class="item.textBrightness">
|
|
14
|
+
<div v-show="item.stylist !== ''" class="author" :class="item.textBrightness">{{ item.stylist }}</div>
|
|
15
|
+
<div v-show="item.title !== ''" class="title" :class="item.textBrightness">{{ item.title }}</div>
|
|
16
|
+
<div v-show="item.category !== ''" class="topic" :class="item.textBrightness">{{ item.category }}</div>
|
|
17
|
+
<div v-show="item.description !== ''" class="des" :class="item.textBrightness">{{ item.description }}</div>
|
|
18
|
+
<div class="buttons" :class="item.textBrightness">
|
|
19
19
|
<button>SEE MORE</button>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
<div v-for="(item, index) in galleryData" :key="index" class="item">
|
|
27
27
|
<div class="inner">
|
|
28
28
|
<img :src="item.src" :alt="item.alt" loading="lazy" />
|
|
29
|
-
<div class="content">
|
|
30
|
-
<div
|
|
31
|
-
<div
|
|
29
|
+
<div class="content" :class="item.textBrightness">
|
|
30
|
+
<div v-show="item.thumbnail?.title !== ''" class="title" :class="item.textBrightness">{{ item.thumbnail?.title }}</div>
|
|
31
|
+
<div v-show="item.thumbnail?.description !== ''" class="description" :class="item.textBrightness">{{ item.thumbnail?.description }}
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
@@ -80,6 +80,7 @@ interface IGalleryData {
|
|
|
80
80
|
title: string;
|
|
81
81
|
description: string;
|
|
82
82
|
};
|
|
83
|
+
textBrightness: 'light' | 'dark';
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
const { elementClasses, resetElementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
@@ -269,7 +270,7 @@ onBeforeUnmount(() => {
|
|
|
269
270
|
--_thumbnailWidth: var(--_thumbnailMobileWidth, 100px);
|
|
270
271
|
--_thumbnailHeight: var(--_thumbnailMobileHeight, 165px);
|
|
271
272
|
|
|
272
|
-
@
|
|
273
|
+
@container (width >= 1024px) {
|
|
273
274
|
--_thumbnailWidth: var(--_thumbnailDesktopWidth, 150px);
|
|
274
275
|
--_thumbnailHeight: var(--_thumbnailDesktopHeight, 220px);
|
|
275
276
|
}
|
|
@@ -281,6 +282,7 @@ onBeforeUnmount(() => {
|
|
|
281
282
|
inset: 0 0 0 0;
|
|
282
283
|
|
|
283
284
|
z-index: 9999;
|
|
285
|
+
container-type: inline-size;
|
|
284
286
|
|
|
285
287
|
.loading-state {
|
|
286
288
|
position: absolute;
|
|
@@ -381,24 +383,50 @@ onBeforeUnmount(() => {
|
|
|
381
383
|
transform: translateX(-50%);
|
|
382
384
|
padding-right: 30%;
|
|
383
385
|
box-sizing: border-box;
|
|
384
|
-
color: #fff;
|
|
385
386
|
text-shadow: 0 5px 10px #0004;
|
|
386
387
|
|
|
388
|
+
&.light {
|
|
389
|
+
color: #fff;
|
|
390
|
+
}
|
|
391
|
+
&.dark {
|
|
392
|
+
color: #000;
|
|
393
|
+
}
|
|
394
|
+
|
|
387
395
|
.author {
|
|
388
396
|
font-weight: bold;
|
|
389
397
|
letter-spacing: 10px;
|
|
398
|
+
|
|
399
|
+
&.light {
|
|
400
|
+
color: #fff;
|
|
401
|
+
}
|
|
402
|
+
&.dark {
|
|
403
|
+
color: #000;
|
|
404
|
+
}
|
|
390
405
|
}
|
|
391
406
|
|
|
392
407
|
.title {
|
|
393
408
|
font-size: 5em;
|
|
394
409
|
font-weight: bold;
|
|
395
410
|
line-height: 1.3em;
|
|
411
|
+
|
|
412
|
+
&.light {
|
|
413
|
+
color: #fff;
|
|
414
|
+
}
|
|
415
|
+
&.dark {
|
|
416
|
+
color: #000;
|
|
417
|
+
}
|
|
396
418
|
}
|
|
397
419
|
.topic {
|
|
398
420
|
font-size: 5em;
|
|
399
421
|
font-weight: bold;
|
|
400
422
|
line-height: 1.3em;
|
|
401
|
-
|
|
423
|
+
|
|
424
|
+
&.light {
|
|
425
|
+
color: #fff;
|
|
426
|
+
}
|
|
427
|
+
&.dark {
|
|
428
|
+
color: #000;
|
|
429
|
+
}
|
|
402
430
|
}
|
|
403
431
|
|
|
404
432
|
.buttons {
|
|
@@ -414,6 +442,13 @@ onBeforeUnmount(() => {
|
|
|
414
442
|
color: #fff;
|
|
415
443
|
letter-spacing: 3px;
|
|
416
444
|
font-weight: 500;
|
|
445
|
+
|
|
446
|
+
&.light {
|
|
447
|
+
color: #fff;
|
|
448
|
+
}
|
|
449
|
+
&.dark {
|
|
450
|
+
color: #000;
|
|
451
|
+
}
|
|
417
452
|
}
|
|
418
453
|
}
|
|
419
454
|
}
|
|
@@ -455,7 +490,6 @@ onBeforeUnmount(() => {
|
|
|
455
490
|
}
|
|
456
491
|
|
|
457
492
|
.content {
|
|
458
|
-
color: #fff;
|
|
459
493
|
position: absolute;
|
|
460
494
|
bottom: 10px;
|
|
461
495
|
left: 10px;
|
|
@@ -463,10 +497,24 @@ onBeforeUnmount(() => {
|
|
|
463
497
|
|
|
464
498
|
.title {
|
|
465
499
|
font-weight: 500;
|
|
500
|
+
|
|
501
|
+
&.light {
|
|
502
|
+
color: #fff;
|
|
503
|
+
}
|
|
504
|
+
&.dark {
|
|
505
|
+
color: #000;
|
|
506
|
+
}
|
|
466
507
|
}
|
|
467
508
|
|
|
468
509
|
.description {
|
|
469
510
|
font-weight: 300;
|
|
511
|
+
|
|
512
|
+
&.light {
|
|
513
|
+
color: #fff;
|
|
514
|
+
}
|
|
515
|
+
&.dark {
|
|
516
|
+
color: #000;
|
|
517
|
+
}
|
|
470
518
|
}
|
|
471
519
|
}
|
|
472
520
|
}
|
package/package.json
CHANGED