Skip to content

Commit

Permalink
fix: sponsor logo spacing (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova authored Jan 22, 2024
1 parent a8d2f5a commit ce8ebc9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { z } from "zod";
import imageUrlBuilder from "@sanity/image-url";
import { client } from "@/lib/sanity/client";
import imageUrlBuilder from "@sanity/image-url";
import { z } from "zod";
import { Sponsor } from "../../getSponsors";

const builder = imageUrlBuilder(client);
Expand All @@ -12,14 +12,14 @@ interface SponsorTierProps {

export default function SponsorTier({ className, sponsors }: SponsorTierProps) {
return (
<div className="xl:flex m-16 xl:gap-10 items-center">
<div className="flex flex-row flex-wrap my-20 gap-16 items-center justify-center">
{sponsors?.map(({ _key, name, url, logo }) => (
<a key={_key} href={url} target="_blank" rel="noopener noreferrer">
{/* eslint-disable-next-line @next/next/no-img-element*/}
<img
src={builder.image(logo).format("webp").url()}
alt={name + " logo"}
className={"max-w-full max-h-full m-auto my-5 " + className}
className={"max-w-full max-h-full m-auto my-2 " + className}
/>
</a>
))}
Expand Down

0 comments on commit ce8ebc9

Please sign in to comment.