redesign header

This commit is contained in:
William Zhang 2017-12-06 15:51:27 -05:00
parent 3ca179acd1
commit 246427af27
5 changed files with 19 additions and 20 deletions

View File

@ -3,18 +3,18 @@
<button id="menu-toggle"> <button id="menu-toggle">
<i></i> <i></i>
</button> </button>
<a href="index">
<div id="logo">
</div>
</a>
</div> </div>
<nav id="menu"> <nav id="menu">
<a class="menu-item" href="index"> <a class="menu-item" href="/">
<button class="menu-item fluid">Home</button> <button class="menu-item fluid">Home</button>
</a> </a>
<a class="menu-item" href="about"> <a class="menu-item" href="about">
<button class="menu-item fluid">About</button> <button class="menu-item fluid">About</button>
</a> </a>
<a id="logo-wrapper" href="/">
<div id="logo">
</div>
</a>
<a class="menu-item" href="resources"> <a class="menu-item" href="resources">
<button class="menu-item fluid">Resources</button> <button class="menu-item fluid">Resources</button>
</a> </a>

View File

@ -6,30 +6,26 @@ header {
#banner { #banner {
width: 100%; width: 100%;
height: 10vh; display: flex;
text-align: center; justify-content: center;
display: table;
background-color: #fff; background-color: #fff;
position: relative; position: relative;
z-index: 3; z-index: 3;
}
#banner #logo {
content: '';
height: 10vh;
width: 100%;
display: inline-block;
vertical-align: middle; vertical-align: middle;
font-size: 2.5em; font-size: 2.5em;
font-weight: bold; font-weight: bold;
overflow: hidden; overflow: hidden;
}
#logo {
width: 15vh;
height: 12vh;
background-image: url('../img/logo.png'); background-image: url('../img/logo.png');
background-size: 8vh; background-size: 100%;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
#menu-toggle { #menu-toggle {
cursor: pointer; cursor: pointer;
background-color: #fff; background-color: #fff;
@ -57,17 +53,17 @@ header {
nav#menu { nav#menu {
width: 100%; width: 100%;
height: 50px;
display: inline-flex; display: inline-flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
justify-content: center; justify-content: center;
border-bottom: 3px solid rgb(164, 38, 44); border-bottom: 3px solid rgb(164, 38, 44);
/*box-shadow: 0 28px 79px 0 rgba(66, 129, 121, .27);*/ /*box-shadow: 0 28px 79px 0 rgba(66, 129, 121, .27);*/
} }
a.menu-item { a.menu-item {
width: 15vw; width: 12vw;
color: #000; color: #000;
font-size: 1em; font-size: 1em;
z-index: 10; z-index: 10;
@ -79,7 +75,7 @@ button.menu-item {
cursor: pointer; cursor: pointer;
font-size: 1.5em; font-size: 1.5em;
width: 100%; width: 100%;
height: 50px; height: 100%;
outline: none; outline: none;
color: #000; color: #000;
background-color: transparent; background-color: transparent;

View File

@ -45,6 +45,9 @@
button.menu-item:active { button.menu-item:active {
font-size: 1.1em; font-size: 1.1em;
} }
#logo-wrapper {
display: none;
}
nav#menu { nav#menu {
width: 30vw; width: 30vw;
max-width: 200px; max-width: 200px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 796 KiB

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 796 KiB