Files
site/components/v2/useCalm.js
Claude c8f381f9df Hanzo v2: Platform + Cloud (Apple-grade overhaul)
/platform: one camera through the stack. The hero is the whole stack as a
white slab; scrolling opens the dark room as a circle from it, pulls the
eleven plates apart and travels down group by group (API, MIND, ACT, RUN,
SILICON) with each group's words pinned on the left. Any layer opens an
inspector sheet. Below: kernel fan, tile grid, improvement ring, the cloud
plane by plane as sticky chapters, a live One API replay, catalog cards,
close. Beyond: ask the map (type a word, matching plates light up).

/cloud/*: a launch page per product. Own accent per product (family hue,
turned per sibling) and own Sigil; the product's console is the hero on a
stage that settles flat as you scroll while its session types and plays;
paste-and-ship prompt as type; what it is; one variable-weight line; spec
sheet; Google Cloud to Hanzo finder (dark room); related cards that open
into their page; one action.

New shared pieces in components/v2: PinChapters, StageSettle, SheetPanel,
IsoStack, useCalm. Proof in docs/gallery/platform and docs/gallery/cloud.
Parity 0 missing on /platform and all 42 /cloud pages; variety OK.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DqUybC36ncJibdZBGwqLx8
2026-11-07 13:39:39 +00:00

14 lines
638 B
JavaScript

'use client';
/* useCalm (v2; owned by the Platform + Cloud chat). "Does the visitor ask for reduced motion?", answered only after the
page has mounted, so the server's HTML and the browser's first render always match (no hydration mismatch).
Use it wherever reduced motion changes what is rendered; inside effects, motion's useReducedMotion is fine. */
import { useEffect, useState } from 'react';
import { useReducedMotion } from 'motion/react';
export default function useCalm() {
const calm = useReducedMotion();
const [ready, setReady] = useState(false);
useEffect(() => setReady(true), []);
return ready && !!calm;
}