Update src/app/shop/page.tsx
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use client";
|
"use client";
|
||||||
|
|
||||||
import { Suspense, useCallback } from "react";
|
import { Suspense, useCallback } from "react";
|
||||||
import ReactLenis from "lenis/react";
|
import ReactLenis from "lenis/react";
|
||||||
@@ -11,6 +11,13 @@ import { useProductCatalog } from "@/hooks/useProductCatalog";
|
|||||||
import { useCart } from "@/hooks/useCart";
|
import { useCart } from "@/hooks/useCart";
|
||||||
import { useCheckout } from "@/hooks/useCheckout";
|
import { useCheckout } from "@/hooks/useCheckout";
|
||||||
|
|
||||||
|
const navItems = [
|
||||||
|
{ name: "Home", id: "/" },
|
||||||
|
{ name: "Blog", id: "/blog" },
|
||||||
|
{ name: "Shop", id: "/shop" },
|
||||||
|
{ name: "Contact", id: "/#contact-us" },
|
||||||
|
];
|
||||||
|
|
||||||
function ShopPageContent() {
|
function ShopPageContent() {
|
||||||
const {
|
const {
|
||||||
products,
|
products,
|
||||||
@@ -56,20 +63,10 @@ function ShopPageContent() {
|
|||||||
headingFontWeight="bold"
|
headingFontWeight="bold"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="navbar" data-section="navbar">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
navItems={[
|
navItems={navItems}
|
||||||
{ name: "Home", id: "/" },
|
|
||||||
{ name: "About Us", id: "about-us" },
|
|
||||||
{ name: "Process", id: "adoption-process" },
|
|
||||||
{ name: "Pets", id: "available-pets" },
|
|
||||||
{ name: "Success", id: "success-stories" },
|
|
||||||
{ name: "FAQs", id: "faq" },
|
|
||||||
{ name: "Contact", id: "contact-us" },
|
|
||||||
{ name: "Shop", id: "/shop" },
|
|
||||||
]}
|
|
||||||
brandName="Pet Haven"
|
brandName="Pet Haven"
|
||||||
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">
|
||||||
@@ -94,20 +91,10 @@ function ShopPageContent() {
|
|||||||
headingFontWeight="bold"
|
headingFontWeight="bold"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="navbar" data-section="navbar">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
navItems={[
|
navItems={navItems}
|
||||||
{ name: "Home", id: "/" },
|
|
||||||
{ name: "About Us", id: "about-us" },
|
|
||||||
{ name: "Process", id: "adoption-process" },
|
|
||||||
{ name: "Pets", id: "available-pets" },
|
|
||||||
{ name: "Success", id: "success-stories" },
|
|
||||||
{ name: "FAQs", id: "faq" },
|
|
||||||
{ name: "Contact", id: "contact-us" },
|
|
||||||
{ name: "Shop", id: "/shop" },
|
|
||||||
]}
|
|
||||||
brandName="Pet Haven"
|
brandName="Pet Haven"
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div id="product-catalog" data-section="product-catalog">
|
<div id="product-catalog" data-section="product-catalog">
|
||||||
@@ -139,9 +126,9 @@ function ShopPageContent() {
|
|||||||
<div id="footer" data-section="footer">
|
<div id="footer" data-section="footer">
|
||||||
<FooterBaseReveal
|
<FooterBaseReveal
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "Adoption", items: [{ label: "Available Pets", href: "#available-pets" }, { label: "Adoption Process", href: "#adoption-process" }] },
|
{ title: "Adoption", items: [{ label: "Available Pets", href: "/#available-pets" }, { label: "Adoption Process", href: "/#adoption-process" }] },
|
||||||
{ title: "Get Involved", items: [{ label: "Volunteer", href: "#contact-us" }, { label: "Donate", href: "https://example.com/donate" }] },
|
{ title: "Get Involved", items: [{ label: "Volunteer", href: "/#contact-us" }, { label: "Donate", href: "https://example.com/donate" }] },
|
||||||
{ title: "About Us", items: [{ label: "Our Mission", href: "#about-us" }, { label: "Contact Us", href: "#contact-us" }] },
|
{ title: "About Us", items: [{ label: "Our Mission", href: "/#about-us" }, { label: "Contact Us", href: "/#contact-us" }] },
|
||||||
]}
|
]}
|
||||||
copyrightText="© 2024 | Pet Haven. All rights reserved."
|
copyrightText="© 2024 | Pet Haven. All rights reserved."
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user