add image-and-text and image slider block types
This commit is contained in:
@ -40,17 +40,18 @@ export default async function Page({ params }: { params: { slug: string } }) {
|
||||
});
|
||||
|
||||
const venue = (data?.venue ?? {}) as VenueFragment;
|
||||
const featuredImage: any = venue.featuredImage
|
||||
|
||||
return (
|
||||
<main className="site-main" id="main">
|
||||
<section className="page-header">
|
||||
<h1>{venue.title}</h1>
|
||||
{venue.featuredImage && (
|
||||
{featuredImage && (
|
||||
<Image
|
||||
src={venue.featuredImage.url}
|
||||
alt={venue.featuredImage.alt}
|
||||
width={venue.featuredImage.width}
|
||||
height={venue.featuredImage.height}
|
||||
src={featuredImage.url}
|
||||
alt={featuredImage.alt}
|
||||
width={featuredImage.width}
|
||||
height={featuredImage.height}
|
||||
sizes="100vw"
|
||||
/>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user