Branchwell

Lumen & Gesso / website · lumengesso.com / app / gallery / page.tsx

1import type { Metadata } from 'next';
2import { Transform } from '../components/Transform';
3import { rotatedPairs, currentRotationSeed } from '../data/transformPairs';
4import ButtonIcon from '../components/ButtonIcon';
5
6// Re-roll the gallery order once per rotation step. Must match
7// ROTATION_PERIOD_SECONDS in ../data/transformPairs.ts (Next requires a
8// literal here). One day.
9export const revalidate = 86400;
10
11export const metadata: Metadata = {
12 title: 'Gallery',
13 description:
14 'A wall of finished commissions — the photo a client sent us, beside the portrait now living in their home.',
15 alternates: { canonical: '/gallery' },
16 openGraph: {
17 title: 'Gallery · Lumen & Gesso',
18 description:
19 'Every commission we’ve made — the customer’s phone snapshot beside the finished portrait, now living on a wall somewhere.',
20 url: '/gallery',
21 type: 'website',
22 images: [{
23 // A fixed, representative finished portrait for the social card.
24 // Deliberately static (not tied to the daily rotation) so link
25 // previews stay stable; it may or may not be on the home page today.
26 url: 'https://imagedelivery.net/UI7TTlrLGypjCwT_wfSMNA/portraits/yorkie-impasto.jpg/public',
27 width: 1200,
28 height: 1200,
29 alt: 'Impasto oil portrait of a long-haired Lhasa Apso with two blue bows.',
30 }],
31 },
32};
33
34export default function GalleryPage() {
35 // Today's rotation — the remainder after the home page takes its trio,
36 // shuffled. Same seed as the home page, so there's never an overlap.
37 const { gallery: galleryPairs } = rotatedPairs(currentRotationSeed());
38 return (
39 <>
40 {/* Every commission — reuses the home Transform section.
41 priorityCount={6} eagerly preloads the first ~2-3 viewports of
42 pairs so scrolling never outruns the network on this long
43 list. The Transform component also runs an idle-time bulk
44 preload for the rest after first paint. */}
45 <Transform
46 pairs={galleryPairs}
47 eyebrow="The gallery"
48 heading="Every commission, start to finish."
49 lead="Every pair we’ve made — the photo a client sent us, beside the finished piece now living on their wall."
50 headingTag="h1"
51 priorityCount={6}
52 />
53
54 {/* Closing CTA */}
55 <section className="final-cta">
56 <div className="eyebrow">Ready when you are</div>
57 <h2 className="final-cta__h2">Your favorite face, made with the same care.</h2>
58 <p>Open a reference, make adjustments, and download your own portrait.</p>
59 <div className="final-cta__ctas">
60 <a className="btn btn--rose btn--lg" href="/studio">
61 <ButtonIcon name="palette" />
62 Open Free Studio →
63 </a>
64 </div>
65 </section>
66 </>
67 );
68}