JSFiddle - React, Tailwind, and code Playground
CSS
* {
margin: 0;
padding: 0;
}
body {
overflow: hidden;
}
div {
margin-top: 10px;
}
div::after {
content: "";
position: absolute;
width: 100vw;
height: 100vw;
background: #1567A1;
-webkit-transform: rotate(-10deg);
background: linear-gradient(65deg, #1BB6CA 25.5%, #1567A1 25.5%, #1567A1 100%);
margin-left: 50vw;
}
div::before {
content: "";
position: absolute;
width: 100vw;
height: 100vw;
background: linear-gradient(45deg, #1BB6CA 85%, #1567A1 85%, #1567A1 100%);
-webkit-transform: rotate(10deg);
margin-left: -50vw;
}