-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSponsors.tsx
More file actions
177 lines (154 loc) · 9.29 KB
/
Sponsors.tsx
File metadata and controls
177 lines (154 loc) · 9.29 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
import { Title } from "@mui/icons-material";
import CallToAction from "../features/CallToAction/CallToAction";
import Sponsor from "../features/SponsorsFeature/Sponsor";
import SponsorsEmpty from "../features/SponsorsEmpty/SponsorsEmpty";
import TitleHero from "../features/TitleHero/TitleHero";
import { motion, useScroll, useTransform } from "framer-motion";
import { useRef } from "react";
import SponsorProps from "../features/SponsorsFeature/SponsorProps";
import bitgetLogo from "../assets/logos/Sponsors/BitgetLogo.png";
import noMossLogo from "../assets/logos/Sponsors/noMossLogo.png";
import superNormalLogo from "../assets/logos/Sponsors/supernormalLogo.png";
const Sponsors = () => {
const sponsorTitles = ["Gold Supporters", "Silver Supporters", "Bronze Supporters"];
const heroInfo = {
title: "Sponsorships",
body: "These are the amazing companies that help us make HackMelbourne happen. We are always looking for new sponsors to support us, so if you are interested, please get in touch!",
};
const goldInfo: SponsorProps[] = [
// {
// tier: "Gold",
// image: bitgetLogo,
// sponsor: "Bitget",
// desc: "Established in 2018, Bitget is a global cryptocurrency exchange and Web3 company, serving over 20 million users in 100+ countries and regions. Together with Bitget Wallet - a world-class multi-chain crypto wallet that features swap, NFTs, DApps and more. Bitget wants to inspire everyone to embrace crypto, partnering with the likes of Argentinian footballer Lionel Messi and eSports event organiser PGL.",
// button: "Visit website",
// website: "https://partner.bitget.com/bg/KEHLYS_HackMelb",
// },
];
const silverInfo: SponsorProps[] = [
// {
// tier: "Silver",
// image: noMossLogo,
// sponsor: "No Moss",
// desc: "No Moss is a multi-disciplinary consultancy delivering bespoke agility transformation, purposeful product innovation, and empathy-led technology development.",
// button: "Visit website",
// website: "https://nomoss.co/",
// },
// {
// tier: "Silver",
// image: superNormalLogo,
// sponsor: "Supernormal",
// desc: "Cutting-edge technology woven into every fabric of your brand. Utilise our world-class application of technology, automation, and growth strategies.",
// button: "Visit website",
// website: "https://www.snl-labs.com/",
// },
];
const bronzeInfo: SponsorProps[] = [
// {
// tier: 'Bronze',
// image: 'https://s3-alpha-sig.figma.com/img/eae3/13a4/8883a46e7a2a60ee806e73a8052191be?Expires=1707091200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=QE8DL8L~Sl2RWKN0qVqamFT04EEngweh7JelISA4jHq4cn4tbZ0~4kfbaP4ny2HskXsagXV~waCFv373SI1mOyOF4SspQB3hArke5pD6Xc2ilacYu2XzqdL7sNmbHknv~jCHgGd5M95sP0nei07d~YTs9V1Q6Uur~zzLclve~s3EpttKzVU6giohnVIAN6OKg1Zfzdzc0WRUhEfZG~M3FRDJBLZ-zg94pkj98SxuNNGUXQ39PsvaBXCOeQJ6ALpfJLituHWQVOIS4bk~dTWtdlAJY0CNLYJN7S9mdyJTBufu9TAzO83azCHhwNKDwfGNlKX3jhFVhMzAihoRTdgljQ__',
// desc: 'A brief introduction. Burger king whopper woohoo i love whoppers in foot lettuce.',
// },
// {
// tier: 'Bronze',
// image: 'https://s3-alpha-sig.figma.com/img/eae3/13a4/8883a46e7a2a60ee806e73a8052191be?Expires=1707091200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=QE8DL8L~Sl2RWKN0qVqamFT04EEngweh7JelISA4jHq4cn4tbZ0~4kfbaP4ny2HskXsagXV~waCFv373SI1mOyOF4SspQB3hArke5pD6Xc2ilacYu2XzqdL7sNmbHknv~jCHgGd5M95sP0nei07d~YTs9V1Q6Uur~zzLclve~s3EpttKzVU6giohnVIAN6OKg1Zfzdzc0WRUhEfZG~M3FRDJBLZ-zg94pkj98SxuNNGUXQ39PsvaBXCOeQJ6ALpfJLituHWQVOIS4bk~dTWtdlAJY0CNLYJN7S9mdyJTBufu9TAzO83azCHhwNKDwfGNlKX3jhFVhMzAihoRTdgljQ__',
// desc: 'A brief introduction. Burger king whopper woohoo i love whoppers in foot lettuce. ',
// },
// {
// tier: 'Bronze',
// image: 'https://s3-alpha-sig.figma.com/img/eae3/13a4/8883a46e7a2a60ee806e73a8052191be?Expires=1707091200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=QE8DL8L~Sl2RWKN0qVqamFT04EEngweh7JelISA4jHq4cn4tbZ0~4kfbaP4ny2HskXsagXV~waCFv373SI1mOyOF4SspQB3hArke5pD6Xc2ilacYu2XzqdL7sNmbHknv~jCHgGd5M95sP0nei07d~YTs9V1Q6Uur~zzLclve~s3EpttKzVU6giohnVIAN6OKg1Zfzdzc0WRUhEfZG~M3FRDJBLZ-zg94pkj98SxuNNGUXQ39PsvaBXCOeQJ6ALpfJLituHWQVOIS4bk~dTWtdlAJY0CNLYJN7S9mdyJTBufu9TAzO83azCHhwNKDwfGNlKX3jhFVhMzAihoRTdgljQ__',
// desc: 'A brief introduction. Burger king whopper woohoo i love whoppers in foot lettuce.',
// },
];
// Community tier is not used
// const communityInfo: SponsorProps[] = [
// // {
// // tier: 'Community',
// // image: 'https://s3-alpha-sig.figma.com/img/eae3/13a4/8883a46e7a2a60ee806e73a8052191be?Expires=1707091200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=QE8DL8L~Sl2RWKN0qVqamFT04EEngweh7JelISA4jHq4cn4tbZ0~4kfbaP4ny2HskXsagXV~waCFv373SI1mOyOF4SspQB3hArke5pD6Xc2ilacYu2XzqdL7sNmbHknv~jCHgGd5M95sP0nei07d~YTs9V1Q6Uur~zzLclve~s3EpttKzVU6giohnVIAN6OKg1Zfzdzc0WRUhEfZG~M3FRDJBLZ-zg94pkj98SxuNNGUXQ39PsvaBXCOeQJ6ALpfJLituHWQVOIS4bk~dTWtdlAJY0CNLYJN7S9mdyJTBufu9TAzO83azCHhwNKDwfGNlKX3jhFVhMzAihoRTdgljQ__',
// // },
// // {
// // tier: 'Community',
// // image: 'https://s3-alpha-sig.figma.com/img/eae3/13a4/8883a46e7a2a60ee806e73a8052191be?Expires=1707091200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=QE8DL8L~Sl2RWKN0qVqamFT04EEngweh7JelISA4jHq4cn4tbZ0~4kfbaP4ny2HskXsagXV~waCFv373SI1mOyOF4SspQB3hArke5pD6Xc2ilacYu2XzqdL7sNmbHknv~jCHgGd5M95sP0nei07d~YTs9V1Q6Uur~zzLclve~s3EpttKzVU6giohnVIAN6OKg1Zfzdzc0WRUhEfZG~M3FRDJBLZ-zg94pkj98SxuNNGUXQ39PsvaBXCOeQJ6ALpfJLituHWQVOIS4bk~dTWtdlAJY0CNLYJN7S9mdyJTBufu9TAzO83azCHhwNKDwfGNlKX3jhFVhMzAihoRTdgljQ__',
// // },
// // {
// // tier: 'Community',
// // image: 'https://s3-alpha-sig.figma.com/img/eae3/13a4/8883a46e7a2a60ee806e73a8052191be?Expires=1707091200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=QE8DL8L~Sl2RWKN0qVqamFT04EEngweh7JelISA4jHq4cn4tbZ0~4kfbaP4ny2HskXsagXV~waCFv373SI1mOyOF4SspQB3hArke5pD6Xc2ilacYu2XzqdL7sNmbHknv~jCHgGd5M95sP0nei07d~YTs9V1Q6Uur~zzLclve~s3EpttKzVU6giohnVIAN6OKg1Zfzdzc0WRUhEfZG~M3FRDJBLZ-zg94pkj98SxuNNGUXQ39PsvaBXCOeQJ6ALpfJLituHWQVOIS4bk~dTWtdlAJY0CNLYJN7S9mdyJTBufu9TAzO83azCHhwNKDwfGNlKX3jhFVhMzAihoRTdgljQ__',
// // },
// ];
const sponsorCTA = {
title: ["Be a", "Hack", "Melbourne sponsor for 2025"],
desc: ["Help us run our events and make a difference in the community!"],
button: "Learn More",
link: "mailto:sponsorship@hack.melbourne",
};
// Animations
const scrollRef = useRef(null);
const { scrollYProgress } = useScroll({
target: scrollRef,
offset: ["start start", "end start"],
});
const y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
const opacityValue = useTransform(scrollYProgress, [0, 0.7], ["100%", "0%"]);
const scaleValue = useTransform(scrollYProgress, [0, 0.8], ["1", "0.9"]);
return (
<div className="w-screen max-w-full">
<motion.section ref={scrollRef} style={{ y, opacity: opacityValue, scale: scaleValue }}>
<TitleHero pageTitle={heroInfo.title} pageDescription={heroInfo.body}></TitleHero>
</motion.section>
{/* Gold */}
<section>
<h2 className="text-4xl text-center font-extrabold mt-28 mb-9">{sponsorTitles[0]}</h2>
{goldInfo.length > 0 ? (
<div className="grid grid-rows-1 grid-cols-1 justify-items-center gap-5 px-8 md:max-w-screen-md m-auto">
{goldInfo.map((gold) => (
<Sponsor {...gold} />
))}
</div>
) : (
<SponsorsEmpty tier="gold" button="Learn more" link={sponsorCTA.link}></SponsorsEmpty>
)}
</section>
{/* Silver */}
{/* <section>
<h2 className="text-4xl text-center font-extrabold mt-28 mb-9">{sponsorTitles[1]}</h2>
{silverInfo.length > 0 ? (
<div className="grid grid-rows-1 md:grid-cols-2 justify-items-center gap-5 w-[350px] md:w-11/12 md:max-w-[1020px] m-auto">
{silverInfo.map((silver) => (
<Sponsor {...silver} />
))}
</div>
) : (
<SponsorsEmpty tier="silver" button="Learn more" link={sponsorCTA.link}></SponsorsEmpty>
)}
</section> */}
{/* Bronze */}
{/* <section>
<h2 className="text-4xl text-center font-extrabold mt-28 mb-9">{sponsorTitles[2]}</h2>
{bronzeInfo.length > 0 ? (
<div className="grid grid-rows-3 lg:grid-rows-1 lg:grid-cols-3 w-max h-max m-auto border border-white rounded-xl overflow-hidden">
{silverInfo.map((bronze) => (
<Sponsor {...bronze} />
))}
</div>
) : (
<SponsorsEmpty tier="bronze" button="Learn more" link={sponsorCTA.link}></SponsorsEmpty>
)}
</section> */}
{/* Community NOT USED*/}
{/* <section>
<h2 className="text-4xl text-center font-extrabold mt-28 mb-9">{sponsorTitles[3]}</h2>
{communityInfo.length > 0 ? (
<div className="grid grid-rows-3 lg:grid-rows-1 lg:grid-cols-3 w-max m-auto border border-white rounded-xl overflow-hidden">
{communityInfo.map((comm) => (
<Sponsor {...comm} />
))}
</div>
) : (
<SponsorsEmpty tier="community" button="Learn more" link={sponsorCTA.link}></SponsorsEmpty>
)}
</section> */}
<CallToAction title={sponsorCTA.title} desc={sponsorCTA.desc} button={sponsorCTA.button} link={sponsorCTA.link} />
</div>
);
};
export default Sponsors;