Add skeleton for products slider

This commit is contained in:
marzban-dev
2026-05-25 18:18:49 +03:30
parent 32b3bff318
commit 3abc2e2f2f
@@ -31,7 +31,10 @@ const onSwiper = (swiper: SwiperClass) => {
<section class="w-full flex flex-col gap-10 md:gap-16 lg:container"> <section class="w-full flex flex-col gap-10 md:gap-16 lg:container">
<div class="w-full flex justify-between items-center max-lg:container"> <div class="w-full flex justify-between items-center max-lg:container">
<div class="flex gap-2 items-center"> <div class="flex gap-2 items-center">
<NuxtImg :src="iconImage" class="size-8 sm:size-14" /> <NuxtImg
:src="iconImage"
class="size-8 sm:size-14"
/>
<span class="text-black typo-h-6 md:typo-h-5 lg:typo-h-4"> <span class="text-black typo-h-6 md:typo-h-5 lg:typo-h-4">
{{ title }} {{ title }}
</span> </span>
@@ -69,6 +72,7 @@ const onSwiper = (swiper: SwiperClass) => {
</button> </button>
</div> </div>
</div> </div>
<ClientOnly>
<div class="w-full"> <div class="w-full">
<Swiper <Swiper
:slides-per-view="1.5" :slides-per-view="1.5"
@@ -108,6 +112,15 @@ const onSwiper = (swiper: SwiperClass) => {
</SwiperSlide> </SwiperSlide>
</Swiper> </Swiper>
</div> </div>
<template #fallback>
<div class="w-full grid grid-cols-3 sm:grid-cols-4 gap-6">
<div class="bg-neutral-100 !size-full !rounded-2xl !aspect-square" />
<div class="bg-neutral-100 !size-full !rounded-2xl !aspect-square" />
<div class="bg-neutral-100 !size-full !rounded-2xl !aspect-square" />
<div class="bg-neutral-100 !size-full !rounded-2xl !aspect-square" />
</div>
</template>
</ClientOnly>
</section> </section>
</template> </template>