Update src/app/shop/page.tsx

This commit is contained in:
2026-02-20 14:51:53 +00:00
parent 24e7aceed2
commit 00fd6a32c8

View File

@@ -1,6 +1,5 @@
"use client";
import ReactLenis from "lenis/react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
@@ -56,49 +55,47 @@ export default function ShopPage() {
secondaryButtonStyle="solid"
headingFontWeight="extrabold"
>
<ReactLenis root>
<div id="navbar" data-section="navbar">
<NavbarStyleCentered
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }]}
brandName="Glow Haven"
className="py-4 lg:py-6"
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</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">
<FooterBaseCard
logoText="Glow Haven"
columns={[
{
title: "Shop", items: [
{ label: "Serums", href: "/products#serums" },
{ label: "Moisturizers", href: "/products#moisturizers" },
{ label: "Cleansers", href: "/products#cleansers" },
],
},
{
title: "Company", items: [
{ label: "About Us", href: "/about" },
{ label: "Our Philosophy", href: "/philosophy" },
{ label: "Contact", href: "/contact" },
],
},
{
title: "Support", items: [
{ label: "FAQ", href: "/faq" },
{ label: "Shipping", href: "/shipping" },
{ label: "Returns", href: "/returns" },
],
},
]}
copyrightText="© 2024 Glow Haven. All rights reserved."
className="py-12 lg:py-16"
/>
</div>
</ReactLenis>
<div id="nav" data-section="nav">
<NavbarStyleCentered
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Blog", id: "/blog" }]}
brandName="Glow Haven"
className="py-4 lg:py-6"
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</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">
<FooterBaseCard
logoText="Glow Haven"
columns={[
{
title: "Shop", items: [
{ label: "Serums", href: "/products#serums" },
{ label: "Moisturizers", href: "/products#moisturizers" },
{ label: "Cleansers", href: "/products#cleansers" },
],
},
{
title: "Company", items: [
{ label: "About Us", href: "/about" },
{ label: "Our Philosophy", href: "/philosophy" },
{ label: "Contact", href: "/contact" },
],
},
{
title: "Support", items: [
{ label: "FAQ", href: "/faq" },
{ label: "Shipping", href: "/shipping" },
{ label: "Returns", href: "/returns" },
],
},
]}
copyrightText="© 2024 Glow Haven. All rights reserved."
className="py-12 lg:py-16"
/>
</div>
</ThemeProvider>
);
}
@@ -116,72 +113,70 @@ export default function ShopPage() {
secondaryButtonStyle="solid"
headingFontWeight="extrabold"
>
<ReactLenis root>
<div id="navbar" data-section="navbar">
<NavbarStyleCentered
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }]}
brandName="Glow Haven"
className="py-4 lg:py-6"
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</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="product-cart" data-section="product-cart">
<ProductCart
isOpen={cartOpen}
onClose={() => setCartOpen(false)}
items={cartItems}
onQuantityChange={updateQuantity}
onRemove={removeItem}
total={`$${cartTotal}`}
buttons={[
{
text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout,
},
]}
/>
</div>
<div id="footer" data-section="footer">
<FooterBaseCard
logoText="Glow Haven"
columns={[
{
title: "Shop", items: [
{ label: "Serums", href: "/products#serums" },
{ label: "Moisturizers", href: "/products#moisturizers" },
{ label: "Cleansers", href: "/products#cleansers" },
],
},
{
title: "Company", items: [
{ label: "About Us", href: "/about" },
{ label: "Our Philosophy", href: "/philosophy" },
{ label: "Contact", href: "/contact" },
],
},
{
title: "Support", items: [
{ label: "FAQ", href: "/faq" },
{ label: "Shipping", href: "/shipping" },
{ label: "Returns", href: "/returns" },
],
},
]}
copyrightText="© 2024 Glow Haven. All rights reserved."
className="py-12 lg:py-16"
/>
</div>
</ReactLenis>
<div id="nav" data-section="nav">
<NavbarStyleCentered
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Blog", id: "/blog" }]}
brandName="Glow Haven"
className="py-4 lg:py-6"
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</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="product-cart" data-section="product-cart">
<ProductCart
isOpen={cartOpen}
onClose={() => setCartOpen(false)}
items={cartItems}
onQuantityChange={updateQuantity}
onRemove={removeItem}
total={`$${cartTotal}`}
buttons={[
{
text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout,
},
]}
/>
</div>
<div id="footer" data-section="footer">
<FooterBaseCard
logoText="Glow Haven"
columns={[
{
title: "Shop", items: [
{ label: "Serums", href: "/products#serums" },
{ label: "Moisturizers", href: "/products#moisturizers" },
{ label: "Cleansers", href: "/products#cleansers" },
],
},
{
title: "Company", items: [
{ label: "About Us", href: "/about" },
{ label: "Our Philosophy", href: "/philosophy" },
{ label: "Contact", href: "/contact" },
],
},
{
title: "Support", items: [
{ label: "FAQ", href: "/faq" },
{ label: "Shipping", href: "/shipping" },
{ label: "Returns", href: "/returns" },
],
},
]}
copyrightText="© 2024 Glow Haven. All rights reserved."
className="py-12 lg:py-16"
/>
</div>
</ThemeProvider>
);
}