Skip to content

feat(web): show the features as an isometric puzzle stack - #526

Merged
gitfromwildan merged 2 commits into
mainfrom
feat/features-puzzle-stack
Nov 11, 2026
Merged

gitfromwildan merged 2 commits into
mainfrom
feat/features-puzzle-stack

Conversation

@gitfromwildan

@gitfromwildan gitfromwildan commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

The features page showed its twelve features as a grid of cards. They now read as a puzzle stack, after the "Secure Vibe Coding for Your Team" section on void.cloud.

  • Left column: the features as a numbered list in two columns. Each item has its icon, the mono label (01 / NO RUNTIME), the title and the description. The content stays plain HTML.
  • Right column: a sticky isometric board with one slot per feature (4 × 3). Each slot holds a tile with that feature's icon printed on its top face. The two highlighted features (No runtime, Plugin system) get dark tiles and keep their label shown.
  • Narrow boards: below lg the board sits above the list. The labels are hidden where the board is narrowest, so they do not cover the tiles: below sm (a 390px phone gives a 335px board) and on the lg band, 1024–1279px, where the board shares the row with the list and is 327–433px wide. They show from 640px to 1023px and from 1280px up (6b690d6).

Motion

The page follows the site's static-first rule from #512.

  • On load: the board renders full and at rest.
  • After the first scroll: the layout marks the board [data-playing], and a 14s loop starts. Every tile lifts off at once, then the tiles drop back one at a time in feature order until the board is full again. 0% of the loop is the finished frame, so starting it moves nothing.
  • On hover: pointing at a feature in the list stops the loop and shows the full board. That feature's tile lifts, and only its label shows.
  • Reduced motion: the animation and transitions are turned off.

Each tile has its own keyframes. With one keyframe and a staggered delay, a tile's lift-off is delayed as much as its drop, so the board never clears and refills in order. The twelve keyframe sets are generated in the frontmatter and emitted as <style is:inline>; the CSP already allows inline styles (style-src 'self' 'unsafe-inline').

Implementation

  • FeatureGrid.astro:
    • The frontmatter computes the isometric geometry: a true 30° projection, the rounded slab and tiles, the visible front band of each, and the hard split between the lit left face and the shaded right face.
    • The board is one SVG. Each tile is an absolutely positioned HTML box with its own small SVG, so its motion stays composited.
    • The side faces use --color-accent and a darker mix of it, so the theme presets on the home page recolor the board.
    • The board is aria-hidden, since the list carries the content.
    • A small script maps hovering a list item to its tile and label.
  • features.ts: an icon field per feature.
  • Icon.astro: nine more Lucide icons (blocks, folder-tree, hammer, layers, palette, plug, route, shield-check, zap), plus x/y props to place an icon inside a parent <svg>. The tiles print their icon this way, through an isometric matrix() on the top face.

Verification

Checked against the production build (turbo build --filter=@docubook/web..., served with astro preview) in Chromium:

  • At load: no running animations, the board is not [data-playing], and CLS is 0.
  • Over a full 14s loop: 0 layouts. Only translate and opacity change.
  • Reduced motion: nothing runs.
  • Screenshots at 1440 × 900 and 390 × 844 cover the rest frame, the cleared board, the board refilling in order, a hovered feature, and the mobile layout. Mobile has no horizontal overflow.
  • Checks: astro build, astro sync && tsc --noEmit and the pages tests (3) pass.

The only layout shift seen while scrolling the page comes from the navbar collapsing on scroll (about 0.0002, existing behavior); this change does not touch it.

The features page listed its twelve features as a grid of cards. The
section is now two columns: the features as a numbered list on the
left, each with its icon, and on the right a sticky isometric board
with one slot per feature, filled by a tile that carries that
feature's icon. The two highlighted features get dark tiles and keep
their label shown. Below lg the board sits above the list, without
labels.

The board renders full and at rest on load. Once the layout marks it
[data-playing] after the first scroll, a 14s loop lifts every tile
off and drops them back one at a time in feature order. Each tile has
its own keyframes, generated in the frontmatter as an inline style,
so the board clears at once and refills in order; 0% is the finished
frame. Pointing at a feature stops the loop, lifts that tile and
shows only its label. Only translate and opacity move, and reduced
motion turns all of it off.

The geometry (slab, slots, rounded tiles and their split side faces)
is computed in the frontmatter. Tiles are HTML boxes with their own
svg so their motion stays composited, and the sides use the accent
color, so the theme presets recolor the board. Features gain an icon
field, and Icon gains nine Lucide icons plus x/y to place an icon
inside a parent svg.
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 11, 2026 12:34am UTC

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one breakpoint mismatch inline.

Reviewed changes

Mode: standard (private pages/ site, no flame/security/release surface). I reviewed the one commit that turns the features page from a card grid into a numbered list beside a sticky isometric puzzle board. Assessment: READY WITH MINOR FIXES. The only priority is the label breakpoint inline.

  • Isometric board (FeatureGrid.astro): The frontmatter computes the slab, slot and tile geometry and generates one keyframe set per tile. Each loop's offsets stay under 100% (the last tile finishes at 91.8%), and every lift-off ends before the first drop.
  • Motion gating: The loop runs under [data-playing] from layouts/Site.astro, as the existing demos do. :not([data-active]) stops it on hover, and reduced motion turns it off. The generated CSS is static and sent as is:inline. That is fine under the site CSP, which allows 'unsafe-inline' for styles.
  • Icon.astro: Adds nine Lucide icons and x/y props. @lucide/astro spreads ...rest onto its <svg>, so they reach the nested SVG, and an undefined value leaves the attribute out.
  • features.ts: Adds an icon: string per feature, the same convention as content/home.ts.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan gitfromwildan self-assigned this Nov 11, 2026
The labels were hidden only below sm, but the board is smallest on the
lg band, where it shares the row with the list: 327px wide at 1024px,
with tiles about 65px across, the same as on a phone. The two
always-on labels (78 and 96px) covered the tiles there. They are now
hidden from lg up to xl too, and show again from 1280px, where the
tiles are 86px.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. The earlier label breakpoint finding is fixed.

Reviewed changes

Mode: standard (private pages/ site). I reviewed the one commit pushed since the last review. Assessment: READY. No priorities remain open.

  • Hid the chip labels on the narrow lg band: The chip class is now max-sm:hidden lg:max-xl:hidden, so labels are hidden below 640px and from 1024px to 1279px, which are the two places the board is narrowest. No rule in the component sets display on .chip, so hidden also keeps the hovered label hidden on those bands. That is the intended behavior. The author's measurements and the corrected PR description match the code.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 6b4cdf8 into main Nov 11, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the feat/features-puzzle-stack branch November 11, 2026 00:51
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