diff --git a/public/sponsors/jetbrains.svg b/public/sponsors/jetbrains.svg new file mode 100644 index 0000000..cb3a2a0 --- /dev/null +++ b/public/sponsors/jetbrains.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/components/home/SectionSponsors.astro b/src/components/home/SectionSponsors.astro index ef58492..1e735bb 100644 --- a/src/components/home/SectionSponsors.astro +++ b/src/components/home/SectionSponsors.astro @@ -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') diff --git a/src/components/home/sponsors/SponsorsGroup.astro b/src/components/home/sponsors/SponsorsGroup.astro index bb4c624..644b5aa 100644 --- a/src/components/home/sponsors/SponsorsGroup.astro +++ b/src/components/home/sponsors/SponsorsGroup.astro @@ -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`, }} /> diff --git a/src/data/sponsors/jetbrains.md b/src/data/sponsors/jetbrains.md new file mode 100644 index 0000000..47c1e7e --- /dev/null +++ b/src/data/sponsors/jetbrains.md @@ -0,0 +1,7 @@ +--- +name: 'JetBrains' +website: 'https://www.jetbrains.com/' +tier: 'bronze' +logobg: '#ffffff' +logo: '/sponsors/jetbrains.svg' +---