JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>
<div class="thumb">
<img src="https://wp-simplicity.com/wp-content/uploads/2016/12/TEX1SW9IZW.jpg">
</div>
<div class="text">
何かしらのテキスト
</div>
</li>
</ul>
CSS
ul {
margin: 0;
padding: 0;
}
ul li {
position: relative;
width: 200px;
height: 200px;
list-style: none;
border: 1px solid;
}
.thumb {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.thumb img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: block;
}
.text {
position: absolute;
left: 50%;
bottom: 0;
transform: translate(-50%,0);
color: #fff;
background-color: rgba(0,0,0,.8);
width: 90%;
text-align: center;
}