-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathapp.vue
35 lines (32 loc) · 947 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<script setup>
useSeoMeta({
title: "A simple Nuxt app listing popular web development frameworks",
description: "A simple Nuxt app that lists items from a Turso database",
});
</script>
<template>
<nav class="py-2 px-4 flex space-x-2">
<NuxtLink to="/" class="font-semibold" title="home page">Home</NuxtLink>
<NuxtLink to="/add-new" class="font-semibold" title="add-new page"
>Add New</NuxtLink
>
<NuxtLink to="/about" class="font-semibold" title="about page"
>About</NuxtLink
>
</nav>
<main class="p-4 flex flex-col space-y-6">
<NuxtPage />
<div class="text-gray-400 text-center pt-6">
Built with <a href="https://nuxt.com" title="Nuxt">Nuxt</a> and
<a href="https://turso.tech" title="Turso">Turso</a>.
</div>
</main>
</template>
<style lang="postcss">
a {
@apply text-blue-600 hover:text-blue-700;
}
h1 {
@apply text-2xl font-bold text-center text-gray-700;
}
</style>