Make hero full bleed width
Expanded HeroSection section to force full-bleed background by adding w-screen and negative left margin calc, ensuring background covers full viewport width. X-Lovable-Edit-ID: edt-f5c17cdd-e3f7-472e-a0a8-99b6b50fd852
This commit is contained in:
@@ -3,7 +3,7 @@ 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 px-6 py-16 pt-20 pb-12 overflow-hidden">
|
<section className="relative flex flex-col justify-center items-center text-center px-6 py-16 pt-20 pb-12 overflow-hidden w-screen -ml-[calc((100vw-100%)/2)]">
|
||||||
{/* Background image with opacity */}
|
{/* Background image with opacity */}
|
||||||
<div
|
<div
|
||||||
className="absolute inset-0 bg-cover bg-center opacity-40"
|
className="absolute inset-0 bg-cover bg-center opacity-40"
|
||||||
|
|||||||
Reference in New Issue
Block a user