tj-sga-website-react/src/components/Segment.tsx
2021-01-07 10:05:27 -05:00

15 lines
443 B
TypeScript

import BlueButtonLink from './BlueButtonLink';
import SegmentHeader from './SegmentHeader';
export default function Segment({ title, content, imageUrl, infoUrl }) {
return (
<div style={{ textAlign: 'center', padding: '0px 17px' }}>
<SegmentHeader>{title}</SegmentHeader>
<img src={imageUrl} alt={title} />
<p className='strong-paragraph'>{content}</p>
<BlueButtonLink href={infoUrl}>MORE INFO</BlueButtonLink>
</div>
);
}