feat(poc): changes for new design

This commit is contained in:
Björn Meyer
2023-07-27 17:14:18 +02:00
parent 82c0fb8813
commit 5ad4654c55
13 changed files with 106 additions and 124 deletions

View File

@@ -58,13 +58,18 @@ export default async function CategoryPage({
<Grid className="grid-cols-2 lg:grid-cols-3">
<ProductGridItems products={products} />
</Grid>
<nav aria-label="Collection pagination" className="block items-center sm:flex">
<Pagination
itemsPerPage={limit}
itemsTotal={total}
currentPage={page ? parseInt(page) - 1 : 0}
/>
</nav>
{total > limit ? (
<nav
aria-label="Collection pagination"
className="mb-2 mt-4 block items-center sm:flex"
>
<Pagination
itemsPerPage={limit}
itemsTotal={total}
currentPage={page ? parseInt(page) - 1 : 0}
/>
</nav>
) : null}
</div>
<div className="order-none flex-none md:order-last md:w-[125px]">
<FilterList list={sorting} title="Sort by" />