Update src/app/orders/page.tsx

This commit is contained in:
2026-03-25 14:48:38 +00:00
parent b162997edf
commit 450da57270

View File

@@ -2,13 +2,10 @@
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterBase from '@/components/sections/footer/FooterBase';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import TextAbout from '@/components/sections/about/TextAbout';
import FooterMedia from '@/components/sections/footer/FooterMedia';
export default function LandingPage() {
export default function OrdersPage() {
return (
<ThemeProvider
defaultButtonVariant="text-shift"
@@ -23,181 +20,67 @@ export default function LandingPage() {
headingFontWeight="normal"
>
<ReactLenis root>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingInline
navItems={[
{
name: "Home",
id: "home",
href: "/",
},
{
name: "Products",
id: "products",
href: "/products",
},
{
name: "Cart",
id: "cart",
href: "/cart",
},
{
name: "Orders",
id: "orders",
href: "/orders",
},
{
name: "Admin",
id: "admin",
href: "/admin",
},
]}
brandName="ShopFusion"
button={{
text: "Login / Register",
href: "/login",
}}
animateOnLoad={true}
/>
</div>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingInline
navItems={[
{
name: "Home", id: "/"
},
{
name: "Products", id: "/products"
},
{
name: "Cart", id: "/cart"
},
{
name: "Orders", id: "/orders"
},
{
name: "Admin", id: "/admin"
}
]}
brandName="ShopFusion"
button={{
text: "Login / Register", href: "/login"
}}
animateOnLoad={true}
/>
</div>
<div id="about" data-section="about">
<TextAbout
useInvertedBackground={false}
title="Your Order History"
buttons={[
{
text: "Browse Products",
href: "/products",
},
]}
/>
</div>
<div className="min-h-screen flex items-center justify-center p-8">
<h1 className="text-4xl font-bold">Your Orders</h1>
</div>
<div id="metric" data-section="metric">
<MetricCardSeven
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
metrics={[
{
id: "1",
value: "15",
title: "Total Orders",
items: [
"Placed this year",
"Delivered on time",
],
},
{
id: "2",
value: "245",
title: "Items Purchased",
items: [
"Across all categories",
"Your favorite brands",
],
},
{
id: "3",
value: "$1,234",
title: "Amount Spent",
items: [
"Lifetime value",
"Great deals found",
],
},
]}
title="At a Glance"
description="A quick overview of your ShopFusion purchasing activity."
/>
</div>
<div id="faq" data-section="faq">
<FaqBase
textboxLayout="default"
useInvertedBackground={false}
faqs={[
{
id: "1",
title: "How can I track my order?",
content: "You can track your order status by visiting the 'Your Orders' page and clicking on the specific order. A tracking number will be provided once your item has shipped.",
},
{
id: "2",
title: "What if my order is delayed?",
content: "If your order is delayed, please check the tracking information for updates. If there's no progress or you need further assistance, contact our customer support team.",
},
{
id: "3",
title: "How do I return an item from a past order?",
content: "To initiate a return, go to the 'Your Orders' page, select the item you wish to return, and follow the instructions provided. Please review our full return policy for eligibility.",
},
]}
title="Order Related Questions"
description="Find answers to common questions about your orders, shipping, and returns."
faqsAnimation="slide-up"
/>
</div>
<div id="footer" data-section="footer">
<FooterBase
columns={[
{
title: "ShopFusion",
items: [
{
label: "About Us",
href: "/about",
},
{
label: "Careers",
href: "/careers",
},
{
label: "Blog",
href: "/blog",
},
],
},
{
title: "Customer Service",
items: [
{
label: "Contact Us",
href: "/contact",
},
{
label: "Returns",
href: "/returns",
},
{
label: "Shipping",
href: "/shipping",
},
{
label: "FAQ",
href: "/faq",
},
],
},
{
title: "Legal",
items: [
{
label: "Privacy Policy",
href: "/privacy",
},
{
label: "Terms of Service",
href: "/terms",
},
],
},
]}
copyrightText="© 2024 ShopFusion. All rights reserved."
/>
</div>
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="https://images.unsplash.com/photo-1550009158-9ebf69168046?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
imageAlt="ShopFusion Footer Image"
columns={[
{
title: "ShopFusion", items: [
{ label: "About Us", href: "/about" },
{ label: "Careers", href: "/careers" },
{ label: "Blog", href: "/blog" }
]
},
{
title: "Customer Service", items: [
{ label: "Contact Us", href: "/contact" },
{ label: "Returns", href: "/returns" },
{ label: "Shipping", href: "/shipping" },
{ label: "FAQ", href: "/faq" }
]
},
{
title: "Legal", items: [
{ label: "Privacy Policy", href: "/privacy" },
{ label: "Terms of Service", href: "/terms" }
]
}
]}
copyrightText="© 2024 ShopFusion. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);