LLC/src/view/Landing/components/Products.jsx

52 lines
1.6 KiB
React
Raw Normal View History

2025-02-17 02:11:47 +03:30
import Link from "next/link";
2025-02-16 09:06:54 +03:30
import React from "react";
import CardNormal from "src/components/Cards/CardNormal/page";
2025-02-19 16:11:53 +03:30
import ProductCarousel from "src/components/Carousel/ProductCarousel";
2025-02-16 09:06:54 +03:30
2025-02-19 16:11:53 +03:30
const Products = ({ products }) => {
2025-02-16 09:06:54 +03:30
2025-02-19 16:11:53 +03:30
console.log(products)
2025-02-16 09:06:54 +03:30
return (
<div className="my-[120px]">
<div className="xs:px-3 md:px-10 md:container md:mx-auto mb-10">
<div className="text-left relative mb-10">
<h2 className="text-[30px] font-bold relative z-10 xs:text-center lg:text-left">
2025-02-20 14:53:06 +03:30
2025-02-16 09:06:54 +03:30
</h2>
<p className="mb-0 text-sm text-gray-400 xs:text-center lg:text-left">
2025-02-19 16:11:53 +03:30
2025-02-16 09:06:54 +03:30
</p>
</div>
2025-02-19 16:11:53 +03:30
<div>
<ProductCarousel products={products.filter(p => p.brand.title === "active")} subtitle={""} title={"Active Products"} />
</div>
<div>
<ProductCarousel products={products.filter(p => p.brand.title === "savin")} subtitle={""} title={"Savin Products"} />
</div>
{/* <div className="grid grid-cols-1 lg:grid-cols-3 gap-5">
{products?.map((product, index) => (
2025-02-16 09:06:54 +03:30
<div key={index} className="relative">
2025-02-19 16:11:53 +03:30
<CardNormal product={product} priority />
2025-02-16 09:06:54 +03:30
</div>
))}
2025-02-19 16:11:53 +03:30
</div> */}
2025-02-17 02:11:47 +03:30
2025-02-19 15:04:53 +03:30
{/* <div className="flex justify-center">
2025-02-17 02:11:47 +03:30
<Link href={"categories/Product-20Listing-Page"}>
<button className="btn btn-primary px-10 text-sm ">
{" "}
See All Products
</button>
</Link>
2025-02-19 15:04:53 +03:30
</div> */}
2025-02-16 09:06:54 +03:30
</div>
</div>
);
};
export default Products;