# Gallery 11

> Sera series — grayscale exhibition grid with hairline gutters and indexed caption bars.

A shadcn/ui block from the [@nusaiba](https://nusaiba.dev) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/nusaiba/gallery-11).

- Page, with a live preview: https://shadcn.exchange/r/nusaiba/gallery-11
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/nusaiba/gallery-11-light-cfc146a2eb34d279.png
- Registry item: https://nusaiba.dev/r/base-nova/gallery-11.json
- Categories: gallery
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://nusaiba.dev/r/base-nova/gallery-11.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@nusaiba/foundation`, `@nusaiba/gallery-visuals`, `@nusaiba/theme-sera`

## Files

### `registry/blocks/sera/sera-motion.tsx`

```tsx
"use client";

import { useRef, type ReactNode } from "react";
import { AnimatePresence, motion, useInView, useReducedMotion } from "motion/react";
import { motionStagger, motionViewport } from "@/lib/motion-tokens";
import { cn } from "@/lib/utils";

const spring = { type: "spring" as const, duration: 0.3, bounce: 0 };

export function useSeraItemVariants() {
	const reduceMotion = useReducedMotion();

	return reduceMotion
		? { hidden: { opacity: 1 }, visible: { opacity: 1 } }
		: {
				hidden: { opacity: 0, filter: "blur(4px)", y: 12 },
				visible: {
					opacity: 1,
					filter: "blur(0px)",
					y: 0,
					transition: spring,
				},
			};
}

export function SeraStagger({
	children,
	className,
}: {
	children: ReactNode;
	className?: string;
}) {
	const ref = useRef<HTMLDivElement>(null);
	const inView = useInView(ref, motionViewport);

	return (
		<motion.div
			animate={inView ? "visible" : "hidden"}
			className={className}
			initial="hidden"
			ref={ref}
			variants={{
				hidden: {},
				visible: {
					transition: { staggerChildren: motionStagger.item, delayChildren: 0.04 },
				},
			}}
		>
			{children}
		</motion.div>
	);
}

export function SeraStaggerItem({
	children,
	className,
}: {
	children: ReactNode;
	className?: string;
}) {
	const itemVariants = useSeraItemVariants();

	return (
		<motion.div className={className} variants={itemVariants}>
			{children}
		</motion.div>
	);
}

/** Word reveal — signature text motion for Sera hero/headlines. */
export function SeraRevealWord({
	word,
	index,
	className,
}: {
	word: string;
	index: number;
	className?: string;
}) {
	const reduceMotion = useReducedMotion();

	return (
		<span className="inline-flex overflow-hidden pb-[0.08em]">
			<motion.span
				className={className}
				initial={
					reduceMotion ? false : { opacity: 0, y: "100%", filter: "blur(4px)" }
				}
				transition={{
					...spring,
					delay: reduceMotion ? 0 : 0.08 + index * 0.06,
				}}
				viewport={{ once: true, margin: "-5%" }}
				whileInView={
					reduceMotion ? undefined : { opacity: 1, y: 0, filter: "blur(0px)" }
				}
			>
				{word}
			</motion.span>
		</span>
	);
}

export function SeraWordReveal({
	text,
	className,
}: {
	text: string;
	className?: string;
}) {
	const words = text.split(" ");

	return (
		<span className={cn("flex flex-wrap gap-x-[0.28em]", className)}>
			{words.map((word, index) => (
				<SeraRevealWord index={index} key={`${word}-${index}`} word={word} />
			))}
		</span>
	);
}

/** Subtle ledger cell lift on hover. */
export function SeraHoverLift({
	children,
	className,
}: {
	children: ReactNode;
	className?: string;
}) {
	const reduceMotion = useReducedMotion();

	return (
		<motion.div
			className={className}
			transition={spring}
			whileHover={reduceMotion ? undefined : { y: -2 }}
		>
			{children}
		</motion.div>
	);
}

/** Monochrome infinite marquee — quotes, wordmarks, rows. */
export function SeraMarquee({
	children,
	className,
	duration = 42,
}: {
	children: ReactNode;
	className?: string;
	duration?: number;
}) {
	const reduceMotion = useReducedMotion();

	return (
		<div
			className={cn(
				"overflow-hidden [mask-image:linear-gradient(to_right,transparent,black_6%,black_94%,transparent)]",
				className,
			)}
		>
			<motion.div
				animate={reduceMotion ? undefined : { x: ["0%", "-50%"] }}
				className="flex w-max"
				transition={{ duration, ease: "linear", repeat: Number.POSITIVE_INFINITY }}
			>
				{children}
				{children}
			</motion.div>
		</div>
	);
}

/** Blur settle reveal for inverse strips and panels. */
export function SeraBlurReveal({
	children,
	className,
}: {
	children: ReactNode;
	className?: string;
}) {
	const ref = useRef<HTMLDivElement>(null);
	const inView = useInView(ref, motionViewport);
	const reduceMotion = useReducedMotion();

	return (
		<motion.div
			animate={
				inView && !reduceMotion
					? { opacity: 1, y: 0, filter: "blur(0px)" }
					: undefined
			}
			className={className}
			initial={reduceMotion ? false : { opacity: 0, y: 8, filter: "blur(4px)" }}
			ref={ref}
			transition={spring}
		>
			{children}
		</motion.div>
	);
}

/** Hairline rule draws in from the left. */
export function SeraMaskRule({ className }: { className?: string }) {
	const ref = useRef<HTMLDivElement>(null);
	const inView = useInView(ref, motionViewport);
	const reduceMotion = useReducedMotion();

	return (
		<motion.div
			animate={inView ? { scaleX: 1 } : reduceMotion ? { scaleX: 1 } : { scaleX: 0 }}
			aria-hidden
			className={cn("h-px w-full origin-left bg-border", className)}
			initial={reduceMotion ? false : { scaleX: 0 }}
			ref={ref}
			transition={spring}
		/>
	);
}

/** Sharp-corner billing toggle for Sera pricing. */
export function SeraBillingToggle({
	period,
	onChange,
	layoutId = "sera-billing-pill",
}: {
	period: "monthly" | "annual";
	onChange: (period: "monthly" | "annual") => void;
	layoutId?: string;
}) {
	const reduceMotion = useReducedMotion();

	return (
		<div
			aria-label="Billing period"
			className="inline-flex border border-border p-0.5"
			role="group"
		>
			{(["monthly", "annual"] as const).map((option) => {
				const isActive = period === option;
				return (
					<button
						aria-pressed={isActive}
						className={cn(
							"relative px-4 py-2 font-medium text-[11px] uppercase tracking-[0.2em] transition-colors active:scale-[0.96]",
							isActive ? "text-foreground" : "text-muted-foreground",
						)}
						key={option}
						onClick={() => onChange(option)}
						type="button"
					>
						{isActive ? (
							reduceMotion ? (
								<span className="absolute inset-0 -z-10 bg-muted" />
							) : (
								<motion.span
									className="absolute inset-0 -z-10 bg-muted"
									layoutId={layoutId}
									transition={spring}
								/>
							)
						) : null}
						{option === "monthly" ? "Monthly" : "Annual"}
					</button>
				);
			})}
		</div>
	);
}

/** Cross-fade price when billing period changes. */
export function SeraPriceReveal({
	amount,
	className,
}: {
	amount: string;
	className?: string;
}) {
	const reduceMotion = useReducedMotion();

	return (
		<AnimatePresence initial={false} mode="popLayout">
			<motion.span
				animate={reduceMotion ? undefined : { opacity: 1, y: 0, filter: "blur(0px)" }}
				className={cn("font-medium tabular-nums tracking-tight", className)}
				exit={
					reduceMotion
						? undefined
						: {
								opacity: 0,
								y: -6,
								filter: "blur(4px)",
								transition: { duration: 0.15, ease: "easeIn" },
							}
				}
				initial={reduceMotion ? false : { opacity: 0, y: 8, filter: "blur(4px)" }}
				key={amount}
				transition={spring}
			>
				{amount}
			</motion.span>
		</AnimatePresence>
	);
}

/** Menu / close icon cross-fade for Sera header mobile toggle. */
export function SeraIconToggle({
	open,
	children,
}: {
	open: boolean;
	children: [ReactNode, ReactNode];
}) {
	const reduceMotion = useReducedMotion();
	const transition = reduceMotion ? { duration: 0 } : spring;

	return (
		<span className="relative inline-flex size-4 items-center justify-center">
			<motion.span
				animate={
					open
						? { opacity: 0, scale: 0.25, filter: "blur(4px)" }
						: { opacity: 1, scale: 1, filter: "blur(0px)" }
				}
				aria-hidden={open}
				className="absolute inset-0 inline-flex items-center justify-center"
				transition={transition}
			>
				{children[0]}
			</motion.span>
			<motion.span
				animate={
					open
						? { opacity: 1, scale: 1, filter: "blur(0px)" }
						: { opacity: 0, scale: 0.25, filter: "blur(4px)" }
				}
				aria-hidden={!open}
				className="absolute inset-0 inline-flex items-center justify-center"
				transition={transition}
			>
				{children[1]}
			</motion.span>
		</span>
	);
}

/** Stagger children when mobile drawer opens. */
export function SeraDrawerStagger({
	open,
	children,
	className,
}: {
	open: boolean;
	children: ReactNode;
	className?: string;
}) {
	const reduceMotion = useReducedMotion();

	return (
		<motion.div
			animate={open ? "visible" : "hidden"}
			className={className}
			initial="hidden"
			variants={{
				hidden: {},
				visible: {
					transition: {
						staggerChildren: reduceMotion ? 0 : motionStagger.item,
						delayChildren: 0.06,
					},
				},
			}}
		>
			{children}
		</motion.div>
	);
}

export function SeraDrawerItem({
	children,
	className,
}: {
	children: ReactNode;
	className?: string;
}) {
	const reduceMotion = useReducedMotion();

	return (
		<motion.div
			className={className}
			variants={
				reduceMotion
					? { hidden: { opacity: 1, x: 0 }, visible: { opacity: 1, x: 0 } }
					: {
							hidden: { opacity: 0, x: -8, filter: "blur(4px)" },
							visible: {
								opacity: 1,
								x: 0,
								filter: "blur(0px)",
								transition: spring,
							},
						}
			}
		>
			{children}
		</motion.div>
	);
}
```

### `registry/blocks/gallery/11/gallery-section.tsx`

```tsx
"use client";

import Image from "next/image";
import { motion, useReducedMotion } from "motion/react";
import { SectionShell, ContentRail } from "@/components/layout-contract";
import { SeraStagger, SeraStaggerItem } from "../../sera/sera-motion";

type GalleryItem = {
	index: string;
	label: string;
	alt: string;
	src: string;
};

const items: GalleryItem[] = [
	{
		index: "01",
		label: "Veil",
		alt: "Dark veil texture rendered in monochrome",
		src: "/images/visuals/dark-veil.png",
	},
	{
		index: "02",
		label: "Silk",
		alt: "Flowing silk surface rendered in monochrome",
		src: "/images/visuals/silk.png",
	},
	{
		index: "03",
		label: "Threads",
		alt: "Interwoven threads rendered in monochrome",
		src: "/images/visuals/threads.png",
	},
	{
		index: "04",
		label: "Beams",
		alt: "Light beams rendered in monochrome",
		src: "/images/visuals/beams.png",
	},
	{
		index: "05",
		label: "Lines",
		alt: "Floating lines rendered in monochrome",
		src: "/images/visuals/floating-lines.png",
	},
	{
		index: "06",
		label: "Ripple",
		alt: "Rippling grid rendered in monochrome",
		src: "/images/visuals/ripple-grid.png",
	},
];

const spring = { type: "spring" as const, duration: 0.3, bounce: 0 };

function GalleryTile({ item }: { item: GalleryItem }) {
	const reduceMotion = useReducedMotion();

	return (
		<motion.figure
			className="group flex min-w-0 flex-col bg-background"
			transition={spring}
			whileHover={reduceMotion ? undefined : { y: -3 }}
		>
			<div className="relative aspect-[4/3] overflow-hidden">
				<motion.div
					className="relative size-full"
					transition={spring}
					whileHover={reduceMotion ? undefined : { scale: 1.03 }}
				>
					<Image
						alt={item.alt}
						className="object-cover grayscale outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10"
						fill
						sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"
						src={item.src}
					/>
				</motion.div>
			</div>
			<figcaption className="border-t border-border px-3 py-2 text-[11px] uppercase tracking-[0.2em] text-muted-foreground transition-colors group-hover:text-foreground">
				<span className="font-mono">{item.index}</span> — {item.label}
			</figcaption>
		</motion.figure>
	);
}

export function GallerySeraSection() {
	return (
		<SectionShell spacingMode="section">
			<ContentRail maxWidth="max-w-6xl" className="space-y-10">
				<SeraStagger className="space-y-10">
					<SeraStaggerItem>
						<div className="max-w-xl">
							<p className="text-[11px] uppercase tracking-[0.2em] text-muted-foreground">Gallery</p>
							<h2 className="mt-3 text-balance font-medium text-3xl tracking-tight md:text-4xl">
								Surfaces from the Sera workspace
							</h2>
							<p className="mt-4 text-pretty text-muted-foreground text-sm leading-relaxed md:text-base">
								A study series rendered directly from Sera canvases. Every frame ships in the
								same monochrome pipeline your team publishes with.
							</p>
						</div>
					</SeraStaggerItem>

					<SeraStaggerItem>
						<SeraStagger className="grid grid-cols-1 gap-px bg-border border border-border sm:grid-cols-2 lg:grid-cols-3">
							{items.map((item) => (
								<SeraStaggerItem key={item.index}>
									<GalleryTile item={item} />
								</SeraStaggerItem>
							))}
						</SeraStagger>
					</SeraStaggerItem>
				</SeraStagger>
			</ContentRail>
		</SectionShell>
	);
}
```
