add flex to segments

This commit is contained in:
Michael Fatemi 2021-10-10 00:26:41 -04:00
parent f144b6aa93
commit 1099f4ad75

View File

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