JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
  <div class="card"><h2>01</h2></div>
  <div class="card"><h2>02</h2></div>
</div>

CSS

.card h2 {
  color: white;  
}

.container {
  display: flex;
  gap: 20px;
}

.card {
  background-color: darkblue;
  width: 200px;
  height: 120px;
  padding-left: 20px;
  border-radius: 10px;
  position: relative;
}

.card:first-child::after {
  content: '';
  background-color: darkblue;
  transform: rotate(45deg);
  position: absolute;
  width: 50px;
  height: 50px;
  right: -20px;
  top: 35px;
  z-index: 2;
}

.card:last-child::before {
  content: '';
  background-color: white;
  transform: rotate(45deg);
  position: absolute;
  width: 40px;
  height: 40px;
  left: -20px;
  top: 40px;
}