refactor(NavHeader.astro): ⚡ Optimise size and scale of pfp in header
set's the header to be 320x320 with a quality of 65 which get's it just under 20kb in avif
This commit is contained in:
parent
8f5c40bed5
commit
1a271786b0
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ const optimizedBackground = await getImage({src: myBackground, format: 'avif', q
|
||||||
<Picture
|
<Picture
|
||||||
src={pfp}
|
src={pfp}
|
||||||
class="size-40 rounded-full shadow shadow-black m-4"
|
class="size-40 rounded-full shadow shadow-black m-4"
|
||||||
|
width={320}
|
||||||
|
height={320}
|
||||||
|
quality={65}
|
||||||
formats={['avif', 'webp', 'jpeg']}
|
formats={['avif', 'webp', 'jpeg']}
|
||||||
alt="Arias's profile picture"
|
alt="Arias's profile picture"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue