mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
feat: ✨ Add multi-account support, more options for posts, UI improvements
This commit is contained in:
parent
48954baf06
commit
ef9a6f1da4
36 changed files with 649 additions and 344 deletions
|
|
@ -1,27 +1,27 @@
|
|||
<template>
|
||||
<ClientOnly>
|
||||
<div v-if="me" class="bg-dark-800 p-6 my-5 rounded ring-1 ring-white/5">
|
||||
<div class="sm:flex sm:items-center sm:justify-between">
|
||||
<div class="sm:flex sm:space-x-5">
|
||||
<AvatarsCentered :src="me.avatar"
|
||||
<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"
|
||||
class="mx-auto shrink-0 size-20 rounded overflow-hidden ring-1 ring-white/10" />
|
||||
<div class="mt-4 text-center sm:mt-0 sm:pt-1 sm:text-left">
|
||||
<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">
|
||||
<p class="text-sm font-medium text-gray-300">Welcome back,</p>
|
||||
<p class="text-xl font-bold text-gray-50 sm:text-2xl line-clamp-1"
|
||||
v-html="useParsedContent(me.display_name, []).value"></p>
|
||||
<p class="text-sm font-medium text-gray-500">@{{ me.acct }}</p>
|
||||
v-html="useParsedContent(identity.account.display_name, []).value"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-5 flex justify-center sm:mt-0">
|
||||
<!-- <div class="mt-5 flex justify-center sm:mt-0">
|
||||
<ButtonsSecondary @click="useEvent('composer:open')">
|
||||
Compose
|
||||
</ButtonsSecondary>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</ClientOnly>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const me = useMe();
|
||||
const identity = useCurrentIdentity();
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue