From 21ffecc93d8543bce8e787d48bd1fc287446d6ec Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 29 Apr 2026 06:54:32 +0000 Subject: [PATCH 1/2] Add src/app/admin/page.tsx --- src/app/admin/page.tsx | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 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..b45a2f4 --- /dev/null +++ b/src/app/admin/page.tsx @@ -0,0 +1,63 @@ +"use client"; + +import { useState } from 'react'; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay'; +import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; + +export default function AdminPage() { + const [isAuthenticated, setIsAuthenticated] = useState(false); + + const handleLogin = (data: Record) => { + if (data.username === "admin" && data.password === "admin") { + setIsAuthenticated(true); + } else { + alert("Invalid credentials"); + } + }; + + return ( + + + +
+ {!isAuthenticated ? ( + + ) : ( +
+

Welcome to Admin Panel

+

System fully authenticated and operational.

+
+ )} +
+
+ ); +} \ No newline at end of file -- 2.49.1 From b9d6212edac6dd38ccc6a9013bc32fb13595c083 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 29 Apr 2026 06:54:33 +0000 Subject: [PATCH 2/2] Update src/app/page.tsx --- src/app/page.tsx | 110 +++++++++++++---------------------------------- 1 file changed, 29 insertions(+), 81 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 538ba6b..8e602c9 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -31,14 +31,11 @@ export default function LandingPage() {