diff --git a/src/components/HeroSection.tsx b/src/components/HeroSection.tsx index 61cf1c3..7193ca0 100644 --- a/src/components/HeroSection.tsx +++ b/src/components/HeroSection.tsx @@ -1,5 +1,6 @@ 'use client' +import { useState } from 'react' import { motion } from 'framer-motion' import { ChevronDown } from 'lucide-react' @@ -8,6 +9,8 @@ interface HeroSectionProps { } export default function HeroSection({ heroPhoto }: HeroSectionProps) { + const [imageLoaded, setImageLoaded] = useState(false) + return (
{/* Background */} @@ -16,7 +19,9 @@ export default function HeroSection({ heroPhoto }: HeroSectionProps) { Maria Malejka setImageLoaded(true)} />
{/* Grain overlay */}