JSFiddle - React, Tailwind, and code Playground

HTML

<div class="lines">
 <div class="box">
    <div class="line"></div>
    <div class="line"></div>
    <div class="line"></div>
    <div class="line horizontal"></div>
 </div>
  <div class="box">
   <div class="line horizontal top"></div>
    <div class="line"></div>
    <div class="line"></div>
    <div class="line horizontal"></div>
    <div class="line horizontal bottom"></div>
  </div>
</div>

CSS

.lines {
  width: 500px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.line {
  display: flex;
  height: 300px;
  width: 4px;
  background: red;
}

.horizontal {
  width: 100%;
  height: 4px;
  position: absolute;
  left: 0;
}

.top {
  top: 0;
}

.bottom {
  bottom: 0;
}