@@ -153,7 +153,7 @@ export function Slideshow({ slides, playOnInit = true, interval = 5000, classNam
153153 return (
154154 < section
155155 className = { clsx (
156- 'relative h-[80vh] bg-[var(--slideshow-background,color-mix(in_oklab,hsl(var(--primary)),black_75%))] @container ' ,
156+ '@container relative h-[80vh] bg-[var(--slideshow-background,color-mix(in_oklab,hsl(var(--primary)),black_75%))]' ,
157157 className ,
158158 ) }
159159 >
@@ -166,19 +166,19 @@ export function Slideshow({ slides, playOnInit = true, interval = 5000, classNam
166166 className = "relative h-full w-full min-w-0 shrink-0 grow-0 basis-full"
167167 key = { idx }
168168 >
169- < div className = "bg-linear-to-t absolute inset-x-0 bottom-0 z-10 from-[var(--slideshow-mask,hsl(var(--foreground)/80%))] to-transparent" >
170- < div className = "max-w-(--breakpoint-2xl) mx-auto w-full text-balance px-4 pb-16 pt-12 @xl:px-6 @xl:pb-20 @xl:pt-16 @4xl:px-8 @4xl:pt-20" >
171- < h1 className = "m-0 max-w-xl font-[family-name:var(--slideshow-title-font-family,var(--font-family-heading))] text-4xl font-medium leading-none text-[var(--slideshow-title,hsl(var(--background)))] @2xl:text-5xl @2xl:leading-[.9] @4xl:text-6xl " >
169+ < div className = "absolute inset-x-0 bottom-0 z-10 bg-gradient-to-t from-[var(--slideshow-mask,hsl(var(--foreground)/80%))] to-transparent" >
170+ < div className = "max-w-(--breakpoint-2xl) @xl:px-6 @xl:pb-20 @xl:pt-16 @4xl:px-8 @4xl:pt-20 mx-auto w-full text-balance px-4 pb-16 pt-12 " >
171+ < h1 className = "@2xl:text-5xl @2xl:leading-[.9] @4xl:text-6xl m-0 max-w-xl font-[family-name:var(--slideshow-title-font-family,var(--font-family-heading))] text-4xl font-medium leading-none text-[var(--slideshow-title,hsl(var(--background)))]" >
172172 { title }
173173 </ h1 >
174174 { showDescription && (
175- < p className = "mt-2 max-w-xl font-[family-name:var(--slideshow-description-font-family,var(--font-family-body))] text-base leading-normal text-[var(--slideshow-description,hsl(var(--background)/80%))] @xl:mt-3 @xl:text-lg " >
175+ < p className = "@xl: mt-3 @xl:text-lg mt- 2 max-w-xl font-[family-name:var(--slideshow-description-font-family,var(--font-family-body))] text-base leading-normal text-[var(--slideshow-description,hsl(var(--background)/80%))]" >
176176 { description }
177177 </ p >
178178 ) }
179179 { showCta && (
180180 < ButtonLink
181- className = "mt-6 @xl:mt-8"
181+ className = "@xl:mt-8 mt-6 "
182182 href = { cta ?. href ?? '#' }
183183 shape = { cta ?. shape ?? 'pill' }
184184 size = { cta ?. size ?? 'large' }
@@ -212,7 +212,7 @@ export function Slideshow({ slides, playOnInit = true, interval = 5000, classNam
212212 </ div >
213213
214214 { /* Controls */ }
215- < div className = "max-w-(--breakpoint-2xl) absolute bottom-4 left-1/2 flex w-full -translate-x-1/2 flex-wrap items-center px-4 @xl:bottom-6 @xl:px-6 @4xl:px-8 " >
215+ < div className = "max-w-(--breakpoint-2xl) @xl:bottom-6 @xl:px-6 @4xl:px-8 absolute bottom-4 left-1/2 flex w-full -translate-x-1/2 flex-wrap items-center px-4" >
216216 { /* Progress Buttons */ }
217217 { scrollSnaps . map ( ( _ : number , index : number ) => {
218218 return (
@@ -230,11 +230,11 @@ export function Slideshow({ slides, playOnInit = true, interval = 5000, classNam
230230 < div
231231 className = { clsx (
232232 'absolute h-0.5 bg-[var(--slideshow-pagination,hsl(var(--background)))]' ,
233- 'opacity-0 fill-mode-forwards' ,
233+ 'fill-mode-forwards opacity-0 ' ,
234234 isPlaying ? 'running' : 'paused' ,
235235 index === selectedIndex
236- ? 'opacity-100 ease-linear animate-in slide-in-from-left'
237- : 'ease -out animate -out fade -out' ,
236+ ? 'animate-in slide-in-from-left opacity-100 ease-linear '
237+ : 'animate -out fade -out ease -out' ,
238238 ) }
239239 key = { `progress-${ playCount } ` } // Force the animation to restart when pressing "Play", to match animation with embla's autoplay timer
240240 style = { {
0 commit comments