SVG adaptive
by Kostiantyn Kondratiuk
HTML
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Добрий вірш</title>
<meta name="description" content="Замовлення віршів">
<meta name="keywords" content="вірш, замовити, замовити вірш, поздоровлення, оригінальні поздоровлення, ">
<meta name="robots" content="index,follow,noodp">
<meta name="googlebot" content="index,follow">
<meta name="subject" content="интернет-магазин">
<meta content="Company">
<meta content="website">
<!-- font Open Sans + Amatic SC -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link
href="https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&family=Open+Sans:wght@400;600;700&display=swap"
rel="stylesheet">
<!-- Main CSS -->
<link rel="stylesheet" href="css/main.css">
</head>
<!-- TODO Header -->
<header class="header" id="header">
<div class="container">
<div id="nav-fix" class="nav-container">
<nav class="wrap d-flex align-items-center navfix">
<a href="#" class="logo">
<img src="img/logo.png" alt="Логотип" class="logo__img">
</a>
<ul class="menu d-flex">
<li class="menu__item">
<a href="#about-me" class="menu__link">
Про мене
</a>
</li>
<li class="menu__item">
<a href="#cost" class="menu__link">
Ціни та оплата
</a>
</li>
<li class="menu__item">
<a href="#examples" class="menu__link">
Приклади віршів
</a>
</li>
<li class="menu__item">
<a href="#reserve" class="menu__link">
Замовити вірш
</a>
</li>
<li class="menu__item">
<a href="#response" class="menu__link">
Відгуки
</a>
</li>
</ul>
<a href="tel:+38(067)3666919" class="phone d-flex">
...
CSS
/* TODO ------ Specification ------ */
body {
font-family: "Open Sans", sans-serif;
font-size: 18px;
color: #000;
padding: 0;
margin: 0;
}
.container {
width: 1440px;
margin: 0 auto;
}
div,
p,
form,
input,
textarea,
a,
span,
button {
box-sizing: border-box;
}
/* Зміна рамки всіх input та textarea при фокусі
(Changing the frame of all input and textarea when in focus) */
.form__input:focus,
.change:focus,
textarea:focus {
border-color: #2323da;
box-shadow: 0 0 10px #719ece;
}
p {
margin: 0;
/* line-height: 20px;
font-weight: 400; */
}
ul,
li {
display: block;
-webkit-display: block;
-moz-display: block;
-ms-display: block;
-o-display: block;
padding: 0;
margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
padding: 0;
margin: 0;
font-weight: 400;
}
h1 {
font-size: 46px;
line-height: 60px;
margin-top: 20px;
}
h2 {
font-size: 42px;
line-height: 54px;
}
h3 {
font-size: 26px;
line-height: 38px;
}
h4,
.form__specif-desk,
.form__targeted-info {
font-size: 20px;
line-height: 30px;
}
.btn {
font-family: "Amatic SC", cursive;
font-weight: 700;
color: #fff;
background: #e76969;
font-size: 28px;
max-width: 230px;
width: 100%;
display: block;
text-align: center;
padding: 15px 0;
border: 1px solid #e76969;
cursor: pointer;
}
.btn:hover {
background: linear-gradient(149.51deg, #ffffff -13.36%, rgba(255, 255, 255, 0.1) 170.1%), #e54a3a;
text-decoration: none;
}
a,
a:hover,
a:active {
text-decoration: none;
}
a,
button,
input,
textarea {
transition: all 0.5s ease;
}
.d-flex {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
}
.justify-content-between {
justify-content: space-between;
}
.align-items-center {
align-items:...