Add src/app/shopping-cart/page.tsx

This commit is contained in:
2026-06-09 22:50:35 +00:00
parent 03d2289e66
commit 1fdc719af7

View File

@@ -0,0 +1,124 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCart from '@/components/ecommerce/cart/ProductCart';
import FooterMedia from '@/components/sections/footer/FooterMedia';
export default function ShoppingCartPage() {
const dummyCartItems = [
{
id: "suit1", name: "Classic Blue Suit", variants: ["Size 40R", "Slim Fit"],
price: "$499.99", quantity: 1,
imageSrc: "http://img.b2bpic.net/free-photo/stylish-man-in-blue-suit_1303-10022.jpg", imageAlt: "Classic Blue Suit"},
{
id: "tie1", name: "Silk Necktie - Burgundy", variants: ["One Size"],
price: "$49.99", quantity: 2,
imageSrc: "http://img.b2bpic.net/free-photo/red-silk-necktie_23-2148405096.jpg", imageAlt: "Burgundy Silk Necktie"},
];
const handleQuantityChange = (id: string, quantity: number) => {
console.log(`Changed quantity for ${id} to ${quantity}`);
// In a real app, this would update cart state
};
const handleRemoveItem = (id: string) => {
console.log(`Removed item ${id}`);
// In a real app, this would remove item from cart state
};
const footerColumns = [
{
title: "Quick Links", items: [
{ label: "Home", href: "/" },
{ label: "About Us", href: "/#about" },
{ label: "Services", href: "/#services" },
{ label: "Team", href: "/#team" },
{ label: "Shopping Cart", href: "/shopping-cart" },
{ label: "Checkout", href: "/checkout" },
{ label: "Order Confirmation", href: "/order-confirmation" }
],
},
{
title: "Resources", items: [
{ label: "FAQ", href: "/#faq" },
{ label: "Contact Us", href: "/#contact" }, { label: "Privacy Policy", href: "#" },
{ label: "Terms of Service", href: "#" },
],
},
{
title: "Connect", items: [
{ label: "info@fcplus.com", href: "mailto:info@fcplus.com" },
{ label: "+1 (555) 123-4567", href: "tel:+15551234567" },
{ label: "456 Gentleman's Way", href: "#" },
{ label: "Fashion District, NY 10018", href: "#" },
],
},
];
const navItems = [
{ name: "Home", id: "/" },
{ name: "About", id: "/#about" },
{ name: "Services", id: "/#services" },
{ name: "Team", id: "/#team" },
{ name: "Testimonials", id: "/#testimonials" },
{ name: "FAQ", id: "/#faq" },
{ name: "Contact", id: "/#contact" },
{ name: "Cart", id: "/shopping-cart" },
{ name: "Checkout", id: "/checkout" },
];
return (
<ThemeProvider
defaultButtonVariant="bounce-effect"
defaultTextAnimation="background-highlight"
borderRadius="soft"
contentWidth="compact"
sizing="largeSmallSizeLargeTitles"
background="floatingGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="flat"
secondaryButtonStyle="layered"
headingFontWeight="bold"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay
navItems={navItems}
brandName="FCplus Center"
/>
</div>
<main className="min-h-screen py-16 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto flex flex-col items-center justify-center">
<div className="w-full max-w-3xl">
<h1 className="text-4xl font-bold text-center mb-12">Your Shopping Cart</h1>
<ProductCart
isOpen={true}
onClose={() => console.log("Cart closed")}
items={dummyCartItems}
onQuantityChange={handleQuantityChange}
onRemove={handleRemoveItem}
total="$599.97"
buttons={[
{ text: "Continue Shopping", href: "/" },
{ text: "Proceed to Checkout", href: "/checkout" },
]}
title="Your Items"
/>
</div>
</main>
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/blue-suit-hangers-dark-background_107420-101413.jpg"
imageAlt="Blue suits on hangers in a dark setting"
logoText="FCplus Center"
columns={footerColumns}
copyrightText="© 2024 FCplus Center. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}