Files
mehraein-front/app/home/components/ProductSection.tsx
T
hamid zarghami fcf89eb2a1 fix shadow
2026-07-19 12:35:46 +03:30

27 lines
902 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Carousel, CarouselControls, CarouselSlide, CarouselTrack } from "@/app/components/Carousel";
import { type FC } from "react";
import ProductCard from "./ProductCard";
const ProductSection: FC = () => {
return (
<div className="mt-[120px] px-[120px]">
<Carousel slidesPerView={5} gap={40}>
<div className="flex justify-between items-center">
<div className="font-bold text-2xl">محبوبترین محصولات</div>
<CarouselControls prevLabel="محصولات قبلی" nextLabel="محصولات بعدی" />
</div>
<CarouselTrack className="mt-12 px-3 py-4 -mx-3">
{Array.from({ length: 10 }).map((_, index) => (
<CarouselSlide key={index}>
<ProductCard />
</CarouselSlide>
))}
</CarouselTrack>
</Carousel>
</div>
);
};
export default ProductSection;