Set up page routing

This commit is contained in:
Maciej Pędzich 2022-06-29 09:51:44 +02:00
parent 5ea03b34bf
commit c59f1e00a1
3 changed files with 25 additions and 1 deletions

14
app.vue
View File

@ -1,3 +1,15 @@
<script setup lang="ts">
import Toast from 'primevue/toast';
</script>
<template>
<h1>Hello World!</h1>
<div class="w-full h-full flex flex-column">
<NavBar />
<main class="flex-1">
<NuxtPage />
</main>
<ClientOnly>
<Toast position="bottom-right" />
</ClientOnly>
</div>
</template>

View File

@ -0,0 +1,7 @@
<template>
<div
class="w-full h-full flex flex-column justify-content-center align-items-center text-center"
>
<slot></slot>
</div>
</template>

5
pages/index.vue Normal file
View File

@ -0,0 +1,5 @@
<template>
<NuxtLayout name="centered-content">
<div class="font-bold text-6xl">Spotify Playlist Archive</div>
</NuxtLayout>
</template>