JSFiddle - React, Tailwind, and code Playground
by annndrewww
HTML
<header class="header">
<div class="wrapper">
<div class="header-wrapper">
<div class="header-logo">
<a href="#!" class="header-logo_link">
<img src="img/header-logo.svg" alt="Explore and Travel">
</a>
</div>
<nav class="header-nav">
<ul class="header-list">
<li class="header-item">
<a href="#!" class="header-link_home">Home</a></li>
<li class="header-item">
<a href="#!" class="header-link">Destinations</a></li>
<li class="header-item">
<a href="#!" class="header-link">About</a></li>
<li class="header-item">
<a href="#!" class="header-link">Partner</a></li>
<li class="header-button">
<button class="header-link_button_log button">Login</button>
</li>
<li class="header-button">
<button class="header-link_button_reg button">Register</button>
</li>
</ul>
</nav>
</div>
</div>
</header>
CSS
html {
box-sizing: border-box;
}
*, *::before, *::after {
box-sizing: inherit;
}
body {
font-family: 'Inter';
font-style: normal;
font-size: 16px;
line-height: 1.2;
font-weight: normal;
color: #202336;
}
/* header */
.wrapper {
max-width: 1080px;
margin: 0 auto;
}
.header-wrapper {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
}
.header-nav {
margin-left: 0 auto;
}
.header-list {
display: flex;
flex-wrap: wrap;
}
.header-item {
margin-right: 3rem;
}
.header-button {
margin-right: 1rem;
}
.header-link_home {
font-weight: 500;
font-size: 16px;
line-height: 19px;
color: #202336;
text-decoration: none;
}
.header-link {
font-weight: normal;
font-size: 16px;
line-height: 19px;
color: #B8BECD;
text-decoration: none;
}
.header-item:last-child, .header-item_home:last-child {
margin-right: 0;
}
.header-link_home:hover, .header-link_home:active, .header-link_home:focus {
cursor: pointer;
opacity: .65;
}
.header-link:hover, .header-link:active, .header-link:focus {
cursor: pointer;
color: #868b95;
}
.header-link_button_log {
border: 1px solid #FB8F1D;
border-radius: 8px;
padding: 10px 50px;
font-weight: 500;
font-size: 15px;
color: #FB8F1D;
background-color: #fff;
}
.header-link_button_reg {
border: none;
border-radius: 8px;
background-color: #FB8F1D;
color: #fff;
padding: 10px 50px;
font-weight: 500;
font-size: 15px;
}
.header-link_button_log:hover, .header-link_button_log:active, .header-link_button_log:focus {
outline: none;
cursor: pointer;
background-color: #f5f5f5;
}
.header-link_button_reg:hover, .header-link_button_reg:active, .header-link_button_reg:focus {
outline: none;
cursor: pointer;
background-color: #fba244;
}