File size: 671 Bytes
f5071ca |
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 26 27 28 29 30 31 |
import React from 'react';
import PropTypes from 'prop-types';
import './HeroImage.css';
const HeroImage = ({ image, title, text }) => (
<div className="rmdb-heroimage"
style={{
background:
`linear-gradient(to bottom, rgba(0,0,0,0)
39%,rgba(0,0,0,0)
41%,rgba(0,0,0,0.65)
100%),
url('${image}'), #1c1c1c`
}}
>
<div className="rmdb-heroimage-content">
<div className="rmdb-heroimage-text">
<h1>{title}</h1>
<p>{text}</p>
</div>
</div>
</div>
)
HeroImage.propTypes = {
image: PropTypes.string,
title: PropTypes.string,
text: PropTypes.string
}
export default HeroImage; |