JSFiddle - React, Tailwind, and code Playground
by George Batt
HTML
<div class="panel">
<div class="svgs">
<div class="svg-1"></div>
<div class="svg-2"></div>
</div>
<div class="content">
<div class="boxes">
<div class="box">Box</div>
<div class="box">Box</div>
<div class="box">Box</div>
<div class="box">Box</div>
<div class="box">Box</div>
<div class="box">Box</div>
</div>
</div>
</div>
<div class="content-that-follows">
Content that follows
</div>
CSS
body{
margin: 0;
}
.panel{
background: navy;
color: white;
position: relative;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 60px;
}
.svgs{
position: absolute;
inset: 0;
overflow: hidden;
}
.svg-1,
.svg-2{
bottom: 0;
left: 0;
position: absolute;
border-radius: 9999px;
}
.svg-1{
background: green;
height: 7rem;
width: 7rem;
margin: 0 0 -1rem -1rem;
}
.svg-2{
background: orange;
height: 5rem;
width: 5rem;
margin: 0 0 -1rem 2rem;
}
.content{
font-size: 4rem;
position: relative;
}
.boxes{
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 30px;
margin-bottom: -30px;
}
.box{
background: gray;
width: 400px;
}
.content-that-follows{
background-color: maroon;
color: white;
height: 300px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
}