terra vidhal

Media Gallery

Galleries

About

A filterable media gallery with animated tiles, a generated artwork system, a shared lightbox, previous and next navigation, arrow-key browsing, Escape to close, a focus trap and a body scroll lock. Collections are derived from the items and presented as a keyboard radio group with live counts.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Media Gallery to your project and fits it to your theme.

Code

How Media Gallery is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { MediaGallery, type MediaItem } from "@/components/ui/media-gallery";

const ITEMS: MediaItem[] = [
  {
    id: "mark",
    title: "Northern light mark",
    category: "Identity",
    description:
      "A flexible mark built from two overlapping arcs. The identity pairs it with a warm neutral palette and a wide display face.",
    tone: "sky",
    badge: "Primary",
  },
  {
    id: "poster",
    title: "Studio grid poster",
    category: "Editorial",
    description:
      "A modular poster system for a seasonal lecture series. Every block of type snaps to the same twelve-column grid.",
    tone: "violet",
    span: 2,
  },
  {
    id: "onboarding",
    title: "Onboarding illustration",
    category: "Product",
    description:
      "A calm three-step scene used at the start of the setup flow. Shapes stay simple so the copy leads.",
    tone: "amber",
  },
  {
    id: "notes",
    title: "Field notes cover",
    category: "Editorial",
    description:
      "A pocket notebook cover with a single rule and a stamped edition number.",
    tone: "emerald",
  },
  {
    id: "interface",
    title: "Interface study",
    category: "Product",
    description:
      "An exploration of dense data surfaces: quiet dividers, tight labels and one strong accent per view.",
    tone: "rose",
    badge: "Exploration",
  },
  {
    id: "key-art",
    title: "Launch key art",
    category: "Motion",
    description:
      "A looping composition for the release announcement. The rings rotate at different speeds and settle into the mark.",
    tone: "sky",
    span: 2,
  },
  {
    id: "texture",
    title: "Texture set",
    category: "Identity",
    description:
      "Six printable textures used behind quotes and section breaks.",
    tone: "violet",
  },
  {
    id: "spread",
    title: "Campaign spread",
    category: "Editorial",
    description:
      "A two-page layout that lets a single image breathe, with captions set in the margin.",
    tone: "amber",
  },
  {
    id: "icons",
    title: "Icon suite",
    category: "Product",
    description:
      "Forty-eight line icons drawn on the same grid, with consistent corners and a two-pixel stroke.",
    tone: "emerald",
  },
];

export default function MediaGalleryDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-12 sm:px-6">
      <MediaGallery
        items={ITEMS}
        title="Selected work"
        description="Recent visual work across identity, editorial, product and motion."
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    16
  • Audio Waveform

    Audio Waveform

    13
  • Topographic Lines

    Topographic Lines

    12
  • Notification Center

    Notification Center

    11
  • Booking Calendar

    Booking Calendar

    11
  • Spotlight Card

    Spotlight Card

    11
  • Command Palette

    Command Palette

    9
  • Kpi Counter

    Kpi Counter

    9

More in Galleries

View all
  • Scattered About

    Scattered About

    60
  • Photo Deck

    Photo Deck

    61
  • Gallery Component

    Gallery Component

    32
  • Thumbnail image viewer

    Thumbnail image viewer

    113
  • Animated Gallery

    Animated Gallery

    1.6K
  • Cylinder Tunnel Gallery

    Cylinder Tunnel Gallery

    43
  • Editorial Collage Hero

    Editorial Collage Hero

    521
  • Elastic Gallery

    Elastic Gallery

    1.2K