JSFiddle - React, Tailwind, and code Playground

by RzaaL1306

HTML

<div id="ribbon">
    
    <div class="inset"></div>
    
    <div class="container">
        <div class="base"></div>
        <div class="left_corner"></div>
        <div class="right_corner"></div>
    </div>

</div>

CSS

#ribbon {
    width: 180px;
    height: 280px;
    margin: 50px auto 0;
    position: relative;
    overflow: hidden;
}

#ribbon .inset {
    width: 200px;
    height: 55px;
    position: absolute;
    top: -50px;
    left: -10px;
    z-index: 5;
    
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    
    background: rgba(0,0,0,0.3);
    
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
}

#ribbon .container {
    position: relative;
    width: 100px;
    height: 250px;
    overflow: hidden;
    margin: 0 auto;
    border-left: 1px solid #631a15;
    border-right: 1px solid #631a15;
}

#ribbon .base {
    height: 200px;
    width: 100px;
    
    background: rgb(199,59,60);
    background: -moz-linear-gradient(top,  rgba(199,59,60,1) 0%, rgba(184,32,31,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(199,59,60,1)), color-stop(100%,rgba(184,32,31,1)));
    background: -webkit-linear-gradient(top,  rgba(199,59,60,1) 0%,rgba(184,32,31,1) 100%);
    background: -o-linear-gradient(top,  rgba(199,59,60,1) 0%,rgba(184,32,31,1) 100%);
    background: -ms-linear-gradient(top,  rgba(199,59,60,1) 0%,rgba(184,32,31,1) 100%);
    background: linear-gradient(top,  rgba(199,59,60,1) 0%,rgba(184,32,31,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c73b3c', endColorstr='#b8201f',GradientType=0 );

    position: relative;
    z-index: 2;
}
#ribbon .base:after {
    content: '';
    position: absolute;
    top: 0;
    width: 86px;
    left: 6px;
    height: 242px;
    border-left: 1px dashed #631a15;
    border-right: 1px dashed #631a15;
}

#ribbon .base:before {
    content: '';
    position: absolute;
    top: 0;
    width: 86px;
    left: 7px;
    height: 242px;
    border-left: 1px dashed #da5050;
    border-right: 1px dashed #da5050;
}

#ribbon...