diff --git a/components/css/styles.css b/components/css/styles.css index ccc4762..a6cd7cf 100755 --- a/components/css/styles.css +++ b/components/css/styles.css @@ -309,9 +309,13 @@ } .carousel { - height: 100% + } .carousel-item { display: block + } + + .carousel-item img { + max-height: 667px; } \ No newline at end of file diff --git a/components/gallerycarousel.js b/components/gallerycarousel.js index e47e633..963b7b0 100755 --- a/components/gallerycarousel.js +++ b/components/gallerycarousel.js @@ -31,8 +31,7 @@ const GalleryCarousel = ({galleryImages, basepath, gallery}) => { alt={item.attributes.Title} > -

{item.title}

-

{item.body}

+

{item.attributes.Title}

) diff --git a/pages/gallery/[gallery].js b/pages/gallery/[gallery].js index 0f12e02..f75161f 100644 --- a/pages/gallery/[gallery].js +++ b/pages/gallery/[gallery].js @@ -19,6 +19,8 @@ export async function getServerSideProps(context) { const galleryImages = await getGalleryImages(context.params.gallery, page, 9) + console.log(galleryImages) + const { serverRuntimeConfig } = getConfig() const pagedata = {