From 311045a3d9bf85c54ac915d866a2840d6df76b6f Mon Sep 17 00:00:00 2001 From: Niko Date: Tue, 1 Jul 2025 16:40:27 +0200 Subject: [PATCH 1/3] Add Special Event tier with example data --- src/components/SponsorLogo.astro | 6 +++++- src/components/sections/sponsors/sponsors.astro | 3 ++- src/content/config.ts | 1 + src/content/sponsors/anaconda/anaconda.svg | 1 + src/content/sponsors/anaconda/index.md | 17 +++++++++++++++++ 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/content/sponsors/anaconda/anaconda.svg create mode 100644 src/content/sponsors/anaconda/index.md diff --git a/src/components/SponsorLogo.astro b/src/components/SponsorLogo.astro index 4412b66c4..368af5236 100644 --- a/src/components/SponsorLogo.astro +++ b/src/components/SponsorLogo.astro @@ -16,6 +16,7 @@ const { name: title, url: website, tier, + event_name, logo_padding = false, } = sponsor.data; @@ -27,7 +28,7 @@ const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier
-
+
{ website && slug ? ( @@ -56,5 +57,8 @@ const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier }} /> } + { tier == "Special Event" && event_name && + {event_name} + }
diff --git a/src/components/sections/sponsors/sponsors.astro b/src/components/sections/sponsors/sponsors.astro index edd2700fe..feef1647f 100644 --- a/src/components/sections/sponsors/sponsors.astro +++ b/src/components/sections/sponsors/sponsors.astro @@ -17,6 +17,7 @@ const tiers = [ "Startups", "Bronze", "Patron", + "Special Event", "Financial Aid", "Supporters", "Partners", @@ -77,7 +78,7 @@ const sponsorTiers = tiers { sponsorTiers.map((tier, index) => ( - + {index !== sponsorTiers.length - 1 &&
}
)) diff --git a/src/content/config.ts b/src/content/config.ts index 6b2f6916f..35621b6c0 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -226,6 +226,7 @@ const sponsors = defineCollection({ youtube: z.string().url().optional().nullable(), }) .optional(), + event_name: z.string().optional().nullable(), logo_padding: z.string().optional(), draft: z.boolean().optional().default(false), jobs: z.array(reference("jobs")).optional().default([]), diff --git a/src/content/sponsors/anaconda/anaconda.svg b/src/content/sponsors/anaconda/anaconda.svg new file mode 100644 index 000000000..dd34933b4 --- /dev/null +++ b/src/content/sponsors/anaconda/anaconda.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/content/sponsors/anaconda/index.md b/src/content/sponsors/anaconda/index.md new file mode 100644 index 000000000..5f5a2327c --- /dev/null +++ b/src/content/sponsors/anaconda/index.md @@ -0,0 +1,17 @@ +--- +name: "Anaconda" +url: "https://.com" +location: "" +industry: "" +description: "asda" +socials: + linkedin: + twitter: + github: + discord: + mastodon: + bluesky: +tier: Special Event +event_name: Open Spaces & Sprints +logo_padding: 30px 10px +--- From c887be18885902c0ee41243acaf3803e41c714e9 Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 2 Jul 2025 12:42:17 +0200 Subject: [PATCH 2/3] Update special event tier --- src/components/SponsorLogo.astro | 6 ++--- .../sections/sponsors/sponsor-tier.astro | 9 ++++--- .../sections/sponsors/sponsors.astro | 18 ++++++++++--- src/content/sponsors/anaconda/index.md | 26 +++++++++++-------- 4 files changed, 38 insertions(+), 21 deletions(-) diff --git a/src/components/SponsorLogo.astro b/src/components/SponsorLogo.astro index 368af5236..01430bdff 100644 --- a/src/components/SponsorLogo.astro +++ b/src/components/SponsorLogo.astro @@ -3,7 +3,7 @@ import { getEntry } from "astro:content"; import { Image } from "astro:assets"; import { sponsorLogos } from "@data/sponsorLogos"; -const { sponsor: sponsorId } = Astro.props; +const { sponsor: sponsorId, special_event=false } = Astro.props; const sponsor = await getEntry("sponsors", sponsorId); @@ -57,8 +57,8 @@ const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier }} /> } - { tier == "Special Event" && event_name && - {event_name} + { special_event && event_name && + {event_name} }
diff --git a/src/components/sections/sponsors/sponsor-tier.astro b/src/components/sections/sponsors/sponsor-tier.astro index e9abc7216..274b964c8 100644 --- a/src/components/sections/sponsors/sponsor-tier.astro +++ b/src/components/sections/sponsors/sponsor-tier.astro @@ -14,6 +14,7 @@ export interface Props { } const { tier, level = 2} = Astro.props; +const special_event = tier.name === "Special Event"; ---
@@ -30,15 +31,15 @@ const { tier, level = 2} = Astro.props; `level-${level}`, { "grid-cols-1 md:grid-cols-2 m-20 [&>*]:scale-110": level===0, - "grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:scale-90": level > 0 && level << 6, - "grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-90" : level===6, - "grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-85" : level>6, + "grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:scale-90": level > 0 && level < 6, + "grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-70" : level >= 6 && level < 7, + "grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-85" : level >= 7, }, ]} > { tier.sponsors.map((sponsor) => ( - + )) }
diff --git a/src/components/sections/sponsors/sponsors.astro b/src/components/sections/sponsors/sponsors.astro index feef1647f..e8a15ce74 100644 --- a/src/components/sections/sponsors/sponsors.astro +++ b/src/components/sections/sponsors/sponsors.astro @@ -30,9 +30,21 @@ let hasSponsors = false; const sponsorTiers = tiers .map((tier) => { - const tierSponsors = sponsors.filter( - (sponsor) => sponsor.data.tier === tier, - ); + const tierSponsors = sponsors.filter((sponsor) => { + // Original tier matching + if (sponsor.data.tier === tier) { + return true; + } + + // Also include in "Special Event" if sponsor has event_name + if (tier === "Special Event" && + sponsor.data.event_name && + sponsor.data.event_name.trim() !== "") { + return true; + } + + return false; + }); if (tierSponsors.length > 0) { hasSponsors = true; diff --git a/src/content/sponsors/anaconda/index.md b/src/content/sponsors/anaconda/index.md index 5f5a2327c..fa5c4491d 100644 --- a/src/content/sponsors/anaconda/index.md +++ b/src/content/sponsors/anaconda/index.md @@ -1,17 +1,21 @@ --- -name: "Anaconda" -url: "https://.com" -location: "" -industry: "" -description: "asda" +name: Anaconda +url: https://www.anaconda.com +description: + "Anaconda is built to advance AI with open source at scale, giving builders + and organizations the confidence to increase productivity, and save time, + spend and risk associated with open source. " socials: - linkedin: - twitter: - github: - discord: + linkedin: "https://www.linkedin.com/company/anacondainc" + twitter: "https://x.com/anacondainc" + github: "https://github.com/ContinuumIO" + discord: "https://discord.com/invite/3zWZbsEx7A" mastodon: bluesky: -tier: Special Event + facebook: "https://www.facebook.com/anacondainc" + instagram: "https://www.instagram.com/anaconda_inc/" + youtube: "https://www.youtube.com/c/ContinuumIo" +tier: Bronze event_name: Open Spaces & Sprints -logo_padding: 30px 10px +logo_padding: "10px 0" --- From a8ee572c66f3a2e8dd513033d8f4876f852dd5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=C5=9B?= Date: Wed, 2 Jul 2025 16:57:58 +0200 Subject: [PATCH 3/3] Update src/content/sponsors/anaconda/index.md Co-authored-by: hypha --- src/content/sponsors/anaconda/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/sponsors/anaconda/index.md b/src/content/sponsors/anaconda/index.md index fa5c4491d..7e9ba5f29 100644 --- a/src/content/sponsors/anaconda/index.md +++ b/src/content/sponsors/anaconda/index.md @@ -16,6 +16,6 @@ socials: instagram: "https://www.instagram.com/anaconda_inc/" youtube: "https://www.youtube.com/c/ContinuumIo" tier: Bronze -event_name: Open Spaces & Sprints +event_name: Open Space & Sprint logo_padding: "10px 0" ---