Skip to content

Commit c56b08d

Browse files
Merge pull request #152 from umdevclub/feat/sponsors
refactor: sponsor tiers and events page
2 parents e9f2673 + 7cc3ef6 commit c56b08d

File tree

6 files changed

+30
-32
lines changed

6 files changed

+30
-32
lines changed

src/resources/data/devHacksArchive/HackathonYearSponsors.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ type Tier = "platinum" | "gold" | "silver" | "bronze" | "inkind";
4040
type Sponsor = { name: string; logo: string };
4141
type YearSponsors = Partial<Record<Tier, Sponsor[]>>;
4242

43-
/** Optional: nicer titles per tier */
4443
const TIER_LABEL: Record<Tier, string> = {
4544
platinum: "Platinum Sponsor",
4645
gold: "Gold Sponsor",
@@ -49,29 +48,28 @@ const TIER_LABEL: Record<Tier, string> = {
4948
inkind: "In-Kind Sponsors",
5049
};
5150

52-
/** Render order */
5351
const TIER_ORDER: Tier[] = ["platinum", "gold", "silver", "bronze", "inkind"];
5452

5553
const HackathonYearSponsors: React.FC<HackathonYearSponsorsProps> = ({
5654
year,
5755
}) => {
5856
const sponsorsByYear: Record<string, YearSponsors> = {
59-
/* -------------------- 2026 -------------------- */
6057
"2026": {
61-
// platinum: [{ name: "Ubisoft", logo: Ubisoft2026 }],
58+
platinum: [{ name: "QDoc Virtual", logo: Ubisoft2026 }],
6259
gold: [{ name: "G3", logo: G3_2026 }],
6360
silver: [
6461
{ name: "Niche", logo: Niche2026 },
6562
{ name: "Pollard", logo: Pollard2026 },
63+
{ name: "Ubisoft", logo: Ubisoft2026 },
64+
],
65+
inkind: [
66+
{
67+
name: "UMSU CARES",
68+
logo: umsuCares,
69+
},
6670
],
67-
// inkind: [
68-
// {
69-
// name:"UMSU CARES", logo:umsuCares,
70-
// }
71-
// ],
7271
},
7372

74-
/* -------------------- 2025 -------------------- */
7573
"2025": {
7674
gold: [{ name: "Glitch Secure", logo: GlitchSecure }],
7775
silver: [
@@ -81,13 +79,14 @@ const HackathonYearSponsors: React.FC<HackathonYearSponsorsProps> = ({
8179
{ name: "Priceline", logo: Priceline2025 },
8280
{ name: "G3", logo: G3_2025 },
8381
{ name: "Pollard", logo: Pollard2025 },
82+
],
83+
inkind: [
8484
{ name: "SSA", logo: SSA },
8585
{ name: "umsuCares", logo: umsuCares },
8686
{ name: "FOS", logo: FOS },
8787
],
8888
},
8989

90-
/* -------------------- 2024 -------------------- */
9190
"2024": {
9291
gold: [{ name: "Priceline", logo: Priceline2024 }],
9392
silver: [
@@ -100,7 +99,6 @@ const HackathonYearSponsors: React.FC<HackathonYearSponsorsProps> = ({
10099
],
101100
},
102101

103-
/* -------------------- 2023 -------------------- */
104102
"2023": {
105103
gold: [{ name: "Neo", logo: Neo }],
106104
silver: [

src/resources/data/events.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export const EVENTS: EventData[] = [
5858
upcomingImage: google,
5959
date: "2025-11-18T16:00:00",
6060
location: "EITC E3-270",
61-
rsvp: "https://docs.google.com/forms/d/e/1FAIpQLSeQ4ElP6kT1S7eUlr147fXRVJluoefPmufUzXmG1VYtyCxs4A/viewform?usp=send_form",
6261
},
6362
{
6463
id: "rendezvous",

src/routes/Events.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function Events() {
214214
return (
215215
<article key={`${ev.id}-${idx}`} className="event-card">
216216
{active !== "Upcoming" && ev.recurring && (
217-
<span className="event-badge">✔️</span>
217+
<span className="event-badge">Recurring</span>
218218
)}
219219
{media}
220220

src/routes/hackathon/HackathonArchive.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import React from "react";
22
import { useLoaderData, useNavigate } from "react-router-dom";
33
import { Button } from "@mui/material";
44

5-
import HackathonFaq from "@/components/HackathonFaq";
5+
// import HackathonFaq from "@/components/HackathonFaq";
66

7-
import codeOfConduct from "@/resources/data/code-of-conduct";
7+
// import codeOfConduct from "@/resources/data/code-of-conduct";
88

99
import HackathonYearPictures from "@/resources/data/devHacksArchive/HackathonYearPictures";
1010
import HackathonYearSponsors from "@/resources/data/devHacksArchive/HackathonYearSponsors";
11-
import rules from "@/resources/data/rules";
11+
// import rules from "@/resources/data/rules";
1212
import { HackathonInfo } from "@/resources/data/types";
1313

1414
function HackathonArchive() {
@@ -46,13 +46,13 @@ function HackathonArchive() {
4646
</div>
4747
</div>
4848

49-
<h1 className="hackathon-sponsors heading">Sponsors:</h1>
49+
<h1 className="hackathon-sponsors heading">Sponsors</h1>
5050
<HackathonYearSponsors year={data.year} />
5151

5252
<h1 className="hackathon-sponsors heading">Event Pictures</h1>
5353
<HackathonYearPictures year={data.year} />
5454

55-
<div className="hackathon-rules container" id="rules">
55+
{/* <div className="hackathon-rules container" id="rules">
5656
<h1 className="hackathon-rules heading">Rules:</h1>
5757
<div className="hackathon-rules text-container">
5858
<p>
@@ -77,9 +77,9 @@ function HackathonArchive() {
7777
))}
7878
</ol>
7979
</div>
80-
</div>
80+
</div> */}
8181

82-
<div className="hackathon-code-conduct container" id="code-of-conduct">
82+
{/* <div className="hackathon-code-conduct container" id="code-of-conduct">
8383
<h1 className="hackathon-code-conduct heading">Code Of Conduct:</h1>
8484
<div className="hackathon-code-conduct text-container">
8585
<p>
@@ -105,11 +105,11 @@ function HackathonArchive() {
105105
))}
106106
</ol>
107107
</div>
108-
</div>
108+
</div> */}
109109

110-
<div className="container">
110+
{/* <div className="container">
111111
<HackathonFaq />
112-
</div>
112+
</div> */}
113113
</div>
114114
);
115115
}

src/styles/Events.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
top: 10px;
286286
right: 10px;
287287
background: #000000c2;
288-
color: #000;
288+
color: #e3e3e3;
289289
font-size: 12px;
290290
font-weight: 700;
291291
padding: 0.3em 0.6em;

src/styles/devHacksSponsors.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "media-queries.scss";
2+
13
.sponsors-container {
24
display: flex;
35
font-family: "IBM Plex Mono", monospace;
@@ -37,32 +39,31 @@
3739
object-fit: contain;
3840
}
3941

40-
/* tier-specific sizing */
4142
.tier--platinum .sponsor img {
4243
max-width: 450px;
4344
}
4445
.tier--gold .sponsor img {
45-
max-width: 320px;
46+
max-width: 400px;
4647
}
4748
.tier--silver .sponsor img {
48-
max-width: 250px;
49+
max-width: 200px;
4950
}
5051
.tier--bronze .sponsor img {
5152
max-width: 160px;
5253
}
5354
.tier--inkind .sponsor img {
54-
max-width: 130px;
55+
max-width: 150px;
5556
}
5657

57-
@media (max-width: 1024px) {
58+
@include tablet {
5859
.tier--platinum .sponsor img {
5960
max-width: 420px;
6061
}
6162
.tier--gold .sponsor img {
6263
max-width: 360px;
6364
}
6465
.tier--silver .sponsor img {
65-
max-width: 150px;
66+
max-width: 130px;
6667
}
6768
.tier--bronze .sponsor img {
6869
max-width: 120px;
@@ -72,7 +73,7 @@
7273
}
7374
}
7475

75-
@media (max-width: 768px) {
76+
@include mobile {
7677
.tier--platinum .sponsor img {
7778
max-width: 320px;
7879
}

0 commit comments

Comments
 (0)