JSFiddle - React, Tailwind, and code Playground
by Ilya Karpuk
HTML
<div class='header'>
<span>Название команды</span>
<img class="logo" alt="Лого команды" src="https://gamerocket.com.ru/images/planets/earth.png"/>
</div>
<div class="leftbar">
<span>Menu</span>
<div class='option'><span>Уведомления</span></div>
<div class='option'><span>События</span></div>
<div class='option'><span>Ресурсы</span></div>
</div>
CSS
@import url(http://fonts.googleapis.com/css?family=Roboto:300,700,400);
body, head {
font-family: "Roboto", sans-serif;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
}
.header {
width: 100%;
height: 150px;
background-color: #303940;
overflow: hidden;
border-bottom: 3px solid #34495E;
}
.header span{
position: absolute;
font-size: 40px;
color: #EEE;
width: 100%;
text-align: left;
left: 70px;
top: 10px;
z-index: 1;
}
.logo {
position: relative;
height: 70px;
left: 0;
right: 0;
}
.leftbar {
position: absolute;
top: 153px;
left: 0px;
bottom: 0px;
width: 200px;
background-color: #67809F;
border-right: 3px solid #34495E;
text-align: center;
}
.leftbar > span {
text-align: center;
font-size: 30px;
color: #EEE;
}
.option {
position: relative;
width: 100%;
height: 30px;
background-color: #2C3E50;
text-align: left;
color: #EEE;
-webkit-transition: background .5s;
transition: background .5s;
cursor: pointer;
margin-top: 1px;
}
.option:hover{
background-color: #34495E;
}
.option:after {
content: "►";
position: absolute;
right: 5px;
top: 6px;
}
.option > span {
position: absolute;
top: 7px;
left: 5px;
}