blob: 128a51eb5932cb6227b400af890a2d51db372705 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import React from "react";
export default class Jumbotron extends React.Component {
render() {
const {image, title, subtitle} = this.props;
return <div>
<div className="pv5 pv6-l ph3 bg-center cover" style={{
backgroundImage: image && `url(${image})`
}}>
<div className="mw7 center ph3">
<div className="db mb3">
<div className="mw7 relative bg-fix-primary mb3">
<h1 className="f2 f1-l b di lh-title mb3 white mw6 bg-primary">
{ title }
</h1>
</div>
<div className="mw7 relative bg-fix-primary">
{subtitle && <p className="b f4 di lh-title mb3 white mw6 bg-primary">{ subtitle }</p>}
</div>
</div>
</div>
</div>
</div>;
}
}
|