set sponsor logo image sizes
This commit is contained in:
@@ -49,7 +49,6 @@ function capitalizeFirstLetter(s: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function linkTo(page: any): string | null {
|
function linkTo(page: any): string | null {
|
||||||
console.log(page)
|
|
||||||
if (page.__typename === "EventPage") {
|
if (page.__typename === "EventPage") {
|
||||||
return `/arrangementer/${page.slug}`;
|
return `/arrangementer/${page.slug}`;
|
||||||
}
|
}
|
||||||
|
@@ -13,8 +13,8 @@ const SponsorItem = ({ sponsor }: { sponsor: SponsorBlock }) => {
|
|||||||
<Image
|
<Image
|
||||||
src={logo.url}
|
src={logo.url}
|
||||||
alt={`Logoen til ${name}`}
|
alt={`Logoen til ${name}`}
|
||||||
width={0}
|
width={logo.width}
|
||||||
height={0}
|
height={logo.height}
|
||||||
sizes="20vw"
|
sizes="20vw"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user