Revert to static JS site (Svelte built, but no CSR); Optimize images
This commit is contained in:
+5
-13
@@ -29,16 +29,6 @@
|
||||
addressCountry: 'US',
|
||||
},
|
||||
};
|
||||
|
||||
let showPicture = $state<MediaItem | null>(null);
|
||||
|
||||
const showLightbox = (item: MediaItem) => {
|
||||
showPicture = item;
|
||||
};
|
||||
|
||||
const onClose = () => {
|
||||
showPicture = null;
|
||||
};
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
@@ -77,12 +67,14 @@
|
||||
{@html `<script type="application/ld+json">${JSON.stringify(jsonLd)}</script>`}
|
||||
</svelte:head>
|
||||
|
||||
<SiteHeader />
|
||||
<SiteHeader
|
||||
tourCaption={data.mediaItems.find((m) => m.name === 'tour')?.caption}
|
||||
/>
|
||||
<main>
|
||||
<section id="gallery" class="gallery-grid">
|
||||
{#each data.mediaItems as item, index (item.name)}
|
||||
<GalleryFigure {item} {index} {showLightbox} />
|
||||
<GalleryFigure {item} {index} />
|
||||
{/each}
|
||||
</section>
|
||||
</main>
|
||||
<Lightbox item={showPicture} {onClose} />
|
||||
<Lightbox />
|
||||
|
||||
Reference in New Issue
Block a user