header created

This commit is contained in:
Tim Zieger 2020-04-19 11:35:25 +02:00
parent d1f153cb71
commit 210861d343
4 changed files with 84 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<template>
<div id="app">
<Header />
<router-view />
<Footer />
@ -9,20 +9,23 @@
<script>
import Footer from './components/layout/Footer'
import Footer from './components/layout/Footer';
import Header from './components/layout/Header';
export default {
name:"app",
components: {
Footer
Footer,
Header
}
}
</script>
<style>
<style scoped>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}

View File

@ -0,0 +1,57 @@
<template>
<div class="header">
<div>
<img alt="Vue logo" src="../../assets/logo.png">
</div>
<div>
<u><router-link to="/login">Login</router-link></u>
</div>
</div>
</template>
<script>
export default {
name: "Header"
}
</script>
<style scoped>
.header {
display: flex;
justify-content: space-between;
background: #333;
color: #fff;
padding: 10px;
}
.header a {
float: left;
color: #fff;
padding: 10px;
text-decoration: none;
}
.header img {
float: left;
width: 30%;
height: auto;
padding: 10px;
}
.header p {
margin-left: 50%;
}
</style>

View File

@ -3,3 +3,17 @@
<h1>This is an about page</h1>
</div>
</template>
<script>
// @ is an alias to /src
export default {
name: "About",
components: {
}
};
</script>
<style scoped>
</style>

View File

@ -16,3 +16,7 @@ export default {
}
};
</script>
<style scoped>
</style>