Skip to content

Commit 23446a7

Browse files
committed
Merge main into feature/sponsors branch
1 parent 5a6c684 commit 23446a7

File tree

3 files changed

+4594
-8740
lines changed

3 files changed

+4594
-8740
lines changed

apps/site/src/app/(home)/sections/Sponsors/Sponsors.module.scss

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@use "zothacks-theme" as theme;
22
@use "bootstrap-utils" as utils;
33

4-
54
.title {
65
text-align: center;
76
color: theme.$white;
@@ -16,38 +15,38 @@
1615

1716
.logos {
1817
display: flex;
19-
flex-wrap: wrap;
20-
justify-content: center;
18+
flex-direction: column;
19+
align-items: center;
2120
gap: 1.5rem;
2221
max-width: 1200px;
2322
margin: 0 auto;
2423
}
2524

2625
.logo {
27-
width: calc(50% - 1.5rem);
28-
aspect-ratio: 16 / 9;
2926
background-color: theme.$white;
3027
border-radius: 8px;
3128
display: flex;
3229
align-items: center;
3330
justify-content: center;
3431
transition: transform 0.3s ease;
32+
aspect-ratio: 16 / 9;
33+
width: 100%;
3534

3635
&:hover {
3736
transform: scale(1.05);
3837
}
3938

40-
@include utils.media-breakpoint-up(sm) {
41-
width: calc(33.333% - 1.5rem);
42-
}
39+
// Default size (bronze tier)
40+
max-width: 500px;
4341

44-
@include utils.media-breakpoint-up(lg) {
45-
width: calc(25% - 1.5rem);
42+
// Gold tier sizing
43+
&.gold {
44+
max-width: 700px;
4645
}
4746

4847
img {
49-
max-width: 80%;
50-
max-height: 80%;
48+
max-width: 95%;
49+
max-height: 95%;
5150
object-fit: contain;
5251
}
5352
}

apps/site/src/app/(home)/sections/Sponsors/Sponsors.tsx

+6-31
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,22 @@ const builder = imageUrlBuilder(client);
1010
const Sponsors = async () => {
1111
const sponsors = await getSponsors();
1212

13-
// placeholder sponsors (replace this section)
14-
const fakeSponsorNames = [
15-
"Ryan Yang",
16-
"Ryan Yang",
17-
"Ryan Yang",
18-
"Ryan Yang",
19-
"Ryan Yang",
20-
];
21-
const fakeSponsorLogos = fakeSponsorNames.map((name, index) => ({
22-
_key: `fake-sponsor-${index}`,
23-
name,
24-
url: "#",
25-
logo: {
26-
asset: {
27-
_ref: "image-placeholder",
28-
},
29-
},
30-
}));
31-
32-
const allSponsors = [...sponsors.sponsors, ...fakeSponsorLogos];
33-
3413
return (
3514
<Container as="section">
3615
<h2 className={styles.title}>SPONSORS</h2>
3716
<div className={styles.logos}>
38-
{allSponsors.map(({ _key, name, url, logo }) => (
17+
{sponsors.sponsors.map(({ _key, name, url, logo, tier }) => (
3918
<a
4019
key={_key}
4120
href={url}
4221
target="_blank"
4322
rel="noopener noreferrer"
44-
className={styles.logo}
23+
className={`${styles.logo} ${styles[tier]}`}
4524
>
46-
{logo.asset._ref === "image-placeholder" ? (
47-
<div className={styles.placeholderLogo}>{name}</div>
48-
) : (
49-
<img
50-
src={builder.image(logo).format("webp").url()}
51-
alt={name + " logo"}
52-
/>
53-
)}
25+
<img
26+
src={builder.image(logo).format("webp").url()}
27+
alt={name + " logo"}
28+
/>
5429
</a>
5530
))}
5631
</div>

0 commit comments

Comments
 (0)