mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-05-23 02:29:51 -04:00
25 lines
411 B
TypeScript
25 lines
411 B
TypeScript
import '../css/hero.css';
|
|
|
|
export default function Hero({
|
|
imageURL = '/images/hero.jpg',
|
|
heading = 'TJHSST SGA',
|
|
}: {
|
|
imageURL?: string;
|
|
heading?: string;
|
|
}) {
|
|
return (
|
|
<div className='hero'>
|
|
<span className='hero-heading'>{heading}</span>
|
|
<img
|
|
src={imageURL}
|
|
alt='Background'
|
|
style={{
|
|
width: '100vw',
|
|
maxHeight: '60vh',
|
|
objectFit: 'contain',
|
|
}}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|