Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

fix: size of sponsor logos #639

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions layout/Home/components/Sponsors/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,19 @@ export default function Sponsors(props) {
</p>
<div className="grid grid-cols-2 place-items-center gap-4 p-6 lg:gap-10">
{elem.map((sponsor, i) => {
const imageSize = !val
? { width: 250, height: 60 }
: key == 0
? { width: 200, height: 60 }
: { width: 175, height: 60 };


return (
<a key={i} href={sponsor.link}>
<Image
src={`/images/sponsors/${sponsor.image}.svg`}
width={250}
height={60}
width={imageSize.width}
height={imageSize.height}
alt={sponsor.image}
/>
</a>
Expand Down