JSFiddle - React, Tailwind, and code Playground

HTML

<div class="testimonials-content">
  <div class="testimonials-square">
	  <a href="">
		  <div class="translation-button">
        <p>Translate</p>
      </div>
    </a>
    <a href="">
      <div class="testimonials-square-text">
        <p>TITLE</p>
      </div>
    </a>
  </div>
  <div class="testimonials-square">
	  <a href="">
		  <div class="translation-button">
        <p>Translate</p>
      </div>
    </a>
    <a href="">
      <div class="testimonials-square-text">
        <p>TITLE</p>
      </div>
    </a>
  </div>
  <div class="testimonials-square">
	  <a href="">
		  <div class="translation-button">
        <p>Translate</p>
      </div>
    </a>
    <a href="">
      <div class="testimonials-square-text">
        <p>TITLE</p>
      </div>
    </a>
  </div>
</div>

CSS

.testimonials-content {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	width: 750px;
	background-color: #FFFFFF;
}

.testimonials-square {
	width: 214px;
	height: 214px;
	border-radius: 10px;
	border: 5px solid #282165;
	color: #282165;
	font-size: 22px;
	text-align: center;
	float: left;
	margin-right: 26px;
	margin-bottom: 27px;
	background-color: #FFFFFF;
	text-align: center;
	color: #282165;
	font-weight: bold;
}

.translation-button {
	width: 100px;
	height: auto;
	border-radius: 2px;
	border: 2px solid #282165;
	color: #282165;
	font-size: 22px;
	text-align: center;
	float: left;
	margin: 5px;
	background-color: #FFFFFF;
	text-align: center;
	color: #282165;
	font-weight: bold;
}

.testimonials-square .translation-button p {
	color: #FFFFFF;
	background-color: #282165;
}

.testimonials-square-text {
	margin-top: 80px;
	margin-left: 20px;
	margin-right: 20px;
	text-align: center;
}

.testimonials-square p {
	color: #282165;
}

.testimonials-square:active {
	background-color: #282165;
	color: #FFFFFF;
}

.testimonials-square .translation-button:active p {
	color: #282165;
	background-color: #FFFFFF;
}

.testimonials-square:active p {
	background-color: #282165;
	color: #FFFFFF;
}

.testimonials-square:nth-child(2n+1) {
	background-color: #282165;
	color: #FFFFFF;
}

.testimonials-square:nth-child(2n+1) .translation-button {
	border: 2px solid #FFFFFF;
}

.testimonials-square:nth-child(2n+1) .translation-button p {
	background-color: #FFFFFF;
	color: #282165;
}

.testimonials-square:nth-child(2n+1) .translation-button:active p {
	background-color: #282165;
	color: #FFFFFF;
}

.testimonials-square:nth-child(2n+1) p {
	background-color: #282165;
	color: #FFFFFF;
}

.testimonials-square:nth-child(2n+1):active {
	background-color: #FFFFFF;
	color: #282165;
}

.testimonials-square:nth-child(2n+1):active p {
	background-color: #FFFFFF;
	color: #282165;
}

p {
  margin: 0px;
 
}

a {
  text-decoration: none;
}