File tree Expand file tree Collapse file tree 26 files changed +67
-57
lines changed Expand file tree Collapse file tree 26 files changed +67
-57
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const socialMap = {
2121};
2222---
2323
24- <div class =`social-links flex justify-center space-x-4 ${className }` >
24+ <div class =`social-links flex justify-center space-x-4 ${className } h-[36px] ` >
2525 {
2626 Object .entries (socialMap )
2727 .filter (([key ]) => socials ?.[key ])
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const logo = sponsorLogos[sponsor.id];
6666 {
6767 description && (
6868 <div class = " flex-1" >
69- <h2 class = " text-2xl font-bold mb-2 " >
69+ <h2 id =`sponsor-${sponsorId}` class = " sponsor text-2xl font-bold mb-2 " >
7070 { ! isSponsorPage && tier !== ' Partners' ?
7171 <a href = { ` /sponsor/${sponsor .id } ` } >
7272 { title }
@@ -95,10 +95,15 @@ const logo = sponsorLogos[sponsor.id];
9595 )}
9696
9797
98+ </div >
99+ )
100+ }
101+ <div >
102+
98103 { (tier !== " Partners" ) && website && (
99104 <div class = " website-btn-container flex flex-col sm:flex-row justify-center gap-2 mt-4" >
100105
101- { ! isSponsorPage && sponsor .body &&
106+ { ! isSponsorPage && sponsor .body && tier && [ " Gold " , " Platinum " ]. includes ( tier ) &&
102107 <a href = { ` /sponsor/${sponsor .id } ` } class = " website-btn-outline" >
103108 About { title }
104109 </a >
@@ -114,9 +119,7 @@ const logo = sponsorLogos[sponsor.id];
114119 { (tier !== " Partners" ) &&
115120 <SocialLinks socials = { socials } />
116121 }
117- </div >
118- )
119- }
122+ </div >
120123</div >
121124
122125<style >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { sponsorDisplay } from "@data/sponsorDisplay";
1515const image = sponsorDisplay [sponsor .id ]
1616---
1717
18- { image &&
18+ { sponsor . data . tier == " Platinum " && image &&
1919<section class = " space-y-12 pb-6 overflow-hidden" >
2020 <Image
2121 src = { image }
Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ if (!sponsor) {
1515const {
1616 name : title,
1717 url : website,
18+ tier,
1819 logo_padding = false ,
1920} = sponsor .data ;
2021
2122const logo = sponsorLogos [sponsor .id ];
23+ const slug = tier === " Partners" ? ` /community-partners#sponsor-${sponsorId } ` : tier === " Platinum" ? ` /sponsor/${sponsorId } ` : ` /sponsors#sponsor-${sponsorId } `
24+
2225---
2326
2427<div
@@ -28,13 +31,13 @@ const logo = sponsorLogos[sponsor.id];
2831 {
2932 website ? (
3033
31- <a href = { website } target = " _blank " aria-label = { ` Link to ${title } ` }
34+ <a href = { slug } aria-label = { ` Link to ${title } ` }
3235>
3336 <Image
3437 src = { logo }
3538 alt = { ` ${title } Logo ` }
3639 style = { {
37- minWidth: " 250px " ,
40+ minWidth: " 170px " ,
3841 maxHeight: " 120px" ,
3942 objectFit: " contain" ,
4043 padding: logo_padding ? logo_padding : undefined ,
@@ -46,7 +49,7 @@ const logo = sponsorLogos[sponsor.id];
4649 src = { logo }
4750 alt = { ` ${title } Logo ` }
4851 style = { {
49- minWidth: " 250px " ,
52+ minWidth: " 170px " ,
5053 maxHeight: " 120px" ,
5154 objectFit: " contain" ,
5255 padding: logo_padding ? logo_padding : undefined ,
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ export interface Props {
1010 sponsors: Sponsor [];
1111 };
1212
13- top ? : boolean ;
13+ level : number ;
1414}
1515
16- const { tier, top } = Astro .props ;
16+ const { tier, level = 2 } = Astro .props ;
1717---
1818
1919<div class =" relative" >
@@ -27,9 +27,11 @@ const { tier, top } = Astro.props;
2727 <div
2828 class:list ={ [
2929 " grid ml-12 items-center justify-items-center" ,
30+ ` level-${level } ` ,
3031 {
31- " grid-cols-1 md:grid-cols-2 lg:grid-cols-3" : ! top ,
32- " grid-cols-1 md:grid-cols-2" : top ,
32+ " 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-80" : level > 0 && level << 6 ,
34+ " grid-cols-2 md:grid-cols-3 lg:grid-cols-4 [&>*]:scale-80" : level === 6 ,
3335 },
3436 ]}
3537 >
Original file line number Diff line number Diff line change @@ -67,20 +67,15 @@ const topTier = sponsorTiers.find((tier) => tier.name === "Keystone");
6767 <div class =" mt-4 text-center" >
6868 <Button url =" /sponsor" >Become a sponsor</Button >
6969 </div >
70- {
71- topTier && topTier .sponsors .length > 0 && (
72- <SponsorTier tier = { topTier } top = { true } />
73- )
74- }
7570 </div >
7671
7772 { sponsorTiers .length > 0 && <hr />}
7873
79- <div class = " " >
74+ <div >
8075 {
8176 sponsorTiers .map ((tier , index ) => (
8277 <Fragment >
83- <SponsorTier tier = { tier } top = { tier . name === " Platinum " } />
78+ <SponsorTier tier = { tier } level = { index } />
8479 { index !== sponsorTiers .length - 1 && <hr />}
8580 </Fragment >
8681 ))
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ const sponsors = defineCollection({
209209 schema : z . object ( {
210210 name : z . string ( ) ,
211211 url : z . string ( ) . url ( ) ,
212- tier : z . string ( ) . nullable ( ) ,
212+ tier : z . string ( ) ,
213213 location : z . string ( ) . optional ( ) ,
214214 industry : z . string ( ) . optional ( ) ,
215215 description : z . string ( ) . optional ( ) ,
Original file line number Diff line number Diff line change @@ -15,10 +15,9 @@ socials:
1515
1616tier : Gold
1717logo_padding : 35px
18- draft : true
1918---
2019
21- ## About Arm
20+ # About Arm
2221
2322Born more than 30 years ago with the goal of designing a computer intended to
2423run on a battery, Arm has become a global compute platform delivering advanced
Original file line number Diff line number Diff line change @@ -12,10 +12,9 @@ socials:
1212 twitter : " https://x.com/ataccama?lang=en"
1313 facebook : " https://www.facebook.com/Ataccama/"
1414tier : Silver
15- draft : true
1615---
1716
18- ## About Ataccama
17+ # About Ataccama
1918
2019Ataccama ONE is a unified data trust platform for enterprise data leaders that
2120combines data quality, observability, lineage, governance and master data
You can’t perform that action at this time.
0 commit comments