JSFiddle - React, Tailwind, and code Playground
by AlexP11223
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Truck</title>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- HEADER -->
<header>
<div class="header-topContent">
<div class="container">
<div class="header-topContent__wrapper">
<div class="header-topContent__text lang">
<a class="lang-link" href="#">РУС</a>
<a class="lang-link" href="#">ENG</a>
<a class="lang-link" href="#">FR</a>
</div>
<div class="header-topContent__text">
<a href="#">8 (800) 123-45-67</a>
</div>
<div class="header-topContent__text">
<a href="#">sales@log.ru</a>
</div>
</div>
</div>
</div>
<!-- NAVIGATION -->
<nav>
<div class="nav-wrapper">
<div class="container">
<div class="nav">
<div class="nav__left">
<div class="nav-logo">
<img src="public/img/header/logo.png" alt="" />
<img src="public/img/header/logoText.png" alt="" />
</div>
<div class="nav-text">
<img src="public/img/header/gps.svg" alt="" />
<p>Наши офисы</p>
</div>
</div>
<div class="nav__right">
<ul class="nav__right-list">
<li>услуги</li>
<li>о компании</li>
<li>вакансии</li>
<li>контакты</li>
</ul>
</div>
</div>
</div>
...
CSS
* {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background:#2F343A;
}
header {
color: #fff;
}
.header-topContent {
background-color: #C8A35F;
}
.container {
margin: 0 auto;
width: calc(100% - 810px);
}
.header-topContent__wrapper {
display: flex;
justify-content: space-between;
}
.header-topContent__wrapper a {
text-decoration: none;
color: #fff;
}
.lang > * + * {
padding-left: 10px;
}
.header-topContent__text {
margin: 16px 0;
}
.lang-link {
opacity: 0.6;
}
.lang-link:hover {
opacity: 1;
}
/* NAVIGATION */
.nav {
display: flex;
justify-content: space-between;
align-items: center;
margin: 27px 0;
}
.nav__left {
display: flex;
align-items: center;
height: 100%;
}
.nav-logo {
display: flex;
align-items: center;
padding-right: 30px;
border-right: 1px solid #fff;
}
.nav-logo img {
pointer-events: none;
}
.nav-logo > * + * {
padding-left: 11px;
}
.nav-text {
margin-left: 30px;
align-items: center;
display: flex;
}
.nav-text p {
font-size: 14px;
line-height: 16px;
font-weight: 400;
letter-spacing: 0.05em;
padding-left: 10px;
}
.nav__right-list {
display: flex;
list-style-type: none;
text-transform: uppercase;
}
.nav__right-list li {
padding-right: 30px;
height: 100%;
}
/* HEADER-CENTER */
.header-center {
background: url("public/img/header/bg.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
.header-center .container {
height: 100%;
}
.header-center__wrapper-content {
height: 91%;
display: flex;
justify-content: center;
align-items: center;
}
.header-center__text {
text-align: center;
border: 1px solid #C8A35F;
padding: 45px 0;
}
.header-center__title {
...