Looking for assistance with using a background image and color together in a React/Typescript project with Material UI. My goal is to have a transparent color over an image. Below is the code snippet:
return (
//Todo need to do one more level of refactor
<div style={{ flex: 1, backgroundImage: `url("https://Content/images/backgrounds/91.jpg")`, backgroundSize: "cover", height: "100vh", zIndex: 2 }}>
<Grid
direction="column"
alignItems="center"
container
justifyContent="center"
sx={{height: "100vh", backgroundColor: 'rgba(0,0,235,0.3)', color:'white', zIndex: -1}}>
<Grid item>
<Paper>
The current output only shows the color overlay but I want both the background image and color to display together with transparency. Any help would be appreciated. Thank you.