Skip to content

Commit e1f7a4e

Browse files
committed
messed around with css enough to eventually make card responsive and specify max height/width
1 parent a2fb171 commit e1f7a4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/src/components/Sponsors/sponsorModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; s
1515
props.setFalse();
1616
}}
1717
>
18-
<div className="bg-[#3977f8] mx-[10vw] py-10 rounded-xl overflow-auto flex flex-col items-center justify-center w-[800px]">
19-
<a className="m-10" href={props.sponsorInfo.href}>
20-
<img src={`./${props.sponsorInfo.svg}`} alt={props.sponsorInfo.alt} />
18+
<div className="bg-[#3977f8] relative w-[800px] h-[550px] m-10 rounded-xl flex flex-col items-center justify-center">
19+
<a className="m-10 w-4/5 flex flex-col items-center justify-center" href={props.sponsorInfo.href}>
20+
<img className='w-4/5 max-w-[500px] max-h-[200px]' src={`./${props.sponsorInfo.svg}`} alt={props.sponsorInfo.alt} />
2121
</a>
2222
<h3 className="mx-10 py-10">{props.sponsorInfo.description}</h3>
2323
<button
2424
onClick={props.setFalse}
25-
className="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[70%] xl:h-12 h-10"
25+
className="bg-white border absolute bottom-10 text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[70%] xl:h-12 h-10"
2626
>
2727
close
2828
</button>

0 commit comments

Comments
 (0)