JSFiddle - React, Tailwind, and code Playground
by poonia
HTML
<div class="container">
<div class="popup-base"></div>
<div class="popup-corner"></div>
<div class="popup-shadow"></div>
CSS
.popup-base {
position: absolute;
top:0;
left: 0;
width: 100px;
height: 100px;
background: orange;
border: 5px solid blue;
border-radius: 55px;
}
.popup-corner {
background: transparent;
position: absolute;
top: 105px;
left: 35px;
height: 0;
width: 0;
border: 20px solid blue;
border-color: transparent;
border-top-color: blue;
border-top-style: solid;
border-top-width: 15px;
border-right-width: 20px;
border-left-width: 20px;
border-bottom-width: 0px;
}
.popup-shadow {
position: absolute;
background: transparent;
top: 121px;
left: 45px;
height: 1px;
width: 20px;
box-shadow: 0px 0px 10px black, 0px 0px 10px rgba(0,0,0,0.12) inset;
}
.container {
position: absolute;
top: 100px;
left: 100px;
height: 300px;
width: 300px;
background: #F5F6CE;
}