




Вам нужно сделать это с помощью HTML и CSS. Есть несколько способов.
Вы можете проверить это кодовый ключ
header {
position: relative;
height: 300px;
background-image: linear-gradient(#ff9d2f, #ff6126);
}
h1 {
margin: 0;
padding: 100px 0;
font: 44px "Arial";
text-align: center;
}
header h1 {
color: white;
}
.divider {
position: absolute;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100px;
/* drop the height to have a constant angle for all screen widths */
}<header>
<h1>Header Content</h1>
<img src = "https://assets.codepen.io/t-517/divider-triangle.png" class = "divider" />
</header>
<section>
<h1>Section Content</h1>
</section>Получить Идею, как это сделать 2-м способом.
и этот кодовый ключ для преобразования css (третий способ).
header {
position: relative;
height: 300px;
overflow: hidden;
}
.header__bg {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
width: 100%;
height: 100%;
background-image: linear-gradient(#ff9d2f, #ff6126);
transform: skewY(-6deg);
transform-origin: top left;
}
h1 {
margin: 0;
padding: 100px 0;
font: 44px "Arial";
text-align: center;
}
header h1 {
position: relative;
color: white;
}<header>
<div class = "header__bg"></div>
<h1>Header Content</h1>
</header>
<section>
<h1>Section Content</h1>
</section>