'use client'; import { useEffect, useRef } from 'react'; import { ArrowDown } from 'lucide-react'; import { Button } from '@/components/ui/button'; export default function Hero() { const sectionRef = useRef(null); useEffect(() => { const handleMouseMove = (e: MouseEvent) => { if (!sectionRef.current) return; const { clientX, clientY } = e; const { innerWidth, innerHeight } = window; const xPercent = (clientX / innerWidth - 0.5) * 20; const yPercent = (clientY / innerHeight - 0.5) * 20; const layers = sectionRef.current.querySelectorAll('.parallax-layer'); layers.forEach((layer, index) => { const speed = (index + 1) * 0.5; (layer as HTMLElement).style.transform = `translate(${xPercent * speed}px, ${yPercent * speed}px)`; }); }; window.addEventListener('mousemove', handleMouseMove); return () => window.removeEventListener('mousemove', handleMouseMove); }, []); const scrollToSection = (id: string) => { document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' }); }; return (
Modern living room interior
{[...Array(50)].map((_, i) => (
))}

Loc' Pro & Co

Votre partenaire en sous-location immobilière

Un loyer garanti chaque mois, zéro gestion pour vous

Centre-Val de Loire Orléans • Blois Centre-Val de Loire • Orléans • Blois

); }