I am trying to figure out how to create an opaque colored overlay on top of an image using Material-UI. While it is possible with plain HTML, CSS, and JavaScript, I am facing some challenges with Material-UI.
<Card>
<CardMedia>
<img alt="" src={this.props.Webpull} />
</CardMedia>
</Card>
The code above will insert an image into a card component.
My question is: How can I implement a feature where clicking on the image adds an overlay in the color rgb(0,0,255,0.3) that remains permanently visible?
Any suggestions or solutions would be greatly appreciated! Thank you.