JSFiddle - React, Tailwind, and code Playground

HTML

<section class="card">
	<img src="https://picsum.photos/id/866/280">
	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</section>

CSS

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	font-size: 16px;
}

body {
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #323232;
	color: #fff;
}

.card {
	width: 17.5rem;
	transition: all 0.25s;
}

.card:hover {
	background-color: gold;
	color: #000;
}

.card img {
	width: 100%;
	clip-path: polygon(0 0, 100% 0%, 100% 85%, 50% 100%, 0 85%);
	object-fit: cover;
}

.card p {
	padding: 1rem;
}