<section class="section">
<div class="section__container container">
<div class="section__inner">
<div class="section__content">
Lorem ipsum dolor sit amet consectetur adipisicing elit
</div>
<div class="section__image"></div>
</div>
</div>
</section>
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: sans-serif;
line-height: 1.4;
}
.container {
max-width: 768px;
padding: 0 15px;
margin: 0 auto;
}
.section {
background: radial-gradient(circle at 60% 30%, #eae5f3, #4f475d);
overflow: hidden;
}
.section::after {
content: '';
display: block;
height: 50px;
background-color: #673ab7;
}
.section__inner {
padding-top: 1px;
margin-top: 36%;
position: relative;
z-index: 0;
}
.section__inner::before {
content: '';
position: absolute;
left: 40%;
bottom: 0;
width: calc(60% + 50vw - 50%);
height: 37%;
background: linear-gradient(to top right, #673ab7 calc(50% - 0.5px), transparent calc(50% + 0.5px));
z-index: 2;
}
.section__inner::after {
content: '';
position: absolute;
top: 0;
right: 100%;
width: calc(50vw - 50%);
height: 100%;
background-color: #673ab7;
}
.section__content {
position: absolute;
padding: 25px 10% 0 0;
top: 0;
left: 0;
width: 40%;
height: 100%;
background-color: #673ab7;
color: #fff;
border-radius: 0 30px 0 0;
}
.section__image {
position: relative;
width: 60%;
margin-left: 30%;
margin-top: -36%;
z-index: 1;
}
.section__image::before {
content: '';
display: block;
padding-bottom: 131%;
width: 100%;
background: url('https://gocatgosf.com/wp-content/uploads/purrvana_cat.png') no-repeat 0 0 / contain;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.