Skip to content

Design cleanup - #11

Merged
Psybah merged 2 commits into
mainfrom
design-cleanup
Nov 19, 2026
Merged

Psybah merged 2 commits into
mainfrom
design-cleanup

Conversation

@Psybah

@Psybah Psybah commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

What changed

More for the component library at /components:

  • New component, Scroll Deck: a scroll-driven hero where the cards are the focus.
    • Its timing, easing, positions and per-card 3D tilts come from studying the published code of tekcify.com's hero, then rebuilding it in our own code with CSS 3D. It needs no extra packages, and the demo shows made-up apps.
    • Cards rise in as a fan, scatter and tumble in 3D around a second headline that appears word by word, then sweep back into a fan that turns on its pivot.
    • It works inside its own box (previews) or pinned to the page's scroll (scroll="page").
  • Draw a Line: the wagons now spring against the engine. They bunch up when it brakes, then stretch, and a coupling bar between cars shows the gap.
  • Bento grid: a four-column grid with big (2×2), wide (2×1) and tall (1×2) cards, plus grey placeholders so the last rows have no gaps. Tablets use two columns, phones one.
  • Full-screen preview: a new button in the preview controls opens any component full screen, with the light/dark, replay and close controls. Esc closes it.
  • Hero-sized preview: a component can declare a fixed screen size. Scroll Deck previews as a real 1440×900 hero scaled to fit, and full screen uses the actual screen.
  • Share images: Scroll Deck is added to shared/component-meta.ts, so its page gets its own share image from the system added in Add share cards for every page #10.

How I checked it

  • corepack pnpm typecheck: passes.
  • corepack pnpm lint: 0 errors (the warnings are the existing fast-refresh ones).
  • corepack pnpm test: 750 passed, 62 skipped.
  • New tests:
    • Scroll Deck renders its cards, intro line and headline.
    • Search finds it.
    • Full screen opens as a dialog, moves focus to its close button, and closes with Esc.

Anything left to check

  • Not checked in a browser: I couldn't watch the animations. Someone should look at Scroll Deck's motion and 3D look, Draw a Line's couplings, and the bento grid on desktop, tablet and phone.

  • Scroll Deck's page mode (scroll="page") is only exercised through code paths; the library preview uses the boxed mode.

  • I kept this pull request focused and updated the relevant documentation.

  • I added regression coverage for a bug fix where useful.

  • I kept secrets, private member details and generated files out of the changes.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 00:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Psybah
Psybah merged commit 41973a6 into main Nov 19, 2026
2 checks passed
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.

2 participants