Skip to content

Commit

Permalink
@stasadev fixes to darklogo, thanks!
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Zhuk <[email protected]>
  • Loading branch information
rfay and stasadev authored Nov 12, 2024
1 parent 7a83f3b commit 7cd973f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/resources/featured-sponsors-darkmode.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 7cd973f

Please sign in to comment.