Update src/app/shop/page.tsx
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
"use client";
|
||||
|
||||
import ReactLenis from "lenis/react";
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
|
||||
import ProductCatalog from "@/components/ecommerce/productCatalog/ProductCatalog";
|
||||
@@ -15,6 +14,12 @@ export default function ShopPage() {
|
||||
setSearch,
|
||||
filters,
|
||||
} = useProductCatalog({ basePath: "/shop" });
|
||||
|
||||
const footerColumns = [
|
||||
{ title: "Shop", items: [{ label: "All Fragrances", href: "/shop" }, { label: "New Arrivals", href: "/shop" }, { label: "Best Sellers", href: "/shop" }] },
|
||||
{ title: "Company", items: [{ label: "About Us", href: "/#about" }, { label: "Our Story", href: "/#about" }, { label: "Contact", href: "/#contact" }] },
|
||||
{ title: "Support", items: [{ label: "FAQ", href: "/#faq" }, { label: "Shipping", href: "#" }, { label: "Returns", href: "#" }] }
|
||||
];
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
@@ -30,31 +35,29 @@ export default function ShopPage() {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="semibold"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="navbar" data-section="navbar">
|
||||
<NavbarLayoutFloatingInline
|
||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }]}
|
||||
brandName="Zapah"
|
||||
button={{ text: "Cart", onClick: () => {} }}
|
||||
className="py-4 px-6 md:px-10 lg:px-14"
|
||||
navItemClassName="text-lg font-medium"
|
||||
buttonClassName="px-6 py-3 text-lg"
|
||||
logoHref="#"
|
||||
/>
|
||||
</div>
|
||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
||||
<p className="text-foreground">Loading products...</p>
|
||||
</main>
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBaseReveal
|
||||
columns={[{ "title": "Shop", "items": [{ "label": "All Fragrances", "href": "#fragrances" }, { "label": "New Arrivals", "href": "#products" }, { "label": "Best Sellers", "href": "#products" }] }, { "title": "Company", "items": [{ "label": "About Us", "href": "#about" }, { "label": "Our Story", "href": "#about" }, { "label": "Contact", "href": "#contact" }] }, { "title": "Support", "items": [{ "label": "FAQ", "href": "#faq" }, { "label": "Shipping", "href": "#" }, { "label": "Returns", "href": "#" }] }]}
|
||||
copyrightText="© 2024 Zapah. All rights reserved."
|
||||
ariaLabel="Footer Navigation"
|
||||
wrapperClassName="mt-10 md:mt-16 lg:mt-24"
|
||||
footerClassName="bg-background py-10"
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarLayoutFloatingInline
|
||||
navItems={[{ name: "Home", id: "/" }, { name: "Blog", id: "/blog" }, { name: "Shop", id: "/shop" }]}
|
||||
brandName="Zapah"
|
||||
button={{ text: "Cart", onClick: () => {} }}
|
||||
className="py-4 px-6 md:px-10 lg:px-14"
|
||||
navItemClassName="text-lg font-medium"
|
||||
buttonClassName="px-6 py-3 text-lg"
|
||||
logoHref="/"
|
||||
/>
|
||||
</div>
|
||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
||||
<p className="text-foreground">Loading products...</p>
|
||||
</main>
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBaseReveal
|
||||
columns={footerColumns}
|
||||
copyrightText="© 2024 Zapah. All rights reserved."
|
||||
ariaLabel="Footer Navigation"
|
||||
wrapperClassName="mt-10 md:mt-16 lg:mt-24"
|
||||
footerClassName="bg-background py-10"
|
||||
/>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
@@ -72,39 +75,37 @@ export default function ShopPage() {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="semibold"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="navbar" data-section="navbar">
|
||||
<NavbarLayoutFloatingInline
|
||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }]}
|
||||
brandName="Zapah"
|
||||
button={{ text: "Cart", onClick: () => {} }}
|
||||
className="py-4 px-6 md:px-10 lg:px-14"
|
||||
navItemClassName="text-lg font-medium"
|
||||
buttonClassName="px-6 py-3 text-lg"
|
||||
logoHref="#"
|
||||
/>
|
||||
</div>
|
||||
<div id="product-catalog" data-section="product-catalog">
|
||||
<ProductCatalog
|
||||
layout="page"
|
||||
products={products}
|
||||
searchValue={search}
|
||||
onSearchChange={setSearch}
|
||||
searchPlaceholder="Search products..."
|
||||
filters={filters}
|
||||
emptyMessage="No products found"
|
||||
/>
|
||||
</div>
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBaseReveal
|
||||
columns={[{ "title": "Shop", "items": [{ "label": "All Fragrances", "href": "#fragrances" }, { "label": "New Arrivals", "href": "#products" }, { "label": "Best Sellers", "href": "#products" }] }, { "title": "Company", "items": [{ "label": "About Us", "href": "#about" }, { "label": "Our Story", "href": "#about" }, { "label": "Contact", "href": "#contact" }] }, { "title": "Support", "items": [{ "label": "FAQ", "href": "#faq" }, { "label": "Shipping", "href": "#" }, { "label": "Returns", "href": "#" }] }]}
|
||||
copyrightText="© 2024 Zapah. All rights reserved."
|
||||
ariaLabel="Footer Navigation"
|
||||
wrapperClassName="mt-10 md:mt-16 lg:mt-24"
|
||||
footerClassName="bg-background py-10"
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarLayoutFloatingInline
|
||||
navItems={[{ name: "Home", id: "/" }, { name: "Blog", id: "/blog" }, { name: "Shop", id: "/shop" }]}
|
||||
brandName="Zapah"
|
||||
button={{ text: "Cart", onClick: () => {} }}
|
||||
className="py-4 px-6 md:px-10 lg:px-14"
|
||||
navItemClassName="text-lg font-medium"
|
||||
buttonClassName="px-6 py-3 text-lg"
|
||||
logoHref="/"
|
||||
/>
|
||||
</div>
|
||||
<div id="product-catalog" data-section="product-catalog">
|
||||
<ProductCatalog
|
||||
layout="page"
|
||||
products={products}
|
||||
searchValue={search}
|
||||
onSearchChange={setSearch}
|
||||
searchPlaceholder="Search products..."
|
||||
filters={filters}
|
||||
emptyMessage="No products found"
|
||||
/>
|
||||
</div>
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBaseReveal
|
||||
columns={footerColumns}
|
||||
copyrightText="© 2024 Zapah. All rights reserved."
|
||||
ariaLabel="Footer Navigation"
|
||||
wrapperClassName="mt-10 md:mt-16 lg:mt-24"
|
||||
footerClassName="bg-background py-10"
|
||||
/>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user