JSFiddle - React, Tailwind, and code Playground

by Anton Fedoryan

HTML

<div class="wrapper">
  <div class="tab">
    <span>это интересно</span>
  </div>
  <div class="tab">
    <span>это интересно</span>
  </div>
  <div class="tab">
    <span>это интересно</span>
  </div>
</div>

CSS

.wrapper {
  display: flex;
  height: 40px;
  justify-content: space-around;
  align-items: flex-end;
  border-bottom: 2px solid #f00;
}

.tab {
  position: relative;
  padding: 5px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  background-color: #884535;
  z-index: 0;
}

.tab::before {
  content: " ";
  display: block;
  position: absolute;
  width: 60px;
  height: 20px;
  top: 0;
  left: -30px;
  border-top: 26px solid #884535;
  z-index: 0;
  border-top-left-radius: 50%;
}

.tab:hover {
  height: 27px;
  cursor: pointer;
}

.tab:hover::before {
  border-top: 37px solid #884535;
}

span {
  position: relative;
  margin-left: -15px;
  z-index: 30;
}