diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 9081136..b9d757c 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -1,4 +1,4 @@ -import { useState, useMemo, useEffect, useRef } from 'react'; +import { useState, useMemo, useEffect } from 'react'; import { SearchBar } from '@/components/SearchBar'; import { CategorySidebar } from '@/components/CategorySidebar'; import { ProductCard } from '@/components/ProductCard'; @@ -6,7 +6,6 @@ import { FeatureBar } from '@/components/FeatureBar'; import { QuoteRequestForm } from '@/components/QuoteRequestForm'; import { products } from '@/data/products'; import heroBg from '@/assets/hero-banner.png'; -import { ChevronDown } from 'lucide-react'; import Fuse from 'fuse.js'; // Animated counter hook @@ -34,11 +33,6 @@ function useAnimatedCounter(end: number, duration: number = 2000) { const Index = () => { const [selectedCategory, setSelectedCategory] = useState(null); const [searchQuery, setSearchQuery] = useState(''); - const shopRef = useRef(null); - - const scrollToShop = () => { - shopRef.current?.scrollIntoView({ behavior: 'smooth' }); - }; // Animated stats const productsCount = useAnimatedCounter(1000, 2000); @@ -79,18 +73,9 @@ const Index = () => { return
{/* Hero Image - Full width with aspect ratio */} -
- {/* Shop Now Button */} - -
+ }} /> {/* Animated Stats Bar - Bottom of hero */}
@@ -117,7 +102,7 @@ const Index = () => { {/* Main Content: Categories + Products */} -
+
{/* Category Sidebar - Sticky */}