diff --git a/src/app/cart/page.tsx b/src/app/cart/page.tsx new file mode 100644 index 0000000..d1fd903 --- /dev/null +++ b/src/app/cart/page.tsx @@ -0,0 +1,93 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import ReactLenis from "lenis/react"; +import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; +import FooterBase from '@/components/sections/footer/FooterBase'; +import ProductCart from '@/components/ecommerce/cart/ProductCart'; + +export default function CartPage() { + // Dummy data for cart items + const cartItems = [ + { + id: "1", name: "Nike Air Max 270", price: "550 TND", quantity: 1, + imageSrc: "http://img.b2bpic.net/free-photo/close-up-legs-red-keds-lying-wood_176420-6878.jpg", imageAlt: "Nike Air Max 270"}, + { + id: "2", name: "Adidas Superstar", price: "380 TND", quantity: 2, + imageSrc: "http://img.b2bpic.net/free-photo/woman-couch-reading-magazine_23-2148415922.jpg", imageAlt: "Adidas Superstar"}, + ]; + + const totalAmount = cartItems.reduce((sum, item) => { + const priceValue = parseFloat(item.price.replace(' TND', '')); + return sum + priceValue * item.quantity; + }, 0); + + return ( + + + + +
+ console.log("Close cart clicked")} + items={cartItems} + onQuantityChange={(id, quantity) => console.log(`Quantity changed for ${id}: ${quantity}`)} + onRemove={(id) => console.log(`Item removed: ${id}`)} + total={`${totalAmount.toFixed(2)} TND`} + buttons={[ + { text: "Continue Shopping", href: "/" }, + { text: "Proceed to Checkout", href: "/checkout" }, + ]} + title="Your Shopping Cart" + emptyMessage="Your cart is currently empty. Start shopping now!" + /> +
+ + +
+
+ ); +} diff --git a/src/app/checkout/page.tsx b/src/app/checkout/page.tsx new file mode 100644 index 0000000..6945168 --- /dev/null +++ b/src/app/checkout/page.tsx @@ -0,0 +1,72 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import ReactLenis from "lenis/react"; +import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; +import FooterBase from '@/components/sections/footer/FooterBase'; + +export default function CheckoutPage() { + return ( + + + + +
+

Checkout

+

+ Please proceed with your order. Here you would typically find fields for shipping information, + payment details (including local Tunisian methods like credit/debit cards and bank transfers), + and a summary of your cart. +

+ + Pay Now (Placeholder) + +
+ + +
+
+ ); +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 3d6b883..627a98d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -202,9 +202,9 @@ export default function LandingPage() { useInvertedBackground={false} testimonials={[ { - id: "1", name: "Sarah J.", date: "May 15, 2024", title: "Unmatched Quality & Service!", quote: "I've bought several pairs from Catchy Kicks, and every time the quality is superb and the delivery is incredibly fast. My new favorite online store!", tag: "Satisfied Customer", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-girl-shows-okay-ok-signs-look-satisfied-recommend-good-company-perfect-quality-praise-good-job-well-done-standing-pleased-against-white-background_176420-54380.jpg", avatarAlt: "Sarah J.", imageSrc: "http://img.b2bpic.net/free-photo/full-length-shot-happy-curly-haired-woman-dressed-striped-jumper-white-trousers-sneakers-carries-net-bag-longboard-stands-near-urban-building-strolls-outdoors-has-glad-expression_273609-59936.jpg", imageAlt: "Happy customer with new sneakers"}, + id: "1", name: "Sarah J.", date: "May 15, 2024", title: "Unmatched Quality & Service!", quote: "I've bought several pairs from Catchy Kicks, and every time the quality is superb and the delivery is incredibly fast. My new favorite online store!", tag: "Satisfied Customer", avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3F2I5Hucl0Xhv7kY8PDC5U9Flpk/uploaded-1781268549682-zhktzm4j.png", avatarAlt: "Sarah J.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3F2I5Hucl0Xhv7kY8PDC5U9Flpk/uploaded-1781268549682-6t93lm10.png", imageAlt: "Happy customer with new sneakers"}, { - id: "2", name: "Mehdi K.", date: "April 28, 2024", title: "Authenticity You Can Trust", quote: "Finding authentic sneakers in Tunisia can be a challenge, but Catchy Kicks delivers every time. Their selection is fantastic and prices are fair.", tag: "Verified Buyer", avatarSrc: "http://img.b2bpic.net/free-photo/executive-assistant-multinational-company-work-big-business-project_482257-113916.jpg", avatarAlt: "Mehdi K.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-young-female-courier-yellow-uniform-black-gloves-black-mask-holding-food-delivery-packages_140725-22202.jpg", imageAlt: "Sneakers unboxing"}, + id: "2", name: "Mehdi K.", date: "April 28, 2024", title: "Authenticity You Can Trust", quote: "Finding authentic sneakers in Tunisia can be a challenge, but Catchy Kicks delivers every time. Their selection is fantastic and prices are fair.", tag: "Verified Buyer", avatarSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3F2I5Hucl0Xhv7kY8PDC5U9Flpk/uploaded-1781268549682-nmwooa96.png", avatarAlt: "Mehdi K.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3F2I5Hucl0Xhv7kY8PDC5U9Flpk/uploaded-1781268549682-fe465p80.png", imageAlt: "Sneakers unboxing"}, { id: "3", name: "Nour B.", date: "March 20, 2024", title: "My Go-To for Trendy Kicks", quote: "Catchy Kicks always has the latest trends! I love their diverse collection and how easy it is to find exactly what I'm looking for.", tag: "Fashion Enthusiast", avatarSrc: "http://img.b2bpic.net/free-photo/happy-joyful-hipster-guy-posing_1262-21147.jpg", avatarAlt: "Nour B.", imageSrc: "http://img.b2bpic.net/free-photo/couple-sorting-belongings-from-cardboard-boxes-after-moving-new-home_23-2149086872.jpg", imageAlt: "Person enjoying new shoes"}, { @@ -265,7 +265,7 @@ export default function LandingPage() { variant: "radial-gradient"}} tag="Get in Touch" title="Have a Question? We're Here to Help!" - description="Whether you need assistance with an order, product information, or just want to say hello, our team is ready to assist you." + description="Our dedicated support team in Tunisia is ready to assist you. Find us at 123 Sneaker Street, Tunis, Tunisia, call us at +216 71 000 000, or email support@catchykicks.tn." tagIcon={Mail} tagAnimation="opacity" inputPlaceholder="Enter your email" @@ -301,6 +301,16 @@ export default function LandingPage() { label: "Privacy Policy", href: "#"}, ], }, + { + title: "Contact Us", items: [ + { + label: "123 Sneaker Street, Tunis, Tunisia", href: "#"}, + { + label: "Phone: +216 71 000 000", href: "tel:+21671000000"}, + { + label: "Email: support@catchykicks.tn", href: "mailto:support@catchykicks.tn"} + ] + }, { title: "Connect", items: [ {