All pages now in Nuxt, work next on nav.
DB connected, check issues with writing. Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
f9e7e5480c
commit
14659122c3
17 changed files with 375 additions and 56 deletions
22
pages/dash/index.vue
Normal file
22
pages/dash/index.vue
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<script setup lang="ts">
|
||||
const router = useRouter()
|
||||
definePageMeta({
|
||||
middleware: 'auth'
|
||||
})
|
||||
|
||||
async function logout() {
|
||||
router.push('/login')
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="grid h-screen place-items-center">
|
||||
<div class="grid place-items-center">
|
||||
<h1 class="text-6xl font-bold underline">Vänner Bästa | Dash</h1>
|
||||
<div class="mt-10 mx-4 place-items-center">
|
||||
<p>Logged in as {{ user?.user_metadata?.full_name }}</p>
|
||||
<button @click="logout" >Logout</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue