removed photos page... scary

This commit is contained in:
2025-11-22 16:54:17 +13:00
parent b4f8a42e05
commit c3e05b44ea
4 changed files with 11 additions and 20 deletions

View File

@@ -6,13 +6,13 @@ const pb = await authPB()
<div class="swiper-slide flex flex-col md:flex-row items-center justify-center"> <div class="swiper-slide flex flex-col md:flex-row items-center justify-center">
<a class="b1-no-underline" href={`/albums/${encodeURI(a.title)}`}> <a class="b1-no-underline" href={`/albums/${encodeURI(a.title)}`}>
<h1 class="flex-2 text-center pb-0 md:flex-1">{a.title}</h1> <h1 class="text-center pb-0 md:flex-1">{a.title}</h1>
<p class="flex-2 text-center md:flex-1">{a.date}</p> <p class="text-center">{a.date}</p>
<img <img
src={pb.files.getURL(a, a.images[0])} src={pb.files.getURL(a, a.images[0])}
class="flex-1 md:flex-2 w-full h-full object-contain" class="w-full h-full object-contain"
loading="lazy" loading="lazy"
alt={a.title} alt={a.title}
/> />
</a> </a>
</div> </div>

View File

@@ -4,10 +4,10 @@ const links = [
txt: 'now', txt: 'now',
lnk: '/now' lnk: '/now'
}, },
{ // {
txt: 'photos', // txt: 'photos',
lnk: '/photos' // lnk: '/photos'
}, // },
{ {
txt: 'albums', txt: 'albums',
lnk: '/albums' lnk: '/albums'

View File

@@ -38,15 +38,6 @@ const photoLinks = await Promise.all(
currentPosIndicator.innerText = '1'; 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', { const swiper = new Swiper('.swiper', {
modules: [Navigation, Keyboard, EffectFade], modules: [Navigation, Keyboard, EffectFade],

View File

@@ -11,7 +11,7 @@ const images = await Promise.all(
) )
--- ---
<Base> <Base meta={{title: "album", description: album.title, ogImage: images[0]}}>
<div slot="sidebar"> <div slot="sidebar">
<h1>{album.title}</h1> <h1>{album.title}</h1>