Skip to content

Commit 789d282

Browse files
committed
small fixes
1 parent 4985eb9 commit 789d282

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

frontend/src/components/Sponsors/sponsorlinks.tsx renamed to frontend/src/components/Sponsors/SponsorLinks.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useState } from 'react';
22
import { diamondLinks, goldLinks, silverLinks, sponsorInfo } from '../../../public/data/data';
3-
import SponsorModal from './sponsorModal';
3+
import SponsorModal from './SponsorModal';
44

55
//import '/styles/sponsorLinks.module.css';
6-
const logostyle = 'h-14';
6+
const logostyle = 'grow-on-hover cursor-pointer transform transition-transform duration-300 hover:scale-105';
77
const logodiv = 'block gap-y-8 h-14';
88
const background = 'rgba(57, 119, 248, 0.6)';
99
// const outer = 'rounded-[4rem] w-[90rem] flex flex-col pl-14 py-14 gap-16';
@@ -38,7 +38,7 @@ function SponsorLinks() {
3838
setShowModal(true);
3939
}}
4040
>
41-
<img className={`${logostyle}`} src={item.svg} alt={item.alt} />
41+
<img className={`h-14 ${logostyle}`} src={item.svg} alt={item.alt} />
4242
</div>
4343
);
4444
})}
@@ -58,7 +58,7 @@ function SponsorLinks() {
5858
setShowModal(true);
5959
}}
6060
>
61-
<img className="h-6" src={item.svg} alt={item.alt} />
61+
<img className={`h-6 ${logostyle}`} src={item.svg} alt={item.alt} />
6262
</div>
6363
);
6464
})}
@@ -78,7 +78,7 @@ function SponsorLinks() {
7878
setShowModal(true);
7979
}}
8080
>
81-
<img className="h-8" src={item.svg} alt={item.alt} />
81+
<img className={`h-8 ${logostyle}`} src={item.svg} alt={item.alt} />
8282
</div>
8383
);
8484
})}

frontend/src/components/Sponsors/sponsorModal.tsx renamed to frontend/src/components/Sponsors/SponsorModal.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,23 @@ export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; s
1010
}
1111
return (
1212
<div
13-
className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"
13+
className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50"
1414
onClick={() => {
1515
props.setFalse();
1616
}}
1717
>
1818

1919
<div className="bg-[#3977f8] relative w-[800px] h-[550px] mb-10 mx-10 rounded-xl flex flex-col items-center justify-center">
20-
<motion.a whileHover={{
21-
scale: 1.2,
22-
transition: { duration: 0.2 },
23-
}} className="w-4/5 m-10 flex flex-col items-center justify-center" href={props.sponsorInfo.href}>
24-
<img className='w-4/5 max-w-[400px] max-h-[250px]' src={`./${props.sponsorInfo.svg}`} alt={props.sponsorInfo.alt} />
20+
<motion.a
21+
whileHover={{
22+
scale: 1.2,
23+
transition: { duration: 0.2 },
24+
}}
25+
className="w-4/5 m-10 flex flex-col items-center justify-center"
26+
href={props.sponsorInfo.href}
27+
target="_blank"
28+
>
29+
<img className='w-4/5 max-w-[300px] max-h-[200px]' src={`./${props.sponsorInfo.svg}`} alt={props.sponsorInfo.alt} />
2530
</motion.a >
2631
<h3 className="mx-10 py-10">{props.sponsorInfo.description}</h3>
2732
<button
@@ -33,4 +38,4 @@ export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; s
3338
</div>
3439
</div>
3540
);
36-
}
41+
}

frontend/src/pages/sponsors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Navbar from '@/components/Navbar';
22
import Footer from '@/components/Footer';
3-
import SponsorLinks from '@/components/Sponsors/sponsorlinks';
3+
import SponsorLinks from '@/components/Sponsors/SponsorLinks';
44

55
export default function SponsorsPage() {
66
return (

0 commit comments

Comments
 (0)