Skip to content

Commit 01a4736

Browse files
committed
feat: add JetBrains as bronze sponsor
Sort sponsors alphabetically within each tier so the order is stable as new sponsors are added. JetBrains logo viewBox is padded with brand- compliant clear space so the card height matches other bronze sponsors.
1 parent c91f4af commit 01a4736

4 files changed

Lines changed: 27 additions & 3 deletions

File tree

public/sponsors/jetbrains.svg

Lines changed: 13 additions & 0 deletions
Loading

src/components/home/SectionSponsors.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const { lang } = Astro.props
1717
const t = texts[lang as keyof typeof texts]
1818
1919
function filterSponsorsByTier(tier: string): ISponsor[] {
20-
return sponsors.filter((s) => s.frontmatter.tier === tier).map((s) => s.frontmatter)
20+
return sponsors
21+
.filter((s) => s.frontmatter.tier === tier)
22+
.map((s) => s.frontmatter)
23+
.sort((a, b) => a.name.localeCompare(b.name))
2124
}
2225
2326
const bronze = filterSponsorsByTier('bronze')

src/components/home/sponsors/SponsorsGroup.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ const menuT = menuTexts[lang as keyof typeof menuTexts]
3737
src={sponsor.logo}
3838
alt={t['sponsors.altlogo'].replace('{name}', sponsor.name)}
3939
width={size}
40-
height={Math.round(size * 0.6)}
40+
height={Math.round(size * 0.7)}
4141
class="object-contain transition-all duration-300 opacity-90 group-hover:opacity-100"
4242
style={{
4343
background: sponsor.logobg,
4444
borderRadius: '0.5rem',
4545
padding: '0.5rem',
46-
maxHeight: `${Math.round(size * 0.7)}px`,
46+
width: `${size}px`,
47+
height: `${Math.round(size * 0.7)}px`,
4748
}}
4849
/>
4950
</a>

src/data/sponsors/jetbrains.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: 'JetBrains'
3+
website: 'https://www.jetbrains.com/'
4+
tier: 'bronze'
5+
logobg: '#ffffff'
6+
logo: '/sponsors/jetbrains.svg'
7+
---

0 commit comments

Comments
 (0)