JSFiddle - React, Tailwind, and code Playground
HTML
<div class="news">
<div class="post">
<div class="post_item ln_green">
<img src="http://placehold.it/210x140" alt="" class="post_item_img">
<div class="hidden shade_green">
<a href="/" class="hidden_button">Show more</a>
</div>
</div>
<div class="content">
<span class="content_ticket tic_green"></span>
<h2 class="content_title">2 bedroom house for rent in Dubai</h2>
<p class="content_text txt_green">Vision Agency</p>
</div>
</div>
</div>
CSS
* {
box-sizing: border-box;
}
.news {
padding: 46px 0;
background-color: #f3f1f2;
max-width: 980px;
}
.post {
width: 210px;
position: relative;
min-height: 266px;
}
.post_item {
position: relative;
}
.post_item::after {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
content: "";
background-color: #989898;
}
.post_item_img {
width: 100%;
}
.ln_green::after {
background-color: #1baf5d;
}
.ln_yellow::after {
background-color: #f19e1f;
}
.ln_purple::after {
background-color: #88499c;
}
.hidden {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: absolute;
background-color: rgba(0, 0, 0, 0.7);
}
.hidden_button {
width: 141px;
padding: 6px 5px 5px 35px;
color: #ffffff;
text-transform: uppercase;
border: 2px solid #ffffff;
border-radius: 25px;
display: block;
margin: 0 auto;
margin-top: 12%;
background-image: url(http://i056.radikal.ru/1702/1f/a176f5e289f6.png);
background-repeat: no-repeat;
background-position: 12% 48%;
text-decoration: none;
font-size: 14px;
}
.shade_green {
background-color: rgba(27, 175, 93, 0.7);
}
.shade_yellow {
background-color: rgba(248, 151, 31, 0.7);
}
.shade_purple {
background-color: rgba(136, 73, 156, 0.7);
}
.content {
position: relative;
padding: 20px 15px 0;
text-align: center;
}
.content_ticket {
width: 61px;
height: 61px;
border-radius: 50%;
border: 3px solid #ffffff;
background-color: #989898;
margin: 0 auto;
left: 0;
top: -30px;
right: 0;
bottom: 0;
position: absolute;
}
.content_title {
color: #000;
font-size: 14px;
}
.content_text {
font-size: 12px;
color: #989898;
text-transform: uppercase;
font-weight: bold;
bottom: 0;
}
.tic_green {
background-color: #1baf5d;
}
.tic_yellow {
background-color: #f19e1f;
}
.tic_purple {
background-color: #88499c;
}
.txt_green {
color: #1baf5d;
}
.txt_yellow {
color: #f19e1f;
}
.txt_purple {
color: #88499c;
}