Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 120a8a26be | |||
| 06204cfc23 |
@@ -43,7 +43,7 @@ const HeroOverlay = ({
|
|||||||
tag,
|
tag,
|
||||||
tagIcon,
|
tagIcon,
|
||||||
buttons,
|
buttons,
|
||||||
imageSrc,
|
imageSrc = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80",
|
||||||
videoSrc,
|
videoSrc,
|
||||||
imageAlt = "",
|
imageAlt = "",
|
||||||
videoAriaLabel = "Hero video",
|
videoAriaLabel = "Hero video",
|
||||||
@@ -69,10 +69,11 @@ const HeroOverlay = ({
|
|||||||
<section
|
<section
|
||||||
aria-label={ariaLabel}
|
aria-label={ariaLabel}
|
||||||
className={cls("relative w-full h-svh overflow-hidden flex flex-col justify-end", className)}
|
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)}>
|
<div className={cls("absolute inset-0 w-full h-full", mediaWrapperClassName)}>
|
||||||
{showDimOverlay && (
|
{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
|
<MediaContent
|
||||||
imageSrc={imageSrc}
|
imageSrc={imageSrc}
|
||||||
|
|||||||
Reference in New Issue
Block a user