Client - add navbar component

This commit is contained in:
Sam 2021-07-25 13:03:34 +02:00
parent 23c4708217
commit 433f6bfd52
2 changed files with 29 additions and 4 deletions

View File

@ -1,11 +1,20 @@
<template>
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
<NavBar />
<router-view />
</template>
<script lang="ts">
import { defineComponent } from "vue";
import NavBar from "@/components/NavBar.vue";
export default defineComponent({
name: "App",
components: {
NavBar,
},
});
</script>
<style lang="scss">
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;

View File

@ -0,0 +1,16 @@
<template>
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
name: "NavBar",
});
</script>
<style scoped></style>