Add new products slider icons
This commit is contained in:
@@ -9,6 +9,7 @@ import type { SwiperClass } from "swiper/react";
|
|||||||
type Props = {
|
type Props = {
|
||||||
title: string;
|
title: string;
|
||||||
products: ProductListItem[];
|
products: ProductListItem[];
|
||||||
|
iconImage: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
// props
|
// props
|
||||||
@@ -30,7 +31,7 @@ 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="/img/navbar/cart.gif" 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>
|
||||||
|
|||||||
@@ -33,12 +33,14 @@ if (response.isError) {
|
|||||||
<div class="py-20">
|
<div class="py-20">
|
||||||
<ProductsSlider
|
<ProductsSlider
|
||||||
title="محصولات پرتخفیف"
|
title="محصولات پرتخفیف"
|
||||||
|
icon-image="/img/discount-section.gif"
|
||||||
:products="homeData!.lot_of_discount_products"
|
:products="homeData!.lot_of_discount_products"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="py-20">
|
<div class="py-20">
|
||||||
<ProductsSlider
|
<ProductsSlider
|
||||||
title="محصولات محبوب"
|
title="محصولات محبوب"
|
||||||
|
icon-image="/img/most-popular-section.gif"
|
||||||
:products="homeData!.trends_products"
|
:products="homeData!.trends_products"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,12 +48,14 @@ if (response.isError) {
|
|||||||
<div class="py-20">
|
<div class="py-20">
|
||||||
<ProductsSlider
|
<ProductsSlider
|
||||||
title="محصولات پرفروش"
|
title="محصولات پرفروش"
|
||||||
|
icon-image="/img/most-sell-section.gif"
|
||||||
:products="homeData!.top_seller_products"
|
:products="homeData!.top_seller_products"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="py-20">
|
<div class="py-20">
|
||||||
<ProductsSlider
|
<ProductsSlider
|
||||||
title="محصولات پربازدید"
|
title="محصولات پربازدید"
|
||||||
|
icon-image="/img/most-viewed-section.gif"
|
||||||
:products="homeData!.most_viewed_products"
|
:products="homeData!.most_viewed_products"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 148 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 939 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 376 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 361 KiB |
Reference in New Issue
Block a user