feat(NavHeader): Supply client with avif, webp, jpeg and png options for profile picture
This commit is contained in:
parent
e6b379ca5c
commit
f7488934f2
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { Image } from "astro:assets";
|
||||
import { Picture } from "astro:assets";
|
||||
import pfp from "../img/sites/avatar.png";
|
||||
import Partition from "./Partition.astro";
|
||||
---
|
||||
|
@ -8,9 +8,10 @@ import Partition from "./Partition.astro";
|
|||
class="rounded-2xl flex flex-col shadow-xl shadow-black py-8 mb-8 items-center backdrop-blur-3xl bg-center bg-[url('/static/img/sites/avatar-ht-f.webp')]"
|
||||
style="width: 670px; border: 1px solid var(--border);"
|
||||
>
|
||||
<Image
|
||||
<Picture
|
||||
src={pfp}
|
||||
class="size-40 rounded-full shadow shadow-black m-4"
|
||||
formats={['avif', 'webp', 'jpeg']}
|
||||
alt="Arias's profile picture"
|
||||
/>
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue