Merge version_2 into main #1

Merged
bender merged 2 commits from version_2 into main 2026-04-14 21:10:15 +00:00
2 changed files with 101 additions and 204 deletions

76
src/app/admin/page.tsx Normal file
View File

@@ -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 (
<ThemeProvider
defaultButtonVariant="hover-bubble"
defaultTextAnimation="reveal-blur"
borderRadius="rounded"
contentWidth="smallMedium"
sizing="largeSmallSizeMediumTitles"
background="blurBottom"
cardStyle="solid"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="layered"
headingFontWeight="normal"
>
<NavbarStyleApple
navItems={[
{ name: "Home", id: "/" },
{ name: "Admin", id: "/admin" },
]}
brandName="Sheikh Ikram Fabrics"
/>
<main className="pt-32 pb-20 px-6 max-w-4xl mx-auto">
<h1 className="text-4xl font-bold mb-8 flex items-center gap-3">
<LayoutDashboard /> Admin Dashboard
</h1>
<section className="bg-card p-8 rounded-xl shadow-lg border">
<h2 className="text-2xl font-semibold mb-6 flex items-center gap-2">
<PackagePlus /> Add New Stock
</h2>
<form onSubmit={handleSubmit} className="grid gap-4">
<input
className="p-3 border rounded w-full"
placeholder="Product Name"
value={stock.name}
onChange={(e) => setStock({...stock, name: e.target.value})}
/>
<input
className="p-3 border rounded w-full"
placeholder="Quantity"
type="number"
value={stock.quantity}
onChange={(e) => setStock({...stock, quantity: e.target.value})}
/>
<input
className="p-3 border rounded w-full"
placeholder="Price"
type="number"
value={stock.price}
onChange={(e) => setStock({...stock, price: e.target.value})}
/>
<button type="submit" className="bg-primary-cta text-white p-3 rounded font-bold hover:opacity-90">
Save Item
</button>
</form>
</section>
</main>
</ThemeProvider>
);
}

View File

@@ -29,26 +29,12 @@ export default function LandingPage() {
<div id="nav" data-section="nav">
<NavbarStyleApple
navItems={[
{
name: "Home",
id: "hero",
},
{
name: "Shop",
id: "shop",
},
{
name: "Story",
id: "story",
},
{
name: "Testimonials",
id: "testimonials",
},
{
name: "Contact",
id: "contact",
},
{ name: "Home", id: "hero" },
{ name: "Shop", id: "shop" },
{ name: "Story", id: "story" },
{ name: "Testimonials", id: "testimonials" },
{ name: "Contact", id: "contact" },
{ name: "Admin", id: "/admin" },
]}
brandName="Sheikh Ikram Fabrics"
/>
@@ -56,42 +42,13 @@ export default function LandingPage() {
<div id="hero" data-section="hero">
<HeroBillboardCarousel
background={{
variant: "gradient-bars",
}}
background={{ variant: "gradient-bars" }}
title="Where Quality Meets Tradition"
description="Serving Wah Cantt for over 30 years with timeless fabrics and unparalleled craftsmanship."
buttons={[
{
text: "Explore Collection",
href: "#shop",
},
]}
buttons={[{ text: "Explore Collection", href: "#shop" }]}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/women-shopping-buying-consumer-products-customer-day-celebration_23-2151623461.jpg",
imageAlt: "Heritage Boutique",
},
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-colorful-thread-rolls_23-2148614729.jpg",
imageAlt: "Fabric Quality",
},
{
imageSrc: "http://img.b2bpic.net/free-photo/blue-silk-sleeve-close-up_23-2148237591.jpg",
imageAlt: "Traditional Craft",
},
{
imageSrc: "http://img.b2bpic.net/free-photo/spring-wardrobe-switch-still-life_23-2150176762.jpg",
imageAlt: "Store Interior",
},
{
imageSrc: "http://img.b2bpic.net/free-photo/fabric-texture-background_1385-1382.jpg",
imageAlt: "Texture Detail",
},
{
imageSrc: "http://img.b2bpic.net/free-photo/vintage-furniture-antique-store_23-2149640753.jpg",
imageAlt: "Store Heritage",
},
{ imageSrc: "http://img.b2bpic.net/free-photo/women-shopping-buying-consumer-products-customer-day-celebration_23-2151623461.jpg", imageAlt: "Heritage Boutique" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-colorful-thread-rolls_23-2148614729.jpg", imageAlt: "Fabric Quality" },
]}
/>
</div>
@@ -103,60 +60,8 @@ export default function LandingPage() {
gridVariant="four-items-2x2-equal-grid"
useInvertedBackground={false}
products={[
{
id: "p1",
brand: "Women",
name: "Premium Lawn & Chiffon",
price: "From Rs. 2,999",
rating: 5,
reviewCount: "1.2k",
imageSrc: "http://img.b2bpic.net/free-photo/elderly-businesswoman-coat-outside-cafe_1303-19475.jpg",
},
{
id: "p2",
brand: "Men",
name: "Wash & Wear Suits",
price: "From Rs. 4,500",
rating: 5,
reviewCount: "890",
imageSrc: "http://img.b2bpic.net/free-photo/close-up-texture-linen-fabric_23-2151914966.jpg",
},
{
id: "p3",
brand: "Bridal",
name: "Luxury Wedding Couture",
price: "Custom Pricing",
rating: 5,
reviewCount: "450",
imageSrc: "http://img.b2bpic.net/free-photo/colorful-stripes-pattern-table-cloth-smooth-purple-textile_23-2147921833.jpg",
},
{
id: "p4",
brand: "Kids",
name: "Soft Cotton Collection",
price: "From Rs. 1,500",
rating: 5,
reviewCount: "670",
imageSrc: "http://img.b2bpic.net/free-photo/warm-fabric-texture-background_23-2151903250.jpg",
},
{
id: "p5",
brand: "Home",
name: "Bedsheets & Linen",
price: "From Rs. 3,200",
rating: 5,
reviewCount: "540",
imageSrc: "http://img.b2bpic.net/free-photo/red-rolled-yarn-texture-background_53876-103899.jpg",
},
{
id: "p6",
brand: "Lifestyle",
name: "Accessories & Bags",
price: "From Rs. 999",
rating: 5,
reviewCount: "320",
imageSrc: "http://img.b2bpic.net/free-photo/princess-golden-clothes-carries-candleholder-with-burning-candles_1304-3079.jpg",
},
{ id: "p1", brand: "Women", name: "Premium Lawn & Chiffon", price: "From Rs. 2,999", rating: 5, reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/elderly-businesswoman-coat-outside-cafe_1303-19475.jpg" },
{ id: "p2", brand: "Men", name: "Wash & Wear Suits", price: "From Rs. 4,500", rating: 5, reviewCount: "890", imageSrc: "http://img.b2bpic.net/free-photo/close-up-texture-linen-fabric_23-2151914966.jpg" }
]}
title="Our Categories"
description="Premium selections curated for every occasion."
@@ -168,12 +73,7 @@ export default function LandingPage() {
useInvertedBackground={false}
title="30 Years of Trust"
description="Founded by Sheikh Ikram, our vision has always been to bring the finest fabrics to the people of Wah Cantt. Every thread carries our promise of quality and heritage."
buttons={[
{
text: "Learn Our Story",
href: "#",
},
]}
buttons={[{ text: "Learn Our Story", href: "#" }]}
imageSrc="http://img.b2bpic.net/free-photo/closeup-shot-windows-coral-building-spain_181624-19538.jpg"
/>
</div>
@@ -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() {
<div id="contact" data-section="contact">
<ContactCTA
useInvertedBackground={false}
background={{
variant: "plain",
}}
background={{ variant: "plain" }}
tag="Visit Us"
title="Experience the Elegance"
description="Visit us at our flagship location in Wah Cantt and discover why we are the #1 destination for fabrics."
buttons={[
{
text: "Get Directions",
href: "https://maps.google.com",
},
]}
buttons={[{ text: "Get Directions", href: "https://maps.google.com" }]}
/>
</div>
<div id="footer" data-section="footer">
<FooterLogoReveal
logoText="Sheikh Ikram Fabrics"
leftLink={{
text: "Privacy Policy",
href: "#",
}}
rightLink={{
text: "© 2024 Sheikh Ikram Fabrics",
href: "#",
}}
leftLink={{ text: "Privacy Policy", href: "#" }}
rightLink={{ text: "© 2024 Sheikh Ikram Fabrics", href: "#" }}
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}
}