Update src/app/shop/page.tsx
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import ReactLenis from "lenis/react";
|
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
|
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
|
||||||
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
|
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
|
||||||
@@ -56,49 +55,47 @@ export default function ShopPage() {
|
|||||||
secondaryButtonStyle="solid"
|
secondaryButtonStyle="solid"
|
||||||
headingFontWeight="extrabold"
|
headingFontWeight="extrabold"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<div id="nav" data-section="nav">
|
||||||
<div id="navbar" data-section="navbar">
|
<NavbarStyleCentered
|
||||||
<NavbarStyleCentered
|
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Blog", id: "/blog" }]}
|
||||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }]}
|
brandName="Glow Haven"
|
||||||
brandName="Glow Haven"
|
className="py-4 lg:py-6"
|
||||||
className="py-4 lg:py-6"
|
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
<main className="min-h-screen flex items-center justify-center pt-20">
|
||||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
<p className="text-foreground">Loading products...</p>
|
||||||
<p className="text-foreground">Loading products...</p>
|
</main>
|
||||||
</main>
|
<div id="footer" data-section="footer">
|
||||||
<div id="footer" data-section="footer">
|
<FooterBaseCard
|
||||||
<FooterBaseCard
|
logoText="Glow Haven"
|
||||||
logoText="Glow Haven"
|
columns={[
|
||||||
columns={[
|
{
|
||||||
{
|
title: "Shop", items: [
|
||||||
title: "Shop", items: [
|
{ label: "Serums", href: "/products#serums" },
|
||||||
{ label: "Serums", href: "/products#serums" },
|
{ label: "Moisturizers", href: "/products#moisturizers" },
|
||||||
{ label: "Moisturizers", href: "/products#moisturizers" },
|
{ label: "Cleansers", href: "/products#cleansers" },
|
||||||
{ label: "Cleansers", href: "/products#cleansers" },
|
],
|
||||||
],
|
},
|
||||||
},
|
{
|
||||||
{
|
title: "Company", items: [
|
||||||
title: "Company", items: [
|
{ label: "About Us", href: "/about" },
|
||||||
{ label: "About Us", href: "/about" },
|
{ label: "Our Philosophy", href: "/philosophy" },
|
||||||
{ label: "Our Philosophy", href: "/philosophy" },
|
{ label: "Contact", href: "/contact" },
|
||||||
{ label: "Contact", href: "/contact" },
|
],
|
||||||
],
|
},
|
||||||
},
|
{
|
||||||
{
|
title: "Support", items: [
|
||||||
title: "Support", items: [
|
{ label: "FAQ", href: "/faq" },
|
||||||
{ label: "FAQ", href: "/faq" },
|
{ label: "Shipping", href: "/shipping" },
|
||||||
{ label: "Shipping", href: "/shipping" },
|
{ label: "Returns", href: "/returns" },
|
||||||
{ label: "Returns", href: "/returns" },
|
],
|
||||||
],
|
},
|
||||||
},
|
]}
|
||||||
]}
|
copyrightText="© 2024 Glow Haven. All rights reserved."
|
||||||
copyrightText="© 2024 Glow Haven. All rights reserved."
|
className="py-12 lg:py-16"
|
||||||
className="py-12 lg:py-16"
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
|
||||||
</ReactLenis>
|
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -116,72 +113,70 @@ export default function ShopPage() {
|
|||||||
secondaryButtonStyle="solid"
|
secondaryButtonStyle="solid"
|
||||||
headingFontWeight="extrabold"
|
headingFontWeight="extrabold"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<div id="nav" data-section="nav">
|
||||||
<div id="navbar" data-section="navbar">
|
<NavbarStyleCentered
|
||||||
<NavbarStyleCentered
|
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Blog", id: "/blog" }]}
|
||||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }]}
|
brandName="Glow Haven"
|
||||||
brandName="Glow Haven"
|
className="py-4 lg:py-6"
|
||||||
className="py-4 lg:py-6"
|
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
<div id="product-catalog" data-section="product-catalog">
|
||||||
<div id="product-catalog" data-section="product-catalog">
|
<ProductCatalog
|
||||||
<ProductCatalog
|
layout="page"
|
||||||
layout="page"
|
products={products}
|
||||||
products={products}
|
searchValue={search}
|
||||||
searchValue={search}
|
onSearchChange={setSearch}
|
||||||
onSearchChange={setSearch}
|
searchPlaceholder="Search products..."
|
||||||
searchPlaceholder="Search products..."
|
filters={filters}
|
||||||
filters={filters}
|
emptyMessage="No products found"
|
||||||
emptyMessage="No products found"
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
<div id="product-cart" data-section="product-cart">
|
||||||
<div id="product-cart" data-section="product-cart">
|
<ProductCart
|
||||||
<ProductCart
|
isOpen={cartOpen}
|
||||||
isOpen={cartOpen}
|
onClose={() => setCartOpen(false)}
|
||||||
onClose={() => setCartOpen(false)}
|
items={cartItems}
|
||||||
items={cartItems}
|
onQuantityChange={updateQuantity}
|
||||||
onQuantityChange={updateQuantity}
|
onRemove={removeItem}
|
||||||
onRemove={removeItem}
|
total={`$${cartTotal}`}
|
||||||
total={`$${cartTotal}`}
|
buttons={[
|
||||||
buttons={[
|
{
|
||||||
{
|
text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout,
|
||||||
text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout,
|
},
|
||||||
},
|
]}
|
||||||
]}
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
<div id="footer" data-section="footer">
|
||||||
<div id="footer" data-section="footer">
|
<FooterBaseCard
|
||||||
<FooterBaseCard
|
logoText="Glow Haven"
|
||||||
logoText="Glow Haven"
|
columns={[
|
||||||
columns={[
|
{
|
||||||
{
|
title: "Shop", items: [
|
||||||
title: "Shop", items: [
|
{ label: "Serums", href: "/products#serums" },
|
||||||
{ label: "Serums", href: "/products#serums" },
|
{ label: "Moisturizers", href: "/products#moisturizers" },
|
||||||
{ label: "Moisturizers", href: "/products#moisturizers" },
|
{ label: "Cleansers", href: "/products#cleansers" },
|
||||||
{ label: "Cleansers", href: "/products#cleansers" },
|
],
|
||||||
],
|
},
|
||||||
},
|
{
|
||||||
{
|
title: "Company", items: [
|
||||||
title: "Company", items: [
|
{ label: "About Us", href: "/about" },
|
||||||
{ label: "About Us", href: "/about" },
|
{ label: "Our Philosophy", href: "/philosophy" },
|
||||||
{ label: "Our Philosophy", href: "/philosophy" },
|
{ label: "Contact", href: "/contact" },
|
||||||
{ label: "Contact", href: "/contact" },
|
],
|
||||||
],
|
},
|
||||||
},
|
{
|
||||||
{
|
title: "Support", items: [
|
||||||
title: "Support", items: [
|
{ label: "FAQ", href: "/faq" },
|
||||||
{ label: "FAQ", href: "/faq" },
|
{ label: "Shipping", href: "/shipping" },
|
||||||
{ label: "Shipping", href: "/shipping" },
|
{ label: "Returns", href: "/returns" },
|
||||||
{ label: "Returns", href: "/returns" },
|
],
|
||||||
],
|
},
|
||||||
},
|
]}
|
||||||
]}
|
copyrightText="© 2024 Glow Haven. All rights reserved."
|
||||||
copyrightText="© 2024 Glow Haven. All rights reserved."
|
className="py-12 lg:py-16"
|
||||||
className="py-12 lg:py-16"
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
|
||||||
</ReactLenis>
|
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user