JSFiddle - React, Tailwind, and code Playground
by Morpheus_God
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap&subset=cyrillic" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lobster&display=swap&subset=cyrillic" rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
<title>Document</title>
</head>
<body>
<header>
<div class="container">
<div class="header_menu">
<div class="header_menu_logo">
<a href="#">Пицц-Бург</a>
<p>Доставка еды</p>
</div>
<div class="header_menu_phone">
<a href="tel:+700000000000">+7 000 000 00 00</a>
<p>телефон для заказа</p>
</div>
<div class="header_menu_location">
<p class="city">Готтэм сити</p>
<p class="hours">часы работы с 10:00 по 23:00</p>
</div>
</div>
</div>
</header>
<section id="pizza">
<div class="container">
<div class="section_title">
<h1>Пицца</h1>
</div>
</div>
</section>
CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Montserrat', sans-serif;
}
ul{
list-style: none;
}
a{
text-decoration: none;
}
.container{
width: 1140px;
margin: 0 auto;
}
.header_menu{
padding: 20px 15px 0 15px;
display: flex;
justify-content: space-between;
}
.header_menu_logo a{
color: #434343;
font-family: 'Lobster', cursive;
font-style: normal;
font-weight: normal;
font-size: 30px;
letter-spacing: 0.05em;
}
.header_menu_logo p{
font-style: normal;
font-weight: 500;
font-size: 12px;
margin-top: 12px;
text-align: center;
}
.header_menu_phone a{
color: #434343;
font-family: 'Lobster', cursive;
font-style: normal;
font-weight: normal;
font-size: 40px;
letter-spacing: 0.05px;
}
.header_menu_phone p{
font-style: normal;
font-weight: 500;
font-size: 10px;
text-align: center;
}
.city{
color: #434343;
font-family: 'Lobster', cursive;
font-style: normal;
font-weight: normal;
font-size: 30px;
}
.hours{
font-style: normal;
font-weight: 500;
font-size: 12px;
text-align: right;
margin-top: 12px;
}
.section_title{
padding-top: 50px;
}
.section_title h1{
text-align: center;
font-style: normal;
font-weight: bold;
font-size: 30px;
text-transform: uppercase;
}