JSFiddle - React, Tailwind, and code Playground

by Alexey Mishin

HTML

<div class="monitor">
  <div class="content">
    It was empty that's why
  </div>
</div>

CSS

* {
    box-sizing: border-box;
}

/* div.monitor>div.content */

body {
    padding-top: 10px;
    background: blue;
}

.wrapper {
    display: flex;
}

.monitor {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    width: 425px;
    height: 300px;
    border-radius: 5.5%;
    background-image:
        linear-gradient(to top, #FFFFFF, #FFFFFF 16%, transparent 16%, transparent), 
        linear-gradient(to bottom, #666666 7%, transparent 7%, transparent 78%, #666666 78%), 
        linear-gradient(to right, transparent 4%, #DCE3DB 4%, #DCE3DB 96%, transparent 96%);
    background-color: #666666;
}

.monitor::after {
    position: absolute;
    left: 50%;
    bottom: 8%;
    content: '';
    display: block;
    width: 4%;
    padding-top: 4%;
    transform: translate(-50%, 50%);
    background: #B6B6B8;
    border-radius: 50%;
}

.content {
    position: relative;
    width: 94%;
    height: 75%;
    margin: 0 auto;
    margin-top: 3%;
    padding: 10px;
    padding-top: 10px;
    background-color: #DCE3DB;
    /* background-image: linear-gradient(to right, #77a1d3, #79cbca, #e684ae); */
    border-radius: 5%;
}

.content::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;

    display: block;
    width: 100%;
    height: 5%;
    background-color: inherit;
    z-index: 0;
    /* background-image: linear-gradient(to right, #77a1d3, #79cbca, #e684ae); */
}

.content > * {
    display: block;
    margin: 0 auto;
}