diff --git a/web/src/components/photos/carousel.astro b/web/src/components/photos/carousel.astro index 46a9f0a..3154940 100644 --- a/web/src/components/photos/carousel.astro +++ b/web/src/components/photos/carousel.astro @@ -26,6 +26,7 @@ const photoLinks = await Promise.all( const photoLinks = photoLinksElement ? JSON.parse(photoLinksElement.textContent || '[]') : []; const titleEl = document.getElementById('photo-title'); const cameraEl = document.getElementById('photo-camera'); + const filmEl = document.getElementById('photo-film'); const locationEl = document.getElementById('photo-location'); const currentPosIndicator = document.getElementById('current-pos'); const maxPosIndicator = document.getElementById('max-pos'); @@ -49,6 +50,7 @@ const photoLinks = await Promise.all( const swiper = new Swiper('.swiper', { modules: [Navigation, Keyboard, EffectFade], + spaceBetween: 20, effect: 'cards', fadeEffect: { crossFade: true @@ -78,6 +80,9 @@ const photoLinks = await Promise.all( if (cameraEl && currentPhoto) { cameraEl.textContent = `📸 ${currentPhoto.camera}`; } + if (filmEl && currentPhoto) { + filmEl.textContent = currentPhoto.film !== "" ? `🎞️ ${currentPhoto.film}` : ""; + } if (locationEl && currentPhoto) { locationEl.textContent = `📌 ${currentPhoto.location}`; } diff --git a/web/src/pages/photos/index.astro b/web/src/pages/photos/index.astro index a7d803e..580fb46 100644 --- a/web/src/pages/photos/index.astro +++ b/web/src/pages/photos/index.astro @@ -15,6 +15,7 @@ const photos = await pb.collection('photos').getFullList({
{photos[0].title === "" ? "Untitled" : photos[0].title}
📸 {photos[0].camera}
+{photos[0].film !== "" ? `🎞️ ${photos[0].film}` : ""}
📌 {photos[0].location}