JSFiddle - React, Tailwind, and code Playground

HTML

<div class="outer">
  <div class="top"></div>
  <div class="middle"></div>
  <div class="bottom">
    <div class="rect-1"></div>
    <div class="rect-2"></div>
  </div>
</div>

CSS

.outer {
  display: flex;
  flex-flow: column;
  width: 300px;
  height: 300px;
  background-color: white;
  margin: 0 auto;
  align-items: center;
}

.top {
  flex: 1;
  width: 100%;
}

.middle {
  width: 50px;
  height: 50px;
  background: black;
}

.bottom {
  flex: 1;
  min-width: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;
}

.rect-1 {
  width: 50%;
  height: 20px;
  background-color: tomato;
  transform: translateY(33%);
}

.rect-2 {
  width: 50%;
  height: 20px;
  background-color: tomato;
  transform: translateY(-33%);
}