From bb3e4c1f9c306e6d02246e15d304c78552c1f0a0 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 21:40:24 +0000 Subject: [PATCH] Reverted to commit f66675d6e6dc3f7cdaac94bb97b25b126179e0fd --- src/pages/Index.tsx | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) 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 */}