Change profile picture and make better netlify LM transforms

This commit is contained in:
2021-12-16 17:18:37 +01:00
parent f256ab1088
commit fae75cfd40
5 changed files with 64 additions and 12 deletions

View File

@ -1,4 +1,5 @@
<script lang="ts">
import { generateSrcSet, getNFResize } from '$lib/large-media'
import {
citeOwnerClass,
mottoClass,
@ -16,9 +17,19 @@
<picture>
<source
media="(max-width: 550px)"
srcset="images/profile-picture-portrait.jpg"
srcset={generateSrcSet('images/profile-portugal-portrait.jpg', {
width: 500,
})}
/>
<img
alt="Portrait"
srcset={generateSrcSet('images/profile-portugal-landscape.jpg', {
width: 800,
})}
src={getNFResize('images/profile-portugal-landscape.jpg', {
width: 800,
})}
/>
<img alt="My profile" src="images/profile-picture2.jpg" />
</picture>
</figure>