Further improvements to Galleries

This commit is contained in:
James Purser 2023-12-10 18:50:12 +11:00
parent ef7cfccab8
commit f365918b80
3 changed files with 8 additions and 3 deletions

View file

@ -309,9 +309,13 @@
}
.carousel {
height: 100%
}
.carousel-item {
display: block
}
.carousel-item img {
max-height: 667px;
}

View file

@ -31,8 +31,7 @@ const GalleryCarousel = ({galleryImages, basepath, gallery}) => {
alt={item.attributes.Title}
></Image></Link>
<Carousel.Caption >
<h3>{item.title}</h3>
<p>{item.body}</p>
<h3>{item.attributes.Title}</h3>
</Carousel.Caption>
</Carousel.Item>
)

View file

@ -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 = {