Skip to content

Instantly share code, notes, and snippets.

@henrikhaugboelle
Created May 10, 2017 14:00
Show Gist options
  • Save henrikhaugboelle/f15e7aef050defd1090ac4f8c58505cc to your computer and use it in GitHub Desktop.
Save henrikhaugboelle/f15e7aef050defd1090ac4f8c58505cc to your computer and use it in GitHub Desktop.
import React, { Component } from 'react'
import styles from './HeroBanner.sass'
import classNames from 'classnames'
import banner from './imgs/banner.jpg'
class HeroBanner extends Component {
render() {
const banner = this.props.banner
const inlineStyles = {
HeroBanner: {
backgroundImage: `url(${banner})`
}
}
return (
<div className={styles.HeroBanner} style={inlineStyles.HeroBanner}>
<div className={styles.Overlay}></div>
<div className={styles.Content}>
<div className={styles.Message}>
<h1>{this.props.children}</h1>
</div>
<a href="">
<div className={styles.Action}>
GET STARTED
</div>
</a>
</div>
</div>
)
}
}
export default HeroBanner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment