created footer

This commit is contained in:
Tim Zieger 2020-04-17 10:15:09 +02:00
parent 3d2810148b
commit f4b7173066
2 changed files with 42 additions and 5 deletions

View File

@ -1,14 +1,22 @@
<template> <template>
<div id="app"> <div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link> |
<router-link :to="{name : 'Profile', params: {id:123}}">Profile</router-link>
</div>
<router-view /> <router-view />
<Footer />
</div> </div>
</template> </template>
<script>
import Footer from './components/layout/Footer'
export default {
name:"app",
components: {
Footer
}
}
</script>
<style> <style>
#app { #app {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;

View File

@ -0,0 +1,29 @@
<template>
<div class="footer">
<h3>Links</h3>
<u><router-link to="/">Home</router-link></u>
<br>
<u><router-link to="/about">About</router-link></u>
</div>
</template>
<script>
export default {
name: "Footer"
}
</script>
<style scoped>
.footer {
background: #333;
color: #fff;
text-align: center;
padding: 10px;
}
.footer a {
color: #fff;
padding-right: 5px;
text-decoration: none;
}
</style>