Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b9fae9dc4b | |||
| 338c2ffeff | |||
| aed064ca08 | |||
| 9f9b653fd6 |
@@ -44,6 +44,8 @@ interface HeroBillboardCarouselProps {
|
||||
buttons?: ButtonConfig[];
|
||||
buttonAnimation?: ButtonAnimationType;
|
||||
mediaItems: MediaItem[];
|
||||
backgroundImageSrc?: string;
|
||||
backgroundImageOpacity?: number;
|
||||
ariaLabel?: string;
|
||||
className?: string;
|
||||
containerClassName?: string;
|
||||
@@ -67,6 +69,8 @@ const HeroBillboardCarousel = ({
|
||||
buttons,
|
||||
buttonAnimation,
|
||||
mediaItems,
|
||||
backgroundImageSrc,
|
||||
backgroundImageOpacity = 0.3,
|
||||
ariaLabel = "Hero section",
|
||||
className = "",
|
||||
containerClassName = "",
|
||||
@@ -98,11 +102,24 @@ const HeroBillboardCarousel = ({
|
||||
<section
|
||||
aria-label={ariaLabel}
|
||||
className={cls(
|
||||
"relative w-full py-hero-page-padding md:h-svh md:py-0",
|
||||
"relative w-full py-hero-page-padding md:h-svh md:py-0 overflow-hidden",
|
||||
className
|
||||
)}
|
||||
>
|
||||
<HeroBackgrounds {...background} />
|
||||
{backgroundImageSrc && (
|
||||
<div
|
||||
className="absolute inset-0 z-0"
|
||||
style={{
|
||||
backgroundImage: `url('${backgroundImageSrc}')`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
opacity: backgroundImageOpacity,
|
||||
filter: 'blur(40px)',
|
||||
}}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
)}
|
||||
<div className={cls(
|
||||
"mx-auto flex flex-col gap-14 md:gap-10 relative z-10",
|
||||
"w-full md:w-content-width md:h-full md:items-center md:justify-center",
|
||||
@@ -129,7 +146,7 @@ const HeroBillboardCarousel = ({
|
||||
center={true}
|
||||
/>
|
||||
|
||||
<div className={cls("w-full -mx-[var(--content-padding)]", mediaWrapperClassName)}>
|
||||
<div className={cls("w-full -mx-[var(--content-padding)] relative z-20", mediaWrapperClassName)}>
|
||||
<AutoCarousel
|
||||
title=""
|
||||
description=""
|
||||
|
||||
Reference in New Issue
Block a user