Something went wrong. Try again.
An all-affirming social network based on the AT Protocol. nagi.suibari.com
Something went wrong. Try again.
670 B · 20 lines
Svelte
at main
123456789101112131415161718192021<script lang="ts"> import { session, oauthReady } from '$lib/oauth/session.svelte'; import { m } from '$lib/i18n/i18n.svelte'; import Avatar from '../Avatar.svelte'; import { myProfile } from '$lib/profile/me.svelte'; let me = $derived(myProfile.current);</script>
<header class="mobile-top"> <a class="brand" href="/" aria-label="Nagi home" ><img class="mark" src="/nagi_icon.png" alt="" /><span>Nagi</span></a > {#if $session} <a class="mobile-profile" href={`/profile/${$session.did}`} aria-label={m.myProfileAria()} ><Avatar actor={me} size="small" /></a > {:else if $oauthReady} <a class="login" href="/login">{m.login()}</a> {/if}</header>