Created
March 13, 2018 20:50
-
-
Save dmchandru/7992e5b6197aa5ad5e579d410cef328e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getThumbImage(image) { | |
return (<div style={{position:'relative'}}><img className="car-image" src={require(`../static/images/${image}`)} alt=""/><span style={coloroverlay}></span></div>); | |
} | |
var coloroverlay = { | |
position: absolute; | |
left: 0; | |
top: 0; | |
width: 100%; | |
height: 100%; | |
background-color: rgba(255, 0, 0, 0.34); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment