Skip to content

Redesign gallery tiles and the four card previews - #10

Merged
raqibnur merged 2 commits into
mainfrom
claude/all-card-ui-design-c0b957
Sep 29, 2026
Merged

raqibnur merged 2 commits into
mainfrom
claude/all-card-ui-design-c0b957

Conversation

@raqibnur

@raqibnur raqibnur commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

What this changes

Two things, one commit each:

  1. Gallery tiles (components/gallery/tile.tsx, app/globals.css). The bezel now paints the charge field's own --px/--py radial on fixed attachment. The field passes through tiles instead of stopping at their edges, and the hairline nearest the cursor warms to --charge, on neighbouring tiles too. Four viewfinder corners close in on the effect on hover or focus-within and take --charge. The stage gets a faint dot lattice, masked out at the centre. The footer leads with the effect's number in the frozen 12.
  2. Card previews (registry/hover/*-card/preview.tsx). The four previews were one template repeated. Each is now its own landing-page scene: a pricing tier (spotlight), an admission ticket (tilt), a specimen plate under a reticle (reveal) and a release card using the registry's real figures (chase border).

Why

The tiles were a plain bezel around an empty stage, and the card previews were interchangeable placeholders. Neither showed the page thesis or gave the effects anything to act on. Everything stays achromatic at rest: colour appears only under the pointer or on focus.

Notes for review:

  • No new pointer listener. The lit edge reads the vars ChargeField already writes. It is gated to (hover: hover) and (pointer: fine) because iOS ignores background-attachment: fixed, which would pin the radial to each tile's own box.
  • Focus marks: 220ms out-curve in, 420ms spring out (G4). Scale only, so compositor-only (G12). Reduced motion keeps the colour and drops the travel (G10).
  • reveal-card keeps its 228px media and 32px caption, so the measured recession in its preview comment still holds.
  • Scope: no effect .tsx and no registry item changed; only preview.tsx files. public/r/ is unchanged after npm run build.
  • docs/DESIGN.md § Tile metadata documents the new tile behaviour.

The gate

Every PR

  • npm run lint passes
  • npm run build passes
  • No new dependency, runtime or dev

Touching registry/hover/

Only preview.tsx files changed.

  • preview.tsx is gallery-only and is not listed in the registry item
  • npm run registry:build was run (via npm run build); public/r/ has no diff
  • Each preview still matches its effect's Intent in SCOPE.md

Motion and accessibility — docs/MOTION.md

  • Keyboard: every card preview keeps a focusable link, and the focus marks respond to focus-within
  • Reduced motion: handled in code (motion-reduce:transform-none! on the marks) but not checked with the OS setting on
  • Real phone: only checked in the browser emulator at 375px, not on a real phone
  • Focus marks animate transform and color only; the lit edge is a paint driven by existing CSS vars, with no layout work on pointer move
  • motion-reviewer has not been run on these changes yet

Screen recording

Not attached. The tiles and all four previews were checked in the in-app browser at 1440px (light and dark, at rest and hovered) and at 375px.

🤖 Generated with Claude Code

raqibnur and others added 2 commits September 30, 2026 01:08
… lattice

The tiles were a plain bezel around an empty stage. Each now reads as a channel
on the bench, still achromatic at rest:

- The bezel paints the charge field's own --px/--py radial on fixed attachment,
  so the field passes through tiles instead of stopping at their edges, and the
  hairline nearest the cursor warms to --charge. No new listener. Fine pointers
  only, since iOS ignores fixed attachment.
- Four viewfinder corners close in on the effect on hover/focus-within (220ms
  out-curve in, 420ms spring out) and take --charge; reduced motion keeps the
  colour, drops the travel.
- A faint dot lattice on the stage, masked out at the centre.
- The footer leads with the effect's number in the frozen 12, hidden below sm.

Documented in docs/DESIGN.md § Tile metadata.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The four card previews were the same template (eyebrow, title, blurb, "Read the
spec"). Each is now a scene a visitor would meet on a real landing page, chosen
so the surface gives its effect something to act on:

- spotlight-card: a pricing tier with a ruled feature list for the light to cross
- tilt-card: an admission ticket with a perforation and cut-out notches
- reveal-card: a specimen plate under a reticle; the media keeps its 228px
  height and the caption its 32px, so the measured recession is unchanged
- chase-border-card: a release card using the registry's real figures

Previews only; no effect file or registry item changes. Tokens throughout, a
focusable link in every card for G9, --charge only on focus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hoverui Ready Ready Preview Sep 29, 2026 7:09pm UTC

@raqibnur
raqibnur merged commit da6fc43 into main Sep 29, 2026
3 checks passed
@raqibnur raqibnur changed the title Redesign gallery tiles and the four card previews Redesign gallery tiles, card previews and hero Sep 29, 2026
@raqibnur raqibnur changed the title Redesign gallery tiles, card previews and hero Redesign gallery tiles and the four card previews Sep 29, 2026

This branch was successfully deployed

1 active deployment
Preview — 110735cc Deployed Sep 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant