elk/components/account/AccountHoverCard.vue

28 lines
898 B
Vue
Raw Normal View History

<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
account: Account
}>()
</script>
<template>
2022-11-27 03:54:46 +00:00
<div rounded w-80 z-900 overflow-hidden p-4>
<AccountInfo :account="account" />
<div text-sm flex flex-row text-secondary mt-4>
2022-11-26 16:42:53 +00:00
<NuxtLink :to="`/${getFullHandle(account)}/`">
{{ formattedNumber(account.statusesCount) }} Posts
</NuxtLink>
<span flex-1 text-center> </span>
2022-11-26 16:42:53 +00:00
<NuxtLink :to="`/${getFullHandle(account)}/following`">
{{ humanReadableNumber(account.followingCount) }} Following
</NuxtLink>
<span flex-1 text-center> </span>
2022-11-26 16:42:53 +00:00
<NuxtLink :to="`/${getFullHandle(account)}/followers`">
{{ humanReadableNumber(account.followersCount) }} Followers
</NuxtLink>
</div>
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
</div>
</template>