www: use next gen image formats for illustration (#170)
@@ -77,13 +77,28 @@ function Intro() {
|
|||||||
<section
|
<section
|
||||||
class={tw`max-w-screen-sm mx-auto my-16 px(4 sm:6 md:8) space-y-4`}
|
class={tw`max-w-screen-sm mx-auto my-16 px(4 sm:6 md:8) space-y-4`}
|
||||||
>
|
>
|
||||||
<img
|
<picture>
|
||||||
src={asset("/illust.jpeg")}
|
<source
|
||||||
class={tw`w-64 mx-auto`}
|
srcset={`${asset("/illustration/2x.avif")} 2x, ${
|
||||||
width={256}
|
asset("/illustration/1x.avif")
|
||||||
height={217}
|
}`}
|
||||||
alt="deno is drinking fresh lemon squash"
|
type="image/avif"
|
||||||
/>
|
/>
|
||||||
|
<source
|
||||||
|
srcset={`${asset("/illustration/2x.webp")} 2x, ${
|
||||||
|
asset("/illustration/1x.webp")
|
||||||
|
}`}
|
||||||
|
type="image/webp"
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
src={asset("/illustration/1x.jpeg")}
|
||||||
|
srcset={`${asset("/illustration/2x.jpeg")} 2x`}
|
||||||
|
class={tw`w-64 mx-auto`}
|
||||||
|
width={800}
|
||||||
|
height={678}
|
||||||
|
alt="deno is drinking fresh lemon squash"
|
||||||
|
/>
|
||||||
|
</picture>
|
||||||
|
|
||||||
<h2 class={title}>
|
<h2 class={title}>
|
||||||
The next-gen web framework.
|
The next-gen web framework.
|
||||||
|
|||||||
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |