fix: use 16:9 home banner aspect
This commit is contained in:
@@ -239,14 +239,14 @@ export function FigmaBanner() {
|
||||
>
|
||||
{slides.map((slide, index) => {
|
||||
const image = (
|
||||
<picture className="block w-full overflow-hidden bg-black md:rounded-xl">
|
||||
<picture className="block aspect-video w-full overflow-hidden bg-black md:rounded-xl">
|
||||
<source media="(max-width: 767px)" srcSet={slide.mobile} />
|
||||
<img
|
||||
src={slide.desktop}
|
||||
alt={slide.alt}
|
||||
className="pointer-events-none h-[219px] w-full object-cover md:h-auto"
|
||||
className="pointer-events-none h-full w-full object-cover"
|
||||
width={1280}
|
||||
height={290}
|
||||
height={720}
|
||||
loading={index === 0 ? "eager" : "lazy"}
|
||||
decoding="async"
|
||||
draggable={false}
|
||||
|
||||
Reference in New Issue
Block a user