Created keret
This commit is contained in:
58
src/App.vue
58
src/App.vue
@@ -1,32 +1,50 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<div id="nav">
|
||||
<router-link to="/">Home</router-link> |
|
||||
<router-link to="/about">About</router-link>
|
||||
|
||||
<navbar/>
|
||||
|
||||
<div id="content">
|
||||
<b-container>
|
||||
<router-view/>
|
||||
</b-container>
|
||||
</div>
|
||||
<router-view/>
|
||||
|
||||
<div id="footer">
|
||||
<b-container>
|
||||
<footer-content/>
|
||||
</b-container>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Navbar from "@/components/Navbar";
|
||||
import FooterContent from "@/components/FooterContent";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
FooterContent,
|
||||
Navbar
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#content {
|
||||
margin-top: 70px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#app {
|
||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-align: center;
|
||||
color: #2c3e50;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
#nav {
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
#nav a {
|
||||
font-weight: bold;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
#nav a.router-link-exact-active {
|
||||
color: #42b983;
|
||||
#footer {
|
||||
padding: 1em;
|
||||
margin-top: auto;
|
||||
background: #E9ECEF;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user