1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 08:29:57 +00:00
elk/components/account/AccountHoverCard.vue

28 lines
883 B
Vue
Raw Normal View History

<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
account: Account
}>()
</script>
<template>
<div bg-base border="~ base" rounded w-80 z-900 overflow-hidden p-4 class="account-hover-card">
<AccountInfo :account="account" />
<div text-sm flex flex-row text-gray mt-4>
2022-11-25 17:50:03 +00:00
<NuxtLink :to="`/${getShortHandle(account)}/`">
{{ account.statusesCount }} Posts
</NuxtLink>
<span flex-1 text-center> </span>
2022-11-25 17:50:03 +00:00
<NuxtLink :to="`/${getShortHandle(account)}/following`">
{{ account.followingCount }} Following
</NuxtLink>
<span flex-1 text-center> </span>
2022-11-25 17:50:03 +00:00
<NuxtLink :to="`/${getShortHandle(account)}/followers`">
{{ account.followersCount }} Followers
</NuxtLink>
</div>
<ContentRich text-4 text-gray :content="account.note" :emojis="account.emojis" />
</div>
</template>