Skip to content

Compact the hero: inline Tailwind lockup, left-aligned layout - #11

Merged
raqibnur merged 1 commit into
mainfrom
claude/hero-redesign
Sep 29, 2026
Merged

raqibnur merged 1 commit into
mainfrom
claude/hero-redesign

Conversation

@raqibnur

Copy link
Copy Markdown
Owner

What this changes

The hero. The particle Tailwind mark sat in its own block under the install command and pushed the gallery a full screen down. It now sits inline in the H1 as the Tailwind lockup ("React and [mark] Tailwind."), sized in em so it tracks the type. That is what docs/DESIGN.md § The hero contains no decorative filler already specified.

  • The mark rests assembled in --ink and turns Tailwind's sky (#38BDF8) only while the pointer is on it. Under the pointer the dots scatter away from the cursor.
  • The hero is left-aligned on the gallery's edge: the headline across the measure, a hairline, then the pitch and the install command side by side (stacked below lg).
  • The hero is about half its old height; at 1440×900 the first row of tiles starts above the fold.

Why

The mark was taking too much space, and the centred single column put the gallery (the page's real content) a full scroll away. This was meant to go into #10, but that PR had already been merged.

Notes for review:

  • hoverEnabled is now false on the vendored particle component. Its "roam" idle scatters the dots across the whole box until hovered, which at headline size read as noise in the middle of the sentence. Repulsion stays on behind the (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) gate.
  • --ink is read off <html> (the canvas can't resolve a CSS variable) and re-read when the theme class changes, because --ink inverts in dark mode.
  • The sampling lattice is tighter (particleCount 25 → 60) and repulsion is scaled down (radius 60 → 26, force 10 → 5) for the smaller mark.
  • docs/DESIGN.md documents the new hero. Its old note said the canvas mounts only behind the pointer gate; the code always mounted it and gated only the interaction, so the text now matches the code.

The gate

Every PR

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

Motion and accessibility — docs/MOTION.md

  • Keyboard: the mark is aria-hidden; the headline still reads as a sentence, with "Tailwind" as text
  • Reduced motion: repulsion is gated off in code, but not checked with the OS setting on
  • Real phone: checked only in the browser emulator at 375px, not on a real phone

Screen recording

Not attached. Checked in the in-app browser at 1440×900 (dark theme, at rest and hovered) and at 375px.

🤖 Generated with Claude Code

The particle mark sat in its own block under the install command and pushed
the gallery a full screen down. It now sits inline in the H1 as the Tailwind
lockup, sized in em so it tracks the type, which is what docs/DESIGN.md
already specified.

- The mark rests assembled in --ink and takes Tailwind's sky only while the
  pointer is on it. The vendored "roam" idle scattered the dots until hover,
  which read as noise mid-sentence at headline size.
- Repulsion radius and force scaled down to the smaller mark; sampling
  lattice tightened so it resolves at headline size.
- Hero is left-aligned on the gallery's edge: headline across the measure, a
  hairline, then pitch and install command side by side (stacked below lg).
  The first row of tiles now shows above the fold on a laptop.

DESIGN.md updated; its note that the canvas mounts only behind the pointer
gate did not match the code, which always mounts it and gates interaction.

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:26pm UTC

@raqibnur
raqibnur merged commit 5359100 into main Sep 29, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 442c750d 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