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 { .carousel {
height: 100%
} }
.carousel-item { .carousel-item {
display: block display: block
} }
.carousel-item img {
max-height: 667px;
}

View file

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

View file

@ -19,6 +19,8 @@ export async function getServerSideProps(context) {
const galleryImages = await getGalleryImages(context.params.gallery, page, 9) const galleryImages = await getGalleryImages(context.params.gallery, page, 9)
console.log(galleryImages)
const { serverRuntimeConfig } = getConfig() const { serverRuntimeConfig } = getConfig()
const pagedata = { const pagedata = {