a {
width: 300px;
height: 200px;
background: #000;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.card {
position: relative;
}
.card .card__link::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: '';
}