frontend/pages/notifications.vue

41 lines
1.3 KiB
Vue
Raw Normal View History

<template>
<div class="mx-auto max-w-2xl w-full">
<div class="shrink-0 p-10 h-dvh" v-if="!identity">
<button type="button"
class="relative block h-full w-full rounded-lg border-2 border-dashed border-dark-300 p-12 text-center">
<iconify-icon name="tabler:notification" width="3rem" height="3rem" class="mx-auto text-gray-400" />
<span class="mt-3 block text-sm font-semibold text-gray-200 max-w-56 mx-auto">Notifications
will
appear here
when you
sign in</span>
</button>
2024-05-12 07:26:29 +02:00
</div>
<TimelineScroller v-else>
<div class="rounded overflow-hidden">
<Notifications />
</div>
</TimelineScroller>
</div>
</template>
<script lang="ts" setup>
import Notifications from "~/components/timelines/notifications.vue";
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
import * as m from "~/paraglide/messages.js";
useHead({
title: m.that_patchy_mare_snip(),
});
definePageMeta({
layout: "app",
2024-12-07 23:05:26 +01:00
breadcrumbs: () => [
{
text: m.that_patchy_mare_snip(),
href: "/notifications",
},
],
requiresAuth: true,
});
</script>