Skip to content

Site: hero buttons on phones, "Built differently." and the stack scene - #627

Merged
GLinnik21 merged 6 commits into
mainfrom
claude/site-hero-buttons-row
Oct 12, 2026
Merged

GLinnik21 merged 6 commits into
mainfrom
claude/site-hero-buttons-row

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Landing-page follow-ups to #625: two phone fixes, a new slogan, and the approach diagram redesigned in Claude Design.

Hero buttons side by side on phones. Before: on an iPhone, "Install PlxNative" and "View on GitHub" wrapped onto two lines, each as wide as its own label. After: under 760px they stay on one row. Type (14–16px), padding and the gap scale with the window, so the pair fits from 320px up, and both buttons stay 48px tall.

"Built differently." The approach section's headline becomes this slogan, as large as the hero's. The sentence under it, still lit word by word as you scroll, moves down a size.

The stack scene. Before: a small line drawing of PlxNative's own layers, with nothing to compare against. On iPhone each slab also sat on a hard grey disk, because Safari ignores a CSS blur inside an SVG.

After: under "Most TV apps run inside a browser. PlxNative doesn't."

  • The typical TV app starts as one closed block. It opens as the scene scrolls in, showing seven isometric glass plates: the demo frame on the app's plate and on the screen, and a fine white wireframe on each plate between them.
  • JavaScript, the browser engine and the compositor slide away one after another.
  • The four plates that stay close up under the app, and the label turns from "A typical TV app" to "PlxNative".
  • A still motion blur of the picture runs from the app down to the screen.
  • "60" counts up from 0 as the stack closes.
  • Each plate has a visible glass edge and a band of light that crosses it as you scroll, and light pools under the screen plate.
  • Nothing loops; every change is tied to the scroll position.
  • No app is named and no speed is claimed beyond the existing "60 fps on a 2019 TV".

How: site.js writes a few custom properties: each plate's height (--f), each browser plate's exit (--t), the end state (--k), the opening (--open) and the light (--s). styles.css does the rest. Without JS, or under reduced motion, the page shows the settled PlxNative stack. On wide screens the scene is pinned for 220svh. On phones and short landscape windows it plays in the page's flow while the stack's middle moves from 85% to 40% of the window, so all of it plays on screen.

Verification:

  • Rendered in Chromium at 1440×900, 1280×720, 393×852 and 320×568, at five scroll points each, using instant scrolling:
    • nothing scrolls sideways;
    • the pinned scene clears the header capsule and fits the window;
    • labels never overlap;
    • no console errors;
    • the count reaches 60 as the stack settles.
  • Scroll performance on the latest commit, scripted full-page scroll:
    • iPhone size at 4× CPU: no slow frames.
    • Desktop: one 33 ms frame over the whole page.
    • No long tasks while scrolling, no layout shift, and LCP below main's.
  • Hero buttons, checked at 320–759px: one line at every width.
  • tools/subset-site-fonts.py check passes.
  • unittest over ci/test_ci_workflows.py, tests/test_site_video.py, tests/test_site_stills.py and tests/test_demo_library.py: OK.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BJ2h83YxmxxQSEFgaMJM5a


Generated by Claude Code

On an iPhone the pair wrapped onto two lines, each as wide as its own
label, so they read as two unrelated widths. Under 760px the row no longer
wraps; type (14-16px) and padding scale with the window so the pair fits
from a 320px phone up, at 48px tall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJ2h83YxmxxQSEFgaMJM5a
Each slab had an ellipse blurred with CSS `filter: blur()`. Safari does not
apply a CSS filter to an element inside an SVG, so on an iPhone every
shadow was a hard grey disk that read as an extra flat layer. The slabs'
lit tops and shaded sides carry the depth on their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJ2h83YxmxxQSEFgaMJM5a
@GLinnik21 GLinnik21 changed the title Site: keep the hero's two buttons side by side on phones Site: phone fixes — hero buttons side by side, no slab shadows in the stack diagram Oct 12, 2026
The approach diagram showed only PlxNative's own layers, so "nothing sits
in between" had nothing to be compared with. It now sets two stacks side
by side, both ending on the same screen: a typical TV app (web page,
JavaScript, browser engine, compositor, GPU) in dimmer ink, and PlxNative
(the app, OpenGL, the GPU buffer), visibly shorter. Light streaks cross
PlxNative's stack in 0.7s and the typical one's in 1.5s. A caption says it
in words: most TV apps are web pages in the TV's browser; PlxNative has
no browser in it and draws straight to the GPU. No app is named and no
speed is claimed.

The rail and streaks are now HTML laid over the slabs (sized from one
--slab width) instead of a fixed-size SVG, so both stacks scale from a
320px phone to the desktop card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJ2h83YxmxxQSEFgaMJM5a
@GLinnik21 GLinnik21 changed the title Site: phone fixes — hero buttons side by side, no slab shadows in the stack diagram Site: phone fixes and a clearer approach diagram Oct 12, 2026
…s you scroll

Instead of two small stacks in a card, one large stack under a statement
("Most TV apps run inside a browser. PlxNative doesn't."). It starts as a
typical TV app's seven layers; as the page scrolls, JavaScript, the browser
engine and the compositor slide out and fade one after another, the app
drops straight onto OpenGL, and the label turns from "A typical TV app" to
"PlxNative". The removal is the animation, so there are no looping streaks.

Pinned for 220svh on wide screens; on phones and short landscape windows it
plays in the page's flow as the stack passes up the screen. site.js writes
three eased 0..1 values as custom properties and styles.css does the rest;
without JS or under reduced motion every value is 1, the settled PlxNative
stack. The story and its two benefits now sit side by side above it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJ2h83YxmxxQSEFgaMJM5a
@GLinnik21 GLinnik21 changed the title Site: phone fixes and a clearer approach diagram Site: phone fixes and an approach diagram that loses its browser as you scroll Oct 12, 2026
…he picture

The approach section's headline becomes the slogan "Built differently.",
as large as the hero's; the sentence under it, still lit word by word,
moves down a size.

The stack scene follows the Design canvas:
- Seven isometric plates, 16:9 laid flat by CSS 3D: the demo frame on the
  app's plate and on the screen, frosted glass with a fine white wireframe
  between (code lines, page boxes, panes, a triangle mesh, a pixel grid).
- As the page scrolls, JavaScript, the browser engine and the compositor
  slide away one after another; the four that stay close up under the
  app; the label turns from "A typical TV app" to "PlxNative".
- A still motion blur of the picture (ten blurred copies, stronger near
  the screen) shows it dropping straight from the app to the screen.
  Nothing loops.
- "60 fps / on a 2019 LG TV" comes in centred, in the room the browser
  plates leave.

site.js writes --f (each plate's height), --t (each browser plate's exit)
and --k (the end state); without it or under reduced motion the page
shows the settled PlxNative stack. Pinned on wide screens; on phones it
plays while the stack's middle moves from 85% to 40% of the window, so all
of it is on screen. --W shrinks on narrow phones so the labels fit.

Checked in Chromium at 1440x900, 1280x720, 393x852 and 320x568 at five
scroll points each: no sideways scroll, the pinned scene clears the
header and fits the window, labels never overlap, no console errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJ2h83YxmxxQSEFgaMJM5a
@GLinnik21 GLinnik21 changed the title Site: phone fixes and an approach diagram that loses its browser as you scroll Site: hero buttons on phones, "Built differently." and the stack scene Oct 12, 2026
- The typical TV app starts as one closed block that opens as the scene
  scrolls in (only "The app" is labelled until it has), before its three
  browser plates leave and the rest close up.
- Every plate has a visible glass edge (stepped shadows in its own plane)
  and a soft band of light that crosses it with the scroll.
- Light pools under the screen plate, below the whole stack so it never
  shows through the glass, and strengthens as the frames arrive.
- "60" counts up from 0 as the stack closes, in tabular figures with a
  warm white gradient taken from the picture.

All of it is tied to the scroll position; nothing loops, and reduced
motion still shows the settled stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJ2h83YxmxxQSEFgaMJM5a
@GLinnik21
GLinnik21 merged commit c0ca661 into main Oct 12, 2026
13 checks passed
@GLinnik21
GLinnik21 deleted the claude/site-hero-buttons-row branch October 12, 2026 15:33
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