Skip to content

Commit 311045a

Browse files
committed
Add Special Event tier with example data
1 parent de4403c commit 311045a

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

src/components/SponsorLogo.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const {
1616
name: title,
1717
url: website,
1818
tier,
19+
event_name,
1920
logo_padding = false,
2021
} = sponsor.data;
2122
@@ -27,7 +28,7 @@ const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier
2728
<div
2829
class="lg:max-w-[400px] flex flex-col p-6 bg-white"
2930
>
30-
<div class="w-full flex justify-center items-center md:items-center">
31+
<div class="w-full grid text-center justify-center items-center md:items-center">
3132
{
3233
website && slug ? (
3334

@@ -56,5 +57,8 @@ const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier
5657
}}
5758
/>
5859
}
60+
{ tier == "Special Event" && event_name &&
61+
<span class="">{event_name}</span>
62+
}
5963
</div>
6064
</div>

src/components/sections/sponsors/sponsors.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const tiers = [
1717
"Startups",
1818
"Bronze",
1919
"Patron",
20+
"Special Event",
2021
"Financial Aid",
2122
"Supporters",
2223
"Partners",
@@ -77,7 +78,7 @@ const sponsorTiers = tiers
7778
{
7879
sponsorTiers.map((tier, index) => (
7980
<Fragment>
80-
<SponsorTier tier={tier} level={index} />
81+
<SponsorTier tier={tier} level={index} />
8182
{index !== sponsorTiers.length - 1 && <hr />}
8283
</Fragment>
8384
))

src/content/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ const sponsors = defineCollection({
226226
youtube: z.string().url().optional().nullable(),
227227
})
228228
.optional(),
229+
event_name: z.string().optional().nullable(),
229230
logo_padding: z.string().optional(),
230231
draft: z.boolean().optional().default(false),
231232
jobs: z.array(reference("jobs")).optional().default([]),
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: "Anaconda"
3+
url: "https://.com"
4+
location: ""
5+
industry: ""
6+
description: "asda"
7+
socials:
8+
linkedin:
9+
twitter:
10+
github:
11+
discord:
12+
mastodon:
13+
bluesky:
14+
tier: Special Event
15+
event_name: Open Spaces & Sprints
16+
logo_padding: 30px 10px
17+
---

0 commit comments

Comments
 (0)