Skip to content

Re-add sponsors section #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Home() {
/>
</div>
</section>
{/* <Sponsors /> */}
<Sponsors />
</>
);
}
2 changes: 1 addition & 1 deletion src/components/OngoingEventBanner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';

const config = {
enabled: true,
enabled: false,
visibleStartUtc: Date.parse('2025-02-27T18:00:00Z'), // UTC time
visibleEndUtc: Date.parse('2025-03-02T18:00:00Z'), // UTC time
title: "HackIllinois, UIUC's premier collegiate hackathon, is happening now!",
Expand Down
260 changes: 0 additions & 260 deletions src/components/Sponsors/IMC_logo.svg

This file was deleted.

Binary file removed src/components/Sponsors/Numerade_Logo.png
Binary file not shown.
56 changes: 26 additions & 30 deletions src/components/Sponsors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,49 @@ import Link from 'next/link';
import NextImage from 'next/image';
import Transition from '@/components/Transition';

import NumeradeLogo from './Numerade_Logo.png';
import IMCLogo from './IMC_logo.svg';

const mailToUrl =
'mailto:deeyaab2@illinois.edu, howardd2@illinois.edu?subject=%5BCOMPANY%20NAME%5D%20Interest%20in%20ACM%20%40%20UIUC';
'mailto:corporate@acm.illinois.edu?subject=%5BCOMPANY%20NAME%5D%20Interest%20in%20ACM%20%40%20UIUC';

type SponsorEntry = {
name: string;
url: string;
logo: string;
};
const sponsors: SponsorEntry[] = [];

function Sponsors() {
return (
<>
<Transition bgClass="bg-surface-100" />
<section id="sponsors" className="bg-surface-100 pt-6 pb-24">
<div className="container flex flex-col gap-6">
<h1>Sponsors</h1>
<h1>{sponsors.length > 0 ? 'Sponsors' : 'Sponsor Us'}</h1>
<p className="text-xl max-w-prose">
ACM is thankful to these generous companies who support our
organization. Sponsor companies get access to our resume book and
some other cool things. If you&apos;re interested in sponsoring ACM,
please contact{' '}
{sponsors.length > 0 &&
'ACM is thankful to these generous companies who support our organization.'}{' '}
Sponsor companies get access to our resume book, ability to hold
sponsored events, and other cool benefits! If you&apos;re interested
in sponsoring ACM @ UIUC, please{' '}
<Link
href={mailToUrl}
className="underline text-primary hover:text-secondary"
>
us here
contact us
</Link>
.
</p>
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-16 items-center">
<a
href="https://numerade.com"
target="_blank"
rel="noopener noreferrer"
>
<NextImage
className="w-full h-auto"
src={NumeradeLogo}
alt="Numerade Logo"
loading="lazy"
/>
</a>
<a href="https://imc.com" target="_blank" rel="noopener noreferrer">
<NextImage
className="w-full h-auto"
src={IMCLogo}
alt="IMC Logo"
loading="lazy"
/>
</a>
{sponsors.length > 0 &&
sponsors.map((x) => (
<a href={x.url} target="_blank" rel="noopener noreferrer">
<NextImage
className="w-full h-auto"
src={x.logo}
alt={`${x.name} logo`}
loading="lazy"
/>
</a>
))}
</div>
</div>
</section>
Expand Down
13 changes: 6 additions & 7 deletions src/sections/about/LeadershipSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export default function LeadershipSection() {
name="Jacob Levine"
img={chair}
/>,
<LeadershipCard
key={"vicechair"}
<LeadershipCard
key={'vicechair'}
title="Vice Chair"
name="Sherry Long"
img={vicechair}
name="Sherry Long"
img={vicechair}
/>,
<LeadershipCard
key={'treasurer'}
Expand All @@ -31,9 +31,8 @@ export default function LeadershipSection() {
title="Secretary"
name="Krish Gangal"
img={secretary}
/>

]
/>,
];
return (
<section id="leadership" className="container flex flex-col">
<h1>Leadership</h1>
Expand Down
4 changes: 3 additions & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const baseurl = process.env.NEXT_PUBLIC_EVENTS_API_BASE_URL || '';

export async function fetchUpcomingEvents() {
try {
const response = await fetch(`${baseurl}/api/v1/events?upcomingOnly=true&featuredOnly=true`);
const response = await fetch(
`${baseurl}/api/v1/events?upcomingOnly=true&featuredOnly=true`,
);
const rawDates = (await response.json()) as IEvent[];
return transformApiDates(rawDates);
} catch (err: any) {
Expand Down