File tree Expand file tree Collapse file tree 4 files changed +38
-21
lines changed Expand file tree Collapse file tree 4 files changed +38
-21
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 );
@@ -57,8 +57,8 @@ const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier
5757 }}
5858 />
5959 }
60- { tier == " Special Event " && event_name &&
61- <span class = " " >{ event_name } </span >
60+ { special_event && event_name &&
61+ <span class = " " >{ event_name } </span >
6262 }
6363 </div >
6464</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 @@ -30,9 +30,21 @@ let hasSponsors = false;
3030
3131const sponsorTiers = tiers
3232 .map ((tier ) => {
33- const tierSponsors = sponsors .filter (
34- (sponsor ) => sponsor .data .tier === tier ,
35- );
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+ });
3648
3749 if (tierSponsors .length > 0 ) {
3850 hasSponsors = true ;
Original file line number Diff line number Diff line change 11---
2- name : " Anaconda"
3- url : " https://.com"
4- location : " "
5- industry : " "
6- description : " asda"
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. "
78socials :
8- linkedin :
9- twitter :
10- github :
11- discord :
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 "
1213 mastodon :
1314 bluesky :
14- tier : Special Event
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
1519event_name : Open Spaces & Sprints
16- logo_padding : 30px 10px
20+ logo_padding : " 10px 0 "
1721---
You can’t perform that action at this time.
0 commit comments