Skip to content

Commit 34a5c4d

Browse files
committed
update sponsor links
1 parent 2103c7d commit 34a5c4d

File tree

2 files changed

+62
-5
lines changed

2 files changed

+62
-5
lines changed

src/app/sponsor/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function FeaturedPartners() {
152152
{partners.map((company, index) => (
153153
<li key={index} className="max-lg:nth-[2n+1]:line-y lg:max-xl:nth-[3n+1]:line-y xl:nth-[4n+1]:line-y">
154154
<a
155-
href={company.url}
155+
href={company.sponsorPageUrl ?? company.url}
156156
target="_blank"
157157
rel="noopener sponsored"
158158
className="grid place-content-center transition-colors hover:bg-gray-950/2.5 sm:px-2 sm:py-4 dark:hover:bg-white/2.5"
@@ -758,7 +758,7 @@ function Sponsors() {
758758
{partners.map((company, index) => (
759759
<li key={index} className="max-lg:nth-[2n+1]:line-y lg:max-xl:nth-[3n+1]:line-y xl:nth-[4n+1]:line-y">
760760
<a
761-
href={company.url}
761+
href={company.sponsorPageUrl ?? company.url}
762762
target="_blank"
763763
rel="noopener sponsored"
764764
className="grid place-content-center transition-colors hover:bg-gray-950/2.5 sm:px-2 sm:py-4 dark:hover:bg-white/2.5"
@@ -781,7 +781,7 @@ function Sponsors() {
781781
{ambassadors.map((company, index) => (
782782
<li key={index} className="max-lg:nth-[2n+1]:line-y lg:max-xl:nth-[3n+1]:line-y xl:nth-[4n+1]:line-y">
783783
<a
784-
href={company.url}
784+
href={company.sponsorPageUrl ?? company.url}
785785
target="_blank"
786786
rel="noopener sponsored"
787787
className="grid place-content-center transition-colors hover:bg-gray-950/2.5 sm:px-2 sm:py-4 dark:hover:bg-white/2.5"
@@ -804,7 +804,7 @@ function Sponsors() {
804804
{supporters.map((company, index) => (
805805
<li key={index} className="max-lg:nth-[2n+1]:line-y lg:max-xl:nth-[3n+1]:line-y xl:nth-[4n+1]:line-y">
806806
<a
807-
href={company.url}
807+
href={company.sponsorPageUrl ?? company.url}
808808
target="_blank"
809809
rel="noopener sponsored"
810810
className="grid place-content-center transition-colors hover:bg-gray-950/2.5 sm:px-2 sm:py-4 dark:hover:bg-white/2.5"

0 commit comments

Comments
 (0)