This commit is contained in:
gpt-engineer-app[bot]
2026-01-27 21:44:44 +00:00
parent b51a579385
commit 02ff6ccfea
+22 -6
View File
@@ -3,15 +3,31 @@ import heroBakeryImage from "@/assets/hero-bakery.jpg";
const HeroSection = () => { const HeroSection = () => {
return ( return (
<section className="relative flex flex-col justify-center items-center text-center py-16 pt-20 pb-12 w-screen max-w-none -mx-[50vw] left-1/2 right-1/2 ml-[-50vw] mr-[-50vw]"> <section className="relative flex flex-col justify-center items-center text-center py-16 pt-20 pb-12 overflow-visible">
{/* Background image with opacity - full width */} {/* Background image with opacity - full viewport width */}
<div <div
className="absolute inset-0 bg-cover bg-center opacity-40" className="absolute top-0 bottom-0 opacity-40 bg-cover bg-center"
style={{ backgroundImage: `url(${heroBakeryImage})` }} style={{
backgroundImage: `url(${heroBakeryImage})`,
left: '50%',
right: '50%',
marginLeft: '-50vw',
marginRight: '-50vw',
width: '100vw'
}}
/>
<div
className="absolute top-0 bottom-0 bg-background/60"
style={{
left: '50%',
right: '50%',
marginLeft: '-50vw',
marginRight: '-50vw',
width: '100vw'
}}
/> />
<div className="absolute inset-0 bg-background/60" />
<div className="animate-fade-up max-w-4xl relative z-10"> <div className="animate-fade-up max-w-4xl relative z-10 px-6">
<img <img
src={logoImage} src={logoImage}
alt="Lennart Svensson Konditorivaror" alt="Lennart Svensson Konditorivaror"