init elas atelier #1
@@ -148,17 +148,11 @@ const displayTitle = post ? (post.title || formatSlug(post.slug)) : 'Work';
|
|||||||
{/* Body — works on paper */}
|
{/* Body — works on paper */}
|
||||||
<div id="post-content" class="prose" set:html={html} />
|
<div id="post-content" class="prose" set:html={html} />
|
||||||
|
|
||||||
{/* Closing — continue the room */}
|
{(neighbors.prev || neighbors.next) && (
|
||||||
<div class="max-w-3xl mx-auto mt-20 md:mt-28">
|
<nav class="max-w-3xl mx-auto mt-20 md:mt-28 grid grid-cols-1 md:grid-cols-2 gap-6" aria-label="Post navigation">
|
||||||
<div class="section-rule mb-10">
|
|
||||||
<span class="ornament">✦</span>
|
|
||||||
<span>continue the gallery</span>
|
|
||||||
<span class="ornament">✦</span>
|
|
||||||
</div>
|
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
||||||
{neighbors.prev && (
|
{neighbors.prev && (
|
||||||
<a href={`/posts/${encodeURIComponent(neighbors.prev.slug)}`} class="group glass p-6 hover:border-[var(--mauve)] transition-colors text-left">
|
<a href={`/posts/${encodeURIComponent(neighbors.prev.slug)}`} class="group glass p-6 hover:border-[var(--mauve)] transition-colors text-left">
|
||||||
<div class="font-sans text-xs tracking-[0.22em] uppercase text-[var(--subtext0)] mb-2">← Previously hung</div>
|
<div class="font-sans text-xs tracking-[0.22em] uppercase text-[var(--subtext0)] mb-2">← Previous</div>
|
||||||
<div class="font-display italic text-xl text-[var(--text)] group-hover:text-[var(--mauve)] transition-colors leading-snug">
|
<div class="font-display italic text-xl text-[var(--text)] group-hover:text-[var(--mauve)] transition-colors leading-snug">
|
||||||
{neighbors.prev.title || formatSlug(neighbors.prev.slug)}
|
{neighbors.prev.title || formatSlug(neighbors.prev.slug)}
|
||||||
</div>
|
</div>
|
||||||
@@ -166,23 +160,14 @@ const displayTitle = post ? (post.title || formatSlug(post.slug)) : 'Work';
|
|||||||
)}
|
)}
|
||||||
{neighbors.next && (
|
{neighbors.next && (
|
||||||
<a href={`/posts/${encodeURIComponent(neighbors.next.slug)}`} class="group glass p-6 hover:border-[var(--mauve)] transition-colors text-right md:col-start-2">
|
<a href={`/posts/${encodeURIComponent(neighbors.next.slug)}`} class="group glass p-6 hover:border-[var(--mauve)] transition-colors text-right md:col-start-2">
|
||||||
<div class="font-sans text-xs tracking-[0.22em] uppercase text-[var(--subtext0)] mb-2">Next on the wall →</div>
|
<div class="font-sans text-xs tracking-[0.22em] uppercase text-[var(--subtext0)] mb-2">Next →</div>
|
||||||
<div class="font-display italic text-xl text-[var(--text)] group-hover:text-[var(--mauve)] transition-colors leading-snug">
|
<div class="font-display italic text-xl text-[var(--text)] group-hover:text-[var(--mauve)] transition-colors leading-snug">
|
||||||
{neighbors.next.title || formatSlug(neighbors.next.slug)}
|
{neighbors.next.title || formatSlug(neighbors.next.slug)}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
{!neighbors.prev && !neighbors.next && (
|
</nav>
|
||||||
<div class="md:col-span-2 text-center font-display italic text-[var(--subtext0)]">
|
)}
|
||||||
This is the sole work currently on view.
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-12 text-center">
|
|
||||||
<a href="/" class="btn-ghost">↶ Return to catalogue</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</article>
|
</article>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user