<!DOCTYPE html> <html>
<head></head>
<body></body>
</html> …
<head>
<meta charset="utf-8">
<title>Мой сайт</title>
</head>
… <head>
...
<link rel="stylesheet" href="assets/css/main.css">
</head>
@font-face {
font-family: "Montserrat";
src: url("../fonts/Montserrat-Bold.ttf");
font-weight: 700;
}
@font-face {
font-family: "Montserrat";
src: url("../fonts/Montserrat-Regular.ttf");
font-weight: 400;
}
@font-face {
font-family: "Lora";
src: url("../fonts/Lora-Regular.ttf");
font-weight: 400;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Montserrat;
}
<section class="first-screen section-bg">
<div class="container">
<div></div>
<div></div>
</div>
</section>
<section class="first-screen section-bg">
<div class="container">
<div>
<h1>Веб-разработчик <br> к вашим услугам</h1>
</div>
<div>
<a class="btn btn-bg" href="#">Узнать больше</a>
<a class="btn btn-outline" href="#">Нанять меня</a>
</div>
</div>
</section>
.container {
width: 100%;
max-width: 1140px;
margin: 0 auto;
}
section {
padding: 90px 0;
}
.first-screen {
height: 100vh;
clip-path: ellipse(100% 60% at 50% 35%);
display: flex;
align-items: center;
position: relative;
}
.section-bg {
background: url(../img/bg.svg);
color: #fff;
}
h1 {
font-family: Lora;
font-size: 80px;
}
.btn {
padding: 13px 20px;
color: #fff;
border: 2px solid transparent;
text-decoration: none;
font-weight: 700;
}
.btn-bg {
background: #c74838;
}
.btn-outline {
border-color: #c74838;
}
<a class="chevron" href="#">
<img src="assets/img/chevron.svg" alt="scroll">
</a>
.chevron {
display: block;
position: absolute;
left: 50%;
bottom: 150px;
transform: translate(-50%, 0);
}
<section>
<div class="container">
<h2>Обо мне</h2>
</div>
<p>
</p>
<p>
</p>
</section>
h2 {
font-family: Lora;
font-size: 48px;
margin: 0 0 60px;
}
p {
font-size: 20px;
line-height: 2;
font-family: Montserrat;
}
<section>
<div class="container">
<h2>Портфолио</h2>
</div>
</section>
<div class="gallery">
<div class="img-wrapper">
<img src="assets/img/placeholder.jpg" alt="image">
</div>
</div>
<div class="gallery">
<div class="img-wrapper">
<img src="assets/img/placeholder.jpg" alt="image">
</div>
...
<div class="img-wrapper">
<img src="assets/img/placeholder.jpg" alt="image">
</div>
</div>
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.img-wrapper {
width: 350px;
height: 290px;
margin-bottom: 50px;
overflow: hidden;
cursor: pointer;
display: flex;
justify-content: center;
}
.img-wrapper img {
object-fit: cover;
}
<section class="section-bg">
<div class="container"></div>
</section>
...
<div class="container">
<div class="d-flex">
<div class="w-60 pr-4"></div>
<div class="w-40"></div>
</div>
</div>
...
...
<div class="w-60 pr-4">
<h2>Давайте работать вместе</h2>
<p>
Практический опыт показывает, что новая модель организационной деятельности способствует повышению актуальности системы масштабного изменения ряда параметров!
</p>
</div>
...
...
<div class="w-40">
<form>
<input type="text" placeholder="Как к вам обращаться">
<input type="email" placeholder="Ваш email">
<textarea rows="4" placeholder="Сообщение"></textarea>
<input class="btn btn-bg" type="submit" value="Отправить">
</form>
</div>
.d-flex {
display: flex;
}
.w-60 {
width: 60%;
}
.w-40 {
width: 40%;
}
.pr-4 {
padding-right: 4rem;
}
form {
display: flex;
flex-direction: column;
}
input,
textarea {
padding: 15px;
font-size: 15px;
margin-bottom: 15px;
border: none;
}
input:focus,
textarea:focus {
outline: none;
}
<footer>
<div class="container">
Copyright © 2020. Все права защищены.
</div>
</footer>
footer {
padding: 50px 0;
text-align: center;
}