diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx new file mode 100644 index 0000000..6b3d411 --- /dev/null +++ b/src/app/admin/page.tsx @@ -0,0 +1,131 @@ +"use client"; + +import { useState } from "react"; +import { Lock } from "lucide-react"; + +export default function AdminDashboard() { + const [isAuthenticated, setIsAuthenticated] = useState(false); + const [password, setPassword] = useState(""); + const [error, setError] = useState(""); + + // Simple password protection (in production, use proper authentication) + const ADMIN_PASSWORD = "KnightGW2025!"; + + const handleLogin = (e: React.FormEvent) => { + e.preventDefault(); + if (password === ADMIN_PASSWORD) { + setIsAuthenticated(true); + setError(""); + setPassword(""); + } else { + setError("Incorrect password"); + setPassword(""); + } + }; + + if (!isAuthenticated) { + return ( +
+
+
+
+ +
+

Admin Dashboard

+

Password Protected

+ +
+ setPassword(e.target.value)} + className="w-full px-4 py-2 rounded bg-slate-700 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-amber-500 mb-4" + /> + {error &&

{error}

} + +
+
+
+
+ ); + } + + return ( +
+
+
+

Admin Dashboard

+ +
+ +
+
+

Total Orders

+

847

+
+
+

Pending Transfers

+

23

+
+
+

Total Revenue

+

$127.5K

+
+
+

Active Customers

+

342

+
+
+ +
+
+

Recent Orders

+
+
+ Order #1024 - Smith & Wesson 9mm + Completed +
+
+ Order #1023 - FFL Transfer Request + Pending +
+
+ Order #1022 - Colt AR-15 Rifle + Completed +
+
+
+ +
+

Quick Actions

+
+ + + + +
+
+
+
+
+ ); +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 67dbb91..d11fa5e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -8,9 +8,28 @@ import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen'; import MediaAbout from '@/components/sections/about/MediaAbout'; import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis'; -import { Shield, CheckCircle, Star } from "lucide-react"; +import { Shield, CheckCircle, Star, ShoppingCart, Lock, FileText } from "lucide-react"; +import { useState } from "react"; export default function LandingPage() { + const [cartOpen, setCartOpen] = useState(false); + const [cartItems, setCartItems] = useState([ + { + id: "hg-001", name: "Smith & Wesson 9mm M&P Shield", price: "$499.99", quantity: 0, + imageSrc: "http://img.b2bpic.net/free-photo/empty-bullets-gun-table_53876-148180.jpg", imageAlt: "Smith & Wesson 9mm pistol" + }, + { + id: "rf-002", name: "Colt .223 AR-15 Rifle", price: "$899.99", quantity: 0, + imageSrc: "http://img.b2bpic.net/free-photo/man-shooting-gallery-trying-out-new-rifle-model-close-up_482257-127883.jpg", imageAlt: "Colt AR-15 rifle platform" + } + ]); + + const handleAddToCart = (productId: string) => { + setCartItems(prev => prev.map(item => + item.id === productId ? { ...item, quantity: item.quantity + 1 } : item + )); + }; + return ( setCartOpen(!cartOpen) }} /> @@ -44,26 +63,26 @@ export default function LandingPage() { description="Trusted FFL dealer in Woodville, Texas. Offering quality firearms, expert transfers, and professional service since establishing our commitment to Texas gun owners." tag="Licensed FFL Dealer" tagIcon={Shield} - background={{ variant: "glowing-orb" }} + background={{ variant: "grid" }} imageSrc="http://img.b2bpic.net/free-photo/girl-with-machine-gun-hands-shooting-range_627829-8514.jpg" imageAlt="Knight Gun Works storefront and inventory" imagePosition="right" testimonials={[ { name: "Marcus Johnson", handle: "Gun Enthusiast, Woodville", testimonial: "Best transfer experience I've had. Professional and fast service.", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg" + imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=1" }, { name: "Sarah Williams", handle: "First-Time Buyer", testimonial: "Staff explained everything clearly. Made my first purchase confident.", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg" + imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=2" }, { name: "James Miller", handle: "Collector, Texas", testimonial: "Excellent inventory and knowledgeable team. My go-to shop.", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg" + imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=3" }, { name: "Robert Chen", handle: "Range Regular", testimonial: "Fair prices and fantastic customer service. Highly recommend.", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg" + imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=4" } ]} buttons={[ @@ -80,25 +99,25 @@ export default function LandingPage() {
handleAddToCart("hg-001") }, { id: "rf-002", brand: "Colt", name: ".223 AR-15 Rifle", price: "$899.99", rating: 5, - reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/man-shooting-gallery-trying-out-new-rifle-model-close-up_482257-127883.jpg", imageAlt: "Colt AR-15 rifle platform" + reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/man-shooting-gallery-trying-out-new-rifle-model-close-up_482257-127883.jpg", imageAlt: "Colt AR-15 rifle platform", onProductClick: () => handleAddToCart("rf-002") }, { id: "sg-003", brand: "Mossberg", name: "12 Gauge Pump Action", price: "$349.99", rating: 5, - reviewCount: "634", imageSrc: "http://img.b2bpic.net/free-photo/shotgun-bullets_53876-15100.jpg", imageAlt: "Mossberg 12 gauge shotgun" + reviewCount: "634", imageSrc: "http://img.b2bpic.net/free-photo/shotgun-bullets_53876-15100.jpg", imageAlt: "Mossberg 12 gauge shotgun", onProductClick: () => handleAddToCart("sg-003") }, { id: "acc-004", brand: "Holosun", name: "Red Dot Optic", price: "$199.99", rating: 5, - reviewCount: "2.1k", imageSrc: "http://img.b2bpic.net/free-photo/micro-pipette-dropping-blood-sample-microscope-tray-genetic-analysis-science-laboratory-specialist-using-dropper-microscopic-tool-with-lens-magnifying-glass-close-up_482257-30159.jpg", imageAlt: "Holosun red dot sight" + reviewCount: "2.1k", imageSrc: "http://img.b2bpic.net/free-photo/micro-pipette-dropping-blood-sample-microscope-tray-genetic-analysis-science-laboratory-specialist-using-dropper-microscopic-tool-with-lens-magnifying-glass-close-up_482257-30159.jpg", imageAlt: "Holosun red dot sight", onProductClick: () => handleAddToCart("acc-004") } ]} gridVariant="two-columns-alternating-heights" @@ -115,19 +134,19 @@ export default function LandingPage() {
@@ -135,25 +154,25 @@ export default function LandingPage() {
@@ -174,14 +193,14 @@ export default function LandingPage() { @@ -192,14 +211,14 @@ export default function LandingPage() { columns={[ { items: [ - { label: "Inventory", href: "#inventory" }, + { label: "Shop Inventory", href: "#inventory" }, { label: "FFL Transfers", href: "#ffl" }, - { label: "Contact Us", href: "#contact" } + { label: "Customer Reviews", href: "#testimonials" } ] }, { items: [ - { label: "Legal Compliance", href: "#legal" }, + { label: "Legal & Compliance", href: "#legal" }, { label: "Privacy Policy", href: "#" }, { label: "Terms of Service", href: "#" } ] @@ -207,7 +226,7 @@ export default function LandingPage() { { items: [ { label: "Woodville, Texas", href: "#" }, - { label: "Licensed FFL Dealer", href: "#" }, + { label: "Licensed FFL #TX-12345", href: "#" }, { label: "Federal Firearms Licensed", href: "#" } ] } diff --git a/src/app/shop/page.tsx b/src/app/shop/page.tsx new file mode 100644 index 0000000..6d5e0a2 --- /dev/null +++ b/src/app/shop/page.tsx @@ -0,0 +1,154 @@ +"use client"; + +import { useState } from "react"; +import { Search, Filter, ShoppingCart } from "lucide-react"; + +const products = [ + { + id: "hg-001", category: "Handguns", brand: "Smith & Wesson", name: "9mm M&P Shield", price: 499.99, + rating: 5, + reviews: 847, + image: "http://img.b2bpic.net/free-photo/empty-bullets-gun-table_53876-148180.jpg", inStock: true, + description: "Compact, lightweight 9mm handgun perfect for concealed carry" + }, + { + id: "rf-002", category: "Rifles", brand: "Colt", name: ".223 AR-15 Rifle", price: 899.99, + rating: 5, + reviews: 1200, + image: "http://img.b2bpic.net/free-photo/man-shooting-gallery-trying-out-new-rifle-model-close-up_482257-127883.jpg", inStock: true, + description: "Versatile AR-15 platform in 5.56 NATO/.223 Remington" + }, + { + id: "sg-003", category: "Shotguns", brand: "Mossberg", name: "12 Gauge Pump Action", price: 349.99, + rating: 5, + reviews: 634, + image: "http://img.b2bpic.net/free-photo/shotgun-bullets_53876-15100.jpg", inStock: true, + description: "Reliable 12 gauge pump action for hunting and sport shooting" + }, + { + id: "acc-004", category: "Accessories", brand: "Holosun", name: "Red Dot Optic", price: 199.99, + rating: 5, + reviews: 2100, + image: "http://img.b2bpic.net/free-photo/micro-pipette-dropping-blood-sample-microscope-tray-genetic-analysis-science-laboratory-specialist-using-dropper-microscopic-tool-with-lens-magnifying-glass-close-up_482257-30159.jpg", inStock: true, + description: "Quality red dot sight for accurate target acquisition" + } +]; + +const categories = ["All", "Handguns", "Rifles", "Shotguns", "Accessories"]; + +export default function ShopPage() { + const [selectedCategory, setSelectedCategory] = useState("All"); + const [searchQuery, setSearchQuery] = useState(""); + const [cartItems, setCartItems] = useState<{ id: string; quantity: number }[]>([]); + + const filteredProducts = products.filter(product => { + const categoryMatch = selectedCategory === "All" || product.category === selectedCategory; + const searchMatch = product.name.toLowerCase().includes(searchQuery.toLowerCase()) || + product.brand.toLowerCase().includes(searchQuery.toLowerCase()); + return categoryMatch && searchMatch; + }); + + const addToCart = (productId: string) => { + setCartItems(prev => { + const existing = prev.find(item => item.id === productId); + if (existing) { + return prev.map(item => + item.id === productId ? { ...item, quantity: item.quantity + 1 } : item + ); + } else { + return [...prev, { id: productId, quantity: 1 }]; + } + }); + }; + + return ( +
+ {/* Header */} +
+
+

Shop Firearms & Accessories

+

Browse our complete inventory of quality firearms and gear

+
+
+ +
+ {/* Search and Filter */} +
+
+
+ + setSearchQuery(e.target.value)} + className="w-full pl-10 pr-4 py-2 border border-slate-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-amber-500" + /> +
+ +
+ + {/* Category Filter */} +
+ {categories.map(category => ( + + ))} +
+
+ + {/* Products Grid */} +
+ {filteredProducts.map(product => ( +
+ {product.name} +
+

{product.brand}

+

{product.name}

+

{product.description}

+
+ ${product.price} + ⭐ {product.reviews} reviews +
+ +
+
+ ))} +
+ + {/* Compliance Notice */} +
+

Important: All Firearm Purchases Require

+
    +
  • • Valid government-issued ID verification
  • +
  • • Federal background check (NICS)
  • +
  • • Compliance with all federal, state, and local regulations
  • +
  • • Applicable waiting periods may apply
  • +
+
+
+
+ ); +}