img conditional

This commit is contained in:
belle 2024-06-04 17:28:44 -04:00 committed by Max Wofford
parent 8aadbf4e2f
commit 69ac175dcd

View file

@ -208,18 +208,20 @@ const Tickets = ({ title, num, text, link, img, ...props }) => {
>
{text}
</Text>
<img
src={img}
alt="racoon drawing"
sx={{
width: ['35%', '35%', '35%', '50%'],
maxWidth: '210px',
position: 'absolute',
right: '0',
bottom: '0',
display: ['none', 'none', 'block', 'block']
}}
/>
{img && (
<img
src={img}
alt="racoon drawing"
sx={{
width: ['35%', '35%', '35%', '50%'],
maxWidth: '210px',
position: 'absolute',
right: '0',
bottom: '0',
display: ['none', 'none', 'block', 'block']
}}
/>
)}
</Card>
)
}