Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions public/sponsors/jetbrains.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/components/home/SectionSponsors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const { lang } = Astro.props
const t = texts[lang as keyof typeof texts]

function filterSponsorsByTier(tier: string): ISponsor[] {
return sponsors.filter((s) => s.frontmatter.tier === tier).map((s) => s.frontmatter)
return sponsors
.filter((s) => s.frontmatter.tier === tier)
.map((s) => s.frontmatter)
.sort((a, b) => a.name.localeCompare(b.name))
}

const bronze = filterSponsorsByTier('bronze')
Expand Down
5 changes: 3 additions & 2 deletions src/components/home/sponsors/SponsorsGroup.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ const menuT = menuTexts[lang as keyof typeof menuTexts]
src={sponsor.logo}
alt={t['sponsors.altlogo'].replace('{name}', sponsor.name)}
width={size}
height={Math.round(size * 0.6)}
height={Math.round(size * 0.7)}
class="object-contain transition-all duration-300 opacity-90 group-hover:opacity-100"
style={{
background: sponsor.logobg,
borderRadius: '0.5rem',
padding: '0.5rem',
maxHeight: `${Math.round(size * 0.7)}px`,
width: `${size}px`,
height: `${Math.round(size * 0.7)}px`,
}}
/>
</a>
Expand Down
7 changes: 7 additions & 0 deletions src/data/sponsors/jetbrains.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: 'JetBrains'
website: 'https://www.jetbrains.com/'
tier: 'bronze'
logobg: '#ffffff'
logo: '/sponsors/jetbrains.svg'
---
Loading