JSFiddle - React, Tailwind, and code Playground

by Kir V

HTML

<div class="wrapper">
  <div class="block"></div>
</div>

CSS

.wrapper {
    padding: 10px 0px;
    overflow: hidden;
    display: block;
    width: 132px;
    margin: 20px auto;
}

.block {
    width: 130px;
    height: 150px;
    border: 1px solid #000;
    position: relative;
    border-top: 0;
    border-bottom:0;
}

.block:before {
    content: "";
    position: absolute;
    width: 200px;
    height: 50px;
    border: 1px solid #000;
    border-radius: 100%;
    left: -25%;
    top: -7px;
    border-left: 0;
    border-bottom: 0;
    border-right: 0;
}

.block:after {
    content: "";
    position: absolute;
    width: 200px;
    height: 50px;
    border: 1px solid #000;
    border-radius: 100%;
    left: -25%;
    bottom: -7px;
    border-left: 0;
    border-top: 0;
    border-right: 0;
}