diff --git a/src/app/page.tsx b/src/app/page.tsx index 3a5b658..9e2f9a5 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,7 +10,86 @@ import TestimonialCardFifteen from '@/components/sections/testimonial/Testimonia import FaqDouble from '@/components/sections/faq/FaqDouble'; import ContactCenter from '@/components/sections/contact/ContactCenter'; import FooterSimple from '@/components/sections/footer/FooterSimple'; -import { Award, CheckCircle, MapPin, Zap, Sparkles, Shield, ImageIcon, Calendar } from 'lucide-react'; +import { Award, CheckCircle, MapPin, Zap, Sparkles, Shield, ImageIcon, Calendar, ChevronLeft, ChevronRight } from 'lucide-react'; +import { useState } from 'react'; + +interface BeforeAfterImage { + before: string; + after: string; + alt: string; +} + +const beforeAfterImages: BeforeAfterImage[] = [ + { + before: "http://img.b2bpic.net/free-photo/luggage-seen-from-rear-car-window_23-2150934365.jpg", after: "http://img.b2bpic.net/free-photo/close-up-car-care-process_23-2149193571.jpg", alt: "Interior detailing transformation - before and after" + }, + { + before: "http://img.b2bpic.net/free-photo/close-up-driver-recharging-ev-vehicle-battery-low-angle-shot_482257-130130.jpg", after: "http://img.b2bpic.net/free-photo/male-hand-with-foam-sponge-washing-car_1157-36587.jpg", alt: "Paint correction transformation - before and after" + } +]; + +function BeforeAfterGallery() { + const [currentIndex, setCurrentIndex] = useState(0); + const [showComparison, setShowComparison] = useState(false); + + const handleNext = () => { + setCurrentIndex((prev) => (prev + 1) % beforeAfterImages.length); + setShowComparison(false); + }; + + const handlePrev = () => { + setCurrentIndex((prev) => (prev - 1 + beforeAfterImages.length) % beforeAfterImages.length); + setShowComparison(false); + }; + + const current = beforeAfterImages[currentIndex]; + + return ( +
+
+ {showComparison ? ( +
+
+ {`Before: +
+
+ {`After: +
+
+ ) : ( + {current.alt} + )} +
+ + + +
+ + + {currentIndex + 1} / {beforeAfterImages.length} + + +
+
+ ); +} export default function LandingPage() { return ( @@ -105,31 +184,23 @@ export default function LandingPage() {
- +
+
+
+
+ + Before & After Gallery +
+

+ Real Transformations +

+

+ Before and after results from our most recent projects. Every detail restored, every vehicle revitalized. +

+
+ +
+