diff --git a/client/src/components/home/hero-section.tsx b/client/src/components/home/hero-section.tsx index a5759c3..4baafcb 100644 --- a/client/src/components/home/hero-section.tsx +++ b/client/src/components/home/hero-section.tsx @@ -1,14 +1,30 @@ import { Link } from "wouter"; +import { useEffect, useState } from "react"; import FadiaHeroImage from "../../assets/Fadia-15.jpg"; export function HeroSection() { + const [scrollY, setScrollY] = useState(0); + + useEffect(() => { + const handleScroll = () => { + setScrollY(window.scrollY); + }; + + window.addEventListener('scroll', handleScroll); + return () => window.removeEventListener('scroll', handleScroll); + }, []); + return ( -
-
+
+