2024-01-29 00:04:58 -08:00
|
|
|
import React from 'react';
|
2024-07-15 16:31:22 +01:00
|
|
|
import styles from './styles.module.scss';
|
2024-01-29 00:04:58 -08:00
|
|
|
|
|
|
|
|
const HeroBanner = ({ title, subheading, backgroundImage }) => {
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
className={styles.heroBanner}
|
|
|
|
|
style={{ backgroundImage: `url(${backgroundImage})` }}
|
|
|
|
|
>
|
|
|
|
|
<div className={styles.textSection}>
|
|
|
|
|
<h1>{title}</h1>
|
|
|
|
|
<p>{subheading}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default HeroBanner;
|