Skip to content

No.278 · Heroes

Letterform Hero

A portfolio hero where the name is a set of windows: the work shows through the letters, and pointing at a project wipes its view across them.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Night

Build a portfolio hero where a short word (a first name) is set enormous in a condensed display face (Anton, uppercase, about 27% of the container width) and the letters are windows onto the work: each project has a cover (any CSS background, usually a screenshot) painted into the letters with background-clip: text. Below the name, an index of projects: mono number, serif title, kind and year, separated by hairlines. Pointing at a row (or focusing it) changes the view through the letters: the new cover wipes in from left to right over the old one with a clip-path inset animation (900ms expo-out) while the previous cover stays underneath, so the letters are never empty. A caption under the name reads 'Through the letters — Vitrine, 2026'. The active row's title brightens and steps right, and a rule draws across its top. A faint outline of the letters (1px text-stroke) always sits beneath, so the word reads even before the covers load. The pointer shifts the cover inside the letters by up to 18px, like looking through a window; the layer box is padded so a shifted image never shows its edge inside a glyph. On phones (no hover) the view cycles every 4 seconds until the visitor touches the list. The heading's accessible text is the full name; the layered copies are aria-hidden. Selected variant — Night (night): Palette for this theme (Night): --lfh-accent #b9cce4; --lfh-bg #0c0b0e; --lfh-ink #efe8dc; --lfh-line rgb(239 232 220 / 0.1); --lfh-live #7fd1a8; --lfh-muted #9a949e; --lfh-stroke rgb(239 232 220 / 0.14). Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "night". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Point at or focus a project to see it through the letters. Move the pointer to shift the view. Rows are links. Motion: Cover wipe 900ms expo-out; first arrival rises 1.1s; caption and row changes 300–600ms; parallax eases 900ms. Accessibility: The h1's text is the full name (visually hidden); the letter layers are aria-hidden. Projects are a list of real links, and focusing one changes the view just like hovering. Reduced motion swaps covers instantly, without parallax or cycling. Responsive behavior: Letter size follows the container (container query units). Below 520px the kind column hides; the auto-cycle replaces hover on touch screens. Touch: Without hover, covers cycle on their own every 4.2 seconds until the visitor touches the list; tapping a row opens it. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Point at or focus a project to see it through the letters. Move the pointer to shift the view. Rows are links.
Motion
Cover wipe 900ms expo-out; first arrival rises 1.1s; caption and row changes 300–600ms; parallax eases 900ms.
Accessibility
The h1's text is the full name (visually hidden); the letter layers are aria-hidden. Projects are a list of real links, and focusing one changes the view just like hovering. Reduced motion swaps covers instantly, without parallax or cycling.
Responsive
Letter size follows the container (container query units). Below 520px the kind column hides; the auto-cycle replaces hover on touch screens.
On touch
Without hover, covers cycle on their own every 4.2 seconds until the visitor touches the list; tapping a row opens it.