src/lib/components/Profile.svelte (view raw)
1<script lang="ts">
2 import { getProfile } from "../solid";
3</script>
4
5<div>
6 {#await getProfile()}
7 Chargement...
8 {:then profile}
9 <div class="flex items-center gap-2">
10 <a href={profile?.webId} target="_blank">{profile?.name}</a>
11 {#if profile?.image}
12 <img class="w-8 rounded-full" src={profile.image} alt={profile.webId} />
13 {/if}
14 </div>
15 {/await}
16</div>