From f0144ff093aefc897313e91ace94d703a9ff9269 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 29 Apr 2026 01:07:52 +0000 Subject: [PATCH 1/2] Add src/app/admin/dashboard/page.tsx --- src/app/admin/dashboard/page.tsx | 64 ++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/app/admin/dashboard/page.tsx diff --git a/src/app/admin/dashboard/page.tsx b/src/app/admin/dashboard/page.tsx new file mode 100644 index 0000000..4ac8720 --- /dev/null +++ b/src/app/admin/dashboard/page.tsx @@ -0,0 +1,64 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import ReactLenis from "lenis/react"; +import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; +import { useState } from 'react'; + +export default function AdminDashboardPage() { + const [orders, setOrders] = useState([ + { id: '1', product: 'Berber Rug', customer: 'Amira M.', city: 'Casablanca', status: 'pending' }, + { id: '2', product: 'Ceramic Tagine', customer: 'Youssef K.', city: 'Marrakech', status: 'confirmed' }, + { id: '3', product: 'Brass Lantern', customer: 'Sarah D.', city: 'Rabat', status: 'delivered' }, + ]); + + const updateStatus = (id: string, newStatus: string) => { + setOrders(orders.map(o => o.id === id ? { ...o, status: newStatus } : o)); + }; + + return ( + + + +
+

Order Management

+
+ + + + + + + + + + + {orders.map(order => ( + + + + + + + ))} + +
ProductCustomerCityStatus
{order.product}{order.customer}{order.city} + +
+
+
+
+
+ ); +} -- 2.49.1 From 8d0fc5815802d1ece3d1cb538a8daa287a4d1dd2 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 29 Apr 2026 01:07:53 +0000 Subject: [PATCH 2/2] Update src/app/page.tsx --- src/app/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 14f906e..3b37b7e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -33,6 +33,7 @@ export default function LandingPage() { { name: "Products", id: "products" }, { name: "About", id: "about" }, { name: "Contact", id: "contact" }, + { name: "Admin", id: "/admin/dashboard" }, ]} brandName="RoseSouk" /> @@ -155,4 +156,4 @@ export default function LandingPage() { ); -} +} \ No newline at end of file -- 2.49.1