add custom image model, fetch alt text

This commit is contained in:
2024-05-15 04:42:42 +02:00
parent 5540040ea2
commit 71b0a87180
26 changed files with 358 additions and 132 deletions

View File

@ -14,7 +14,7 @@ export const AssociationItem = ({
{association.logo && (
<Image
src={association.logo.url}
alt=""
alt={`Logoen til ${association.title}`}
width={0}
height={0}
sizes="20vw"

View File

@ -64,7 +64,7 @@ export const EventHeader = ({ event }: { event: EventFragment }) => {
{event.featuredImage && (
<Image
src={event.featuredImage.url}
alt=""
alt={event.featuredImage.alt}
width={event.featuredImage.width}
height={event.featuredImage.height}
sizes="100vw"

View File

@ -32,7 +32,7 @@ export const EventItem = ({
{event.featuredImage && (
<Image
src={event.featuredImage.url}
alt=""
alt={event.featuredImage.alt}
width={0}
height={0}
sizes="20vw"

View File

@ -10,7 +10,7 @@ export const VenueItem = ({ venue }: { venue: VenueFragment }) => {
{venue.featuredImage && (
<Image
src={venue.featuredImage.url}
alt=""
alt={venue.featuredImage.alt}
width={0}
height={0}
sizes="20vw"