This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
vuejs_course/2021-03-19_axios-01-start/src/components/header/header.vue

71 lines
1.1 KiB
Vue

<template>
<header id="header">
<div class="logo">
<router-link to="/">Vue - Complete Guide</router-link>
</div>
<nav>
<ul>
<li>
<router-link to="/signup">Sign Up</router-link>
</li>
<li>
<router-link to="/signin">Sign In</router-link>
</li>
<li>
<router-link to="/dashboard">Dashboard</router-link>
</li>
</ul>
</nav>
</header>
</template>
<style scoped>
#header {
height: 56px;
display: flex;
flex-flow: row;
justify-content: space-between;
align-items: center;
background-color: #521751;
padding: 0 20px;
}
.logo {
font-weight: bold;
color: white;
}
.logo a {
text-decoration: none;
color: white;
}
nav {
height: 100%;
}
ul {
list-style: none;
margin: 0;
padding: 0;
height: 100%;
display: flex;
flex-flow: row;
align-items: center;
}
li {
margin: 0 16px;
}
li a {
text-decoration: none;
color: white;
}
li a:hover,
li a:active,
li a.router-link-active {
color: #fa923f;
}
</style>