Doc: Automatic generation of responsive images

This commit is contained in:
Laurent Cozic
2021-07-19 14:37:59 +01:00
parent ea5a296d1f
commit d4cdebafeb
14 changed files with 89 additions and 18 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

+4
View File
@@ -379,6 +379,10 @@ p,
margin-top: 40px;
}
#top-section-img img {
width: 100%;
}
.main-content {
flex: 1;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 602 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

+12 -10
View File
@@ -56,17 +56,19 @@
<a href="{{baseUrl}}/plans/" class="button-link btn-trans plans-button">Sign up with Joplin Cloud</a>
{{/showJoplinCloudLinks}}
</p>
<img
srcset="
{{imageBaseUrl}}/home-top-img.png 2388w,
{{imageBaseUrl}}/home-top-img-2x.png 4820w
"
src="{{imageBaseUrl}}/home-top-img.png"
alt=""
class="img-fluid img-center"
id="top-section-img"
/>
<picture class="img-fluid img-center" id="top-section-img">
<source type="image/webp" srcset="
{{imageBaseUrl}}/home-top-img-4x.webp 4820w,
{{imageBaseUrl}}/home-top-img-2x.webp 2388w,
{{imageBaseUrl}}/home-top-img.webp 1205w
">
<source type="image/png" srcset="
{{imageBaseUrl}}/home-top-img-2x.png 2388w,
{{imageBaseUrl}}/home-top-img.png 1205w
">
<img id="top-section-img-img" src="{{imageBaseUrl}}/home-top-img-2x.png">
</picture>
</div>
</div>
</div>