frontend/pages/notifications.vue
2024-05-11 17:42:24 -10:00

28 lines
1.1 KiB
Vue

<template>
<ClientOnly>
<OverlayScrollbarsComponent :defer="true" class="max-h-dvh overflow-y-auto">
<div class="shrink-0 p-10 h-dvh" v-if="!tokenData">
<button type="button"
class="relative block h-full w-full rounded-lg border-2 border-dashed border-dark-300 p-12 text-center">
<Icon name="tabler:notification" class="mx-auto h-12 w-12 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>
</div>
<TimelinesTimelineScroller v-else>
<TimelinesNotifications />
</TimelinesTimelineScroller>
</OverlayScrollbarsComponent>
</ClientOnly>
</template>
<script lang="ts" setup>
import { OverlayScrollbarsComponent } from "#imports";
definePageMeta({
layout: "app",
});
const tokenData = useTokenData();
</script>