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,11 +6,11 @@ const pb = await authPB()
<div class="swiper-slide flex flex-col md:flex-row items-center justify-center">
<a class="b1-no-underline" href={`/albums/${encodeURI(a.title)}`}>
<h1 class="flex-2 text-center pb-0 md:flex-1">{a.title}</h1>
<p class="flex-2 text-center md:flex-1">{a.date}</p>
<h1 class="text-center pb-0 md:flex-1">{a.title}</h1>
<p class="text-center">{a.date}</p>
<img
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"
alt={a.title}
/>

View File

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

View File

@@ -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],

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">
<h1>{album.title}</h1>