diff --git a/components/HeroSection.tsx b/components/HeroSection.tsx index 7f2bf58..194cf84 100644 --- a/components/HeroSection.tsx +++ b/components/HeroSection.tsx @@ -2,34 +2,9 @@ import { useBackgroundImage } from "@/hooks/usePreferences"; import Link from "next/link"; -import { useState, useEffect, useRef } from "react"; export default function HeroSection() { const backgroundImage = useBackgroundImage("home", "/got-2.jpg"); - const titleRef = useRef(null); - const [mousePosition, setMousePosition] = useState({ x: 50, y: 50 }); - - useEffect(() => { - const handleMouseMove = (e: MouseEvent) => { - if (titleRef.current) { - const rect = titleRef.current.getBoundingClientRect(); - const x = ((e.clientX - rect.left) / rect.width) * 100; - const y = ((e.clientY - rect.top) / rect.height) * 100; - setMousePosition({ - x: Math.max(0, Math.min(100, x)), - y: Math.max(0, Math.min(100, y)), - }); - } - }; - - window.addEventListener("mousemove", handleMouseMove); - return () => window.removeEventListener("mousemove", handleMouseMove); - }, []); - - // Calculer la position du gradient basée sur la souris avec plus d'amplitude - const gradientPosition = mousePosition.x; - const glowIntensity = 12 + mousePosition.x / 5; - const glowOpacity = 0.4 + mousePosition.y / 250; return (
@@ -50,44 +25,19 @@ export default function HeroSection() {

GAME.OF.TECH - {/* Glow effect qui suit la souris */} -