JSFiddle - React, Tailwind, and code Playground

by trushka

HTML

<div class="content">
		<section>
			<div class="cas">
				<a href="#"></a>
				<a href="#"></a>
			</div>
	</section>
	</div>

CSS

.content {
	background: #232323;
	width: 1170px;
	min-height: 1246px;
	margin: 25% auto;
	padding-top: 1px;
	position: relative;
}

.content section {
	width: 574px;
	height: 350px;
	margin: 20px 20px;
	border: solid 3px #000;
	position: relative;
}

.content section img {
	width: 100%;
	height: 100%;
	position: absolute;
}

.content section>a {
	background: #f5b61f;
	color: #fff;
	font-size: 14px;
	position: absolute;
	left: 20px;
	bottom: 20px;
	text-transform: uppercase;
	border: none;
	padding: 8px 10px;
}

.cas {
	width: 100%;
	height: 100%;
	position: absolute;
	transition: 0.5s;
	background: rgba(245, 182, 31, .7);
  opacity:0;
  display: flex; align-items: center; justify-content: center
}

.cas:hover {opacity: 1}
.cas a {
  width: 50px; height: 50px;
  margin: 5px;
  background: #fff;
  display: block;
}