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 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" }}