docs: site hero img dimensions (#9840)

prevents layout shift
pull/9845/head
Simon H 2 years ago committed by GitHub
parent 2f71c16a43
commit f91b85bf01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,12 +23,12 @@
</div> </div>
<picture class="machine"> <picture class="machine">
<source srcset={MachineDesktop.sources.avif} type="image/avif" media="(min-width: 800px)" /> <source srcset={MachineDesktop.sources.avif} width="3795" height="993" type="image/avif" media="(min-width: 800px)" />
<source srcset={MachineDesktop.sources.webp} type="image/webp" media="(min-width: 800px)" /> <source srcset={MachineDesktop.sources.webp} width="3795" height="993" type="image/webp" media="(min-width: 800px)" />
<source srcset={MachineDesktop.sources.png} type="image/png" media="(min-width: 800px)" /> <source srcset={MachineDesktop.sources.png} width="3795" height="993" type="image/png" media="(min-width: 800px)" />
<source srcset={MachineMobile.sources.avif} type="image/avif" /> <source srcset={MachineMobile.sources.avif} width="2208" height="936" type="image/avif" />
<source srcset={MachineMobile.sources.webp} type="image/webp" /> <source srcset={MachineMobile.sources.webp} width="2208" height="936" type="image/webp" />
<source srcset={MachineMobile.sources.png} type="image/png" /> <source srcset={MachineMobile.sources.png} width="2208" height="936" type="image/png" />
<img alt="The Svelte compiler packaging up your component code" src={MachineMobile.img.src} /> <img alt="The Svelte compiler packaging up your component code" src={MachineMobile.img.src} />
</picture> </picture>
</div> </div>

Loading…
Cancel
Save