fix: use 16:9 home banner aspect
This commit is contained in:
@@ -239,14 +239,14 @@ export function FigmaBanner() {
|
|||||||
>
|
>
|
||||||
{slides.map((slide, index) => {
|
{slides.map((slide, index) => {
|
||||||
const image = (
|
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} />
|
<source media="(max-width: 767px)" srcSet={slide.mobile} />
|
||||||
<img
|
<img
|
||||||
src={slide.desktop}
|
src={slide.desktop}
|
||||||
alt={slide.alt}
|
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}
|
width={1280}
|
||||||
height={290}
|
height={720}
|
||||||
loading={index === 0 ? "eager" : "lazy"}
|
loading={index === 0 ? "eager" : "lazy"}
|
||||||
decoding="async"
|
decoding="async"
|
||||||
draggable={false}
|
draggable={false}
|
||||||
|
|||||||
Reference in New Issue
Block a user