JSFiddle - React, Tailwind, and code Playground
by JuliaShamray
HTML
<div class="inner">
<section class="wrap">
<div class="square"></div>
<div class="circle"></div>
</section>
</div>
CSS
.inner {
margin: 40px auto 0;
max-width: 100%;
overflow: hidden;
padding: 0 20px;
}
.wrap {
position: relative;
max-width: 480px;
margin: 0 auto;
}
.square {
background: #EA7774;
height: 200px;
}
.circle {
border-radius: 50%;
height: 80px;
width: 80px;
background: #ADE9F3;
position: absolute;
right: 0;
top: 50%;
margin: -40px -40px 0 0;
}