mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
39 lines
1.3 KiB
Vue
39 lines
1.3 KiB
Vue
|
|
<template>
|
||
|
|
<div class="flex flex-col gap-2">
|
||
|
|
<div class="flex flex-row flex-wrap gap-2 *:flex *:items-center *:gap-1 *:text-muted-foreground">
|
||
|
|
<div>
|
||
|
|
<CalendarDays class="size-4" />
|
||
|
|
Joined <span class="text-primary font-semibold">{{ formattedCreationDate }}</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="flex flex-row flex-wrap gap-2 *:flex *:items-center *:gap-1 *:text-muted-foreground">
|
||
|
|
<div>
|
||
|
|
<span class="text-primary font-semibold">{{ noteCount }}</span> Notes
|
||
|
|
</div>
|
||
|
|
·
|
||
|
|
<div>
|
||
|
|
<span class="text-primary font-semibold">{{ followerCount }}</span> Followers
|
||
|
|
</div>
|
||
|
|
·
|
||
|
|
<div>
|
||
|
|
<span class="text-primary font-semibold">{{ followingCount }}</span> Following
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script lang="ts" setup>
|
||
|
|
import { CalendarDays } from "lucide-vue-next";
|
||
|
|
|
||
|
|
const { creationDate } = defineProps<{
|
||
|
|
creationDate: Date;
|
||
|
|
noteCount: number;
|
||
|
|
followerCount: number;
|
||
|
|
followingCount: number;
|
||
|
|
}>();
|
||
|
|
|
||
|
|
const formattedCreationDate = new Intl.DateTimeFormat("en-US", {
|
||
|
|
month: "long",
|
||
|
|
year: "numeric",
|
||
|
|
}).format(creationDate);
|
||
|
|
</script>
|