web/components/LandingPage/BeautySection/page.jsx

81 lines
2.5 KiB
React
Raw Permalink Normal View History

2024-02-16 19:53:36 +03:30
import CardNormal from "@comp/Cards/CardNormal/page";
2024-05-01 10:54:18 +03:30
import Link from "next/link";
2024-02-16 19:36:30 +03:30
import { Swiper, SwiperSlide } from "swiper/react";
2024-01-10 11:04:28 +03:30
2024-02-11 17:24:30 +03:30
const BeautySection = ({ data }) => {
2024-01-10 11:04:28 +03:30
return (
<section className="mb-10 pb-10 xs:bg-sky-500 lg:bg-transparent xs:mx-3 lg:mx-0 xs:px-5 lg:px-0 xs:rounded-3xl lg:rounded-[0px] xs:mt-0 lg:mt-20">
<div className=" relative xs:hidden lg:block ">
<div className="w-full flex justify-end absolute ">
<svg
width="700"
height="400"
viewBox="0 0 1037 590"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="mr-[20px]"
>
<path
d="M25.6693 0H1012C1025.81 0 1037 11.1929 1037 25V565C1037 578.807 1025.81 590 1012 590H371.096C362.569 590 354.631 585.654 350.036 578.472L4.60942 38.4715C-6.03513 21.8311 5.91551 0 25.6693 0Z"
fill="#219EBC"
/>
</svg>
</div>
</div>
<div className="xs:px-0 lg:px-20">
<div className="w-full rtl relative ">
<div className="pt-5 flex relative justify-between">
2024-05-07 23:36:39 +03:30
<h2 className="mb-0 text-white font-bold xs:text-sm lg:text-2xl xl:text-2xl">
آرایش صورت وسمه{" "}
</h2>
2024-01-10 11:04:28 +03:30
</div>
</div>
<Swiper
spaceBetween={50}
slidesPerView={6.2}
2024-04-26 01:26:50 +03:30
// onSlideChange={() => console.log("slide change")}
2024-01-10 11:04:28 +03:30
className="rtl relative mt-5"
2024-03-03 22:37:31 +03:30
// dir="rtl"
2024-01-10 11:04:28 +03:30
breakpoints={{
320: {
2024-02-11 17:24:30 +03:30
slidesPerView: 1.3,
2024-01-10 11:04:28 +03:30
},
480: {
slidesPerView: 2,
},
768: {
slidesPerView: 3,
},
1024: {
slidesPerView: 4.5,
},
1440: {
slidesPerView: 6,
},
}}
>
2024-02-16 19:10:32 +03:30
{data?.map((e, index) => (
<SwiperSlide key={index}>
2024-03-03 22:37:31 +03:30
<CardNormal data={e} priority />
2024-02-11 17:24:30 +03:30
</SwiperSlide>
))}
2024-01-10 11:04:28 +03:30
</Swiper>
2024-02-11 17:24:30 +03:30
2024-05-01 10:54:18 +03:30
<Link
href={"/categories/7e92af7d-0370-451f-9770-5e26b5c8dc63/آرایش-صورت"}
className="z-90 relative"
>
<div className="mx-5 mt-8">
<p className="mb-0 text-sm text-gray-600 xs:text-white md:text-black">
مشاهده بیشتر{" "}
</p>
</div>
</Link>
2024-01-10 11:04:28 +03:30
</div>
</section>
);
};
export default BeautySection;