From 7cd973ff0555491c13140e857ffb0b845a9fe005 Mon Sep 17 00:00:00 2001 From: Randy Fay Date: Tue, 12 Nov 2024 11:35:05 -0700 Subject: [PATCH] @stasadev fixes to darklogo, thanks! Co-authored-by: Stanislav Zhuk --- src/pages/resources/featured-sponsors-darkmode.svg.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/resources/featured-sponsors-darkmode.svg.js b/src/pages/resources/featured-sponsors-darkmode.svg.js index bebae374..67bfc425 100644 --- a/src/pages/resources/featured-sponsors-darkmode.svg.js +++ b/src/pages/resources/featured-sponsors-darkmode.svg.js @@ -37,7 +37,7 @@ const buildResponse = () => { // Get dimensions for lead sponsors const leadSponsorInfo = leadSponsors.map(sponsor => { // Ensure we have a valid logo path - const logoPath = sponsor.darkLogo ? `./public${sponsor.darkLogo}` : null + const logoPath = sponsor.darklogo ? `./public${sponsor.darklogo}` : null if (!logoPath) { console.error(`Missing logo path for sponsor: ${sponsor.name}`) return null @@ -68,7 +68,7 @@ const buildResponse = () => { // Place lead sponsors leadSponsorInfo.forEach(({ sponsor, width, height, logoPath }) => { images.push({ - href: baseUrl + sponsor.darkLogo, + href: baseUrl + sponsor.darklogo, path: logoPath, x: startX, y: currentY + (leadSponsorHeight - height) / 2, @@ -88,7 +88,7 @@ const buildResponse = () => { let currentX = 0 regularSponsors.forEach((sponsor) => { // Ensure we have a valid logo path - const logoPath = sponsor.darkLogo ? `./public${sponsor.darkLogo}` : null + const logoPath = sponsor.darklogo ? `./public${sponsor.darklogo}` : null if (!logoPath) { console.error(`Missing logo path for sponsor: ${sponsor.name}`) return @@ -109,7 +109,7 @@ const buildResponse = () => { } images.push({ - href: baseUrl + sponsor.darkLogo, + href: baseUrl + sponsor.darklogo, path: logoPath, x: currentX, y: currentY + (maxHeight - height) / 2,