Merge version_2 into main #3

Merged
bender merged 3 commits from version_2 into main 2026-06-12 12:50:40 +00:00
3 changed files with 178 additions and 3 deletions

93
src/app/cart/page.tsx Normal file
View File

@@ -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 (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="reveal-blur"
borderRadius="pill"
contentWidth="compact"
sizing="mediumSizeLargeTitles"
background="noiseDiagonalGradient"
cardStyle="glass-depth"
primaryButtonStyle="gradient"
secondaryButtonStyle="layered"
headingFontWeight="semibold"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarStyleFullscreen
navItems={[
{ name: "Home", id: "/" },
{ name: "Products", id: "#products" },
{ name: "Features", id: "#features" },
{ name: "Testimonials", id: "#testimonials" },
{ name: "FAQ", id: "#faq" },
{ name: "Contact", id: "#contact" },
{ name: "Cart", id: "/cart" },
{ name: "Checkout", id: "/checkout" },
]}
logoSrc="http://img.b2bpic.net/free-photo/tokyo-creative-collage_23-2149455371.jpg"
logoAlt="Catchy Kicks Logo"
brandName="Catchy Kicks"
bottomLeftText="Tunisia's Top Sneaker Store"
bottomRightText="support@catchykicks.tn"
button={{ text: "Shop Now", href: "#products" }}
/>
</div>
<main className="container mx-auto py-16 px-4">
<ProductCart
isOpen={true}
onClose={() => 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!"
/>
</main>
<div id="footer" data-section="footer">
<FooterBase
columns={[
{ title: "Explore", items: [{ label: "Home", href: "/" }, { label: "Products", href: "#products" }, { label: "Features", href: "#features" }, { label: "About Us", href: "#about" }] },
{ title: "Support", items: [{ label: "FAQ", href: "#faq" }, { label: "Contact", href: "#contact" }, { label: "Shipping & Returns", href: "#" }, { label: "Privacy Policy", href: "#" }] },
{ title: "Connect", items: [{ label: "Instagram", href: "https://instagram.com/catchy_99" }, { label: "TikTok", href: "https://tiktok.com/@catchy99store" }, { label: "Facebook", href: "https://facebook.com/catchy99" }] },
]}
logoSrc="http://img.b2bpic.net/free-photo/tokyo-creative-collage_23-2149455371.jpg"
logoAlt="Catchy Kicks Logo"
logoText="Catchy Kicks"
copyrightText="© 2024 Catchy Kicks. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}

72
src/app/checkout/page.tsx Normal file
View File

@@ -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 (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="reveal-blur"
borderRadius="pill"
contentWidth="compact"
sizing="mediumSizeLargeTitles"
background="noiseDiagonalGradient"
cardStyle="glass-depth"
primaryButtonStyle="gradient"
secondaryButtonStyle="layered"
headingFontWeight="semibold"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarStyleFullscreen
navItems={[
{ name: "Home", id: "/" },
{ name: "Products", id: "#products" },
{ name: "Features", id: "#features" },
{ name: "Testimonials", id: "#testimonials" },
{ name: "FAQ", id: "#faq" },
{ name: "Contact", id: "#contact" },
{ name: "Cart", id: "/cart" },
{ name: "Checkout", id: "/checkout" },
]}
logoSrc="http://img.b2bpic.net/free-photo/tokyo-creative-collage_23-2149455371.jpg"
logoAlt="Catchy Kicks Logo"
brandName="Catchy Kicks"
bottomLeftText="Tunisia's Top Sneaker Store"
bottomRightText="support@catchykicks.tn"
button={{ text: "Shop Now", href: "#products" }}
/>
</div>
<main className="container mx-auto py-16 px-4 text-center min-h-[60vh] flex flex-col justify-center items-center">
<h1 className="text-5xl font-bold mb-6">Checkout</h1>
<p className="text-lg max-w-2xl mb-8">
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.
</p>
<a href="/order-confirmation" className="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 h-10 px-4 py-2 bg-primary-cta text-primary-cta-foreground hover:bg-primary-cta/90">
Pay Now (Placeholder)
</a>
</main>
<div id="footer" data-section="footer">
<FooterBase
columns={[
{ title: "Explore", items: [{ label: "Home", href: "/" }, { label: "Products", href: "#products" }, { label: "Features", href: "#features" }, { label: "About Us", href: "#about" }] },
{ title: "Support", items: [{ label: "FAQ", href: "#faq" }, { label: "Contact", href: "#contact" }, { label: "Shipping & Returns", href: "#" }, { label: "Privacy Policy", href: "#" }] },
{ title: "Connect", items: [{ label: "Instagram", href: "https://instagram.com/catchy_99" }, { label: "TikTok", href: "https://tiktok.com/@catchy99store" }, { label: "Facebook", href: "https://facebook.com/catchy99" }] },
]}
logoSrc="http://img.b2bpic.net/free-photo/tokyo-creative-collage_23-2149455371.jpg"
logoAlt="Catchy Kicks Logo"
logoText="Catchy Kicks"
copyrightText="© 2024 Catchy Kicks. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}

View File

@@ -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: [
{