From c3e05b44eafbcb84b7b9324ed1dfa1d906702b8a Mon Sep 17 00:00:00 2001 From: June Date: Sat, 22 Nov 2025 16:54:17 +1300 Subject: [PATCH] removed photos page... scary --- web/src/components/albums/albumCard.astro | 12 ++++++------ web/src/components/index/navbar.astro | 8 ++++---- web/src/components/photos/carousel.astro | 9 --------- web/src/pages/albums/[title].astro | 2 +- 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/web/src/components/albums/albumCard.astro b/web/src/components/albums/albumCard.astro index 49b1208..90ef1e2 100644 --- a/web/src/components/albums/albumCard.astro +++ b/web/src/components/albums/albumCard.astro @@ -6,13 +6,13 @@ const pb = await authPB()
-

{a.title}

-

{a.date}

+

{a.title}

+

{a.date}

{a.title}
\ No newline at end of file diff --git a/web/src/components/index/navbar.astro b/web/src/components/index/navbar.astro index a1ca78e..d99bf57 100644 --- a/web/src/components/index/navbar.astro +++ b/web/src/components/index/navbar.astro @@ -4,10 +4,10 @@ const links = [ txt: 'now', lnk: '/now' }, - { - txt: 'photos', - lnk: '/photos' - }, + // { + // txt: 'photos', + // lnk: '/photos' + // }, { txt: 'albums', lnk: '/albums' diff --git a/web/src/components/photos/carousel.astro b/web/src/components/photos/carousel.astro index a08cdb7..4eb31e1 100644 --- a/web/src/components/photos/carousel.astro +++ b/web/src/components/photos/carousel.astro @@ -38,15 +38,6 @@ const photoLinks = await Promise.all( currentPosIndicator.innerText = '1'; } - function preloadImages() { - photoLinks.forEach((url: string) => { - const preloadImg = new Image(); - preloadImg.src = url; - }); - } - - // Call preload on page load - preloadImages(); const swiper = new Swiper('.swiper', { modules: [Navigation, Keyboard, EffectFade], diff --git a/web/src/pages/albums/[title].astro b/web/src/pages/albums/[title].astro index 856dc9c..134097b 100644 --- a/web/src/pages/albums/[title].astro +++ b/web/src/pages/albums/[title].astro @@ -11,7 +11,7 @@ const images = await Promise.all( ) --- - +

{album.title}