JSFiddle - React, Tailwind, and code Playground
HTML
<div class="bg">
<div class="bar">
<div class="left" style="width: 60.8%">236</div>
<div class="right" style="width: 39.2%">152</div>
<span class="wave"></span>
</div>
</div>
SCSS
.bg {
padding: 20px;
background-color: #f1f1f1;
}
.bar {
width: 300px;
background: #f3f3f3;
display: flex;
border-radius: 6px;
overflow: hidden;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
position: relative;
> div {
height: 40px;
line-height: 40px;
vertical-align: middle;
padding: 0 10px;
color: #fff;
box-shadow: inset 0 -1px 1px 0px rgba(0, 0, 0, 0.1);
}
.left {
background-image: linear-gradient(to right, #1c329a, 80%, #4057c9);
}
.right {
text-align: right;
background-image: linear-gradient(to left, #ffb618, 80%, #ffca2e);
border-left: 1px solid rgba(255, 255, 255, 0.4);
}
.wave {
position: absolute;
top: 0;
right: 0;
&::after {
content: '';
top: 30px;
left: -610px;
position: absolute;
border-radius: 1000px;
transform: rotate(-4deg);
height: 400px;
width: 800px;
background-color: rgba(255, 255, 255, 0.12);
}
&::before {
content: '';
top: 15px;
left: -600px;
position: absolute;
border-radius: 400px;
transform: rotate(5deg);
height: 800px;
width: 900px;
background-color: rgba(255, 255, 255, 0.08);
}
}
}