[go: nahoru, domu]

Skip to content

Commit

Permalink
shop page
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3lla committed Feb 24, 2024
1 parent 3035fd5 commit fd392d6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions frontend/src/pages/Shop/Shop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, { useState } from "react";
import Breadcrumbs from "../../components/pageProps/Breadcrumbs";
import Pagination from "../../components/pageProps/shopPage/Pagination";
import ProductBanner from "../../components/pageProps/shopPage/ProductBanner";
import ShopSideNav from "../../components/pageProps/shopPage/ShopSideNav";

const Shop = () => {
const [itemsPerPage, setItemsPerPage] = useState(12);
const itemsPerPageFromBanner = (itemsPerPage) => {
setItemsPerPage(itemsPerPage);
};

return (
<div className="max-w-container mx-auto px-4">
<Breadcrumbs title="Products" />
{/* ================= Products Start here =================== */}
<div className="w-full h-full flex pb-20 gap-10">
<div className="w-[20%] lgl:w-[25%] hidden mdl:inline-flex h-full">
<ShopSideNav />
</div>
<div className="w-full mdl:w-[80%] lgl:w-[75%] h-full flex flex-col gap-10">
<ProductBanner itemsPerPageFromBanner={itemsPerPageFromBanner} />
<Pagination itemsPerPage={itemsPerPage} />
</div>
</div>
{/* ================= Products End here ===================== */}
</div>
);
};

export default Shop;

0 comments on commit fd392d6

Please sign in to comment.