-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |