JSFiddle - React, Tailwind, and code Playground

HTML

<div class="img">
    <img src="http://htmlbook.ru/example/images/igels.png">
    <div class="label">a</div>
</div>

CSS

.img {
    overflow: hidden;
    margin-left: 100px;
    display: inline-block;
    transform: skewX(-30deg);
    border: 2px solid grey;
    position: relative;
}

img {
    transform: skewX(30deg);
    margin: 0px 40px;
}

.label {
    position: absolute;
    bottom: 0px;
    height: 40px;
    background: rgba(0, 0, 255, .8);
    width: 300px;
    left: 0px;
    transform: skewX(30deg);
    margin-left: -50px;
    padding-left: 60px;
    color: white;
}