Last active
March 12, 2018 21:07
-
-
Save tgrecojs/f6bfc761106dbe1df464bd9217ccebb8 to your computer and use it in GitHub Desktop.
source/Banner/component.js
This file contains 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
const Image = ({headline, bgColor, image }) => | |
<div className="banner" style={{background: bgColor}}> | |
<img className="bannerImage" src={`${image.url}`} alt="tg banner"/> | |
<h2>{headline}</h2> | |
</div> | |
export default Image; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment