Skip to content
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

Add sponsors #590

Merged
merged 2 commits into from
Jan 22, 2025
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
background: #0c071b;

// What a crazy way to do the inner border lines
// &::before,
// &::after,
// .horizontalLine {
// content: "";
// position: absolute;
// background: white;
// }
&::before,
&::after,
.horizontalLine {
content: "";
position: absolute;
background: white;
}

// Vertical lines
&::before {
Expand Down Expand Up @@ -90,12 +90,8 @@
margin-top: 2rem;
}
.sponsorsContainer {
// padding: 3rem;
// padding-bottom: 8rem;

// temp padding for before we put sponsors
padding: 1rem;
padding-bottom: 2rem;
padding: 3rem;
padding-bottom: 8rem;
}
}

Expand All @@ -116,12 +112,8 @@
max-height: 300px;
}
.sponsorsContainer {
// padding: 6rem;
// padding-bottom: 16rem;

// temp padding for before we put sponsors
padding: 1rem;
padding-bottom: 2rem;
padding: 6rem;
padding-bottom: 16rem;
}
.sponsorsGrid {
gap: 1.5rem;
Expand Down
33 changes: 17 additions & 16 deletions apps/site/src/app/(main)/(home)/sections/Sponsors/Sponsors.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// import { getSponsors } from "./getSponsors";
// import SponsorTier from "./components/SponsorTier/SponsorTier";
import { getSponsors } from "./getSponsors";
import SponsorTier from "./components/SponsorTier/SponsorTier";
import styles from "./Sponsors.module.scss";

// const TIERS = [
// "platinum",
// "gold",
// "silver",
// "bronze",
// "sponsored-prize",
// "in-kind",
// ];
// no sponsors under bronze for IH 2025
const TIERS = [
"platinum",
"gold",
"silver",
// "bronze",
// "sponsored-prize",
// "in-kind",
];

const Sponsors = async () => {
// const sponsors = await getSponsors();
const sponsors = await getSponsors();

return (
<section className="container py-24 md:my-16 relative items-center flex flex-col md:p-8 w-4/5 mx-auto text-center">
Expand All @@ -35,22 +36,22 @@ const Sponsors = async () => {
<div className="h-[2px] bg-white flex-grow mr-[2rem] mt-[0.5rem]" />
</div>

{/* {TIERS.map((tier) => (
{TIERS.map((tier) => (
<div key={tier}>
<SponsorTier
sponsors={sponsors.get(tier)}
className={styles[tier]}
/>
</div>
))} */}
))}

{/* <div className={`${styles.horizontalLine} ${styles.bottom}`} /> */}
{/* <div className={styles.cornerSquares}>
<div className={`${styles.horizontalLine} ${styles.bottom}`} />
<div className={styles.cornerSquares}>
<div className={styles.topLeft} />
<div className={styles.topRight} />
<div className={styles.bottomLeft} />
<div className={styles.bottomRight} />
</div> */}
</div>
</div>
</section>
);
Expand Down
Loading