✨ Posts
This commit is contained in:
@ -8,22 +8,27 @@
|
||||
image="/favicon.svg"
|
||||
></v-avatar>
|
||||
|
||||
<nuxt-link v-for="link in navbars" :to="link.to">
|
||||
<v-btn variant="text">{{ link.label }}</v-btn>
|
||||
</nuxt-link>
|
||||
<v-btn v-for="link in navbars" variant="text" :href="link.to">
|
||||
{{ link.label }}
|
||||
</v-btn>
|
||||
|
||||
<v-spacer></v-spacer>
|
||||
</v-container>
|
||||
</v-app-bar>
|
||||
|
||||
<v-main class="bg-grey-lighten-3 min-h-[calc(100vh - 64px)]">
|
||||
<slot />
|
||||
<suspense>
|
||||
<slot />
|
||||
</suspense>
|
||||
</v-main>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import RouterLink from "~/components/RouterLink.vue";
|
||||
|
||||
const navbars = [
|
||||
{ label: "Home", to: "/" },
|
||||
{ label: "Posts", to: "/posts" },
|
||||
{ label: "Products", to: "/products" },
|
||||
];
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user