<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div class = "bg">
<p class = "bg__desc">123</p>
</div>
</body>
</html>
/*main part start*/
body{
margin: 0;
}
*{
box-sizing: border-box;
}
/*main part end*/
/*bg start*/
.bg {
width: 100%;
height: 90vh;
background: url(https://loremflickr.com/g/200/300/paris,girl/all)center no-repeat, linear-gradient(45deg, blue, red);
background-size: contain, auto;
position: relative;
display: flex;
justify-content: center;
align-items: flex-end;
}
.bg::after {
content: '';
display: block;
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 24px;
border-radius: 24px 24px 0 0;
background-color: #fff;
}
.bg__desc{
font-size: 50px;
padding-bottom: 5%; /*Тут также можно воспользоваться margin-bottom. Эффект будет один и тот же*\
}
/*bg end*/