2 Commits

View File

@@ -43,7 +43,7 @@ const HeroOverlay = ({
tag,
tagIcon,
buttons,
imageSrc,
imageSrc = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80",
videoSrc,
imageAlt = "",
videoAriaLabel = "Hero video",
@@ -69,10 +69,11 @@ const HeroOverlay = ({
<section
aria-label={ariaLabel}
className={cls("relative w-full h-svh overflow-hidden flex flex-col justify-end", className)}
style={{ backgroundImage: `url(${imageSrc})` }}
>
<div className={cls("absolute inset-0 w-full h-full", mediaWrapperClassName)}>
{showDimOverlay && (
<div className={cls("absolute top-0 left-0 w-full h-full bg-background/20 pointer-events-none select-none", dimOverlayClassName)} />
<div className={cls("absolute top-0 left-0 w-full h-full bg-green-500/20 pointer-events-none select-none", dimOverlayClassName)} />
)}
<MediaContent
imageSrc={imageSrc}