srcdev-nuxt-components 2.5.11 → 2.5.13
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);
|
|
@@ -253,6 +254,7 @@ watch(
|
|
|
253
254
|
);
|
|
254
255
|
|
|
255
256
|
onBeforeUnmount(() => {
|
|
257
|
+
showGallery.value = false;
|
|
256
258
|
clearTimeout(runTimeOut);
|
|
257
259
|
clearTimeout(runNextAuto);
|
|
258
260
|
window.removeEventListener('keydown', handleKeyDown);
|
|
@@ -380,24 +382,50 @@ onBeforeUnmount(() => {
|
|
|
380
382
|
transform: translateX(-50%);
|
|
381
383
|
padding-right: 30%;
|
|
382
384
|
box-sizing: border-box;
|
|
383
|
-
color: #fff;
|
|
384
385
|
text-shadow: 0 5px 10px #0004;
|
|
385
386
|
|
|
387
|
+
&.light {
|
|
388
|
+
color: #fff;
|
|
389
|
+
}
|
|
390
|
+
&.dark {
|
|
391
|
+
color: #000;
|
|
392
|
+
}
|
|
393
|
+
|
|
386
394
|
.author {
|
|
387
395
|
font-weight: bold;
|
|
388
396
|
letter-spacing: 10px;
|
|
397
|
+
|
|
398
|
+
&.light {
|
|
399
|
+
color: #fff;
|
|
400
|
+
}
|
|
401
|
+
&.dark {
|
|
402
|
+
color: #000;
|
|
403
|
+
}
|
|
389
404
|
}
|
|
390
405
|
|
|
391
406
|
.title {
|
|
392
407
|
font-size: 5em;
|
|
393
408
|
font-weight: bold;
|
|
394
409
|
line-height: 1.3em;
|
|
410
|
+
|
|
411
|
+
&.light {
|
|
412
|
+
color: #fff;
|
|
413
|
+
}
|
|
414
|
+
&.dark {
|
|
415
|
+
color: #000;
|
|
416
|
+
}
|
|
395
417
|
}
|
|
396
418
|
.topic {
|
|
397
419
|
font-size: 5em;
|
|
398
420
|
font-weight: bold;
|
|
399
421
|
line-height: 1.3em;
|
|
400
|
-
|
|
422
|
+
|
|
423
|
+
&.light {
|
|
424
|
+
color: #fff;
|
|
425
|
+
}
|
|
426
|
+
&.dark {
|
|
427
|
+
color: #000;
|
|
428
|
+
}
|
|
401
429
|
}
|
|
402
430
|
|
|
403
431
|
.buttons {
|
|
@@ -413,6 +441,13 @@ onBeforeUnmount(() => {
|
|
|
413
441
|
color: #fff;
|
|
414
442
|
letter-spacing: 3px;
|
|
415
443
|
font-weight: 500;
|
|
444
|
+
|
|
445
|
+
&.light {
|
|
446
|
+
color: #fff;
|
|
447
|
+
}
|
|
448
|
+
&.dark {
|
|
449
|
+
color: #000;
|
|
450
|
+
}
|
|
416
451
|
}
|
|
417
452
|
}
|
|
418
453
|
}
|
|
@@ -454,7 +489,6 @@ onBeforeUnmount(() => {
|
|
|
454
489
|
}
|
|
455
490
|
|
|
456
491
|
.content {
|
|
457
|
-
color: #fff;
|
|
458
492
|
position: absolute;
|
|
459
493
|
bottom: 10px;
|
|
460
494
|
left: 10px;
|
|
@@ -462,10 +496,24 @@ onBeforeUnmount(() => {
|
|
|
462
496
|
|
|
463
497
|
.title {
|
|
464
498
|
font-weight: 500;
|
|
499
|
+
|
|
500
|
+
&.light {
|
|
501
|
+
color: #fff;
|
|
502
|
+
}
|
|
503
|
+
&.dark {
|
|
504
|
+
color: #000;
|
|
505
|
+
}
|
|
465
506
|
}
|
|
466
507
|
|
|
467
508
|
.description {
|
|
468
509
|
font-weight: 300;
|
|
510
|
+
|
|
511
|
+
&.light {
|
|
512
|
+
color: #fff;
|
|
513
|
+
}
|
|
514
|
+
&.dark {
|
|
515
|
+
color: #000;
|
|
516
|
+
}
|
|
469
517
|
}
|
|
470
518
|
}
|
|
471
519
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
:style="{ '--_main-navigation-item-width': mainNavigationState.clonedNavLinks?.[groupKey]?.[localIndex]?.config?.width + 'px' }"
|
|
17
17
|
ref="mainNavigationItems" :data-group-key="groupKey" :data-local-index="localIndex">
|
|
18
18
|
<details class="main-navigation-details" name="navigation-group" ref="navigationDetails">
|
|
19
|
-
<summary @
|
|
19
|
+
<summary @mouseenter="handleSummaryHover($event)" @focusin="handleSummaryHover($event)"
|
|
20
20
|
class="main-navigation-details-summary has-toggle-icon">
|
|
21
21
|
<Icon name="mdi:chevron-down" class="icon" />
|
|
22
22
|
{{ link.childLinksTitle }}
|
package/package.json
CHANGED