diff --git a/apps/landing/CLAUDE.md b/apps/landing/CLAUDE.md index 4b2a9d47..0734a394 100644 --- a/apps/landing/CLAUDE.md +++ b/apps/landing/CLAUDE.md @@ -56,7 +56,7 @@ Under it, "Works with": the apps a Mind can use today, plain like the row above ## Sections under the hero (first pass, 8 Nov) -Order follows "Landing v0.2" in `design/landing.pen`: Meet the Minds, Every payment asks you first, Tricked? Still can't spend it., Watch your Mind think, Two minutes with a Mind (demo), CTA, footer. +Order follows "Landing v0.2" in `design/landing.pen`: Meet the Minds, Every payment asks you first, unless you set a rule, Tricked? Still can't spend it., Watch your Mind think, Two minutes with a Mind (demo), CTA, footer. Meet the Minds (`components/MindCards.tsx`): - Heading slides up word by word behind a mask; the subtitle fades in after it. @@ -64,7 +64,7 @@ Meet the Minds (`components/MindCards.tsx`): - Hover: the card pops up with a small random tilt and the character fades into its second pose (`public/minds/-hover.webp`). Only the Choose button is a link: `${NEXT_PUBLIC_APP_URL}/minds/new?template=` (ids from `GET /v1/templates`). apps/fe reads it (`add6435`): that card starts picked, and a visitor who isn't signed in keeps the pick through sign-in (`sessionStorage` `hellonear.pickTemplate`; checked 11 Nov on app.hellonear.xyz). Its hover is the same swipe as Open app. - Character art: `design/hellonear-assets/minds/` (gitignored originals), `public/minds/` (web copies, same canvas for both poses). -Every payment asks you first (`components/ApprovalsScroll.tsx`, GSAP 3.15.1 + ScrollTrigger): no pin. When the section comes into view the title slides up word by word behind a mask, the subtitle and points slide up one by one, and a big frame (no gap on the right, rounded on the left) opens from the right edge with the scroll (scrubbed, section top 85% to 15%), so the coming move into "Tricked" can continue from it; the copy reverses when scrolling back above. The frame (`ApprovalScene` in `Sections.tsx`) shows `public/scenes/approval-scene.webp` (a high-angle lawn with the Mind lying on it, glancing left; generated, then upscaled 4x with Real-ESRGAN; 4096 px master in `design/hellonear-assets/sections/`). Penny's bubble and the approval card float on their own beside the Mind, light frosted glass (`.glass-float`, blur 3px, a warm sun glare in the top-left corner and a bright top-left edge) with Nabil's shadow (x 18, y 45, blur 10, 45% black), placed in image coordinates and laid on the lawn (rotateX 22deg, rotateZ 12deg). A fine film grain (`.grain`) sits over the frame. The photo and the glass are still (no motion inside the frame besides the scroll). How it moves without jank: the photo and everything on it are one fixed-size stage (1680 x 722, `.ap-stage`) laid out once and only scaled and moved with `transform`; the frame is a window over it (`clip-path` on `.ap-visual`, which covers the pinned screen). Both are driven by two numbers in `ApprovalsScroll.tsx` (`open`, scrubbed before the pin; `track`, pinned), so no layout runs while scrolling and every element keeps its place, like a printed photo. Both phases are linear with the same scrub (0.8), so the hand-off from scrolling to the pin doesn't jolt. Then, on desktop, the section pins for 1600 px: the copy slides left with the photo by the same distance (no fade), the window grows to fill the screen and the stage scales up and tracks left, so the camera moves past the Mind onto the open lawn where "Tricked? Still can't spend it." and its two glass cards, flat and the same size (layer 1: the tricky email, flagged and declined; layer 2: blocked before signing) already lie, in the photo's right part (`.ap-tricked`, faded in as the camera starts to move so it does not peek at rest), and slide in with it. After a short hold on "Tricked?", the pin continues (3150 px in all) into the clouds: blurred cumulus clouds (the hero's, with a static CSS blur) and a light fog rise from the bottom and cover the lawn; under that cover it turns to night (`.ap-sky`, `NIGHT_BG`) with the Mind Graph's title already in place, centred and large (72 px); then the white clouds fade and the title is there on the night. The film grain fades out with the photo, so the night is the exact section colour. The Mind Graph section below is the same night with the graph at its top (its own title shows on phones only); on desktop it is pulled up under the centred title (`-mt-[calc(50vh-130px)]`, z-10, its top part see-through via `.graph-section`), so the graph starts right below the title and already rises in as the clouds clear. Every fade starts at zero slope, so no cloud pops in. The separate Safety section is shown on phones only. Reduced motion: no animation. The approval card copies the Approval Card component in `hellonear.pen`. +Every payment asks you first, unless you set a rule (`components/ApprovalsScroll.tsx`; four title lines so no word sits alone; since #167 a Mind can pay listed accounts without asking when the owner sets a rule, so every "asks you first" line says "unless you set a rule" (#266), GSAP 3.15.1 + ScrollTrigger): no pin. When the section comes into view the title slides up word by word behind a mask, the subtitle and points slide up one by one, and a big frame (no gap on the right, rounded on the left) opens from the right edge with the scroll (scrubbed, section top 85% to 15%), so the coming move into "Tricked" can continue from it; the copy reverses when scrolling back above. The frame (`ApprovalScene` in `Sections.tsx`) shows `public/scenes/approval-scene.webp` (a high-angle lawn with the Mind lying on it, glancing left; generated, then upscaled 4x with Real-ESRGAN; 4096 px master in `design/hellonear-assets/sections/`). Penny's bubble and the approval card float on their own beside the Mind, light frosted glass (`.glass-float`, blur 3px, a warm sun glare in the top-left corner and a bright top-left edge) with Nabil's shadow (x 18, y 45, blur 10, 45% black), placed in image coordinates and laid on the lawn (rotateX 22deg, rotateZ 12deg). A fine film grain (`.grain`) sits over the frame. The photo and the glass are still (no motion inside the frame besides the scroll). How it moves without jank: the photo and everything on it are one fixed-size stage (1680 x 722, `.ap-stage`) laid out once and only scaled and moved with `transform`; the frame is a window over it (`clip-path` on `.ap-visual`, which covers the pinned screen). Both are driven by two numbers in `ApprovalsScroll.tsx` (`open`, scrubbed before the pin; `track`, pinned), so no layout runs while scrolling and every element keeps its place, like a printed photo. Both phases are linear with the same scrub (0.8), so the hand-off from scrolling to the pin doesn't jolt. Then, on desktop, the section pins for 1600 px: the copy slides left with the photo by the same distance (no fade), the window grows to fill the screen and the stage scales up and tracks left, so the camera moves past the Mind onto the open lawn where "Tricked? Still can't spend it." and its two glass cards, flat and the same size (layer 1: the tricky email, flagged and declined; layer 2: blocked before signing) already lie, in the photo's right part (`.ap-tricked`, faded in as the camera starts to move so it does not peek at rest), and slide in with it. After a short hold on "Tricked?", the pin continues (3150 px in all) into the clouds: blurred cumulus clouds (the hero's, with a static CSS blur) and a light fog rise from the bottom and cover the lawn; under that cover it turns to night (`.ap-sky`, `NIGHT_BG`) with the Mind Graph's title already in place, centred and large (72 px); then the white clouds fade and the title is there on the night. The film grain fades out with the photo, so the night is the exact section colour. The Mind Graph section below is the same night with the graph at its top (its own title shows on phones only); on desktop it is pulled up under the centred title (`-mt-[calc(50vh-130px)]`, z-10, its top part see-through via `.graph-section`), so the graph starts right below the title and already rises in as the clouds clear. Every fade starts at zero slope, so no cloud pops in. The separate Safety section is shown on phones only. Reduced motion: no animation. The approval card copies the Approval Card component in `hellonear.pen`. Watch your Mind think (`components/MindGraph.tsx`, `SeeInside` in `Sections.tsx`): a full-width night section (`NIGHT_BG` in `components/night.ts`; no stars), continuing the night the approvals scroll ends in. A world of Minds drawn like Obsidian's graph view: Penny's graph in the middle (the nodes of Ancung's app live view, PR #154) and 46 other Minds packed around it (64 before 11 Nov; Nabil asked for a little less crowd, so each also has about 40% fewer small bubbles) (gravity pulls every Mind to the middle, so the graphs sit close together in one disc), each a hub with a few skills and many small bubbles (seeded, so the page is the same every time; a few are big dandelions). Drawn like Ancung's app live view as of 11 Nov (apps/fe `graph/components/MindGraph.tsx`): every Mind is its profile picture in a circle with a light ring (the three character images, in turn); the other nodes take the app's colours by kind (`--node-*`, dark theme): skills lime, tools blue, wallets amber, memories teal, and apps as dark bubbles with their own logos (Gmail, Calendar, Meet, Sheets, Notion and the rest, from `components/AppLogos.tsx`, turned into images for the canvas); lines are quiet grey. Penny's graph has its skills, tools, apps (Calendar, Meet, Gmail, Sheets, Notion), wallet and memory; the other Minds' small bubbles are memories and tool calls on the Mind, and tools, now and then an app or a wallet, on its skills. Penny's run lights its path blue (amber while it waits on the owner), with moving dots and a pulsing ring. Under the cursor, as in the app: a magnet leans bubbles within 120 px toward it (drawn only, the layout never sees it) and a lime torch lights the lines within 90 px. The bubble under the cursor or picked shows its links in white; nothing else dims (as in the app; Nabil, 11 Nov). Penny's labels are always shown, so each of Penny's bubbles with its label is kept apart as a box (as in the app's `sim.ts`). Zoom goes from 40% (the whole world fits; the app stops at 35%) to 300%. Labels fade in with zoom (Minds first, then skills; Penny's early). Physics is one world for every node, written here (Ancung's force layout is all-pairs and too slow for ~3,000 nodes): springs along the links, a soft push between neighbours (stronger between different Minds) and collisions, found on a grid; every Mind is pulled gently to the middle. Dragging a bubble warms it up, so its graph follows and other Minds' bubbles get pushed aside, like Obsidian. A click on a bubble opens a small card beside it (dark glass, follows the bubble): what it is (Mind, skill, tool or memory, and whose) and one line on what it does (`ABOUT`); a click on the background, the same bubble, × or Esc closes it. Drag the background to pan; pinch on a trackpad or Ctrl/⌘ + scroll to zoom (plain scroll still scrolls the page; touch scrolls the page), or the − / + / Reset buttons. Under the graph the night goes on a little (96 to 128 px), and the next section overlaps it: the demo sits on a light sheet with big rounded top corners (40 px, 72 px on desktop), pulled up 64 / 96 px over the night (`Demo.tsx`). Penny plays a scripted run of paying the internet bill while in view, in a loop. Off-screen nodes are not drawn; quiet lines and bubbles are drawn in one path each. Reduced motion: still. diff --git a/apps/landing/app/layout.tsx b/apps/landing/app/layout.tsx index 67444f66..4fb01247 100644 --- a/apps/landing/app/layout.tsx +++ b/apps/landing/app/layout.tsx @@ -8,7 +8,7 @@ const geist = Geist({ subsets: ["latin"], variable: "--font-geist" }); export const metadata: Metadata = { title: "HelloNear: a Mind that can't spend more than you allow", description: - "An AI helper with its own NEAR wallet. Every payment asks you first, and the limits are stored where your Mind can't change them.", + "An AI helper with its own NEAR wallet. Every payment asks you first, unless you set a rule, and the limits are stored where your Mind can't change them.", }; export default function RootLayout({ children }: { children: React.ReactNode }) { diff --git a/apps/landing/components/ApprovalsScroll.tsx b/apps/landing/components/ApprovalsScroll.tsx index 3349afbd..4ccb1ce8 100644 --- a/apps/landing/components/ApprovalsScroll.tsx +++ b/apps/landing/components/ApprovalsScroll.tsx @@ -9,12 +9,12 @@ import { NIGHT_BG } from "./night"; gsap.registerPlugin(ScrollTrigger); -// "Every payment asks you first": when the section comes into view, the title slides up word by word +// "Every payment asks you first, unless you set a rule.": when the section comes into view, the title slides up word by word // behind a mask (like the Minds heading), then the subtitle and points slide up one by one. The big scene frame // opens from the right edge with the scroll (scrubbed). The copy reverses when scrolling back above. // Reduced motion: no animation. -const LINES = ["Every payment", "asks you first"]; +const LINES = ["Every payment", "asks you first,", "unless you", "set a rule."]; function Words({ text }: { text: string }) { return ( @@ -187,7 +187,7 @@ export function ApprovalsScroll() { ))}

- Penny finds the bill and gets it ready. Nothing leaves the wallet until you tap Approve. + Penny finds the bill and gets it ready. Unless you set a rule, nothing leaves the wallet until you tap Approve.