-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsponsors.tsx
68 lines (64 loc) · 2.62 KB
/
sponsors.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import Layout from '@/components/Layout';
import { useState } from 'react';
import { diamondLinks, goldLinks, silverLinks, sponsorInfo } from '@/../public/data/sponsorInfos';
import SponsorModal from '@/components/Sponsors/SponsorModal';
export default function SponsorsPage() {
const logostyle =
'grow-on-hover cursor-pointer transform transition-transform duration-300 hover:scale-105';
const [showModal, setShowModal] = useState(false);
const [information, setInformation] = useState<sponsorInfo | null>(null);
const handleSponsorClick = (info: sponsorInfo) => {
setInformation(info);
setShowModal(true);
};
return (
<Layout>
<section className="py-8">
<h2 className="text-4xl font-black text-center font-bold">DIAMOND SPONSORS</h2>
<div>
<div className="w-100 flex flex-col gap-16">
{showModal && (
<SponsorModal
sponsorInfo={information}
setFalse={() => setShowModal(false)}
/>
)}
<div className="flex flex-wrap rounded-[1rem] px-14 py-10 mb-14 gap-16 justify-center rounded border-2 border-[#595F6D] my-10">
{diamondLinks.map((item, index) => {
return (
<div key={index} onClick={() => handleSponsorClick(item)}>
<img className={`h-14 ${logostyle}`} src={item.svg} alt={item.alt} />
</div>
);
})}
</div>
</div>
</div>
<h2 className="text-4xl font-black text-center font-bold">GOLD SPONSORS</h2>
<div>
<div className="flex flex-wrap rounded-[1rem] px-14 py-10 mb-14 gap-16 justify-evenly rounded border-2 border-[#595F6D] my-10">
{goldLinks.map((item, index) => {
return (
<div key={index} onClick={() => handleSponsorClick(item)}>
<img className={`h-14 ${logostyle}`} src={item.svg} alt={item.alt} />
</div>
);
})}
</div>
</div>
<h2 className="text-4xl font-black text-center font-bold">SILVER SPONSORS</h2>
<div>
<div className="flex flex-wrap rounded-[1rem] px-14 py-10 mb-14 gap-16 justify-evenly rounded border-2 border-[#595F6D] mt-10">
{silverLinks.map((item, index) => {
return (
<div key={index} onClick={() => handleSponsorClick(item)}>
<img className={`h-14 ${logostyle}`} src={item.svg} alt={item.alt} />
</div>
);
})}
</div>
</div>
</section>
</Layout>
);
}