JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css">
<div id="header-wrapper">
<div id="header">
<div id="title">EXPLORE SNOWBLOSSOM</div>
<div id="navigation">
<a>ABOUT</a>
<a>STATUS</a>
<a>BLOCKS</a>
<a>TRANSACTIONS</a>
</div>
<form id="search-form">
<input id="search-input" type="text" autocomplete="off" required>
<button id="search-button" type="submit"><i class="fas fa-search"></i></button>
</form>
</div>
</div>
CSS
@import url('https://fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Mono|VT323|Varela|Unica+One');
html {
height: 100%;
}
body {
margin: 0;
height: 100%;
width: 100%;
display: flex;
/*flex-direction: column;
align-items: center;
justify-content: center;*/
background-color: black;
color: white;
background-image: url("https://www.toptal.com/designers/subtlepatterns/patterns/ep_naturalblack.png");
}
#header-wrapper {
display: flex;
align-self: center;
flex-grow: 1;
justify-content: center;
}
#header {
display: flex;
flex-direction: column;
align-items: center;
}
#title {
font-family: "Unica One";
font-size: 4em;
line-height: 0.95em;
}
#navigation {
display: flex;
align-self: stretch;
}
#navigation>a {
display: flex;
flex-grow: 1;
flex-basis: 1em;
justify-content: center;
font-size: 1.25em;
/*border: 1px solid rgba(255,255,255,0.1);*/
height: 2em;
align-items: center;
margin-bottom: 0.25em;
}
#navigation>a {
background-color: rgba(255,255,255,0.05);
transition: background-color 0.5s;
font-family: "Unica One";
}
#navigation>a+a, #search-button {
margin-left: 0.25em;
}
#navigation>a:hover {
background-color: rgba(255,255,255,0.2);
transition: background-color 0.5s;
}
input, button, input:focus, button:focus {
outline: none;
border: none;
text-align: center;
}
#search-form {
display: flex;
align-self: stretch;
}
#search-input {
display: inline-flex;
flex-grow: 1;
font-size: 1.25em;
padding: 0.25em;
font-family: "Ubuntu Mono";
background-color: rgba(255,255,255,0.1);
color: white;
transition: background-color 0.5s;
}
#search-input:hover, #search-input:focus, #search-button:hover {
background-color: rgba(255,255,255,0.25);
transition: background-color 0.5s;
}
#search-button {
display: inline-flex;
font-size: 1.5em;
padding: 0.5em;
background-color: rgba(255,255,255,0.1);
color: white;
cursor: pointer;
transition: background-color 0.5s;
}