From 2833f5708a9fc245c0a82e5fb4dc19a6c4f1cba9 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 25 May 2026 10:16:09 +0000 Subject: [PATCH 1/2] Add src/app/admin/page.tsx --- src/app/admin/page.tsx | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/app/admin/page.tsx diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx new file mode 100644 index 0000000..3cd4e3a --- /dev/null +++ b/src/app/admin/page.tsx @@ -0,0 +1,56 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import { useState } from "react"; +import { LayoutDashboard, Package, LogOut } from "lucide-react"; + +export default function AdminPanel() { + const [isAuthenticated, setIsAuthenticated] = useState(false); + const [activeTab, setActiveTab] = useState('dashboard'); + + if (!isAuthenticated) { + return ( +
+
+

Admin Login

+ +
+
+ ); + } + + return ( + +
+ +
+

{activeTab}

+
+
+ {activeTab === 'dashboard' ? ( +

Welcome to the dashboard. Use the sidebar to manage products.

+ ) : ( +

Product Management Interface (CRUD operations would be initialized here).

+ )} +
+
+
+
+
+ ); +} \ No newline at end of file -- 2.49.1 From fc70863206ba015d13085b702bfb41a137595861 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 25 May 2026 10:16:10 +0000 Subject: [PATCH 2/2] Update src/app/page.tsx --- src/app/page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/page.tsx b/src/app/page.tsx index 4636f62..517d283 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -35,6 +35,7 @@ export default function LandingPage() { { name: "Story", id: "about" }, { name: "Products", id: "products" }, { name: "Contact", id: "contact" }, + { name: "Admin", id: "/admin" }, ]} brandName="ASTHAM" button={{ text: "Get Started", href: "#contact" }} -- 2.49.1