responsive home page and layout

This commit is contained in:
hamid zarghami
2026-07-19 16:29:37 +03:30
parent 2adaac8ec4
commit cd266c057c
20 changed files with 198 additions and 137 deletions
+5 -5
View File
@@ -4,14 +4,14 @@ 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>
<div className="mt-12 px-4 sm:mt-16 sm:px-8 lg:mt-[120px] lg:px-[120px]">
<Carousel slidesPerView={{ base: 1.4, md: 3, lg: 5 }} gap={{ base: 16, md: 24, lg: 40 }}>
<div className="flex justify-between items-center gap-4">
<div className="font-bold text-lg sm:text-2xl">محبوبترین محصولات</div>
<CarouselControls prevLabel="محصولات قبلی" nextLabel="محصولات بعدی" />
</div>
<CarouselTrack className="mt-12 px-3 py-4 -mx-3">
<CarouselTrack className="mt-8 sm:mt-12 px-2 sm:px-3 py-4 -mx-2 sm:-mx-3">
{Array.from({ length: 10 }).map((_, index) => (
<CarouselSlide key={index}>
<ProductCard />