2024-05-12 07:26:29 +02:00
|
|
|
<template>
|
|
|
|
|
<ClientOnly>
|
2024-06-10 05:24:55 +02:00
|
|
|
<div v-if="identity" class="bg-dark-800 z-0 p-6 my-5 relative overflow-hidden rounded ring-1 ring-white/5">
|
|
|
|
|
<div class="sm:flex sm:items-center sm:justify-between gap-3">
|
|
|
|
|
<div class="sm:flex sm:space-x-5 grow">
|
|
|
|
|
<AvatarsCentered :src="identity.account.avatar"
|
2024-05-12 07:26:29 +02:00
|
|
|
class="mx-auto shrink-0 size-20 rounded overflow-hidden ring-1 ring-white/10" />
|
2024-06-10 05:24:55 +02:00
|
|
|
<div
|
|
|
|
|
class="mt-4 text-center flex flex-col justify-center sm:mt-0 sm:text-left bg-dark-800 py-2 px-4 rounded grow ring-1 ring-white/10">
|
2024-05-12 07:26:29 +02:00
|
|
|
<p class="text-sm font-medium text-gray-300">Welcome back,</p>
|
2024-05-13 07:17:46 +02:00
|
|
|
<p class="text-xl font-bold text-gray-50 sm:text-2xl line-clamp-1"
|
2024-06-10 05:24:55 +02:00
|
|
|
v-html="useParsedContent(identity.account.display_name, []).value"></p>
|
2024-05-12 07:26:29 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-06-10 05:24:55 +02:00
|
|
|
<!-- <div class="mt-5 flex justify-center sm:mt-0">
|
2024-05-12 07:26:29 +02:00
|
|
|
<ButtonsSecondary @click="useEvent('composer:open')">
|
|
|
|
|
Compose
|
|
|
|
|
</ButtonsSecondary>
|
2024-06-10 05:24:55 +02:00
|
|
|
</div> -->
|
2024-05-12 07:26:29 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ClientOnly>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-06-10 05:24:55 +02:00
|
|
|
const identity = useCurrentIdentity();
|
2024-05-12 07:26:29 +02:00
|
|
|
</script>
|