This commit is contained in:
gpt-engineer-app[bot]
2026-01-27 21:59:17 +00:00
parent 5b94b92de3
commit 03e05c0511
+7 -12
View File
@@ -3,18 +3,13 @@ import heroBakeryImage from "@/assets/hero-bakery.jpg";
const HeroSection = () => { const HeroSection = () => {
return ( return (
<section <section className="relative left-1/2 w-screen -translate-x-1/2 overflow-x-clip flex flex-col justify-center items-center text-center min-h-[70vh]">
className="relative flex flex-col justify-center items-center text-center min-h-[70vh] w-screen" {/* Background image with opacity (doesn't affect content) */}
style={{ <div
backgroundImage: `url(${heroBakeryImage})`, className="pointer-events-none absolute inset-0 bg-cover bg-center opacity-40"
backgroundSize: 'cover', style={{ backgroundImage: `url(${heroBakeryImage})` }}
backgroundPosition: 'center', />
backgroundRepeat: 'no-repeat', <div className="pointer-events-none absolute inset-0 bg-background/60" />
backgroundColor: '#8b5a2b'
}}
>
{/* Overlay for opacity effect */}
<div className="absolute inset-0 bg-background/60" />
<div className="animate-fade-up max-w-4xl relative z-10 px-6 py-16"> <div className="animate-fade-up max-w-4xl relative z-10 px-6 py-16">
<img <img