diff --git a/src/App.tsx b/src/App.tsx index eb0fa98..27dfd50 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,6 +10,7 @@ import { Footer } from "@/components/Footer"; import { CartDrawer } from "@/components/CartDrawer"; import { AuthModal } from "@/components/AuthModal"; import Index from "./pages/Index"; +import Products from "./pages/Products"; import NotFound from "./pages/NotFound"; const queryClient = new QueryClient(); @@ -27,6 +28,7 @@ const App = () => (
} /> + } /> {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} } /> diff --git a/src/components/CategorySidebar.tsx b/src/components/CategorySidebar.tsx index 0e39dd2..e40e348 100644 --- a/src/components/CategorySidebar.tsx +++ b/src/components/CategorySidebar.tsx @@ -1,6 +1,8 @@ +import { useState } from 'react'; import { Drill, Wrench, Cog, HardHat, Zap, Droplet, - Flame, Ruler, Package, Mountain, ChevronRight + Flame, Ruler, Package, Mountain, ChevronRight, ChevronDown, + Wind, Disc, Sparkles } from 'lucide-react'; import { categories } from '@/data/products'; @@ -20,12 +22,80 @@ const iconMap: Record> = { Ruler: Ruler, Package: Package, Mountain: Mountain, + Wind: Wind, + Disc: Disc, + Sparkles: Sparkles, }; export function CategorySidebar({ selectedCategory, onSelectCategory }: CategorySidebarProps) { + const [isMobileOpen, setIsMobileOpen] = useState(false); + + const selectedCategoryName = selectedCategory + ? categories.find(c => c.id === selectedCategory)?.name + : 'All Products'; + return (