Skip to content

Commit 2a52d1d

Browse files
committed
Update partners links
1 parent e5e3a60 commit 2a52d1d

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/components/SponsorCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const logo = sponsorLogos[sponsor.id];
6666
{
6767
description && (
6868
<div class="flex-1">
69-
<h2 id=`sponsor-${sponsorId}` 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}

src/components/SponsorLogo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {
2020
} = sponsor.data;
2121
2222
const logo = sponsorLogos[sponsor.id];
23-
const slug = tier==="Partners"? '/community-partners': tier==="Platinum" ? `/sponsor/${sponsorId}` : `/sponsors#sponsor-${sponsorId}`
23+
const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier==="Platinum" ? `/sponsor/${sponsorId}` : `/sponsors#sponsor-${sponsorId}`
2424
2525
---
2626

src/pages/sponsors.astro

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,3 @@ const grouped = sponsors.reduce((acc, sponsor) => {
7272
</p>
7373

7474
</Layout>
75-
76-
<style is:global>
77-
h2{
78-
scroll-margin-top: 300px;
79-
}
80-
</style>

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,7 @@ main a[href^="#"]::before {
278278
.one {
279279
overflow: hidden;
280280
}
281+
282+
h2.sponsor {
283+
scroll-margin-top: 300px;
284+
}

0 commit comments

Comments
 (0)