Skip to content

fix(landing): Built with in the hero, the Mind loads whole, a floating scrollbar, link previews - #293

Merged
Lexirieru merged 7 commits into
mainfrom
fix/landing-hero-stack-mind
Nov 12, 2026
Merged

Lexirieru merged 7 commits into
mainfrom
fix/landing-hero-stack-mind

Conversation

@AncungAulia

Copy link
Copy Markdown
Contributor

@Lexirieru @Nabil-Aufa The two points of #290, plus four landing fixes Ancung asked for. Nabil, it's your folder; Ancung took this over so it lands before the freeze.

#290

  1. "Built with" under the hero buttons (components/hero/Hero.tsx, STACK):
    • NEAR, NEAR AI, Meteor, Composio and GLM, from public/brands/powered/, replacing Telegram, Gmail and Sheets. The apps stay in PoweredBy's "Works with" lower down.
    • On phones, the label sits on its own line and the five logos fit one line under it, checked at 360 and 390 px.
    • Side effect: the row is wider than the old one, and the buttons share its width (by design: "Buttons and the app row share one width"). So each button is now about 240 px, up from 190.
  2. The Mind's body comes up with its hands (components/hero/MindStage.tsx):
    • The hands are CSS and keep moving while the main thread stalls. The body's first draw compiled its skinned, morphing shaders.
    • Now the shaders are compiled (compileAsync) and one frame drawn under the page loader, before it says the Mind is loaded. The body is also drawn once before play("enter") starts the hands.
    • Measured in headless Chromium (software GL): the first frame after the loader lifts took 2.4 s on the live site, 0.6 s with this. The sprout peeks at about 0.9 s and the body is up at about 1.3 s, as the entrance means.
    • Not measured on a real GPU. The cause is likely, not proven.

Also (Ancung, 12–13 Nov)

  1. A scrollbar that floats over the page (components/OverlayScrollbar.tsx):
    • A native bar's gutter always shows the page's background: a light strip beside the sky on Windows.
    • The page's bar is hidden. A thin thumb shows while scrolling or on hover at the edge, fades after, can be dragged, and reads on the sky and the night.
    • With no bar, scrollbar-gutter: stable goes. Checked with a real 17 px scrollbar (Playwright without --hide-scrollbars) at 1024, 1512 and 1920 px: no bar width, no sideways scroll.
  2. A refresh starts at the hero: an inline script in app/layout.tsx turns off scroll restoration and drops a section hash. Checked with a reload after scrolling, and a fresh /#safety.
  3. In-page links leave no #… in the address: PageLoader keeps the URL as it was. Checked with Safety, Minds and Skills (each lands on its section) and the logo.
  4. Link previews:
    • app/opengraph-image.jpg and twitter-image.jpg: Ancung's pick of the hero, at 1200 × 630, with alt text.
    • metadataBase https://hellonear.xyz, and a large-image Twitter card.
    • next build writes og:image as https://hellonear.xyz/opengraph-image.jpg.

apps/landing/CLAUDE.md updated.

Tests (local, on main 5538554)

  • Landing bun run typecheck and bun run build: pass.
  • Playwright (Chromium) against the dev server and next start: the checks above, plus no sideways scroll on phones at 360 and 390 px.
  • Not run: the landing has no unit or integration tests.
  • Not checked: a real phone, a real GPU, and a real link preview in WhatsApp or X (that needs the live URL).

Closes #290.

🤖 Generated with Claude Code

AncungAulia and others added 7 commits November 12, 2026 23:48
Axel and Ancung asked for the stack under the hero buttons, not the
apps (which are listed lower down): "Built with" NEAR, NEAR AI,
Meteor, Composio and GLM, from the logos already in
public/brands/powered. On phones the label sits on its own line and
the five logos fit one line under it (checked at 360 and 390 px).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a fresh load the 2D hands rose and the 3D body came seconds later.
The hands are CSS and keep moving while the main thread stalls; the
body's first draw compiled its skinned, morphing shaders then. The
shaders are now compiled and one frame drawn under the page loader,
and the body is drawn once before the entrance starts the hands.

Measured in headless Chromium (software GL) on the hero: the first
frame after the loader lifted took 2.4 s before, 0.6 s after, and the
body is up about 1.3 s after the loader lifts. Not measured on a real
GPU; the cause is likely, not proven.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browser's page scrollbar sat in a light strip of its own beside
the sky (Ancung, 12 Nov): its gutter always shows the page's
background, so it can't be see-through. The native bar is hidden and
OverlayScrollbar draws a thin thumb over the page: shown while
scrolling or on hover at the edge, fades after, draggable, dark with
a light edge for the sky and the night. With no bar there is no width
to reserve, so scrollbar-gutter: stable goes.

Checked with a real 17 px scrollbar (Playwright without
--hide-scrollbars) at 1024, 1512 and 1920 px: no bar width, no
sideways scroll; dragging the thumb scrolls the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A shared hellonear.xyz link shows the hero as its preview:
  opengraph-image.jpg and twitter-image.jpg (1200 x 630, rendered
  from the page), metadataBase https://hellonear.xyz, a large-image
  Twitter card. next build writes og:image as
  https://hellonear.xyz/opengraph-image.jpg.
- A refresh starts at the hero (Ancung, 12 Nov): an inline script
  turns off scroll restoration and drops a section hash before the
  page paints. Checked: a reload after scrolling and a fresh load of
  /#safety both land at the top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clicking Minds, Safety, Skills or a hero button put "#safety" and so
on in the address bar (Ancung, 13 Nov). PageLoader, which already
covers the page, jumps and lifts for these links, now keeps the
address as it was.

Tests: landing typecheck; Playwright on the dev server: Safety, Minds
and Skills each land on their section with the URL still
http://localhost:3100/, and the logo goes back to the top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ancung picked his own screenshot of the desktop hero for the link
preview (13 Nov). It is cropped to 1.9:1 from the top and scaled to
1200 x 630, for opengraph-image.jpg and twitter-image.jpg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Lexirieru
Lexirieru merged commit 8e86e27 into main Nov 12, 2026
1 check passed
@Lexirieru
Lexirieru deleted the fix/landing-hero-stack-mind branch November 12, 2026 17:19
@Lexirieru

Copy link
Copy Markdown
Contributor

Merged, thanks @AncungAulia (and @Nabil-Aufa, it's your folder). Checked: CI build passes, landing typecheck passes locally, every logo in STACK exists in public/brands/powered/, and nothing in the README, FE or docs links to a hellonear.xyz/#section, so dropping the hash on load breaks no link.

Two small things, no need to block:

  • The comment in app/layout.tsx says opengraph-image.png / twitter-image.png, but the files are .jpg.
  • If compileAsync never settles on some GPU, the loader still lifts at 8 s, but the Mind may stay hidden. Rare, and not seen yet; worth a timeout around compileAsync if you touch it again.

Approving this merge also deploys main to the hosted demo (rule 3).

@Lin1er

Lin1er commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Live on the hosted demo: main 8e86e27 (automatic deploy after the merge).

  • Before: 327ea5e, and the box matched git at that revision. CI: passed: build.
  • GET /v1/health → {"ok":true,"engine":true,"revision":"8e86e27"}. No rollback.
  • Rollback target: 327ea5e (/opt/hellonear/release-old).

@AncungAulia

Copy link
Copy Markdown
Contributor Author

@Lexirieru Lenis is in, as you asked: 6cee517.

What it does

  • lenis 1.3.27, pinned, in components/SmoothScroll.tsx.
  • It drives the page's own scroll, with no wrapper. It runs on GSAP's ticker and calls ScrollTrigger.update on every scroll, so the pins and the scrubbed approvals scene stay in step.
  • Touch keeps native scrolling, and reduced motion gets no Lenis.
  • It waits for the page loader to lift.
  • PageLoader's in-page jumps and the overlay scrollbar's drag go through lenis.scrollTo(…, { immediate: true }), so it doesn't glide on afterwards.

Checked (Playwright on the dev server)

  • One wheel notch glides over about 0.7 s.
  • Safety, Skills and the logo land where they did, with no # in the URL.
  • A reload starts at the top. No sideways scroll, no page errors.
  • The approvals scene at scrollY 2200 and 3200 matches the live site (mean pixel difference 0.2 of 255).
  • Landing typecheck and next build pass.
  • Ancung tried it in his browser and likes it.

Not checked: a real phone.

🤖 Generated with Claude Code

@AncungAulia

Copy link
Copy Markdown
Contributor Author

Correction to my comment above: this PR was already merged when I pushed Lenis, so it isn't here. It's in #295 instead, on top of main 8e86e27. The fix/landing-hero-stack-mind branch was re-created by that push; it can be deleted.

🤖 Generated with Claude Code

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.

Landing: show NEAR, NEAR AI, Meteor, Composio and GLM in the hero, and load the Mind's body with its hands

3 participants