From 8cd3da93b37dd0999a587eec893b067b8f4bd6ec Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 3 Jun 2026 07:20:29 +0000 Subject: [PATCH 1/2] Add src/app/admin/page.tsx --- src/app/admin/page.tsx | 155 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 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..717fcb1 --- /dev/null +++ b/src/app/admin/page.tsx @@ -0,0 +1,155 @@ +"use client"; + +import { useState } from "react"; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import ReactLenis from "lenis/react"; +import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay'; + +export default function AdminPage() { + const [productName, setProductName] = useState(""); + const [price, setPrice] = useState(""); + const [description, setDescription] = useState(""); + const [imageFile, setImageFile] = useState(null); + + const navItems = [ + { + name: "Home", id: "#home"}, + { + name: "About", id: "#about"}, + { + name: "Products", id: "#products"}, + { + name: "Pricing", id: "#pricing"}, + { + name: "Reviews", id: "#reviews"}, + { + name: "Contact", id: "#contact"}, + { + name: "Admin", id: "/admin"}, + ]; + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log({ + productName, + price, + description, + imageFile, + }); + alert("Product data submitted to console. (Image upload not implemented)"); + // In a real application, you would send this data to a backend API + }; + + return ( + + + + +
+
+
+

+ Upload New Product +

+

+ Enter product details and an image. +

+
+
+
+
+ + setProductName(e.target.value)} + /> +
+
+ + setPrice(e.target.value)} + /> +
+
+ + +
+
+ + setImageFile(e.target.files ? e.target.files[0] : null)} + /> +
+
+ +
+ +
+
+
+
+
+
+ ); +} From 7430229be47ffd2358d4506ed0a6121ff81e4670 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 3 Jun 2026 07:20:30 +0000 Subject: [PATCH 2/2] Update src/app/page.tsx --- src/app/page.tsx | 363 ++++++++++++----------------------------------- 1 file changed, 87 insertions(+), 276 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 0ce8695..59a79dc 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -16,6 +16,23 @@ import TestimonialCardThirteen from '@/components/sections/testimonial/Testimoni import { Box, Cog, MessageCircle, Sparkles } from "lucide-react"; export default function LandingPage() { + const navItems = [ + { + name: "Home", id: "#home"}, + { + name: "About", id: "#about"}, + { + name: "Products", id: "#products"}, + { + name: "Pricing", id: "#pricing"}, + { + name: "Reviews", id: "#reviews"}, + { + name: "Contact", id: "#contact"}, + { + name: "Admin", id: "/admin"}, + ]; + return (