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

Commit

Permalink
fix: size of sponsor logos
Browse files Browse the repository at this point in the history
  • Loading branch information
GresosJ committed Jan 24, 2024
1 parent 91bd962 commit ca18e4e
Showing 1 changed file with 9 additions and 2 deletions.
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

0 comments on commit ca18e4e

Please sign in to comment.