import type { Metadata } from 'next';
import { Transform } from '../components/Transform';
import { rotatedPairs, currentRotationSeed } from '../data/transformPairs';
import ButtonIcon from '../components/ButtonIcon';
// Re-roll the gallery order once per rotation step. Must match
// ROTATION_PERIOD_SECONDS in ../data/transformPairs.ts (Next requires a
// literal here). One day.
export const revalidate = 86400;
export const metadata: Metadata = {
title: 'Gallery',
description:
'A wall of finished commissions — the photo a client sent us, beside the portrait now living in their home.',
alternates: { canonical: '/gallery' },
openGraph: {
title: 'Gallery · Lumen & Gesso',
description:
'Every commission we’ve made — the customer’s phone snapshot beside the finished portrait, now living on a wall somewhere.',
url: '/gallery',
type: 'website',
images: [{
// A fixed, representative finished portrait for the social card.
// Deliberately static (not tied to the daily rotation) so link
// previews stay stable; it may or may not be on the home page today.
url: 'https://imagedelivery.net/UI7TTlrLGypjCwT_wfSMNA/portraits/yorkie-impasto.jpg/public',
width: 1200,
height: 1200,
alt: 'Impasto oil portrait of a long-haired Lhasa Apso with two blue bows.',
}],
},
};
export default function GalleryPage() {
// Today's rotation — the remainder after the home page takes its trio,
// shuffled. Same seed as the home page, so there's never an overlap.
const { gallery: galleryPairs } = rotatedPairs(currentRotationSeed());
return (
<>
{/* Every commission — reuses the home Transform section.
priorityCount={6} eagerly preloads the first ~2-3 viewports of
pairs so scrolling never outruns the network on this long
list. The Transform component also runs an idle-time bulk
preload for the rest after first paint. */}
{/* Closing CTA */}
Ready when you are
Your favorite face, made with the same care.
Open a reference, make adjustments, and download your own portrait.