Skip to content

Commit

Permalink
Add sponsors (#590)
Browse files Browse the repository at this point in the history
* Uncommented SponsorTiers

* Uncommented styles in Sponsors.module.scss
- Commented unused sponsor tiers to remove extra bottom space
  • Loading branch information
IanWearsHat authored Jan 22, 2025
1 parent 1df9a9c commit 31458c9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 35 deletions.
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

0 comments on commit 31458c9

Please sign in to comment.