Using the card component, I have successfully added a background image. However, I am facing difficulty in figuring out how to overlay text on top of this image. If anyone has suggestions or alternative methods, please feel free to share!
<Card>
<CardMedia
component="img"
alt={header.bg_img}
src={process.env.API_URL + header.bg_img.url}
title="Background Image"
/>
<CardContent>
<h2 className={classes.h2}>{header.title}</h2>
<p className={classes.paragraph}>{header.small_description}</p>
</CardContent>
</Card>