mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-14 12:14:33 +01:00
32 lines
577 B
Vue
32 lines
577 B
Vue
<script lang="ts" setup>
|
|
useHead({
|
|
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.ico' }],
|
|
title: 'ArtHome by Arthur Danjou',
|
|
})
|
|
|
|
const { loggedIn } = await useUserSession()
|
|
|
|
watch(loggedIn, async () => {
|
|
if (!loggedIn.value) {
|
|
navigateTo('/login')
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<NuxtLoadingIndicator color="#808080" />
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
<UNotifications />
|
|
</div>
|
|
</template>
|
|
|
|
<style>
|
|
body {
|
|
font-family: 'DM Sans', sans-serif;
|
|
@apply h-full w-full text-neutral-700 dark:text-neutral-300;
|
|
}
|
|
</style>
|