Update style
This commit is contained in:
@@ -1,72 +1,22 @@
|
||||
<template>
|
||||
<header id="header">
|
||||
<router-link to="/">
|
||||
<!-- <img id="nav-logo" alt="KamilCraft.com logo" :src="`${publicPath}assets/logo.png`"> -->
|
||||
<h1 id="nav-text">KamilCraft</h1>
|
||||
</router-link>
|
||||
<nav id="navigation">
|
||||
<ul id="menu">
|
||||
<li class="menu-element"><router-link to="/">Strona główna</router-link></li>
|
||||
<li class="menu-element"><router-link to="/projects">Projekty</router-link></li>
|
||||
<li class="menu-element"><router-link to="/about">O mnie</router-link></li>
|
||||
<li class="menu-element"><router-link to="/contact">Kontakt</router-link></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<header class="page-header">
|
||||
<navigation/>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
#header {
|
||||
width: 250px;
|
||||
height: 100vh;
|
||||
background-color: #1893D7!important;
|
||||
background-image: linear-gradient(to top,#005C93 25%,#2C395C);
|
||||
#nav-text {
|
||||
color: white;
|
||||
}
|
||||
#nav-logo {
|
||||
display: block;
|
||||
width: 250px;
|
||||
height: 67px;
|
||||
padding: 8px 0;
|
||||
background-color: #fafafa !important;
|
||||
}
|
||||
#navigation {
|
||||
#menu {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
.menu-element {
|
||||
display: block;
|
||||
padding: 0 10px;
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0 , 0, .1);
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
line-height: 50px;
|
||||
font-weight: bold;
|
||||
color: #dcdcdc;
|
||||
|
||||
&.router-link-exact-active {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import Navigation from '@/components/Navigation'
|
||||
|
||||
export default {
|
||||
name: 'SiteHeader',
|
||||
data () {
|
||||
return {
|
||||
publicPath: process.env.BASE_URL
|
||||
}
|
||||
components: {
|
||||
navigation: Navigation
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.page-header {
|
||||
background: linear-gradient(237.74deg, #1199A5 0%, #436DA7 83%);
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user