Client - add navbar component
This commit is contained in:
		@@ -1,11 +1,20 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div id="nav">
 | 
					  <NavBar />
 | 
				
			||||||
    <router-link to="/">Home</router-link> |
 | 
					 | 
				
			||||||
    <router-link to="/about">About</router-link>
 | 
					 | 
				
			||||||
  </div>
 | 
					 | 
				
			||||||
  <router-view />
 | 
					  <router-view />
 | 
				
			||||||
</template>
 | 
					</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">
 | 
					<style lang="scss">
 | 
				
			||||||
#app {
 | 
					#app {
 | 
				
			||||||
  font-family: Avenir, Helvetica, Arial, sans-serif;
 | 
					  font-family: Avenir, Helvetica, Arial, sans-serif;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										16
									
								
								fittrackee_client/src/components/NavBar.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								fittrackee_client/src/components/NavBar.vue
									
									
									
									
									
										Normal 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>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user