2024-04-26 07:54:02 +02:00
|
|
|
<template>
|
2024-04-29 23:21:50 +02:00
|
|
|
<div class="flex flex-col p-10 gap-4 h-full">
|
2024-04-26 07:54:02 +02:00
|
|
|
<div
|
|
|
|
|
class="aspect-video shrink-0 w-full rounded ring-white/5 bg-dark-800 shadow overflow-hidden ring-1 hover:ring-2 duration-100">
|
|
|
|
|
<img class="object-cover w-full h-full duration-150 hover:scale-[102%] ease-in-out" v-if="instance?.banner"
|
2024-04-26 08:34:57 +02:00
|
|
|
alt="Instance banner" :src="instance.banner" />
|
2024-04-26 07:54:02 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="prose prose-invert prose-sm">
|
2024-04-29 23:21:50 +02:00
|
|
|
<h1 class="text-center mb-10 mt-5">{{ instance?.title }}</h1>
|
2024-04-26 07:54:02 +02:00
|
|
|
<div v-html="description?.content"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div v-if="instance?.contact_account" class="flex flex-col gap-2 mt-auto">
|
|
|
|
|
<h2 class="text-gray-200 font-semibold uppercase text-xs">Administrator</h2>
|
|
|
|
|
<SocialElementsUsersSmallCard :account="instance.contact_account" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-04-27 03:28:12 +02:00
|
|
|
const client = useMegalodon();
|
|
|
|
|
const instance = useInstance(client);
|
|
|
|
|
const description = useExtendedDescription(client);
|
2024-04-26 07:54:02 +02:00
|
|
|
</script>
|