File tree Expand file tree Collapse file tree 6 files changed +51
-10
lines changed Expand file tree Collapse file tree 6 files changed +51
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { getEntry } from "astro:content";
33import { Image } from " astro:assets" ;
44import { sponsorLogos } from " @data/sponsorLogos" ;
55
6- const { sponsor : sponsorId } = Astro .props ;
6+ const { sponsor : sponsorId, special_event = false } = Astro .props ;
77
88
99const sponsor = await getEntry (" sponsors" , sponsorId );
@@ -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+ { special_event && event_name &&
61+ <span class = " " >{ event_name } </span >
62+ }
5963 </div >
6064</div >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export interface Props {
1414}
1515
1616const { tier, level = 2 } = Astro .props ;
17+ const special_event = tier .name === " Special Event" ;
1718---
1819
1920<div class =" relative" >
@@ -30,15 +31,15 @@ const { tier, level = 2} = Astro.props;
3031 ` level-${level } ` ,
3132 {
3233 " grid-cols-1 md:grid-cols-2 m-20 [&>*]:scale-110" : level === 0 ,
33- " grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:scale-90" : level > 0 && level << 6 ,
34- " grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-90 " : level === 6 ,
35- " grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-85" : level > 6 ,
34+ " grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:scale-90" : level > 0 && level < 6 ,
35+ " grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-70 " : level >= 6 && level < 7 ,
36+ " grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-85" : level >= 7 ,
3637 },
3738 ]}
3839 >
3940 {
4041 tier .sponsors .map ((sponsor ) => (
41- <SponsorLogo sponsor = { sponsor .id } />
42+ <SponsorLogo sponsor = { sponsor .id } { special_event } />
4243 ))
4344 }
4445 </div >
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const tiers = [
1717 " Startups" ,
1818 " Bronze" ,
1919 " Patron" ,
20+ " Special Event" ,
2021 " Financial Aid" ,
2122 " Supporters" ,
2223 " Partners" ,
@@ -29,9 +30,21 @@ let hasSponsors = false;
2930
3031const sponsorTiers = tiers
3132 .map ((tier ) => {
32- const tierSponsors = sponsors .filter (
33- (sponsor ) => sponsor .data .tier === tier ,
34- );
33+ const tierSponsors = sponsors .filter ((sponsor ) => {
34+ // Original tier matching
35+ if (sponsor .data .tier === tier ) {
36+ return true ;
37+ }
38+
39+ // Also include in "Special Event" if sponsor has event_name
40+ if (tier === " Special Event" &&
41+ sponsor .data .event_name &&
42+ sponsor .data .event_name .trim () !== " " ) {
43+ return true ;
44+ }
45+
46+ return false ;
47+ });
3548
3649 if (tierSponsors .length > 0 ) {
3750 hasSponsors = true ;
@@ -77,7 +90,7 @@ const sponsorTiers = tiers
7790 {
7891 sponsorTiers .map ((tier , index ) => (
7992 <Fragment >
80- <SponsorTier tier = { tier } level = { index } />
93+ <SponsorTier tier = { tier } level = { index } />
8194 { index !== sponsorTiers .length - 1 && <hr />}
8295 </Fragment >
8396 ))
Original file line number Diff line number Diff 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 ( [ ] ) ,
Original file line number Diff line number Diff line change 1+ ---
2+ name : Anaconda
3+ url : https://www.anaconda.com
4+ description :
5+ " Anaconda is built to advance AI with open source at scale, giving builders
6+ and organizations the confidence to increase productivity, and save time,
7+ spend and risk associated with open source. "
8+ socials :
9+ linkedin : " https://www.linkedin.com/company/anacondainc"
10+ twitter : " https://x.com/anacondainc"
11+ github : " https://github.com/ContinuumIO"
12+ discord : " https://discord.com/invite/3zWZbsEx7A"
13+ mastodon :
14+ bluesky :
15+ facebook : " https://www.facebook.com/anacondainc"
16+ instagram : " https://www.instagram.com/anaconda_inc/"
17+ youtube : " https://www.youtube.com/c/ContinuumIo"
18+ tier : Bronze
19+ event_name : Open Space & Sprint
20+ logo_padding : " 10px 0"
21+ ---
You can’t perform that action at this time.
0 commit comments