互动吉祥物世界落地页把产品网站变成一座可以四处走动的小岛。首屏是一幅完全用 Canvas 2D 绘制的故事书场景:绿草、蓝海、浅色沙滩和珊瑚色屋顶,标题、卖点和主按钮漂浮在水面上方。一个围着金盏花色围巾的紫色圆形吉祥物会走到你点击或轻触的任何地方,每一步都有挤压与拉伸,还会眨眼、发呆小动作,脚边扬起尘土。方向键也能操作。五栋建筑代替了常见的版块:工坊对应功能,市集摊位对应定价,灯塔对应更新日志,图书馆对应文档,邮局对应邮件订阅。把吉祥物走到门口,该版块就会以可阅读的面板形式在世界之上打开。小岛会自己继续生活:渡轮停靠码头,海鸥飞过,晾衣绳上挂着衣物,烟囱冒烟,海浪拍岸,还有缓慢的昼夜循环,让海水变成靛蓝,窗户亮起灯光。它适合独立应用、小游戏、兴趣工具和个人产品,既想要令人难忘的首次访问,又不想放弃一个能正常工作的落地页。一个紧凑菜单可以直接跳到任何版块,方便不想走动的访客;还有一个经典页面,以普通滚动网站的形式呈现相同内容,服务键盘用户、屏幕阅读器和搜索引擎。完全没有图片文件;字体和图标自托管,整个项目构建为静态文件。要适配它,先改品牌、产品线、目标受众、吉祥物名称和标题,然后在单一内容文件里重写功能、套餐、更新日志条目和指南。小岛、吉祥物和动效保持不变,所以无论你发布什么,页面都保留自己的性格。
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Interactive Mascot World Landing Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
Build a product landing page for [BRAND], which is [PRODUCT], as a tiny living island drawn and animated entirely in code with Canvas 2D (no image files). The first screen is the whole island in storybook colors with the headline floating over the sea. An original round mascot called [MASCOT_NAME] walks to wherever the visitor clicks or taps, and the five buildings on the island are the page sections: a workshop (Features), a market stall (Pricing), a lighthouse (Changelog), a library (Docs) and a post office (newsletter sign-up). Walking through a door opens that section as a real DOM panel. A second page, classic.html, shows the same content as a normal scrolling page. All copy below is written for the default variable values; if the values are changed, rewrite every headline, feature, plan, changelog entry, guide and label to fit the new product, and keep all of it in one content file.
- Audience: [AUDIENCE], arriving from a social post or a launch thread on a phone or a laptop. They decide in a few seconds whether the product has taste, so the page must look complete before they touch anything and reward them the moment they do. Some will never walk anywhere: they need the menu and the classic page to work just as well.
- Goal: Make visitors remember [BRAND], explore at least one building, and then either press [PRIMARY_CTA] (which leads to the plans) or leave an email at the post office. The playful world must never get in the way of reading features, prices or docs.
- Tone: Warm, brief and a little dry. Sounds like a small team that ships: concrete numbers, short sentences, light island wordplay in headings only, never baby talk and never hype.
## Stack
- Framework: Vite 5 + vanilla TypeScript
- Styling: Vanilla CSS
- Libraries: vite 5 (MIT), typescript 5 (Apache-2.0), lucide (vanilla package) (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/nunito (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with the Vite vanilla-ts template. package.json scripts: dev = vite, build = tsc && vite build, preview = vite preview. No framework, no game engine, no physics or tween library: the world is plain Canvas 2D calls and the panels are plain DOM and CSS.
- vite.config.ts: base './', build.outDir 'dist', build.sourcemap false, and build.rollupOptions.input with two entries, index.html and classic.html, both at the project root.
- File layout: src/content.ts (every string, number, plan, changelog entry and guide, typed; also the five building labels), src/main.ts (boots index.html), src/classic.ts (boots classic.html), src/sections.ts (five functions that turn content.ts into DOM for Features, Pricing, Changelog, Docs and Newsletter; used by both the panels and the classic page so the two can never drift apart), src/panels.ts (dialog shell, focus trap, hash routes), src/world/loop.ts, camera.ts, map.ts, pathfind.ts, mascot.ts, buildings.ts, ambient.ts, daynight.ts, input.ts, src/styles.css (tokens, layout, panel styles, keyframes, reduced-motion rules).
- Fonts: in both entry files import '@fontsource-variable/fraunces/full.css' (the full file carries the opsz, SOFT and WONK axes) and '@fontsource-variable/nunito'. Font families in CSS are 'Fraunces Variable' and 'Nunito Variable'. Headings use font-variation-settings 'SOFT' 100, 'WONK' 1. font-display stays swap.
- Icons: import only the icons listed under Assets from 'lucide' and call createIcons({ icons: {...} }) after each DOM render; elements use data-lucide attributes.
- World units: the island is laid out in a fixed 1600 x 1000 world. All coordinates in this prompt are world units; multiply by the camera scale s to get CSS pixels. The sea is drawn across the whole canvas, so the world rectangle has no visible edge.
- Game loop: one requestAnimationFrame loop. Updates run at a fixed step of 1/60 s through an accumulator (at most 5 steps per frame, extra time dropped); drawing interpolates positions between the last two steps. Pause the loop on visibilitychange when the tab is hidden and reset the accumulator when it returns.
- First frame: draw one complete frame (sea, island, paths, all five buildings, trees, jetty, ferry at the jetty, mascot at its spawn point) synchronously during startup, before fonts have finished loading and before any animation timer starts. Set html and body background to #3DA5D9 in a style tag in the HTML head so the page is sea-colored even before the script runs. There is no loading screen, splash, progress bar or start button anywhere.
- Canvas resolution: backing store = CSS size x r, where r starts at min(devicePixelRatio, 2). Keep a rolling average of the last 90 frame times; if it stays above 20 ms, lower r by 0.25 (never below 1) and re-create the cached layers; never raise it again in the same visit. Resize on window resize and orientationchange with a 100 ms debounce.
- Cached layers: everything that does not move (sea base color excluded; island sand and grass, paths, plaza, building bodies, tree trunks, jetty, rocks) is rendered once into two offscreen canvases, one in day colors and one in night colors. Each frame draws the day layer, then the night layer with globalAlpha equal to the night factor. Moving things (water lines, foam, ferry, gulls, laundry, smoke, tree crowns, mascot, dust, markers, light beams, lit windows) are drawn live on top. Rebuild the caches on resize, on resolution change, and once when document.fonts.ready resolves so the sign labels switch to the display font.
- Randomness: use one seeded generator (mulberry32, seed 7) for every scattered position (flowers, shimmer strokes, fireflies) so the island looks the same on every load. Timers for blinks, fidgets and gusts may use Math.random.
- Favicon and logo mark: at startup draw the mascot's head (the same drawMascot function, cropped to body, face and tuft) into a 64 x 64 canvas and set it as the favicon through a data URL; the header logo mark is a 28 px canvas drawn the same way. The page title is '[BRAND] - [HEADLINE]' on index.html and '[BRAND] - Classic page' on classic.html.
## Variables
- [BRAND] — Product name (default: "Skerry"). Shown in the header wordmark, page titles, panel copy and footer. One short word works best.
- [PRODUCT] — What the product is, in one clause (default: "a notes app that keeps every thought as a plain text file you can link, search and sync"). Completes the sentence '[BRAND] is ...' in the hero pitch. Features, plans, changelog and guides are rewritten to match it.
- [AUDIENCE] — Who it is for (default: "writers, students and tinkerers who think in scraps"). Sets the voice of the copy, the customer quote and the plan descriptions.
- [MASCOT_NAME] — Mascot's name (default: "Nib"). Used in the hint chip, the pitch and a few friendly lines. The mascot's look stays exactly as specified whatever the name.
- [HEADLINE] — Hero headline (default: "A small island for every loose thought."). At most 8 words; it sits over the sea in three lines on desktop.
- [PRIMARY_CTA] — Main button label (default: "Start writing free"). The hero and header button. It walks the mascot to the market stall and opens Pricing.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/interactive-mascot-world-landing-page in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
## Design
### Colors
- Grass `#7BD389` — The island's grass, hard-coded exactly. Fills most of the land in the hero. Deeper shade #4FB36B for tree crowns, grass tufts and the shaded rim of the plateau.
- Sea `#3DA5D9` — The whole page background and the water around the island, hard-coded exactly. Deeper shade #2C8BC4 for wave strokes and the ferry's wake shadow; foam and shimmer strokes are #FFFFFF at 70% alpha.
- Sand `#FFE5A8` — Beach ring, the west spit, the paths and the plaza, hard-coded exactly. Pebble dots and plank shading use #F2CE86.
- Coral `#FF6F59` — Every roof, the lighthouse bands, the stall awning stripes, the beach umbrella, the mascot's cheeks, the target marker and the primary button background (with Ink text on it), hard-coded exactly.
- Ink navy `#1B2559` — All text, all outlines in the world (2.5 world units, round joins, 90% alpha), icons, scrim behind panels at 40% alpha. Hero text uses Ink by day.
- Cream `#FFF6E3` — Panel and header surfaces, building walls, the mascot's face patch, smoke puffs, hero text at night. Slightly darker cream #F6E8C9 for dividers and input borders.
- Iris violet `#6C4BD8` — The mascot's body and nothing else in the world, so it is always the easiest thing to find. Lighter violet #8E73F0 for its highlight and tuft tips. In the DOM it is used for links and focused plan cards.
- Marigold `#FFC233` — The mascot's scarf and feet, doors, the workshop cog, window light, doorstep glow on hover, the 3 px focus ring on every focusable element, and the 'Most picked' tag.
- Night set `#2B2F77` — At full night the sea becomes indigo #2B2F77, grass #3E8C78, sand #BFAE8C, roofs #C4506B, cream walls #B9B6D6, and windows glow #FFD76A. These are only reached by cross-fading from the exact day colors; at full day nothing tints the four storybook colors.
### Typography
- Display: hero headline, panel titles, plan names, prices, building sign labels on the canvas. Always with SOFT 100 and WONK 1 so the curves stay round and a little eccentric. Headline weight 800, panel titles 700, prices 700 with tabular numbers.: Fraunces Variable (OFL), weights 600/700/800
- Text and interface: pitch, body copy, buttons, menu, labels, inputs. Body 17 px / 1.55 at weight 500, buttons and labels 700, eyebrows 800 uppercase at 12 px with 0.08em tracking. The hero pitch is 20 px at weight 700.: Nunito Variable (OFL), weights 500/700/800
### Layout & motion
- Spacing: 8 px grid. index.html is a single fixed screen (100dvh, no page scroll): the canvas fills it and the DOM floats above. Floating header: 56 px tall cream pill, 16 px from the top and sides, max width 1180 px, centered. Panels: 32 px padding on desktop, 20 px on phones, 24 px between blocks, 12 px between list rows. classic.html: 1080 px content column, 24 px gutters, 96 px between sections on desktop and 64 px on phones. Minimum touch target 44 x 44 px.
- Radius: Rounded everywhere. Panels 28 px, cards and plan tiles 20 px, inputs 14 px, buttons and chips fully round (999 px). Buttons have a 2 px Ink outline and a hard 0 4 px 0 Ink shadow that collapses to 0 1 px on press, like a pressed toy button. In the canvas, building corners are rounded by 8 world units and every outline uses round joins and caps.
- Motion: Three easings are used everywhere and named in code: OUT = cubic-bezier(0.22, 1, 0.36, 1) for things arriving, BACK = cubic-bezier(0.34, 1.56, 0.64, 1) for small pops, SINE = ease-in-out sine for anything that loops. Nothing moves linearly except the ferry at cruising speed and the gulls along their loops.
- Motion: Every motion tells the visitor something: steps show where the mascot is going, squash shows weight, the marker shows the destination, a glowing doorstep shows what is clickable, and ambient loops show the world is alive. Do not add spinning, floating or pulsing to anything not listed in this prompt.
- Motion: Mascot walk: 160 world units per second. One stride lasts 0.40 s and has two footfalls 0.20 s apart. Starting: a 90 ms anticipation squash (scale 1.10 wide, 0.90 tall), then speed eases in over 0.18 s. Each step: the body rises 5 units along |sin| and stretches to 0.96 wide by 1.05 tall at the top, then squashes to 1.07 wide by 0.93 tall on the footfall; scale always pivots at the feet and keeps volume. The body leans 4 degrees into the direction of travel, the lifted foot rises 7 units and reaches 9 units forward, arms swing 26 degrees each way opposite the feet. Stopping: speed eases out over the last 36 units, then a settle of 1.10/0.90 to 0.97/1.04 to 1/1 over 320 ms.
- Motion: Follow-through: the scarf tails and the three head tufts hang from damped springs (stiffness 90, damping 9). They trail behind while walking, flap at about 4 Hz, and swing past center and back when the mascot stops. Turning left or right slides the face patch across the body over 120 ms with OUT instead of flipping instantly.
- Motion: Footstep dust: on every footfall, two small puffs appear at the foot. Each is a circle that grows from radius 3 to 7 units, drifts 12 units backward and 6 up, and fades from 80% to 0 over 420 ms with OUT. Puffs are Sand colored on grass and #F2CE86 on sand. Never more than 24 alive.
- Motion: Blink: eyes close in 70 ms, stay shut 50 ms, open in 100 ms. A blink happens every 2.6 to 5.4 s at random; one in five is a double blink with 140 ms between. Blinking never stops, including while walking and behind an open panel.
- Motion: Idle: breathing loops every 2.8 s with SINE (1.03 tall, 0.985 wide at the top of the breath). After 4 s without input, one fidget plays every 4 to 7 s, chosen at random and never the same twice in a row: look around (eyes slide 0.04u left, hold 500 ms, right, hold, back; 1.6 s), small hop (crouch 90 ms, jump 14 units, land with the settle; 450 ms), wave (the arm nearer the viewer lifts to 110 degrees and waves three times; 1.2 s). After 30 s idle it dozes: eyes become two short downward arcs, breathing slows to 4 s, and a small Ink 'z' floats up 24 units and fades every 1.8 s. Any input wakes it with a 200 ms BACK pop.
- Motion: On load, after the first frame: at 0.8 s the mascot plays the wave once, at 1.2 s the hint chip rises 12 px and fades in over 300 ms with OUT. The hero copy and header never fade in; they are present in the first frame.
- Motion: Target marker: a Coral ring (radius 14 units, 3 unit stroke) with a small dot in the center appears where the mascot is heading. It pops from 0.4 to 1 scale in 220 ms with BACK, then breathes between 1 and 1.08 every 900 ms with SINE, and fades out in 180 ms on arrival.
- Motion: Buildings: hovering a building or focusing its menu item lifts it 4 units with OUT in 160 ms, lights a Marigold ellipse ring on its doorstep and bounces its sign 6 units with BACK in 300 ms. Entering a door: the mascot hops once (250 ms), then shrinks to 0.6 and rises 14 units into the doorway while fading out over 260 ms. Leaving: it pops out on the doorstep from 0.6 to 1 with BACK in 300 ms.
- Motion: Panels: the scrim fades in over 200 ms. On desktop the panel rises 16 px and scales from 0.96 to 1 over 280 ms with OUT; on phones it is a bottom sheet that slides up from below over 320 ms with OUT. Rows inside rise 12 px and fade in over 240 ms, staggered 40 ms, at most 8 rows staggered. Closing takes 180 ms with ease-in.
- Motion: Ambient life runs on independent timers (details in the Ambient life section): shore foam every 3.6 s, sea shimmer on 5 to 8 s loops, ferry about every 2 minutes, gulls on 26, 34 and 41 s loops, laundry swaying every 1.8 s with gusts every 9 to 14 s, chimney puffs every 0.9 s, tree crowns swaying every 3 to 4 s, and a day-night cycle of 160 s.
- Motion: Reduced motion (prefers-reduced-motion: reduce): ambient life is drawn once in a pleasant fixed pose and not animated (ferry moored at the jetty, three smoke puffs, gulls in place, laundry hanging), the day-night cycle stays at day unless the visitor presses the sun and moon button (then it switches with a 200 ms fade), there is no dust, squash, lean or camera easing, and the mascot moves along its path in short steps of 40 units every 120 ms with its feet alternating. Panels and the hint chip only fade (120 ms). Blinking stays.
- Imagery: No image files anywhere. The world is a flat storybook illustration made of rounded shapes with soft Ink outlines, drawn with Canvas 2D: ground seen from above at a slight tilt, buildings and trees drawn front-on standing on it, objects sorted by their base y so the mascot can pass in front of and behind things. Fills are flat, with at most one lighter highlight shape and one darker shade shape per object; no gradients except light glows at night, no textures, no pixel art, no drop shadows other than a soft Ink ellipse at 16% alpha under each standing object. The DOM borrows the same language: cream surfaces, thick Ink outlines, hard toy-like button shadows, a scalloped Coral awning across the top of each panel. Icons are Lucide line icons at 2 px stroke in Ink.
## Pages & Sections
### The island (`index.html`)
1. **Floating header and menu** — Left: the logo mark (the mascot's head on a 28 px canvas) and the wordmark '[BRAND]' in Fraunces 700 at 22 px. Center, the always-visible menu: five buttons 'Features', 'Pricing', 'Changelog', 'Docs', 'Newsletter'. Right: a text link 'Classic page' (goes to ./classic.html), a round sun and moon button (aria-label 'Switch between day and night'), and a small Coral button '[PRIMARY_CTA]'. On phones the header keeps only the logo, wordmark, 'Classic page' link and the sun and moon button; the five menu buttons move to a bottom dock, each with a Lucide icon above a 12 px label: Hammer Features, Store Pricing, History Changelog, BookOpen Docs, Mail Newsletter. Desktop only, bottom right corner: a tiny cream chip '(c) [BRAND] Labs' followed by the optional credit link.
Layout: A cream pill 56 px tall floating 16 px from the top, max width 1180 px, with a 2 px Ink outline and a hard 0 4 px 0 Ink shadow. Menu buttons are text-only pills, 40 px tall, 14 px side padding. The phone dock is a cream bar fixed to the bottom, 72 px tall plus the safe-area inset, five equal columns. The header and dock are real buttons and links in DOM order before the canvas, so Tab reaches them first. Activating a menu or dock item opens that section's panel at once, without waiting for a walk; behind the panel the mascot is moved to that building's doorstep with a 260 ms BACK pop.
Motion: Menu buttons: on hover or focus the background turns Sand and the matching building in the world lifts and lights its doorstep, as if the visitor were hovering the building itself. The sun and moon button swaps its icon with a 180 degree turn over 300 ms with OUT and moves the day-night cycle to the middle of the other phase over 1.5 s.
2. **Hero copy over the sea** — Eyebrow chip (cream pill): 'Notes app for laptop and phone - version 2.6'. Headline (h1): '[HEADLINE]', default 'A small island for every loose thought.' Pitch: '[BRAND] is [PRODUCT]. Walk [MASCOT_NAME] around the island to see what is inside.' Primary button (Coral, Ink text): '[PRIMARY_CTA]'; it sends the mascot walking to the market stall and opens Pricing on arrival. Secondary button (cream): 'See the workshop'; it sends the mascot to the workshop and opens Features. Small note under the buttons: 'Free forever on one device. No account needed.' Hint chip near the bottom center of the canvas (above the dock on phones): on devices with a mouse 'Click anywhere and [MASCOT_NAME] walks there. Arrow keys work too.'; on touch devices 'Tap anywhere and [MASCOT_NAME] walks there.'
Layout: This is real DOM text floating directly on the sea, with no card behind it. Wide layout (viewport at least 900 px wide and at least 1.2 times wider than tall): the block's top-left corner is pinned to world point (72, 150) and it is 520 world units wide, so it always sits in the open water north-west of the island and never covers land; headline size is 62 x s px clamped between 34 and 76 px (56 px at 1440 x 900, three lines), line height 1.02, weight 800. Narrow layout (everything else, including 390 x 844): the block sits under the header with 20 px side margins; the eyebrow, secondary button and small note are hidden, the headline is 34 px, the pitch shows only its first sentence at 19 px, and the primary button is full width, 52 px tall; the island fills the band between this block and the dock. Text is Ink by day. A CSS variable set from the night factor switches headline, pitch and note to Cream when the night factor passes 0.25 (600 ms color transition) so the copy keeps at least 3.5:1 contrast against the sea at every moment and over 5:1 at full day and full night. Buttons and chips keep their own cream or coral backgrounds at all times.
Motion: No entrance animation on the copy: it must be there in the very first frame. Buttons press down 3 px as their hard shadow collapses (80 ms). The hint chip appears at 1.2 s and fades out over 400 ms the first time the mascot moves by any means; it does not come back during the visit.
3. **Island map and camera** — A full-viewport canvas with aria-label 'Island map of [BRAND]. Use the menu to open a section, or open the classic page for a normal layout.' and a noscript line linking to ./classic.html. The island, in world units (1600 x 1000). Sand shape, a smooth closed curve through these points in order: (700,250) (860,170) (1080,150) (1300,190) (1470,300) (1540,470) (1500,660) (1380,800) (1160,860) (900,850) (640,880) (430,870) (330,790) (400,700) (560,670) (650,560) (640,380). Grass shape on top of it, a smooth closed curve through: (720,270) (870,200) (1080,182) (1290,220) (1445,320) (1505,470) (1468,645) (1360,770) (1150,825) (900,815) (700,820) (640,700) (690,540) (675,390). This leaves a ring of beach all round and a sandy spit to the south-west. Draw smooth curves with quadratic segments through the midpoints of neighboring points. Plaza: a Sand circle of radius 66 at (1040,650) with a five-armed wooden signpost at (1040,632). Paths, 34 units wide in Sand with round caps and a few #F2CE86 pebble dots, from the plaza to each doorstep: to the post office via (900,672) to (770,654); to the workshop via (930,520) to (860,404); to the market stall via (1070,540) to (1090,464); to the lighthouse via (1180,470) and (1300,420) to (1400,394); to the library via (1180,672) to (1300,654); and from the post office doorstep to the jetty via (660,770) and (530,840) to (470,864). Jetty: wooden planks 26 wide from (470,860) to (470,945). Scenery: seven lollipop trees (round #4FB36B crown of radius 30 with a lighter Grass highlight, short brown trunk) based at (720,455) (980,262) (1240,262) (1450,520) (1330,725) (1150,772) (760,768); a Coral and Cream striped beach umbrella with a Sea-blue towel at (455,770); a clothesline between posts at (860,770) and (990,762); three grey-blue rocks in the shallows at (300,690), (1565,720) and (1200,925); 14 seeded clusters of tiny Cream and Coral flowers on the grass, away from paths. The mascot starts at (1040,690), just below the signpost, facing the viewer.
Layout: Wide layout: s = min(viewport width / 1600, viewport height / 1000) and the world is centered, so the entire island, all five buildings, the jetty and the mascot are visible at once and the camera never moves (at 1440 x 900, s = 0.9). Narrow layout: s = (viewport height - bottom edge of the hero copy - 100) / 740, clamped between 0.5 and 0.85 (about 0.6 at 390 x 844), with world y 140 placed just under the hero copy and world y 880 just above the dock, so the island's full height is always visible; the camera pans only sideways, following the mascot with x eased by 1 - exp(-6 x dt) and clamped so the view stays between world x 280 and 1600. On a 390 px screen the first frame shows the mascot at the plaza with the workshop, market stall and library around it. The canvas has touch-action none and the page does not scroll. Walkable ground is everything inside the sand shape plus the jetty planks, minus building footprints, tree trunks (radius 14), clothesline posts and the signpost.
Motion: Movement by pointer: a click, or a tap (pointer down and up within 10 px and 400 ms), sets a destination. Build a 16-unit grid over the world once, mark walkable cells, and find the route with A* (8 directions, no cutting corners), then straighten it by removing waypoints that have a clear line of sight. A click on water or on an obstacle snaps to the nearest walkable cell. Movement by keyboard: arrow keys or WASD move the mascot directly at walking speed while held, sliding along shores and walls; this cancels any pointer destination. If a walk requested by a hero button would take longer than 3.5 s, speed up so it takes 3.5 s.
4. **The mascot, [MASCOT_NAME]** — An original character defined only by the numbers here; do not base it on any existing mascot or game character. Let u = 64 world units (the body's width). Origin is the ground between the feet; negative y is up. Body: a gumdrop, flat underneath and domed on top, 1.0u wide and 0.90u tall, so slightly wider than tall; its base sits at y = -0.08u, bottom corners are rounded with radius 0.30u, it is widest at y = -0.40u and the top is a half-ellipse 0.58u high reaching y = -0.98u. Fill Iris violet #6C4BD8 with one lighter #8E73F0 highlight ellipse (0.22u x 0.11u, tilted 30 degrees) on the upper left and a 2.5 unit Ink outline. Face patch: a Cream ellipse 0.66u wide and 0.46u tall centered at (0.07u x f, -0.56u), where f runs from -1 (facing left) to 1 (facing right); all face parts shift with it. Eyes: two solid Ink circles of radius 0.05u, 0.28u apart, at y = -0.60u, each with one white glint of radius 0.017u up and to the left. Cheeks: two Coral circles of radius 0.045u at 80% alpha, 0.50u apart, at y = -0.50u. Mouth: a short shallow Ink smile, 0.09u wide, 2 unit stroke, at y = -0.47u; it becomes a small open circle of radius 0.035u during hops and when entering a door. No nose, no eyebrows, no ears, no teeth. Scarf: a Marigold #FFC233 band 0.10u tall wrapped around the body at y = -0.22u, with a round knot of radius 0.055u on the side away from the facing direction and two tails 0.26u and 0.19u long, 0.075u wide, each ending in a swallowtail notch. Arms: two violet capsules 0.09u wide and 0.20u long, hinged at (plus or minus 0.47u, -0.36u), resting 18 degrees outward. Feet: two Marigold rounded rectangles 0.22u x 0.12u, 0.38u apart, on the ground, drawn in front of the body's base. Head tuft: three rounded teardrop tufts rooted at (0, -0.96u), 0.20u, 0.27u and 0.17u long and 0.09u wide, leaning -32, +6 and +38 degrees from vertical, body colored with lighter tips. Ground shadow: an Ink ellipse 0.80u x 0.20u at 16% alpha. Whole figure is about 1.25u tall. At night a soft Marigold glow of radius 90 units lies on the ground under it at 25% alpha times the night factor.
Layout: Drawn by one function, drawMascot(ctx, state), used for the world, the header logo mark, the favicon and the classic page. Draw order: shadow, far arm, tuft, body, scarf band (clipped to the body), face patch, cheeks, eyes, mouth, scarf knot and tails, feet, near arm. It is sorted with buildings and trees by base y. The mascot keeps its last left or right facing when moving straight up or down.
Motion: Walk cycle, squash and stretch, follow-through on scarf and tuft, dust, blink, breathing, fidgets and dozing exactly as timed in the Design motion list. The proportions above are the rest pose; squash and stretch scale the whole figure from the feet.
5. **Five buildings as navigation** — Every building has Cream walls, a Coral roof, a Marigold door or opening at its base, a small wooden signpost to the right of the door carrying its label from content.ts in Fraunces 700 (18 units, Ink on a Cream plank), and windows that fill with #FFD76A light at night. Sizes are width x height in world units; the door is at the center of the base. 1) Workshop, label 'Features', door at (860,390), 190 x 150: a wide shed with a three-tooth sawtooth roof, a brick chimney on the left that smokes, a broad open doorway showing a workbench silhouette, and a Marigold cog above the door. 2) Market stall, label 'Pricing', counter at (1090,450), 170 x 120: an open timber stall under a Coral and Cream striped awning with a scalloped edge, three stacks of crates on the counter (one, two and three crates, echoing the three plans) and a string of small flags. 3) Lighthouse, label 'Changelog', door at (1400,380), 80 wide at the base and 250 tall: a tapering tower with four alternating Coral and Cream bands, a railed gallery, a glass lamp room and a Coral cap. 4) Library, label 'Docs', door at (1300,640), 210 x 160: a stone front with four columns, three steps, a Coral triangular pediment with a round window, and tall windows showing book spines as thin vertical stripes in the palette colors. 5) Post office, label 'Newsletter', door at (770,640), 160 x 130: a cottage with a Coral hipped roof and small chimney, a round-topped Marigold door with a letter slot, a Sea-blue post box on a pole beside it with a small Coral signal flag, and a pennant on the roof.
Layout: Footprints that block walking (x range, y range): workshop 770-950, 350-390; market stall 1010-1170, 414-450; lighthouse 1364-1436, 350-380; library 1200-1400, 596-640; post office 694-846, 600-640. Doorsteps (the trigger points, 14 units in front of each door): workshop (860,404), market stall (1090,464), lighthouse (1400,394), library (1300,654), post office (770,654). A click or tap anywhere on a building's drawn shape or its signpost sends the mascot to that doorstep; on arrival it enters and the panel opens. Walking onto a doorstep with the arrow keys and pressing Enter or Space, or simply pushing into the door, does the same. After a panel closes, that door will not trigger again until the mascot has moved more than 60 units away, so nobody gets pulled back in.
Motion: Hover, focus, enter and leave as timed in the Design motion list; the pointer becomes a hand over buildings and signs. The workshop cog turns once every 12 s; the stall awning's scalloped edge ripples by 2 units every 2.4 s; the post office pennant flutters; the lighthouse lamp glints once every 6 s by day.
6. **Ambient life and the day-night cycle** — Waves: two white foam lines follow the sand shape just offshore, sliding between 6 and 18 units out and fading as they go, on a 3.6 s SINE loop, the second half a cycle behind the first. Sea shimmer: 16 seeded short wavy strokes in #2C8BC4 and white across the open water, each bobbing 4 units and fading in and out on its own 5 to 8 s loop; none inside the hero copy's box. Ferry: a small boat with a white hull, a Cream cabin with a Coral roof and a Marigold funnel that puffs. It is moored at the jetty end (470,968) in the first frame. After 6 s it eases away over 1.2 s and sails right along y = 968 at 60 units per second until it is off screen, waits 30 s, returns the same way, moors for 8 s and repeats in the other direction; it bobs 2 units every 2.2 s and trails three fading wake arcs. Gulls: three white gulls, each two curved wing strokes, circle on ellipses 380 x 120 units centered over the island with periods of 26, 34 and 41 s; they flap four times (0.5 s per flap) then glide 1.5 s, and each casts a small Ink shadow at 10% alpha 60 units below it. Laundry: four items on the clothesline (a Coral sock, a Cream sheet, a Marigold shirt, a Sea-blue towel) pinned at the top; their lower edges sway 8 degrees every 1.8 s out of phase, and a gust every 9 to 14 s eases the sway up to 22 degrees for 1.5 s and back. Smoke: the workshop chimney releases a Cream puff every 0.9 s (the post office every 1.6 s); each grows from radius 5 to 14, rises 60 units, drifts 18 units to the right and fades from 70% to 0 over 3.2 s with OUT. Trees: crowns sway 2 units sideways on 3 to 4 s SINE loops, each with its own phase. Day and night: one cycle lasts 160 s: day from 0 to 80 s, dusk 80 to 100 s, night 100 to 140 s, dawn 140 to 160 s; the page always starts at second 0. A night factor n goes from 0 to 1 through dusk and back through dawn with smoothstep easing. As n rises the day layer cross-fades to the night layer (sea to indigo #2B2F77), windows light up, the lighthouse sends two soft Marigold beams sweeping a full turn every 6 s, eight seeded fireflies drift over the grass, and a faint Coral blush (10% alpha at n = 0.5, 0 at both ends) warms the scene during dusk and dawn. By day two soft cloud shadows (Ink at 6% alpha) cross the island every 60 s.
Layout: All ambient objects live in ambient.ts, each with its own timer so their loops drift against one another and the scene never repeats exactly. Lit windows, beams and fireflies are drawn live with alpha n; everything else at night comes from the cached night layer. The ferry is sorted above the water and below the jetty planks.
Motion: As listed. With reduced motion every item here is drawn once in a fixed pose: foam at mid-distance, ferry moored, gulls placed at three points of their loops, laundry hanging straight, three smoke puffs above each chimney, n = 0.
7. **Section panels** — Each building opens one panel. Every panel has: a scalloped Coral awning strip across its top edge; an eyebrow naming the building ('The workshop', 'The market stall', 'The lighthouse', 'The library', 'The post office'); a title in Fraunces 700 at 34 px; a one-line intro; the section content described below; a round close button with the Lucide X icon (aria-label 'Close and return to the island'); and at the bottom a text link 'Read this on the classic page' pointing at the matching anchor in ./classic.html (#features, #pricing, #changelog, #docs, #newsletter).
Layout: Each panel is a div with role dialog and aria-modal true, labelled by its title, rendered by sections.ts from content.ts. Desktop: centered card, width min(760 px, 92vw), max height 80vh with its own scroll, Cream background, 2 px Ink outline, 28 px radius, hard 0 8 px 0 Ink shadow. Phone: a bottom sheet 88% of the viewport height with rounded top corners and a 40 x 5 px grab bar. Behind it a scrim of Ink at 40% covers the canvas; the world keeps animating underneath but ignores input. Focus moves to the title on open, is trapped inside, and returns to the control that opened it on close. Escape, the close button and a click on the scrim all close it. The address bar gets a hash while a panel is open (#/features, #/pricing, #/changelog, #/docs, #/newsletter); opening index.html with one of these hashes shows that panel immediately with the mascot waiting on that doorstep, and the back button closes the panel.
Motion: Open, stagger and close as timed in the Design motion list. When a panel closes, the mascot pops back out on the doorstep facing the viewer.
8. **Workshop panel: Features** — Title 'Built in the workshop'. Intro: 'Six tools, each one sharpened for speed.' Six feature cards, each a Lucide icon, a title and one or two sentences. Zap, 'Capture in one keystroke': 'Press Ctrl or Cmd + Shift + N anywhere. A note opens in 0.2 seconds and files itself in today's inbox.' FileText, 'Plain text, your folder': 'Every note is a .md file in a folder you choose. Open it in any editor, today or in thirty years.' Link2, 'Links that go both ways': 'Type [[ to link two notes. Each one lists what points back at it, so ideas find their neighbors.' Search, 'Search that keeps up': 'Find a phrase across 10,000 notes in 41 milliseconds, typos forgiven.' RefreshCw, 'Sync we cannot read': 'End-to-end encrypted sync on up to 5 devices. Works fully offline and catches up later.' Sunrise, 'The morning tide': 'Each day opens with three old notes washed back up, chosen from what you wrote about this week.' Then a quote block: 'I moved 4,200 notes in an afternoon and then stopped thinking about my notes app. That is the review.' attributed to 'Imogen Achterberg, science writer'. Last, a Coral button 'See the plans' that closes this panel and walks the mascot to the market stall.
Layout: Cards in a two-column grid on desktop, one column on phones; each card is Cream with a 2 px #F6E8C9 border, 20 px radius, 20 px padding, the icon in a 40 px Sand circle. The quote is set in Fraunces 600 italic at 22 px with a 4 px Coral rule on its left.
Motion: Cards use the panel stagger. On hover a card's icon circle turns Marigold over 150 ms.
9. **Market stall panel: Pricing** — Title 'Pick a crate'. Intro: 'Prices in US dollars. Switch or cancel whenever you like.' A two-option switch 'Monthly' and 'Yearly (2 months free)', Monthly selected by default. Three plans. 'Pebble', $0, 'For one device, forever.': Unlimited notes and links; Plain text files in your own folder; Full search and the morning tide; One device, no sync. Button 'Download free'. 'Cove', $5 per month or $48 per year, tagged 'Most picked', 'For your phone, your laptop and the one in the drawer.': Everything in Pebble; Encrypted sync on 5 devices; 90 days of version history; Publish any note as a web page. Button 'Start 14-day trial'. 'Harbor', $9 per member per month or $84 per member per year, 'For small teams who share a notebook.': Everything in Cove; Shared notebooks with per-note permissions; Comments and mentions; Admin console and replies within one business day. Button 'Talk to us'. Because this is a static demo, each plan button only shows a line under itself: 'Demo site: nothing was downloaded or charged.' Below the plans, three questions as an accordion. 'What happens to my notes if I stop paying?' - 'They stay on your devices as plain text files. Sync pauses; nothing is deleted or locked.' 'Is there a student discount?' - 'Yes. Cove is half price with a school email address.' 'Can I pay once instead?' - 'A lifetime Cove license is $120 and covers every 2.x release.'
Layout: Three plan tiles side by side on desktop, stacked on phones with Cove first. Tile: plan name in Fraunces 700 at 24 px, price in Fraunces 700 at 44 px with tabular numbers and a small '/ month' or '/ year' in Nunito, the one-line description, a list with Lucide Check icons, the button. Cove has a 3 px Iris violet outline and the Marigold 'Most picked' tag overlapping its top edge. The questions use details and summary elements with a ChevronDown that turns.
Motion: Switching Monthly and Yearly rolls each price: the old number slides up 10 px and fades while the new one rises in, 220 ms with OUT. The switch thumb slides in 180 ms with OUT. Chevrons rotate 180 degrees in 200 ms.
10. **Lighthouse panel: Changelog** — Title 'Seen from the lighthouse'. Intro: 'What shipped lately, newest first.' Five entries, each with a version, a date label, a tag (New, Improved or Fixed) and two or three bullet points. '2.6 Tidewater', Nov 3, New, 'The morning tide learns your week': It now picks old notes from topics you touched in the last 7 days; Snooze a note for 30 days with one key; Fixed the tide skipping notes with emoji in the title. '2.5', Oct 6, Improved, 'Search is three times faster': 10,000 notes now search in 41 ms, down from 130 ms; Typos are forgiven in words longer than five letters; Results keep your scroll position. '2.4', Sep 8, New, 'Publish a note as a page': One click turns any note into a read-only web page; Unpublish at any time and the link stops working within a minute. '2.3', Aug 11, Fixed, 'Sync conflicts, sorted': Conflicting edits are kept side by side instead of overwritten; Sync retries on a weak connection without draining the battery. '2.2', Jul 14, New, 'Shared notebooks arrive on Harbor': Invite up to 25 members; Set each note to view, comment or edit. Under the list, a text button 'Get these by post' that closes the panel and walks the mascot to the post office.
Layout: A vertical timeline: a 3 px Coral and Cream striped line down the left (echoing the tower's bands) with a round Marigold lamp dot at each entry. Version in Fraunces 700, date label in small uppercase Nunito 800, tag as a pill (New on Grass, Improved on Sea, Fixed on Sand, all with Ink text).
Motion: Entries use the panel stagger; the lamp dot of the newest entry glows softly every 6 s, matching the lighthouse lamp.
11. **Library panel: Docs** — Title 'The library'. Intro: 'Short guides. Most take two minutes.' A filter field labelled 'Find a guide' that narrows the list by title as you type and shows 'No guide by that name. Try sync or import.' when nothing matches. Five guides as an accordion, the first one open. 'Get started in three steps' (2 min): 1. Install [BRAND] and choose a folder for your notes. 2. Press Ctrl or Cmd + N and write a first line; that line becomes the title. 3. Type [[ to link it to another note. 'Keyboard shortcuts' (1 min), a two-column table: Quick capture, Ctrl or Cmd + Shift + N; New note, Ctrl or Cmd + N; Search everything, Ctrl or Cmd + K; Link a note, [[; Toggle a checklist, Ctrl or Cmd + L; Open today's tide, Ctrl or Cmd + T. 'Bring your old notes' (3 min): '[BRAND] reads any folder of .md or .txt files. Choose File, then Import folder, and point at it. Folder structure, tags and relative links are kept; attachments are copied into an assets folder.' 'Sync and backups' (2 min): 'Notes are encrypted on your device with a key only you hold. If you lose the key we cannot recover them, so print the 12-word recovery sheet. [BRAND] also keeps a zipped local backup every night for 30 days.' 'Publish a note' (1 min): 'Open a note, choose Share, then Publish. You get a read-only link. Edits appear within a minute; Unpublish removes the page.' Footer line: 'Stuck? Write to help@' followed by [BRAND] in lowercase and '.example', then '. A person answers within one business day.'
Layout: The filter field sits on top with a Lucide Search icon inside it. Each guide row shows a small book-spine color bar (cycling Coral, Sea, Grass, Marigold, Iris violet), the title, and the reading time on the right. Key names are set in small Cream keycaps with a 2 px Ink outline and a 2 px bottom shadow.
Motion: Guides open and close by animating height over 240 ms with OUT; filtering fades non-matching rows out in 120 ms.
12. **Post office panel: Newsletter** — Title 'The [BRAND] Post'. Intro: 'One short letter on the first Monday of each month: what shipped, one workflow worth stealing, and nothing else. 4,180 readers, zero tracking pixels.' A form with one field labelled 'Email address' (placeholder '[email protected]') and a Coral button 'Send me the Post'. The form never sends anything anywhere: it checks the value in the browser only. Empty: 'Add an email address first.' Not shaped like an address: 'That address looks unfinished. Check for an @ and a dot.' Valid: the form is replaced by a postcard that reads 'Stamped and sorted.' with the line 'This is a demo, so nothing was sent or stored.' and a round Coral postmark carrying the word 'DEMO'. Below, 'Recent letters': 'No. 31 - The one-inbox rule', 'No. 30 - Naming notes so you can find them again', 'No. 29 - What we learned by deleting our folders'.
Layout: Field and button on one row on desktop, stacked on phones; input 52 px tall with a 2 px Ink outline and 14 px radius. Error text sits under the field in Ink on a Sand strip with a Coral left border, announced through aria-live polite. The postcard is a Cream card with a dashed #F6E8C9 inner border, slightly rotated (-2 degrees).
Motion: On an error the field shakes 6 px three times over 300 ms (skipped with reduced motion). On success the postcard drops in with BACK over 300 ms and the postmark stamps down from 1.4 to 1 scale in 160 ms. In the world, visible when the panel is closed: the post box flag swings up over 300 ms with BACK and a small Cream envelope arcs from the post office to the jetty over 1.6 s with SINE, then rides away on the ferry's next departure.
### Classic page (`classic.html`)
1. **Header and hero** — A normal scrolling page built from the same content.ts through the same sections.ts functions, so every word in the island panels appears here too. Sticky header: logo mark and '[BRAND]', anchor links 'Features', 'Pricing', 'Changelog', 'Docs', 'Newsletter', and a Coral button 'Back to the island' linking to ./index.html. Hero: the eyebrow chip, '[HEADLINE]' as the h1, the full pitch '[BRAND] is [PRODUCT].', a Coral button '[PRIMARY_CTA]' that scrolls to #pricing, a cream button 'Explore the island' linking to ./index.html, and the note 'Free forever on one device. No account needed.' Beside the copy sits a postcard of the island: a canvas that uses the same drawing code to show the whole world with the mascot standing at the plaza.
Layout: Page background Cream; the hero is a full-width Sea #3DA5D9 band with Ink text, copy on the left (5 columns) and the postcard on the right (7 columns); on phones the postcard comes first, full width, then the copy. The postcard canvas keeps the world's 16:10 shape, has a 2 px Ink outline, 28 px radius, a hard 0 8 px 0 Ink shadow and is tilted 1.5 degrees. A wavy Sand edge (a CSS mask of repeating scallops) separates the hero band from the page below. The header is a Cream bar with a 2 px Ink bottom border.
Motion: The postcard draws a complete still frame at once, then runs only the ambient life and the mascot's blinking and fidgets, with no walking and no input; it pauses when scrolled out of view and is a single still frame with reduced motion. Clicking it opens ./index.html.
2. **Features, Pricing, Changelog, Docs, Newsletter** — Five sections with ids features, pricing, changelog, docs and newsletter, in that order, each with the same eyebrow, title, intro and content as its island panel: six feature cards and the customer quote; the Monthly and Yearly switch, three plans and three questions; the five changelog entries; the guide filter and five guides; the newsletter form with the same local-only validation and postcard confirmation, plus recent letters. Section titles are h2 elements.
Layout: Each section is a 1080 px column. Features in three columns on desktop, two on tablets, one on phones. Pricing tiles in three columns. Changelog and Docs in a 720 px reading column. Newsletter in a Sand band with the form centered. Between sections, a small drawn divider: a 64 px wide row of three scallops in Coral.
Motion: Sections fade and rise 16 px once as they enter the viewport (IntersectionObserver, 400 ms with OUT, no stagger beyond 60 ms); disabled with reduced motion. All in-panel micro-interactions (price roll, accordion, stamp) are the same as on the island.
3. **Footer** — Left: logo mark, '[BRAND]' and the line 'Made on a very small island.' Middle: links 'Back to the island' (./index.html), 'Features', 'Pricing', 'Changelog', 'Docs', 'Newsletter' (anchors on this page). Right: '(c) [BRAND] Labs, 14 Lantern Row, Port Halloran' and the optional credit link.
Layout: Ink navy band with Cream text, three columns on desktop, stacked on phones, 48 px padding, with a row of white foam scallops along its top edge.
Motion: None.
## Assets
- image: No image files, sprite sheets, SVG illustrations or 3D models. The island, the five buildings, the mascot, the ferry, gulls, laundry, smoke, water, light beams, the header logo mark, the favicon (canvas to data URL at startup) and the classic page postcard are all drawn at runtime with Canvas 2D calls; panel decoration (awning scallops, postmark, keycaps, dividers) is CSS. Nothing is downloaded.
- icon: Lucide icons from the npm package 'lucide' (ISC), imported individually and rendered with createIcons: Hammer, Store, History, BookOpen, Mail (menu and dock), Sun, Moon (day-night button), X, Check, ChevronDown, ArrowRight, Search (interface), Zap, FileText, Link2, RefreshCw, Sunrise (feature cards). List 'lucide, https://lucide.dev, ISC' in ASSETS.md.
- font: Self-hosted through Fontsource npm packages: @fontsource-variable/fraunces (OFL-1.1, import the full.css entry for the SOFT and WONK axes) for display type and @fontsource-variable/nunito (OFL-1.1) for text. Vite copies the woff2 files into dist/. List both in ASSETS.md with package name, source URL, author and license.
## Don'ts
- The first screen must look finished as a still screenshot: never show a black or blank canvas, a loading spinner, a progress bar, a splash screen or a 'click to start' state. The first complete frame, with the whole island, all five buildings and the mascot, must be on screen within 2 seconds of opening the page on a mid-range phone, and the hero copy must already be visible in it.
- Do not change the four storybook colors or let anything tint them at full day: grass is exactly #7BD389, sea #3DA5D9, sand #FFE5A8 and roofs #FF6F59.
- Do not use system or default fonts for visible text: headings are Fraunces Variable with SOFT 100 and WONK 1, text is Nunito Variable, both self-hosted through Fontsource. Never load fonts from a font CDN or any hosted font service, and never use a commercial font.
- Do not add image files, sprite sheets, downloaded game art, SVG scene files or 3D models; every visual in the world is drawn with Canvas 2D calls and every decoration in the DOM with CSS.
- The mascot must not resemble any existing company, app, AI or game mascot or character. Build it only from the measurements in this prompt: a violet gumdrop body, cream face patch, marigold scarf and three-tuft top. Do not turn it into an animal (bird, owl, fox, cat, bear, penguin), a robot, a ghost, a blob with a brand-like face, a speech bubble or a star, and do not give it ears, a beak, a tail, antennae or a logo.
- Do not borrow the look of known farming, island-life or monster-collecting games: no tile sets, no pixel art, no item hotbars, hearts, coins, dialogue boxes or quest markers, and do not rearrange the map to recall any of them.
- Do not use real notes-app names, logos, screenshots, feature names, plan names or slogans. [BRAND], its plans, prices, changelog, customer quote and address are invented; keep them invented when rewriting for other variable values.
- No backend: no server code, API routes, databases, auth, analytics or third-party APIs. The newsletter form and the plan buttons never send, store or download anything; they validate in the browser and show the demo confirmation only.
- No game engine, no physics, pathfinding or tween library, no UI framework and no CSS framework; do not use source code from restricted UI libraries. The stack is Vite, vanilla TypeScript, Canvas 2D and vanilla CSS, with Lucide and Fontsource as the only runtime packages.
- No CDN script or link tags; fonts, icons and scripts are all bundled locally.
- Production build must be minified with no source maps and no src/ files copied into dist/; keep vite base at './' so asset paths are relative, and keep dist/ under 20 MB.
- Internal links always point to a file name (./index.html, ./classic.html, ./classic.html#pricing) or a hash on the same page, never to a bare directory.
- Must work at 1440 x 900 and 390 x 844 with zero console errors, no horizontal scroll and no page scroll on index.html. On phones a tap must walk the mascot, the camera must follow it, every building must be reachable by tapping and by the dock, and the canvas resolution must step down instead of dropping frames.
- Respect prefers-reduced-motion exactly as described in Design: fixed ambient pose, day held, short-step movement, fade-only panels. Pause the loop while the tab is hidden.
- Do not make the world the only way to reach content: the menu or dock must open every section without walking, panels must be focus-trapped and close with Escape, and classic.html must contain every word that appears in the panels.
- Do not animate anything that is not listed in this prompt, and do not use linear easing for interface motion. No autoplaying sound and no audio at all.
- Do not state or imply which AI model or tool built the site, and do not copy wording from any existing landing page or social post.
- Do not add any credit, badge or 'built with' line to the site other than the optional [CREDIT] link in the classic page footer and in the small desktop chip on the island.
- Keep every string and number in src/content.ts and render both pages from it. When the variables change, rewrite all copy, plans, changelog entries and guides for the new product instead of leaving notes-app text behind; the island, buildings, mascot design and motion stay as specified.
---
Inspired by Click-to-walk mascot world drawn entirely in code, rebuilt as a product landing page by @Chetaslua — https://promtime.net/c/en/post/claude-fable-5-2-draws-its-sprites-in-raw-javascript
— Prompt by VibeFather · https://vibefather.ai/t/interactive-mascot-world-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
# 互动吉祥物世界落地页
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
为 [BRAND] 构建一个产品落地页,[BRAND] 就是 [PRODUCT],把它做成一座微小的活岛屿,完全用 Canvas 2D 以代码绘制并制作动画(不使用任何图片文件)。首屏是整座岛屿,采用故事书配色,标题漂浮在海面上。一个名为 [MASCOT_NAME] 的原创圆形吉祥物会走到访客点击或轻触的任何位置,岛上的五座建筑就是页面的各个区块:一间工坊(Features)、一个市集摊位(Pricing)、一座灯塔(Changelog)、一座图书馆(Docs)和一间邮局(newsletter sign-up)。走进一扇门,就会以真实 DOM 面板的形式打开该区块。第二个页面 classic.html 以普通滚动页面的形式展示相同内容。以下所有文案都是按默认变量值撰写的;如果变量值发生变化,就要重写每一个标题、功能、方案、更新日志条目、指南和标签,使其契合新产品,并将全部内容保留在一个内容文件中。
- 受众:[AUDIENCE],他们从社交帖子或发布帖来到页面,使用的可能是手机或笔记本电脑。他们会在几秒内判断这个产品是否有品味,因此页面必须在他们触碰任何东西之前就显得完整,并在他们一动手时就给予回报。有些人永远不会走到任何地方:他们需要菜单和经典页面同样好用。
- 目标:让访客记住 [BRAND],至少探索一座建筑,然后要么按下 [PRIMARY_CTA](它会导向方案页面),要么在邮局留下邮箱。这个充满玩趣的世界绝不能妨碍阅读功能、价格或文档。
- 语气:温暖、简短、带一点冷幽默。听起来像一支真正在交付产品的小团队:具体的数字、简短的句子、只在标题里出现轻度的岛屿双关,绝不用婴儿腔,也绝不吹嘘。
## 技术栈
- 框架:Vite 5 + 原生 TypeScript
- 样式:原生 CSS
- 库:vite 5(MIT)、typescript 5(Apache-2.0)、lucide(vanilla 包)(ISC)、@fontsource-variable/fraunces(OFL-1.1)、@fontsource-variable/nunito(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 搭建:
- 使用 Vite vanilla-ts 模板脚手架。package.json 脚本:dev = vite,build = tsc && vite build,preview = vite preview。不使用框架、不使用游戏引擎、不使用物理或补间库:世界由纯 Canvas 2D 调用绘制,面板由纯 DOM 和 CSS 构成。
- vite.config.ts:base 为 './',build.outDir 为 'dist',build.sourcemap 为 false,build.rollupOptions.input 配置两个入口,index.html 和 classic.html,均位于项目根目录。
- 文件布局:src/content.ts(所有字符串、数字、方案、更新日志条目和指南,均带类型;还包括五个建筑标签)、src/main.ts(启动 index.html)、src/classic.ts(启动 classic.html)、src/sections.ts(五个函数,将 content.ts 转换为 Features、Pricing、Changelog、Docs 和 Newsletter 的 DOM;面板和经典页面共用,因此两者永远不会出现偏差)、src/panels.ts(对话框外壳、焦点陷阱、hash 路由)、src/world/loop.ts、camera.ts、map.ts、pathfind.ts、mascot.ts、buildings.ts、ambient.ts、daynight.ts、input.ts、src/styles.css(设计令牌、布局、面板样式、关键帧、减少动态效果规则)。
- 字体:在两个入口文件中导入 '@fontsource-variable/fraunces/full.css'(full 文件包含 opsz、SOFT 和 WONK 轴)和 '@fontsource-variable/nunito'。CSS 中的字体族为 'Fraunces Variable' 和 'Nunito Variable'。标题使用 font-variation-settings 'SOFT' 100、'WONK' 1。font-display 保持 swap。
- 图标:仅从 'lucide' 导入 Assets 下列出的图标,并在每次 DOM 渲染后调用 createIcons({ icons: {...} });元素使用 data-lucide 属性。
- 世界单位:岛屿布局在固定的 1600 x 1000 世界中。本提示词中的所有坐标均为世界单位;乘以相机缩放 s 得到 CSS 像素。海面绘制在整个画布上,因此世界矩形没有可见边缘。
- 游戏循环:一个 requestAnimationFrame 循环。更新通过累加器以 1/60 s 的固定步长运行(每帧最多 5 步,多余时间丢弃);绘制在最后两步之间插值位置。当标签页隐藏时在 visibilitychange 上暂停循环,返回时重置累加器。
- 首帧:在启动期间同步绘制一个完整帧(海面、岛屿、路径、全部五个建筑、树木、码头、码头处的渡轮、出生点的吉祥物),在字体加载完成之前、任何动画计时器启动之前。在 HTML head 的 style 标签中将 html 和 body 背景设为 #3DA5D9,使页面在脚本运行前就是海色。任何地方都没有加载屏幕、启动画面、进度条或开始按钮。
- Canvas 分辨率:后备存储 = CSS 尺寸 x r,其中 r 初始为 min(devicePixelRatio, 2)。保留最近 90 帧时间的滚动平均值;如果持续高于 20 ms,将 r 降低 0.25(不低于 1)并重新创建缓存层;同一次访问中不再提高。在 window resize 和 orientationchange 时以 100 ms 防抖调整大小。
- 缓存层:所有不移动的内容(海面基色除外;岛屿沙地和草地、路径、广场、建筑主体、树干、码头、岩石)一次性渲染到两个离屏画布中,一个使用白天颜色,一个使用夜间颜色。每帧先绘制白天层,然后以 globalAlpha 等于夜间因子绘制夜间层。移动的内容(水线、泡沫、渡轮、海鸥、晾晒衣物、烟雾、树冠、吉祥物、灰尘、标记、光束、亮起的窗户)实时绘制在上层。在调整大小、分辨率变化以及 document.fonts.ready 解析时重建缓存一次,以便标志标签切换到展示字体。
- 随机性:对所有散布位置(花朵、闪烁笔画、萤火虫)使用一个带种子的生成器(mulberry32,种子 7),使岛屿在每次加载时看起来相同。眨眼、小动作和阵风的计时器可以使用 Math.random。
- Favicon 和标志标记:启动时将吉祥物的头部(同一个 drawMascot 函数,裁剪到身体、脸和头顶毛)绘制到 64 x 64 画布中,并通过 data URL 设置为 favicon;页头标志标记是一个以相同方式绘制的 28 px 画布。页面标题在 index.html 上为 '[BRAND] - [HEADLINE]',在 classic.html 上为 '[BRAND] - Classic page'。
## 变量
- [BRAND] — 产品名称(默认:"Skerry")。显示在页眉字标、页面标题、面板文案和页脚中。一个简短的词效果最佳。
- [PRODUCT] — 产品是什么,用一个从句描述(默认:"a notes app that keeps every thought as a plain text file you can link, search and sync")。补全主视觉推介中 '[BRAND] is ...' 这句话。功能、套餐、更新日志和指南都会重写以与之匹配。
- [AUDIENCE] — 面向谁(默认:"writers, students and tinkerers who think in scraps")。决定文案的语气、客户引语和套餐描述。
- [MASCOT_NAME] — 吉祥物的名字(默认:"Nib")。用于提示标签、推介文案和几处友好语句。无论名字是什么,吉祥物的外观都严格保持既定规格。
- [HEADLINE] — 主视觉标题(默认:"A small island for every loose thought.")。最多 8 个词;在桌面端以三行悬浮于海面之上。
- [PRIMARY_CTA] — 主按钮标签(默认:"Start writing free")。主视觉和页眉的按钮。它会引导吉祥物走向集市摊位并打开 Pricing。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接指向 https://vibefather.ai/t/interactive-mascot-world-landing-page(默认:是;删除此行即可移除)
页面与区块下的文案是按默认值撰写的。如果你的取值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。
## 设计
### 颜色
- 草绿(Grass)`#7BD389` — 岛屿的草地,精确硬编码。填充主视觉中的大部分陆地。更深的色调 #4FB36B 用于树冠、草丛和高原的阴影边缘。
- 海蓝(Sea)`#3DA5D9` — 整个页面背景和岛屿周围的水域,精确硬编码。更深的色调 #2C8BC4 用于波浪描边和渡轮的尾迹阴影;泡沫和波光描边为 #FFFFFF,70% 透明度。
- 沙色(Sand)`#FFE5A8` — 海滩环带、西侧沙嘴、小径和广场,精确硬编码。卵石点和木板阴影使用 #F2CE86。
- 珊瑚色(Coral)`#FF6F59` — 所有屋顶、灯塔条纹、摊位遮阳篷条纹、沙滩伞、吉祥物的脸颊、目标标记和主按钮背景(上面配 Ink 文字),精确硬编码。
- 墨蓝(Ink navy)`#1B2559` — 所有文字、世界中所有描边(2.5 世界单位,圆角连接,90% 透明度)、图标、面板后方 40% 透明度的遮罩。主视觉文字在白天使用 Ink。
- 奶油色(Cream)`#FFF6E3` — 面板和页头表面、建筑墙壁、吉祥物的脸部斑块、烟团、夜间的主视觉文字。稍深的奶油色 #F6E8C9 用于分隔线和输入框边框。
- 鸢尾紫(Iris violet)`#6C4BD8` — 吉祥物的身体,世界中仅此一处,因此它始终是最容易找到的东西。更浅的紫色 #8E73F0 用于其高光和毛簇尖端。在 DOM 中用于链接和聚焦的方案卡片。
- 万寿菊黄(Marigold)`#FFC233` — 吉祥物的围巾和脚、门、工坊齿轮、窗户灯光、悬停时的门阶辉光、每个可聚焦元素上的 3 px 聚焦环,以及“Most picked”标签。
- 夜间套装(Night set)`#2B2F77` — 在完全夜间时,海变为靛蓝 #2B2F77,草 #3E8C78,沙 #BFAE8C,屋顶 #C4506B,奶油色墙壁 #B9B6D6,窗户发光 #FFD76A。这些仅通过从精确的白天颜色交叉淡化达到;在完全白天时,没有任何东西给四种故事书颜色着色。
### 排版
- 展示字体:主视觉标题、面板标题、方案名称、价格、画布上的建筑招牌标签。始终使用 SOFT 100 和 WONK 1,使曲线保持圆润且略带古怪。标题字重 800,面板标题 700,价格 700 并使用表格数字。:Fraunces Variable(OFL),字重 600/700/800
- 文本和界面:推介语、正文、按钮、菜单、标签、输入框。正文 17 px / 1.55,字重 500,按钮和标签 700,眉题 800 大写 12 px,字距 0.08em。主视觉推介语为 20 px,字重 700。:Nunito Variable(OFL),字重 500/700/800
### 布局与动效
- 间距:8 px 网格。index.html 是单一固定屏幕(100dvh,无页面滚动):画布填满它,DOM 浮在其上。浮动页头:56 px 高的奶油色胶囊,距顶部和两侧各 16 px,最大宽度 1180 px,居中。面板:桌面端 32 px 内边距,手机端 20 px,块与块之间 24 px,列表行之间 12 px。classic.html:1080 px 内容列,24 px 边距,桌面端区块之间 96 px,手机端 64 px。最小触摸目标 44 x 44 px。
- 圆角:处处圆角。面板 28 px,卡片和方案磁贴 20 px,输入框 14 px,按钮和标签完全圆角(999 px)。按钮有 2 px Ink 描边和硬质的 0 4 px 0 Ink 阴影,按下时收缩为 0 1 px,像被按下的玩具按钮。在画布中,建筑角以 8 个世界单位圆角,每条轮廓都使用圆角连接和端点。
- 动效:全局使用三种缓动,并在代码中命名:OUT = cubic-bezier(0.22, 1, 0.36, 1) 用于到达的元素,BACK = cubic-bezier(0.34, 1.56, 0.64, 1) 用于小弹跳,SINE = ease-in-out sine 用于任何循环的内容。除了巡航速度的渡轮和沿循环飞行的海鸥,没有任何东西线性移动。
- 动效:每个动效都向访客传达信息:脚步显示吉祥物要去哪里,挤压显示重量,标记显示目的地,发光的门阶显示可点击的内容,环境循环显示世界是活的。不要给本提示词未列出的任何东西添加旋转、漂浮或脉动。
- 动效:吉祥物行走:每秒 160 个世界单位。一步持续 0.40 s,有两个落脚点,间隔 0.20 s。起步:90 ms 的预备挤压(宽 1.10,高 0.90),然后速度在 0.18 s 内缓入。每一步:身体沿 |sin| 上升 5 个单位,在顶部拉伸为宽 0.96、高 1.05,然后在落脚时挤压为宽 1.07、高 0.93;缩放始终以脚为轴心并保持体积。身体向行进方向倾斜 4 度,抬起的脚上升 7 个单位并向前伸 9 个单位,手臂与脚相反各摆动 26 度。停止:速度在最后 36 个单位内缓出,然后在 320 ms 内从 1.10/0.90 稳定到 0.97/1.04 再到 1/1。
- 动效:跟随动作:围巾尾部和三撮头毛悬挂在阻尼弹簧上(刚度 90,阻尼 9)。行走时它们拖在后面,以约 4 Hz 摆动,吉祥物停止时它们摆过中心再回来。向左或向右转时,面部斑块在 120 ms 内以 OUT 滑过身体,而不是瞬间翻转。
- 动效:脚步尘土:每次落脚时,脚边出现两小团尘雾。每团是一个圆,半径从 3 增长到 7 个单位,向后漂移 12 个单位、向上 6 个单位,并在 420 ms 内以 OUT 从 80% 淡出到 0。尘雾在草地上为 Sand 色,在沙地上为 #F2CE86。存活数量绝不超过 24。
- 动效:眨眼:眼睛在 70 ms 内闭上,保持闭合 50 ms,在 100 ms 内睁开。每 2.6 到 5.4 s 随机眨眼一次;五次中有一次是双眨眼,间隔 140 ms。眨眼永不停止,包括行走时和打开的面板后面。
- 动效:待机:呼吸每 2.8 s 以 SINE 循环一次(呼吸顶部高 1.03,宽 0.985)。4 s 无输入后,每 4 到 7 s 播放一次小动作,随机选择且不会连续两次相同:环顾(眼睛向左滑 0.04u,保持 500 ms,向右,保持,回正;1.6 s)、小跳(下蹲 90 ms,跳 14 个单位,以稳定动作落地;450 ms)、挥手(靠近观众的手臂抬到 110 度并挥三次;1.2 s)。30 s 空闲后它打盹:眼睛变成两条短的下弯弧线,呼吸减慢到 4 s,一个小 Ink 色的 'z' 向上飘 24 个单位并每 1.8 s 淡出一次。任何输入都会以 200 ms 的 BACK 弹跳唤醒它。
- 动效:加载时,在第一帧之后:0.8 s 时吉祥物播放一次挥手,1.2 s 时提示标签上升 12 px 并在 300 ms 内以 OUT 淡入。主视觉文案和页头从不淡入;它们在第一帧就已存在。
- 动效:目标标记:一个 Coral 色圆环(半径 14 个单位,3 个单位描边),中心有一个小点,出现在吉祥物要去的地方。它以 BACK 在 220 ms 内从 0.4 弹到 1 缩放,然后每 900 ms 以 SINE 在 1 和 1.08 之间呼吸,到达时在 180 ms 内淡出。
- 动效:建筑:悬停建筑或聚焦其菜单项时,它在 160 ms 内以 OUT 上升 4 个单位,在门阶上点亮一个 Marigold 色椭圆环,并让招牌以 BACK 在 300 ms 内弹跳 6 个单位。进入门:吉祥物跳一次(250 ms),然后缩小到 0.6 并上升 14 个单位进入门口,同时在 260 ms 内淡出。离开:它在门阶上以 BACK 在 300 ms 内从 0.6 弹到 1。
- 动效:面板:遮罩在 200 ms 内淡入。桌面端面板上升 16 px 并在 280 ms 内以 OUT 从 0.96 缩放到 1;手机端是底部抽屉,在 320 ms 内以 OUT 从下方滑上。内部行上升 12 px 并在 240 ms 内淡入,错开 40 ms,最多错开 8 行。关闭耗时 180 ms,使用 ease-in。
- 动效:环境生命运行在独立计时器上(详情见环境生命部分):海岸泡沫每 3.6 s,海面波光以 5 到 8 s 循环,渡轮约每 2 分钟,海鸥以 26、34 和 41 s 循环,晾晒衣物每 1.8 s 摆动,每 9 到 14 s 有阵风,烟囱烟每 0.9 s,树冠每 3 到 4 s 摆动,昼夜循环 160 s。
- 动效:减少动态效果(prefers-reduced-motion: reduce):环境生命以宜人的固定姿势绘制一次且不播放动画(渡轮停泊在码头,三缕烟,海鸥原地不动,衣物悬挂),昼夜循环保持白天,除非访客按下太阳和月亮按钮(然后以 200 ms 淡入切换),没有尘土、挤压、倾斜或相机缓动,吉祥物沿路径以每 120 ms 40 个单位的短步移动,双脚交替。面板和提示标签只淡入(120 ms)。眨眼保留。
- 图像:任何地方都没有图像文件。世界是一幅扁平的故事书插画,由圆润形状和柔和 Ink 描边组成,用 Canvas 2D 绘制:地面从上方以轻微倾斜视角观看,建筑和树木正面绘制站在其上,物体按其底部 y 排序,以便吉祥物能在物体前面和后面穿过。填充是扁平的,每个物体最多一个较亮的高光形状和一个较暗的阴影形状;除了夜间光晕外没有渐变,没有纹理,没有像素艺术,除了每个站立物体下方 16% alpha 的柔和 Ink 椭圆外没有投影。DOM 借用同样的语言:奶油色表面、粗 Ink 描边、硬质玩具般的按钮阴影、每个面板顶部横跨的扇贝形 Coral 遮阳篷。图标是 Lucide 线条图标,2 px 描边,Ink 色。
## 页面与区块
### 岛屿(`index.html`)
1. **浮动页眉与菜单** — 左侧:标志图形(28 px 画布上的吉祥物头部)以及 Fraunces 700、22 px 的文字标志 '[BRAND]'。中间是始终可见的菜单:五个按钮 'Features'、'Pricing'、'Changelog'、'Docs'、'Newsletter'。右侧:一个文字链接 'Classic page'(指向 ./classic.html)、一个圆形太阳和月亮按钮(aria-label 'Switch between day and night'),以及一个小型 Coral 按钮 '[PRIMARY_CTA]'。在手机上,页眉只保留标志、文字标志、'Classic page' 链接和太阳月亮按钮;五个菜单按钮移到 底部停靠栏(dock),每个按钮上方是 Lucide 图标、下方是 12 px 标签:Hammer Features、Store Pricing、History Changelog、BookOpen Docs、Mail Newsletter。仅桌面端,右下角:一个很小的奶油色小片 '(c) [BRAND] Labs',后面跟着可选的署名链接。
布局:一个高 56 px 的奶油色胶囊,距顶部 16 px 浮动,最大宽度 1180 px,带 2 px Ink 描边和硬阴影 0 4 px 0 Ink。菜单按钮是纯文字胶囊,高 40 px,左右内边距 14 px。手机停靠栏是固定在底部的奶油色条,高 72 px 加上安全区内边距,五等分列。页眉和停靠栏是 DOM 顺序中位于 canvas 之前的真实按钮和链接,因此 Tab 会先到达它们。激活菜单或停靠栏项会立即打开该区块的面板,无需等待行走;面板背后,吉祥物会以 260 ms 的 BACK 弹出效果移动到该建筑的门阶处。
动效:菜单按钮:悬停或聚焦时背景变为 Sand,世界中对应的建筑升起并点亮其门阶,就像访客正悬停在建筑本身上。太阳和月亮按钮以 OUT 缓动在 300 ms 内旋转 180 度切换图标,并在 1.5 s 内将昼夜循环移动到另一阶段的中间。
2. **海面上的主视觉文案** — 眉标小片(奶油色胶囊):'Notes app for laptop and phone - version 2.6'。标题(h1):'[HEADLINE]',默认 'A small island for every loose thought.'。宣传语:'[BRAND] is [PRODUCT]. Walk [MASCOT_NAME] around the island to see what is inside.'。主按钮(Coral,Ink 文字):'[PRIMARY_CTA]';它会让吉祥物走向市场摊位,并在到达时打开 Pricing。次按钮(奶油色):'See the workshop';它会让吉祥物走向工坊并打开 Features。按钮下方的小注:'Free forever on one device. No account needed.'。画布底部中央附近的提示小片(手机上位于停靠栏上方):在有鼠标的设备上 'Click anywhere and [MASCOT_NAME] walks there. Arrow keys work too.';在触屏设备上 'Tap anywhere and [MASCOT_NAME] walks there.'。
布局:这是直接浮在海面上的真实 DOM 文本,背后没有卡片。宽布局(视口宽度至少 900 px,且宽度至少为高度的 1.2 倍):该块的左上角固定在世界坐标点 (72, 150),宽 520 世界单位,因此它始终位于岛屿西北方的开阔水域,绝不覆盖陆地;标题字号为 62 x s px,限制在 34 到 76 px 之间(1440 x 900 时为 56 px,三行),行高 1.02,字重 800。窄布局(其他所有情况,包括 390 x 844):该块位于页眉下方,左右边距 20 px;眉标、次按钮和小注隐藏,标题为 34 px,宣传语只显示第一句、19 px,主按钮为全宽、高 52 px;岛屿填满该块与停靠栏之间的区域。白天文字为 Ink。由夜间因子设置的 CSS 变量会在夜间因子超过 0.25 时将标题、宣传语和小注切换为 Cream(600 ms 颜色过渡),因此文案在任何时刻与海面的对比度至少为 3.5:1,在全白天和全夜间超过 5:1。按钮和小片始终保留自己的奶油色或珊瑚色背景。
动效:文案没有入场动画:它必须在第一帧就存在。按钮按下时下沉 3 px,同时其硬阴影收拢(80 ms)。提示小片在 1.2 s 时出现,并在吉祥物首次以任何方式移动时用 400 ms 淡出;本次访问期间不再出现。
3. **岛屿地图与相机** — 一个全视口 canvas,aria-label 为 'Island map of [BRAND]. Use the menu to open a section, or open the classic page for a normal layout.',并有一行 noscript 链接到 ./classic.html。岛屿,以世界单位计(1600 x 1000)。Sand 形状,一条平滑闭合曲线依次经过这些点:(700,250) (860,170) (1080,150) (1300,190) (1470,300) (1540,470) (1500,660) (1380,800) (1160,860) (900,850) (640,880) (430,870) (330,790) (400,700) (560,670) (650,560) (640,380)。其上的 Grass 形状,一条平滑闭合曲线经过:(720,270) (870,200) (1080,182) (1290,220) (1445,320) (1505,470) (1468,645) (1360,770) (1150,825) (900,815) (700,820) (640,700) (690,540) (675,390)。这在四周留下一圈沙滩,并在西南方留下一片沙嘴。用经过相邻点中点的二次曲线段绘制平滑曲线。广场:位于 (1040,650)、半径 66 的 Sand 圆,在 (1040,632) 处有一个五臂木制路标。小径,宽 34 单位、Sand 色、圆头端点并带少量 #F2CE86 卵石点,从广场通向各门阶:经 (900,672) 到 (770,654) 通往邮局;经 (930,520) 到 (860,404) 通往工坊;经 (1070,540) 到 (1090,464) 通往市场摊位;经 (1180,470) 和 (1300,420) 到 (1400,394) 通往灯塔;经 (1180,672) 到 (1300,654) 通往图书馆;以及从邮局门阶经 (660,770) 和 (530,840) 到 (470,864) 通往码头。码头:木板宽 26,从 (470,860) 到 (470,945)。景物:七棵棒棒糖树(半径 30 的圆形 #4FB36B 树冠,带较浅的 Grass 高光,短棕色树干),基座位于 (720,455) (980,262) (1240,262) (1450,520) (1330,725) (1150,772) (760,768);一把 Coral 与 Cream 条纹沙滩伞,配 Sea-blue 毛巾,位于 (455,770);晾衣绳,杆位于 (860,770) 和 (990,762);浅水区三块灰蓝色岩石,位于 (300,690)、(1565,720) 和 (1200,925);草地上远离小径的 14 簇带种子的微小 Cream 与 Coral 花朵。吉祥物起始于 (1040,690),就在路标下方,面向观者。
布局:宽布局:s = min(视口宽度 / 1600, 视口高度 / 1000),世界居中,因此整个岛屿、全部五座建筑、码头和吉祥物一次性可见,相机永不移动(1440 x 900 时,s = 0.9)。窄布局:s = (视口高度 - 主视觉文案底边 - 100) / 740,限制在 0.5 到 0.85 之间(390 x 844 时约 0.6),世界 y 140 恰好置于主视觉文案下方,世界 y 880 恰好置于停靠栏上方,因此岛屿的完整高度始终可见;相机只横向平移,跟随吉祥物,x 以 1 - exp(-6 x dt) 缓动,并加以限制使视图保持在世界 x 280 到 1600 之间。在 390 px 屏幕上,第一帧显示吉祥物在广场,周围是工坊、市场摊位和图书馆。canvas 设置 touch-action none,页面不滚动。可行走地面是沙形内部的一切加上码头木板,减去建筑占地、树干(半径 14)、晾衣绳杆和路标。
动效:指针移动:单击或轻点(指针按下与抬起在 10 px 和 400 ms 内)设置目的地。在世界范围内一次性构建 16 单位网格,标记可行走单元格,用 A*(8 方向,不切角)寻找路线,然后通过移除视线畅通的路径点来拉直路线。点击水面或障碍物会吸附到最近的可行走单元格。键盘移动:按住方向键或 WASD 时,吉祥物以行走速度直接移动,沿岸和墙滑动;这会取消任何指针目的地。如果主视觉按钮请求的行走耗时超过 3.5 s,则加速使其耗时 3.5 s。
4. **吉祥物 [MASCOT_NAME]** — 一个仅由此处数值定义的原创角色;不要基于任何现有吉祥物或游戏角色。设 u = 64 世界单位(身体宽度)。原点为双脚之间的地面;负 y 向上。身体:一个软糖形,底部平坦、顶部圆拱,宽 1.0u、高 0.90u,因此略宽于高;其底部位于 y = -0.08u,底角圆角半径为 0.30u,最宽处在 y = -0.40u,顶部为半椭圆,高 0.58u,达到 y = -0.98u。填充 Iris violet #6C4BD8,左上方有一个更浅的 #8E73F0 高光椭圆(0.22u x 0.11u,倾斜 30 度),以及 2.5 单位 Ink 描边。面部色块:一个 Cream 椭圆,宽 0.66u、高 0.46u,中心位于 (0.07u x f, -0.56u),其中 f 从 -1(朝左)到 1(朝右);所有面部部件随之移动。眼睛:两个实心 Ink 圆,半径 0.05u,相距 0.28u,位于 y = -0.60u,每个都有一个半径 0.017u 的白色高光,位于左上方。脸颊:两个 Coral 圆,半径 0.045u,80% alpha,相距 0.50u,位于 y = -0.50u。嘴:一个短而浅的 Ink 微笑,宽 0.09u,2 单位描边,位于 y = -0.47u;在跳跃和进入门时变为半径 0.035u 的小空心圆。无鼻子、无眉毛、无耳朵、无牙齿。围巾:一条 Marigold #FFC233 带,高 0.10u,缠绕在身体上,位于 y = -0.22u,在背离朝向的一侧有一个半径 0.055u 的圆结,以及两条尾巴,长 0.26u 和 0.19u,宽 0.075u,每条末端为燕尾缺口。手臂:两个紫色胶囊,宽 0.09u、长 0.20u,铰接于(正负 0.47u, -0.36u),向外静止 18 度。脚:两个 Marigold 圆角矩形,0.22u x 0.12u,相距 0.38u,在地面上,绘制在身体底部前方。头顶毛簇:三个圆润泪滴形毛簇,根部位于 (0, -0.96u),长 0.20u、0.27u 和 0.17u,宽 0.09u,从垂直方向倾斜 -32、+6 和 +38 度,身体颜色,尖端更浅。地面阴影:一个 Ink 椭圆,0.80u x 0.20u,16% alpha。整个形象高约 1.25u。夜间,其下方地面上有一圈半径 90 单位的柔和 Marigold 光晕,25% alpha 乘以夜间因子。
布局:由一个函数 drawMascot(ctx, state) 绘制,用于世界、页眉标志、favicon 和经典页面。绘制顺序:阴影、远侧手臂、毛簇、身体、围巾带(裁剪到身体)、面部色块、脸颊、眼睛、嘴、围巾结和尾巴、脚、近侧手臂。它按底部 y 与建筑和树木一起排序。吉祥物在垂直向上或向下移动时保持最后朝左或朝右的朝向。
动效:行走循环、挤压与拉伸、围巾和毛簇的跟随动作、尘土、眨眼、呼吸、小动作和打瞌睡,完全按 Design motion list 中的时间执行。上述比例为静止姿势;挤压与拉伸从脚部缩放整个形象。
5. **五座建筑作为导航** — 每座建筑都有 Cream 墙壁、Coral 屋顶、底部有一个 Marigold 门或开口、门右侧有一个小木制路标,上面用 Fraunces 700 承载来自 content.ts 的标签(18 单位,Ink 在 Cream 木板上),以及夜间填充 #FFD76A 光的窗户。尺寸为世界单位中的宽 x 高;门位于底部中央。1) Workshop,标签 'Features',门位于 (860,390),190 x 150:一个宽棚屋,带三齿锯齿屋顶,左侧有一个冒烟的砖烟囱,一个宽大的开放门洞显示工作台剪影,门上方有一个 Marigold 齿轮。2) Market stall,标签 'Pricing',柜台位于 (1090,450),170 x 120:一个开放式木制摊位,下方是 Coral 和 Cream 条纹遮阳篷,边缘为扇贝形,柜台上三堆板条箱(一、二和三箱,呼应三个方案)以及一串小旗。3) Lighthouse,标签 'Changelog',门位于 (1400,380),底部宽 80、高 250:一个渐细的塔,有四条交替的 Coral 和 Cream 带、一个带栏杆的观景台、一个玻璃灯室和一个 Coral 顶盖。4) Library,标签 'Docs',门位于 (1300,640),210 x 160:一个石制正面,有四根柱子、三级台阶、一个带圆窗的 Coral 三角山花,以及展示书脊的高窗,书脊为调色板颜色的细竖条纹。5) Post office,标签 'Newsletter',门位于 (770,640),160 x 130:一个带 Coral 四坡屋顶和小烟囱的小屋,一个圆顶 Marigold 门带信件槽,旁边杆子上有一个 Sea-blue 邮筒,带一面小 Coral 信号旗,屋顶上有一面三角旗。
布局:阻挡行走的占地范围(x 范围,y 范围):workshop 770-950, 350-390;market stall 1010-1170, 414-450;lighthouse 1364-1436, 350-380;library 1200-1400, 596-640;post office 694-846, 600-640。门阶(触发点,每扇门前 14 单位):workshop (860,404),market stall (1090,464),lighthouse (1400,394),library (1300,654),post office (770,654)。点击或轻触建筑绘制形状或其路标上的任意位置,会将吉祥物送到该门阶;到达后它进入,面板打开。用方向键走到门阶上并按 Enter 或 Space,或直接推门,效果相同。面板关闭后,该门不会再次触发,直到吉祥物移动超过 60 单位远,这样没人会被拉回去。
动效:悬停、聚焦、进入和离开按 Design motion list 中的时间执行;指针在建筑和标志上变为手形。workshop 齿轮每 12 秒转一圈;摊位遮阳篷的扇贝形边缘每 2.4 秒波动 2 单位;post office 三角旗飘动;lighthouse 灯在白天每 6 秒闪烁一次。
6. **环境生命与昼夜循环** — 波浪:两条白色泡沫线跟随近岸沙形,在 6 到 18 单位外滑动并逐渐消失,以 3.6 秒 SINE 循环,第二条比第一条滞后半个周期。海面波光:16 条种子化的短波浪笔画,颜色为 #2C8BC4 和白色,分布在开阔水面上,每条上下浮动 4 单位,并在各自 5 到 8 秒循环中淡入淡出;hero copy 的框内没有。Ferry:一艘小船,白色船体、Cream 船舱带 Coral 屋顶和冒烟的 Marigold 烟囱。第一帧停泊在码头末端 (470,968)。6 秒后,它在 1.2 秒内缓缓离开,沿 y = 968 以每秒 60 单位向右航行,直到离开屏幕,等待 30 秒,以同样方式返回,停泊 8 秒,然后向另一方向重复;它每 2.2 秒上下浮动 2 单位,并拖出三条渐隐尾迹弧。Gulls:三只白色海鸥,每只两笔弯曲翅膀笔画,在以岛屿为中心、380 x 120 单位的椭圆上盘旋,周期为 26、34 和 41 秒;它们拍翅四次(每次 0.5 秒),然后滑翔 1.5 秒,每只在其下方 60 单位处投下 10% alpha 的小 Ink 阴影。Laundry:晾衣绳上有四件物品(一只 Coral 袜子、一条 Cream 床单、一件 Marigold 衬衫、一条 Sea-blue 毛巾)夹在顶部;它们下缘每 1.8 秒摆动 8 度,相位错开,每 9 到 14 秒一阵风将摆动缓升至 22 度,持续 1.5 秒再恢复。Smoke:workshop 烟囱每 0.9 秒释放一团 Cream 烟(post office 每 1.6 秒);每团从半径 5 增长到 14,上升 60 单位,向右飘移 18 单位,并在 3.2 秒内以 OUT 从 70% 淡出到 0。Trees:树冠以 3 到 4 秒 SINE 循环向两侧摆动 2 单位,每棵有自己的相位。Day and night:一个循环持续 160 秒:白天 0 到 80 秒,黄昏 80 到 100 秒,夜晚 100 到 140 秒,黎明 140 到 160 秒;页面始终从第 0 秒开始。夜间因子 n 通过黄昏从 0 到 1,并通过黎明返回,使用 smoothstep 缓动。随着 n 上升,白天层交叉淡入夜晚层(海面到靛蓝 #2B2F77),窗户亮起,lighthouse 发出两束柔和 Marigold 光束,每 6 秒扫一整圈,八只种子化萤火虫在草地上飘动,一层淡淡的 Coral 红晕(n = 0.5 时 10% alpha,两端为 0)在黄昏和黎明温暖场景。白天,两片柔和云影(Ink 6% alpha)每 60 秒穿过岛屿。
布局:所有环境对象位于 ambient.ts 中,每个都有自己的计时器,因此它们的循环彼此漂移,场景永不精确重复。亮起的窗户、光束和萤火虫用 alpha n 实时绘制;夜间其他所有内容来自缓存的夜晚层。Ferry 排序在水面之上、码头木板之下。
动效:如所列。在减少动态效果下,此处每个项目都以固定姿势绘制一次:泡沫在中距离,ferry 停泊,gulls 放置在其循环的三个点上,laundry 垂直悬挂,每个烟囱上方三团烟,n = 0。
7. **区块面板** — 每栋建筑打开一个面板。每个面板包含:顶部边缘一条扇贝形 Coral 遮阳篷条;一个标明建筑名称的眉题('The workshop'、'The market stall'、'The lighthouse'、'The library'、'The post office');一个 Fraunces 700、34 px 的标题;一行简介;下文描述的区块内容;一个带 Lucide X 图标的圆形关闭按钮(aria-label 'Close and return to the island');底部一个文本链接 'Read this on the classic page',指向 ./classic.html 中对应的锚点(#features、#pricing、#changelog、#docs、#newsletter)。
布局:每个面板是一个 div,带 role dialog 和 aria-modal true,由其标题标注,由 sections.ts 从 content.ts 渲染。桌面端:居中卡片,宽度 min(760 px, 92vw),最大高度 80vh 并自带滚动,Cream 背景,2 px Ink 描边,28 px 圆角,硬阴影 0 8 px 0 Ink。手机端:底部抽屉,占视口高度的 88%,顶部圆角,带一个 40 x 5 px 的抓取条。其后方一层 40% 的 Ink 遮罩覆盖画布;世界在下方继续动画但忽略输入。打开时焦点移到标题上,焦点被限制在面板内,关闭时返回打开它的控件。Escape、关闭按钮和点击遮罩都能关闭它。面板打开时地址栏会获得一个 hash(#/features、#/pricing、#/changelog、#/docs、#/newsletter);用这些 hash 之一打开 index.html 会立即显示该面板,吉祥物在该门阶上等待,后退按钮关闭面板。
动效:打开、交错和关闭按 Design motion 列表中的时间执行。面板关闭时,吉祥物在门阶上重新弹出,面向观看者。
8. **Workshop 面板:Features** — 标题 'Built in the workshop'。简介:'Six tools, each one sharpened for speed.' 六张功能卡片,每张包含一个 Lucide 图标、一个标题和一两句话。Zap,'Capture in one keystroke':'Press Ctrl or Cmd + Shift + N anywhere. A note opens in 0.2 seconds and files itself in today's inbox.' FileText,'Plain text, your folder':'Every note is a .md file in a folder you choose. Open it in any editor, today or in thirty years.' Link2,'Links that go both ways':'Type [[ to link two notes. Each one lists what points back at it, so ideas find their neighbors.' Search,'Search that keeps up':'Find a phrase across 10,000 notes in 41 milliseconds, typos forgiven.' RefreshCw,'Sync we cannot read':'End-to-end encrypted sync on up to 5 devices. Works fully offline and catches up later.' Sunrise,'The morning tide':'Each day opens with three old notes washed back up, chosen from what you wrote about this week.' 然后是一个引用块:'I moved 4,200 notes in an afternoon and then stopped thinking about my notes app. That is the review.' 署名 'Imogen Achterberg, science writer'。最后是一个 Coral 按钮 'See the plans',点击后关闭此面板并让吉祥物走向市场摊位。
布局:桌面端卡片为两列网格,手机端为一列;每张卡片为 Cream 背景,2 px #F6E8C9 边框,20 px 圆角,20 px 内边距,图标位于 40 px Sand 圆形中。引用使用 Fraunces 600 斜体、22 px,左侧带 4 px Coral 竖线。
动效:卡片使用面板交错动画。悬停时卡片的图标圆在 150 ms 内变为 Marigold。
9. **Market stall 面板:Pricing** — 标题 'Pick a crate'。简介:'Prices in US dollars. Switch or cancel whenever you like.' 一个双选项开关 'Monthly' 和 'Yearly (2 months free)',默认选中 Monthly。三个方案。'Pebble',$0,'For one device, forever.':无限笔记和链接;你自己文件夹中的纯文本文件;完整搜索和晨潮;一台设备,无同步。按钮 'Download free'。'Cove',$5 每月或 $48 每年,标签 'Most picked','For your phone, your laptop and the one in the drawer.':Pebble 中的一切;5 台设备上的加密同步;90 天版本历史;可将任意笔记发布为网页。按钮 'Start 14-day trial'。'Harbor',$9 每位成员每月或 $84 每位成员每年,'For small teams who share a notebook.':Cove 中的一切;带每笔记权限的共享笔记本;评论和提及;管理控制台,一个工作日内回复。由于这是静态演示,每个方案按钮只在其下方显示一行:'Demo site: nothing was downloaded or charged.' 方案下方是三个问题的手风琴。'What happens to my notes if I stop paying?' - 'They stay on your devices as plain text files. Sync pauses; nothing is deleted or locked.' 'Is there a student discount?' - 'Yes. Cove is half price with a school email address.' 'Can I pay once instead?' - 'A lifetime Cove license is $120 and covers every 2.x release.'
布局:桌面端三个方案卡片并排,手机端堆叠且 Cove 在最前。卡片:方案名 Fraunces 700、24 px,价格 Fraunces 700、44 px 并使用等宽数字,小号 '/ month' 或 '/ year' 用 Nunito,一行描述,带 Lucide Check 图标的列表,按钮。Cove 有 3 px Iris violet 描边,Marigold 的 'Most picked' 标签重叠在其顶部边缘。问题使用 details 和 summary 元素,带一个会旋转的 ChevronDown。
动效:切换 Monthly 和 Yearly 时每个价格滚动:旧数字上滑 10 px 并淡出,新数字升起进入,220 ms,OUT 缓动。开关滑块在 180 ms 内滑动,OUT 缓动。Chevron 在 200 ms 内旋转 180 度。
10. **Lighthouse 面板:Changelog** — 标题 'Seen from the lighthouse'。简介:'What shipped lately, newest first.' 五条记录,每条包含一个版本号、一个日期标签、一个标签(New、Improved 或 Fixed)和两到三个要点。'2.6 Tidewater',Nov 3,New,'The morning tide learns your week':现在会从你最近 7 天接触过的主题中挑选旧笔记;按一个键将笔记推迟 30 天;修复了潮汐跳过标题中含 emoji 的笔记的问题。'2.5',Oct 6,Improved,'Search is three times faster':10,000 条笔记现在搜索耗时 41 ms,从 130 ms 降低;超过五个字母的单词允许拼写错误;结果保持你的滚动位置。'2.4',Sep 8,New,'Publish a note as a page':一键将任意笔记变为只读网页;随时取消发布,链接在一分钟内失效。'2.3',Aug 11,Fixed,'Sync conflicts, sorted':冲突的编辑并排保留而不是被覆盖;弱连接下同步重试而不耗尽电池。'2.2',Jul 14,New,'Shared notebooks arrive on Harbor':最多邀请 25 名成员;将每条笔记设为查看、评论或编辑。列表下方一个文本按钮 'Get these by post',点击后关闭面板并让吉祥物走向邮局。
布局:垂直时间线:左侧一条 3 px Coral 与 Cream 条纹线(呼应塔身的条纹),每条记录处有一个圆形 Marigold 灯点。版本号用 Fraunces 700,日期标签用小号大写 Nunito 800,标签为胶囊形(New 用 Grass,Improved 用 Sea,Fixed 用 Sand,均为 Ink 文字)。
动效:记录使用面板交错动画;最新记录的灯点每 6 s 柔和发光,与灯塔的灯一致。
11. **Library 面板:Docs** — 标题 'The library'。简介:'Short guides. Most take two minutes.' 一个标注为 'Find a guide' 的筛选字段,输入时按标题缩小列表,无匹配时显示 'No guide by that name. Try sync or import.'。五个指南的手风琴,第一个默认展开。'Get started in three steps'(2 min):1. 安装 [BRAND] 并为你的笔记选择一个文件夹。2. 按 Ctrl 或 Cmd + N 写下第一行;该行成为标题。3. 输入 [[ 将其链接到另一条笔记。'Keyboard shortcuts'(1 min),一个两列表格:快速捕获,Ctrl 或 Cmd + Shift + N;新建笔记,Ctrl 或 Cmd + N;搜索全部,Ctrl 或 Cmd + K;链接笔记,[[;切换清单,Ctrl 或 Cmd + L;打开今日潮汐,Ctrl 或 Cmd + T。'Bring your old notes'(3 min):'[BRAND] reads any folder of .md or .txt files. Choose File, then Import folder, and point at it. Folder structure, tags and relative links are kept; attachments are copied into an assets folder.' 'Sync and backups'(2 min):'Notes are encrypted on your device with a key only you hold. If you lose the key we cannot recover them, so print the 12-word recovery sheet. [BRAND] also keeps a zipped local backup every night for 30 days.' 'Publish a note'(1 min):'Open a note, choose Share, then Publish. You get a read-only link. Edits appear within a minute; Unpublish removes the page.' 页脚行:'Stuck? Write to help@' 后接小写的 [BRAND] 和 '.example',然后是 '. A person answers within one business day.'
布局:筛选字段位于顶部,内部带一个 Lucide Search 图标。每个指南行显示一个小书脊色条(循环使用 Coral、Sea、Grass、Marigold、Iris violet)、标题,右侧为阅读时间。键名使用小号 Cream 键帽,带 2 px Ink 描边和 2 px 底部阴影。
Motion:Guides 通过以 OUT 在 240 ms 内动画高度来打开和关闭;筛选会将不匹配的行在 120 ms 内淡出。
12. **Post office panel:Newsletter** — 标题 'The [BRAND] Post'。介绍:'One short letter on the first Monday of each month: what shipped, one workflow worth stealing, and nothing else. 4,180 readers, zero tracking pixels.' 一个表单,包含一个标签为 'Email address' 的字段(占位符 '[email protected]')和一个 Coral 按钮 'Send me the Post'。该表单从不向任何地方发送任何内容:它仅在浏览器中检查值。空:'Add an email address first.' 不像地址:'That address looks unfinished. Check for an @ and a dot.' 有效:表单被一张明信片替换,上面写着 'Stamped and sorted.',并有一行 'This is a demo, so nothing was sent or stored.',以及一个圆形 Coral 邮戳,上面带有单词 'DEMO'。下方是 'Recent letters':'No. 31 - The one-inbox rule'、'No. 30 - Naming notes so you can find them again'、'No. 29 - What we learned by deleting our folders'。
Layout:桌面端字段和按钮在同一行,手机上堆叠;输入框高 52 px,带 2 px Ink 轮廓和 14 px 圆角。错误文本位于字段下方,Ink 色文字在 Sand 条上,带 Coral 左边框,通过 aria-live polite 播报。明信片是一张 Cream 卡片,带有虚线 #F6E8C9 内边框,略微旋转(-2 度)。
Motion:出错时字段在 300 ms 内抖动 6 px 三次(减少动态效果时跳过)。成功时明信片以 BACK 在 300 ms 内落下,邮戳在 160 ms 内从 1.4 缩放到 1。在世界中,当面板关闭时可见:邮筒旗以 BACK 在 300 ms 内摆动升起,一个小 Cream 信封以 SINE 在 1.6 s 内从邮局弧线飞到码头,然后随渡轮的下一次出发驶离。
### Classic page (`classic.html`)
1. **Header and hero** — 一个正常的滚动页面,通过相同的 sections.ts 函数从相同的 content.ts 构建,因此 island 面板中的每个词也出现在这里。粘性页眉:logo 标记和 '[BRAND]',锚点链接 'Features'、'Pricing'、'Changelog'、'Docs'、'Newsletter',以及一个 Coral 按钮 'Back to the island' 链接到 ./index.html。Hero:eyebrow 芯片,'[HEADLINE]' 作为 h1,完整宣传语 '[BRAND] is [PRODUCT].',一个 Coral 按钮 '[PRIMARY_CTA]' 滚动到 #pricing,一个 cream 按钮 'Explore the island' 链接到 ./index.html,以及注释 'Free forever on one device. No account needed.' 文案旁边是一张岛屿明信片:一个 canvas,使用相同的绘制代码显示整个世界,吉祥物站在广场上。
Layout:页面背景 Cream;hero 是一个全宽 Sea #3DA5D9 色带,Ink 文字,文案在左侧(5 列),明信片在右侧(7 列);手机上明信片先出现,全宽,然后是文案。明信片 canvas 保持世界的 16:10 形状,有 2 px Ink 轮廓、28 px 圆角、硬 0 8 px 0 Ink 阴影,并倾斜 1.5 度。一条波浪形 Sand 边缘(重复扇贝形的 CSS mask)将 hero 色带与下方页面分隔开。页眉是一个 Cream 条,带 2 px Ink 底部边框。
Motion:明信片一次性绘制完整静止帧,然后仅运行环境生活和吉祥物的眨眼和小动作,没有行走也没有输入;当滚动出视图时暂停,在减少动态效果时是单个静止帧。点击它会打开 ./index.html。
2. **Features、Pricing、Changelog、Docs、Newsletter** — 五个部分,id 分别为 features、pricing、changelog、docs 和 newsletter,按此顺序,每个部分都有与其 island 面板相同的 eyebrow、标题、介绍和内容:六张功能卡片和客户引言;Monthly 和 Yearly 切换、三个计划和三个问题;五条 changelog 条目;指南筛选和五篇指南;newsletter 表单,具有相同的仅本地验证和明信片确认,以及最近信件。部分标题是 h2 元素。
Layout:每个部分是一个 1080 px 列。Features 在桌面端三列,平板两列,手机一列。Pricing 瓷砖三列。Changelog 和 Docs 在 720 px 阅读列中。Newsletter 在 Sand 色带中,表单居中。部分之间有一个小的绘制分隔线:一行 64 px 宽的三扇贝形,Coral 色。
Motion:部分在进入视口时淡入并上升 16 px 一次(IntersectionObserver,400 ms 以 OUT,超过 60 ms 无交错);减少动态效果时禁用。所有面板内微交互(价格滚动、手风琴、印章)与 island 上相同。
3. **Footer** — 左侧:logo 标记、'[BRAND]' 和一行 'Made on a very small island.' 中间:链接 'Back to the island'(./index.html)、'Features'、'Pricing'、'Changelog'、'Docs'、'Newsletter'(此页面上的锚点)。右侧:'(c) [BRAND] Labs, 14 Lantern Row, Port Halloran' 和可选的 credit 链接。
Layout:Ink navy 色带,Cream 文字,桌面端三列,手机上堆叠,48 px 内边距,顶部边缘有一排白色泡沫扇贝形。
Motion:无。
## 资产
- 图像:没有图像文件、精灵图、SVG 插图或 3D 模型。岛屿、五栋建筑、吉祥物、渡轮、海鸥、晾晒的衣物、烟雾、水面、光束、页眉标志图形、favicon(启动时由 canvas 转为 data URL)以及经典页面明信片,全部在运行时通过 Canvas 2D 调用绘制;面板装饰(遮阳篷扇贝边、邮戳、键帽、分隔线)使用 CSS。不下载任何内容。
- 图标:来自 npm 包 'lucide'(ISC)的 Lucide 图标,逐个导入并通过 createIcons 渲染:Hammer、Store、History、BookOpen、Mail(菜单和停靠栏)、Sun、Moon(昼夜按钮)、X、Check、ChevronDown、ArrowRight、Search(界面)、Zap、FileText、Link2、RefreshCw、Sunrise(功能卡片)。在 ASSETS.md 中列出 'lucide, https://lucide.dev, ISC'。
- 字体:通过 Fontsource npm 包自托管:@fontsource-variable/fraunces(OFL-1.1,为 SOFT 和 WONK 轴导入 full.css 条目)用于展示字体,@fontsource-variable/nunito(OFL-1.1)用于正文。Vite 将 woff2 文件复制到 dist/。在 ASSETS.md 中列出两者,并注明包名、来源 URL、作者和许可证。
## 禁止事项
- 首屏必须像一张已完成的静态截图:绝不能显示黑色或空白画布、加载旋转图标、进度条、启动画面或“点击开始”状态。在中端手机上打开页面后 2 秒内,首个完整帧(包含整座岛、全部五栋建筑和吉祥物)必须出现在屏幕上,且主视觉文案必须已在其内可见。
- 不得更改四种故事书配色,也不得让任何东西在白天全亮时给它们染色:草地必须恰好是 #7BD389,海是 #3DA5D9,沙是 #FFE5A8,屋顶是 #FF6F59。
- 可见文本不得使用系统字体或默认字体:标题使用 Fraunces Variable,SOFT 100、WONK 1,正文使用 Nunito Variable,两者均通过 Fontsource 自托管。绝不从字体 CDN 或任何托管字体服务加载字体,也绝不使用商业字体。
- 不得添加图片文件、精灵图集、下载的游戏美术、SVG 场景文件或 3D 模型;世界中的每个视觉元素都用 Canvas 2D 调用绘制,DOM 中的每个装饰都用 CSS 实现。
- 吉祥物不得与任何现有公司、应用、AI 或游戏吉祥物或角色相似。只能依据本提示词中的尺寸数据构建它:紫罗兰色软糖状身体、奶油色面部斑块、万寿菊色围巾和三簇头顶。不得把它变成动物(鸟、猫头鹰、狐狸、猫、熊、企鹅)、机器人、幽灵、带品牌感面孔的团块、对话气泡或星星,也不得给它耳朵、喙、尾巴、触角或标志。
- 不得借用知名 farming、island-life 或 monster-collecting 游戏的外观:不得使用图块集、像素画、物品快捷栏、爱心、金币、对话框或任务标记,也不得重新排列地图以让人联想到其中任何一款。
- 不得使用真实笔记应用名称、标志、截图、功能名称、套餐名称或口号。[BRAND]、其套餐、价格、更新日志、客户引语和地址均为虚构;在为其他变量值重写时保持其虚构。
- 无后端:无服务器代码、API 路由、数据库、认证、分析或第三方 API。newsletter 表单和套餐按钮绝不发送、存储或下载任何内容;它们只在浏览器中校验并仅显示演示确认。
- 无游戏引擎,无物理、寻路或补间库,无 UI 框架,无 CSS 框架;不得使用受限 UI 库的源代码。技术栈为 Vite、vanilla TypeScript、Canvas 2D 和 vanilla CSS,Lucide 和 Fontsource 是仅有的运行时包。
- 无 CDN script 或 link 标签;字体、图标和脚本全部本地打包。
- 生产构建必须压缩,无 source map,且不得将 src/ 文件复制到 dist/;保持 vite base 为 './' 以使资源路径为相对路径,并保持 dist/ 在 20 MB 以下。
- 内部链接始终指向文件名(./index.html、./classic.html、./classic.html#pricing)或同一页面上的哈希,绝不指向裸目录。
- 必须在 1440 x 900 和 390 x 844 下正常工作,零控制台错误,无水平滚动,且 index.html 无页面滚动。在手机上,点击必须让吉祥物行走,相机必须跟随它,每栋建筑必须可通过点击和通过 dock 到达,且画布分辨率必须降级而不是掉帧。
- 严格按照 Design 中所述尊重 prefers-reduced-motion:固定环境姿态、白天保持、短步移动、仅淡入面板。标签页隐藏时暂停循环。
- 不得让世界成为到达内容的唯一方式:菜单或 dock 必须无需行走即可打开每个区块,面板必须焦点陷阱并在按 Escape 时关闭,且 classic.html 必须包含面板中出现的每一个字。
- 不得对本提示词未列出的任何内容做动画,也不得对界面动效使用线性缓动。无自动播放声音,且完全无音频。
- 不得陈述或暗示是哪个 AI 模型或工具构建了该网站,也不得复制任何现有落地页或社交帖子的措辞。
- 除 classic 页面页脚中的可选 [CREDIT] 链接和岛上小型桌面 chip 外,不得向网站添加任何署名、徽章或“built with”字样。
- 将所有字符串和数字保留在 src/content.ts 中,并从它渲染两个页面。当变量变化时,为新 product 重写所有文案、套餐、更新日志条目和指南,而不是留下笔记应用文本;岛屿、建筑、吉祥物设计和动效保持如指定。
---
Inspired by Click-to-walk mascot world drawn entirely in code, rebuilt as a product landing page by @Chetaslua — https://promtime.net/c/en/post/claude-fable-5-2-draws-its-sprites-in-raw-javascript
— Prompt by VibeFather · https://vibefather.ai/t/interactive-mascot-world-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro。
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Interactive Mascot World Landing Page"
colors:
grass: "#7BD389"
sea: "#3DA5D9"
sand: "#FFE5A8"
coral: "#FF6F59"
ink_navy: "#1B2559"
cream: "#FFF6E3"
iris_violet: "#6C4BD8"
marigold: "#FFC233"
night_set: "#2B2F77"
typography:
display_hero_headline_panel_titles_plan_names_prices_building_sign_labels_on_the_canvas_always_with_soft_100_and_wonk_1_so_the_curves_stay_round_and_a_little_eccentric_headline_weight_800_panel_titles_700_prices_700_with_tabular_numbers: { family: "Fraunces Variable", weights: [600, 700, 800] }
text_and_interface_pitch_body_copy_buttons_menu_labels_inputs_body_17_px_1_55_at_weight_500_buttons_and_labels_700_eyebrows_800_uppercase_at_12_px_with_0_08em_tracking_the_hero_pitch_is_20_px_at_weight_700: { family: "Nunito Variable", weights: [500, 700, 800] }
spacing: "8 px grid. index.html is a single fixed screen (100dvh, no page scroll): the canvas fills it and the DOM floats above. Floating header: 56 px tall cream pill, 16 px from the top and sides, max width 1180 px, centered. Panels: 32 px padding on desktop, 20 px on phones, 24 px between blocks, 12 px between list rows. classic.html: 1080 px content column, 24 px gutters, 96 px between sections on desktop and 64 px on phones. Minimum touch target 44 x 44 px."
radius: "Rounded everywhere. Panels 28 px, cards and plan tiles 20 px, inputs 14 px, buttons and chips fully round (999 px). Buttons have a 2 px Ink outline and a hard 0 4 px 0 Ink shadow that collapses to 0 1 px on press, like a pressed toy button. In the canvas, building corners are rounded by 8 world units and every outline uses round joins and caps."
---
# Interactive Mascot World Landing Page — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Grass** `#7BD389` — The island's grass, hard-coded exactly. Fills most of the land in the hero. Deeper shade #4FB36B for tree crowns, grass tufts and the shaded rim of the plateau.
- **Sea** `#3DA5D9` — The whole page background and the water around the island, hard-coded exactly. Deeper shade #2C8BC4 for wave strokes and the ferry's wake shadow; foam and shimmer strokes are #FFFFFF at 70% alpha.
- **Sand** `#FFE5A8` — Beach ring, the west spit, the paths and the plaza, hard-coded exactly. Pebble dots and plank shading use #F2CE86.
- **Coral** `#FF6F59` — Every roof, the lighthouse bands, the stall awning stripes, the beach umbrella, the mascot's cheeks, the target marker and the primary button background (with Ink text on it), hard-coded exactly.
- **Ink navy** `#1B2559` — All text, all outlines in the world (2.5 world units, round joins, 90% alpha), icons, scrim behind panels at 40% alpha. Hero text uses Ink by day.
- **Cream** `#FFF6E3` — Panel and header surfaces, building walls, the mascot's face patch, smoke puffs, hero text at night. Slightly darker cream #F6E8C9 for dividers and input borders.
- **Iris violet** `#6C4BD8` — The mascot's body and nothing else in the world, so it is always the easiest thing to find. Lighter violet #8E73F0 for its highlight and tuft tips. In the DOM it is used for links and focused plan cards.
- **Marigold** `#FFC233` — The mascot's scarf and feet, doors, the workshop cog, window light, doorstep glow on hover, the 3 px focus ring on every focusable element, and the 'Most picked' tag.
- **Night set** `#2B2F77` — At full night the sea becomes indigo #2B2F77, grass #3E8C78, sand #BFAE8C, roofs #C4506B, cream walls #B9B6D6, and windows glow #FFD76A. These are only reached by cross-fading from the exact day colors; at full day nothing tints the four storybook colors.
## Typography
- **Display: hero headline, panel titles, plan names, prices, building sign labels on the canvas. Always with SOFT 100 and WONK 1 so the curves stay round and a little eccentric. Headline weight 800, panel titles 700, prices 700 with tabular numbers.** — Fraunces Variable (OFL), weights 600/700/800. Self-host the font files.
- **Text and interface: pitch, body copy, buttons, menu, labels, inputs. Body 17 px / 1.55 at weight 500, buttons and labels 700, eyebrows 800 uppercase at 12 px with 0.08em tracking. The hero pitch is 20 px at weight 700.** — Nunito Variable (OFL), weights 500/700/800. Self-host the font files.
## Spacing & shape
- Spacing: 8 px grid. index.html is a single fixed screen (100dvh, no page scroll): the canvas fills it and the DOM floats above. Floating header: 56 px tall cream pill, 16 px from the top and sides, max width 1180 px, centered. Panels: 32 px padding on desktop, 20 px on phones, 24 px between blocks, 12 px between list rows. classic.html: 1080 px content column, 24 px gutters, 96 px between sections on desktop and 64 px on phones. Minimum touch target 44 x 44 px.
- Radius: Rounded everywhere. Panels 28 px, cards and plan tiles 20 px, inputs 14 px, buttons and chips fully round (999 px). Buttons have a 2 px Ink outline and a hard 0 4 px 0 Ink shadow that collapses to 0 1 px on press, like a pressed toy button. In the canvas, building corners are rounded by 8 world units and every outline uses round joins and caps.
## Motion
- Three easings are used everywhere and named in code: OUT = cubic-bezier(0.22, 1, 0.36, 1) for things arriving, BACK = cubic-bezier(0.34, 1.56, 0.64, 1) for small pops, SINE = ease-in-out sine for anything that loops. Nothing moves linearly except the ferry at cruising speed and the gulls along their loops.
- Every motion tells the visitor something: steps show where the mascot is going, squash shows weight, the marker shows the destination, a glowing doorstep shows what is clickable, and ambient loops show the world is alive. Do not add spinning, floating or pulsing to anything not listed in this prompt.
- Mascot walk: 160 world units per second. One stride lasts 0.40 s and has two footfalls 0.20 s apart. Starting: a 90 ms anticipation squash (scale 1.10 wide, 0.90 tall), then speed eases in over 0.18 s. Each step: the body rises 5 units along |sin| and stretches to 0.96 wide by 1.05 tall at the top, then squashes to 1.07 wide by 0.93 tall on the footfall; scale always pivots at the feet and keeps volume. The body leans 4 degrees into the direction of travel, the lifted foot rises 7 units and reaches 9 units forward, arms swing 26 degrees each way opposite the feet. Stopping: speed eases out over the last 36 units, then a settle of 1.10/0.90 to 0.97/1.04 to 1/1 over 320 ms.
- Follow-through: the scarf tails and the three head tufts hang from damped springs (stiffness 90, damping 9). They trail behind while walking, flap at about 4 Hz, and swing past center and back when the mascot stops. Turning left or right slides the face patch across the body over 120 ms with OUT instead of flipping instantly.
- Footstep dust: on every footfall, two small puffs appear at the foot. Each is a circle that grows from radius 3 to 7 units, drifts 12 units backward and 6 up, and fades from 80% to 0 over 420 ms with OUT. Puffs are Sand colored on grass and #F2CE86 on sand. Never more than 24 alive.
- Blink: eyes close in 70 ms, stay shut 50 ms, open in 100 ms. A blink happens every 2.6 to 5.4 s at random; one in five is a double blink with 140 ms between. Blinking never stops, including while walking and behind an open panel.
- Idle: breathing loops every 2.8 s with SINE (1.03 tall, 0.985 wide at the top of the breath). After 4 s without input, one fidget plays every 4 to 7 s, chosen at random and never the same twice in a row: look around (eyes slide 0.04u left, hold 500 ms, right, hold, back; 1.6 s), small hop (crouch 90 ms, jump 14 units, land with the settle; 450 ms), wave (the arm nearer the viewer lifts to 110 degrees and waves three times; 1.2 s). After 30 s idle it dozes: eyes become two short downward arcs, breathing slows to 4 s, and a small Ink 'z' floats up 24 units and fades every 1.8 s. Any input wakes it with a 200 ms BACK pop.
- On load, after the first frame: at 0.8 s the mascot plays the wave once, at 1.2 s the hint chip rises 12 px and fades in over 300 ms with OUT. The hero copy and header never fade in; they are present in the first frame.
- Target marker: a Coral ring (radius 14 units, 3 unit stroke) with a small dot in the center appears where the mascot is heading. It pops from 0.4 to 1 scale in 220 ms with BACK, then breathes between 1 and 1.08 every 900 ms with SINE, and fades out in 180 ms on arrival.
- Buildings: hovering a building or focusing its menu item lifts it 4 units with OUT in 160 ms, lights a Marigold ellipse ring on its doorstep and bounces its sign 6 units with BACK in 300 ms. Entering a door: the mascot hops once (250 ms), then shrinks to 0.6 and rises 14 units into the doorway while fading out over 260 ms. Leaving: it pops out on the doorstep from 0.6 to 1 with BACK in 300 ms.
- Panels: the scrim fades in over 200 ms. On desktop the panel rises 16 px and scales from 0.96 to 1 over 280 ms with OUT; on phones it is a bottom sheet that slides up from below over 320 ms with OUT. Rows inside rise 12 px and fade in over 240 ms, staggered 40 ms, at most 8 rows staggered. Closing takes 180 ms with ease-in.
- Ambient life runs on independent timers (details in the Ambient life section): shore foam every 3.6 s, sea shimmer on 5 to 8 s loops, ferry about every 2 minutes, gulls on 26, 34 and 41 s loops, laundry swaying every 1.8 s with gusts every 9 to 14 s, chimney puffs every 0.9 s, tree crowns swaying every 3 to 4 s, and a day-night cycle of 160 s.
- Reduced motion (prefers-reduced-motion: reduce): ambient life is drawn once in a pleasant fixed pose and not animated (ferry moored at the jetty, three smoke puffs, gulls in place, laundry hanging), the day-night cycle stays at day unless the visitor presses the sun and moon button (then it switches with a 200 ms fade), there is no dust, squash, lean or camera easing, and the mascot moves along its path in short steps of 40 units every 120 ms with its feet alternating. Panels and the hint chip only fade (120 ms). Blinking stays.
## Imagery
No image files anywhere. The world is a flat storybook illustration made of rounded shapes with soft Ink outlines, drawn with Canvas 2D: ground seen from above at a slight tilt, buildings and trees drawn front-on standing on it, objects sorted by their base y so the mascot can pass in front of and behind things. Fills are flat, with at most one lighter highlight shape and one darker shade shape per object; no gradients except light glows at night, no textures, no pixel art, no drop shadows other than a soft Ink ellipse at 16% alpha under each standing object. The DOM borrows the same language: cream surfaces, thick Ink outlines, hard toy-like button shadows, a scalloped Coral awning across the top of each panel. Icons are Lucide line icons at 2 px stroke in Ink.
## Tone
Warm, brief and a little dry. Sounds like a small team that ships: concrete numbers, short sentences, light island wordplay in headings only, never baby talk and never hype.
---
Inspired by Click-to-walk mascot world drawn entirely in code, rebuilt as a product landing page by @Chetaslua — https://promtime.net/c/en/post/claude-fable-5-2-draws-its-sprites-in-raw-javascript
— Prompt by VibeFather · https://vibefather.ai/t/interactive-mascot-world-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
在 Claude Code、Codex 或 Cursor 等 AI 编程代理中使用互动吉祥物世界落地页提示词。提示词要求在一个 Vite 加原生 TypeScript 项目里做出 Canvas 2D 小岛、一个会走到点击和轻触位置的圆形吉祥物,以及五栋建筑,分别以面板形式打开功能、定价、更新日志、文档和邮件订阅版块。你设定品牌、产品、受众、吉祥物名称、标题和主按钮,然后在一个内容文件里重写文案。
互动吉祥物世界落地页用五栋建筑作为版块:工坊打开功能,市集摊位打开定价,灯塔打开更新日志,图书馆打开文档,邮局打开邮件订阅。把吉祥物走到门口,该版块就会以小岛之上的可阅读面板打开;一个紧凑菜单可以直接跳到这五个版块中的任何一个,方便不想走动的访客。
可以。互动吉祥物世界落地页包含一个紧凑菜单,可以直接跳到任何版块;模板还附带第二个页面 classic.html,以普通滚动网站的形式呈现相同内容,服务键盘用户、屏幕阅读器和搜索引擎。面板和经典页面都来自同一个内容文件,所以无论访客在哪里阅读,价格、功能和指南都保持一致。
先改五个变量:品牌、产品、受众、吉祥物名称和标题,再加上主按钮文字。然后在单一内容文件里重写功能、套餐、更新日志条目、指南和邮件订阅文案,使其匹配你的产品。小岛、吉祥物外观和动效保持原样,所以页面保留自己的性格,而文字贴合你要发布的内容。默认文案描述的是一个叫 Skerry 的笔记应用。
互动吉祥物世界落地页是免费模板。它的提示词和 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途。商业项目、客户项目和演示源码需要 Pro。该模板构建为静态文件,没有后端,也没有外部 API,所以你可以把产物托管在任何静态托管服务上。
复制本页的提示词,或者运行 npx vibefather add interactive-mascot-world-landing-page,把 变量 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
演示由 Claude Fable 5.2 在 Claude Code 里完成。每次都用公开的提示词原样生成,没有额外补充。
互动吉祥物世界落地页是一个 2 页的网站,用 纯 HTML 构建。提示词固定了技术栈,不同 AI 工具做出来的都是同一类项目,成品是静态网站,部署到哪里都可以。
互动吉祥物世界落地页的提示词和 DESIGN.md 按 CC BY-NC 4.0 授权,个人、非商业项目免费使用。客户项目和商业用途需要 VibeFather Pro,Pro 还包含在线演示的源码。
能。每个互动吉祥物世界落地页的演示上线前都在手机和电脑尺寸上检查过布局、字号和点击区域。可以直接用手机打开在线演示,或者在本页把预览切到手机视图看看。