Fix hero image using Next.js Image component

This commit is contained in:
Jeff Emmett 2025-12-26 12:41:16 -05:00
parent 65d315528a
commit d38195bed9
1 changed files with 6 additions and 3 deletions

View File

@ -124,9 +124,12 @@ function Hero() {
return (
<section className="relative min-h-screen flex items-center justify-center">
{/* Background Image */}
<div
className="absolute inset-0 bg-cover bg-center bg-no-repeat"
style={{ backgroundImage: "url('/dandelion-hero.png')" }}
<Image
src="/dandelion-hero.png"
alt="Dandelion meadow in golden sunlight"
fill
priority
className="object-cover"
/>
{/* Overlay for text readability */}