From e1300adcfc83b0225444af2f23ebdb8843d97752 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 14 Apr 2026 21:10:10 +0000 Subject: [PATCH 1/2] Add src/app/admin/page.tsx --- src/app/admin/page.tsx | 76 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 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..dcdb388 --- /dev/null +++ b/src/app/admin/page.tsx @@ -0,0 +1,76 @@ +"use client"; + +import { useState } from "react"; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; +import { LayoutDashboard, PackagePlus, ListChecks } from "lucide-react"; + +export default function AdminPage() { + const [stock, setStock] = useState({ name: "", quantity: "", price: "" }); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log("New stock entry:", stock); + // Mock API call to database + alert("Stock entry added!"); + }; + + return ( + + +
+

+ Admin Dashboard +

+ +
+

+ Add New Stock +

+
+ setStock({...stock, name: e.target.value})} + /> + setStock({...stock, quantity: e.target.value})} + /> + setStock({...stock, price: e.target.value})} + /> + +
+
+
+
+ ); +} \ No newline at end of file From 19168cbc3cd5880871895ed0a75fe036d2c2a9ce Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 14 Apr 2026 21:10:11 +0000 Subject: [PATCH 2/2] Update src/app/page.tsx --- src/app/page.tsx | 229 ++++++----------------------------------------- 1 file changed, 25 insertions(+), 204 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index ccc4c7c..2504433 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -29,26 +29,12 @@ export default function LandingPage() { @@ -185,27 +85,8 @@ export default function LandingPage() { gridVariant="bento-grid" useInvertedBackground={false} features={[ - { - title: "Colour-Fast Fabrics", - description: "Guaranteed long-lasting vibrancy.", - imageSrc: "http://img.b2bpic.net/free-photo/safari-party-table-arrangement-decoration_52683-96535.jpg", - titleIconSrc: "Sparkles", - buttonText: "View", - }, - { - title: "Premium Weave", - description: "Superior quality for daily luxury.", - imageSrc: "http://img.b2bpic.net/free-photo/extreme-close-up-detail-bag_23-2148393471.jpg", - titleIconSrc: "Star", - buttonText: "View", - }, - { - title: "Traditional Heritage", - description: "Authentic designs for all seasons.", - imageSrc: "http://img.b2bpic.net/free-photo/person-working-embroidery-workshop_23-2148970775.jpg", - titleIconSrc: "Award", - buttonText: "View", - }, + { title: "Colour-Fast Fabrics", description: "Guaranteed long-lasting vibrancy.", imageSrc: "http://img.b2bpic.net/free-photo/safari-party-table-arrangement-decoration_52683-96535.jpg", titleIconSrc: "Sparkles", buttonText: "View" }, + { title: "Premium Weave", description: "Superior quality for daily luxury.", imageSrc: "http://img.b2bpic.net/free-photo/extreme-close-up-detail-bag_23-2148393471.jpg", titleIconSrc: "Star", buttonText: "View" } ]} title="Curated Collections" description="Handpicked fabrics for the discerning eye." @@ -218,60 +99,13 @@ export default function LandingPage() { textboxLayout="split" useInvertedBackground={false} testimonials={[ - { - id: "1", - name: "Amina R.", - role: "Loyal Customer", - company: "Wah Cantt", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/tanned-caucasian-female-selecting-dress-amusement-park_181624-33121.jpg", - }, - { - id: "2", - name: "Farhan M.", - role: "Fashion Enthusiast", - company: "Wah Cantt", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-black-woman-running-small-business_23-2150171780.jpg", - }, - { - id: "3", - name: "Sara K.", - role: "Designer", - company: "Wah Cantt", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/adult-friends-shopping-clothes-together_23-2148385700.jpg", - }, - { - id: "4", - name: "Zeeshan A.", - role: "Customer", - company: "Wah Cantt", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/person-shopping-second-hand-market_23-2149353684.jpg", - }, - { - id: "5", - name: "Fatima S.", - role: "Regular Shopper", - company: "Wah Cantt", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/girl-with-shopping-bags-mall-escalator_627829-8536.jpg", - }, + { id: "1", name: "Amina R.", role: "Loyal Customer", company: "Wah Cantt", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/tanned-caucasian-female-selecting-dress-amusement-park_181624-33121.jpg" }, + { id: "2", name: "Farhan M.", role: "Fashion Enthusiast", company: "Wah Cantt", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-black-woman-running-small-business_23-2150171780.jpg" } ]} kpiItems={[ - { - value: "30+", - label: "Years Served", - }, - { - value: "50k+", - label: "Happy Families", - }, - { - value: "#1", - label: "In Wah Cantt", - }, + { value: "30+", label: "Years Served" }, + { value: "50k+", label: "Happy Families" }, + { value: "#1", label: "In Wah Cantt" } ]} title="Voices of Trust" description="Hear what our community says about our legacy." @@ -281,35 +115,22 @@ export default function LandingPage() {
); -} +} \ No newline at end of file