launchframe 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/.amazonq/cli-agents/clone-website.json +1 -1
- package/template/.amazonq/rules/project.md +60 -0
- package/template/.augment/commands/clone-website.md +32 -2
- package/template/.claude/skills/clone-website/SKILL.md +32 -2
- package/template/.claude/skills/marketing-landing-production/SKILL.md +36 -0
- package/template/.clinerules +60 -0
- package/template/.codex/skills/clone-website/SKILL.md +32 -2
- package/template/.continue/commands/clone-website.md +32 -2
- package/template/.continue/rules/project.md +60 -0
- package/template/.cursor/commands/clone-website.md +32 -2
- package/template/.cursor/commands/marketing-landing-production.md +31 -0
- package/template/.cursor/rules/project.mdc +4 -1
- package/template/.gemini/commands/clone-website.toml +32 -2
- package/template/.github/copilot-instructions.md +60 -0
- package/template/.github/skills/clone-website/SKILL.md +32 -2
- package/template/.opencode/commands/clone-website.md +32 -2
- package/template/.windsurf/workflows/clone-website.md +32 -2
- package/template/AGENTS.md +48 -0
- package/template/docs/research/INSPECTION_GUIDE.md +12 -0
- package/template/src/app/globals.css +93 -1
- package/template/src/app/layout.tsx +3 -2
- package/template/src/app/page.tsx +3 -7
|
@@ -53,7 +53,9 @@ These are the truths that separate a successful clone from a "close enough" mess
|
|
|
53
53
|
|
|
54
54
|
**Raster & video are first-class.** Before you treat the page as “mostly typography,” run a dedicated **media inventory** (see `@docs/research/INSPECTION_GUIDE.md` Priority section): every `<img>`, `<picture>` / `<source>`, `<video>` (+ poster), and non-trivial `background-image`. Download to `public/images/` and `public/videos/` and write `docs/research/MEDIA_MANIFEST.md` (URL → local path, or `BLOCKED` + reason). Component specs MUST list concrete `public/...` paths; if you use a placeholder, say why in `docs/research/EXTRACTION_LIMITATIONS.md`. Never silently drop a hero layer, reel, or og visual.
|
|
55
55
|
|
|
56
|
-
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup
|
|
56
|
+
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup`, **`useReducedMotion`**) for: scroll-triggered reveals, staggered children, layout transitions, and gestures — anything beyond a trivial one-property CSS `transition`. In each spec file, add a **Motion** subsection: trigger, duration, easing, delay/stagger, **tier A–E coverage** (see `AGENTS.md` production polish table), reduced-motion fallback, and **implementation: CSS | framer-motion**. Prefer CSS only when it matches the target exactly without JS.
|
|
57
|
+
|
|
58
|
+
**Illustration & pixel art are production inputs.** Where the target (or post-rebrand layout) lacks convincing visuals, specs MUST still allocate **SVG illustration layers** — hero backdrop cluster, section separators, feature-card scenes tied to copy — using React SVG components (`currentColor` + theme vars). Pixel-art motifs require an explicit palette table in the spec. Do not ship ambiguous gray placeholders when `AGENTS.md` calls for production density on authored landings.
|
|
57
59
|
|
|
58
60
|
### 1. Completeness Beats Speed
|
|
59
61
|
|
|
@@ -367,10 +369,17 @@ For each section (or sub-component, if you're breaking it up), create a spec fil
|
|
|
367
369
|
- **<Element>:** <property>: <before> → <after>, transition: <value>
|
|
368
370
|
|
|
369
371
|
## Motion (Framer Motion vs CSS)
|
|
372
|
+
- **Tiers A–E:** <which tiers apply — load stagger, scroll reveal, ambient loop, interaction lifts, decorative parallax — list triggers>
|
|
373
|
+
- **Reduced motion:** <what disables or simplifies when user prefers reduced motion>
|
|
370
374
|
- **Entrance / scroll reveals:** <e.g. fade+translateY, staggerChildren — specify duration, easing, delay, viewport `once`/`margin`>
|
|
371
375
|
- **Library:** <`framer-motion` | CSS-only — justify if CSS-only>
|
|
372
376
|
- **Keyframes / springs:** <if any — match target curve>
|
|
373
377
|
|
|
378
|
+
## Illustration & pixel art *(production uplift)*
|
|
379
|
+
- **SVG components:** <named exports, paths using currentColor vs fixed fills>
|
|
380
|
+
- **Pixel motif:** <palette hex table, grid, scaling — or N/A>
|
|
381
|
+
- **Motif thread:** <how illustration echoes logo / OG / favicon>
|
|
382
|
+
|
|
374
383
|
## Per-State Content (if applicable)
|
|
375
384
|
|
|
376
385
|
### State: "Featured"
|
|
@@ -466,6 +475,26 @@ What you must NOT change in this pass:
|
|
|
466
475
|
|
|
467
476
|
After the rebrand pass, the codebase should look like the original site visually but read like the user's SaaS at a glance. Save a short `docs/research/REBRAND.md` summarizing the product name you chose, the headline rewrites, and any assets you swapped — so the user can audit what's clone-derived vs. authored.
|
|
468
477
|
|
|
478
|
+
## Phase 4.6: Production uplift *(sparse references / user asks for prod polish)*
|
|
479
|
+
|
|
480
|
+
Run this pass when **any** of the following is true:
|
|
481
|
+
|
|
482
|
+
- The cloned reference is mostly typography with weak imagery (internal demos, minimalist SaaS shells).
|
|
483
|
+
- The user asks for **more motion**, **SVG / illustration**, **pixel art**, **brandability**, or **production-ready** marketing polish.
|
|
484
|
+
- Visual QA feels “correct but dead” — layout matches but nothing moves and cards use unrelated placeholders.
|
|
485
|
+
|
|
486
|
+
**Do not contradict pixel-perfect emulation when cloning a rich reference** — this phase *adds* density only where the brief allows uplift or the reference was inherently flat.
|
|
487
|
+
|
|
488
|
+
Checklist (mirror `AGENTS.md`):
|
|
489
|
+
|
|
490
|
+
1. **Imagery** — Add layered hero treatment + purposeful SVG scenes per feature (swap nonsense placeholders). Prefer named components under `src/components/marketing/art/`.
|
|
491
|
+
2. **Motion tiers** — Implement at minimum **A + B + one of C/D**, optionally **E**: staggered hero load, `whileInView` sections + card stagger, looping ambient (marquee / caret / SVG dash loop), hover lifts / nav scroll shrink, optional light parallax. Gate loops with **`useReducedMotion()`**.
|
|
492
|
+
3. **Brand** — Establish motif thread + accent tokens in `:root`; refresh favicon / OG sketch to match.
|
|
493
|
+
|
|
494
|
+
Document deltas in `docs/research/PRODUCTION_UPLIFT.md` (what SVGs/motion/accent decisions shipped).
|
|
495
|
+
|
|
496
|
+
Invoke `.claude/skills/marketing-landing-production/SKILL.md` as a focused playbook for this pass.
|
|
497
|
+
|
|
469
498
|
## Phase 5: Visual QA Diff
|
|
470
499
|
|
|
471
500
|
After assembly, do NOT declare the clone complete. Take side-by-side comparison screenshots:
|
|
@@ -494,7 +523,8 @@ Before dispatching ANY builder agent, verify you can check every box. If you can
|
|
|
494
523
|
- [ ] For hover states: before/after values and transition timing are recorded
|
|
495
524
|
- [ ] All images in the section are identified (including overlays and layered compositions)
|
|
496
525
|
- [ ] Any `<video>` (and poster), Lottie, or canvas-driven hero is identified — not approximated as a static div
|
|
497
|
-
- [ ] **Motion** subsection filled: CSS vs **framer-motion**, durations, easings, stagger, scroll triggers
|
|
526
|
+
- [ ] **Motion** subsection filled: tiers **A–E** coverage (see `AGENTS.md`), CSS vs **framer-motion**, durations, easings, stagger, scroll triggers, **reduced-motion** fallback
|
|
527
|
+
- [ ] **Illustration** subsection filled when uplift applies: SVG components / palette / motif thread — or explicit **N/A** with justification only on strict clone parity jobs
|
|
498
528
|
- [ ] Responsive behavior is documented for at least desktop and mobile
|
|
499
529
|
- [ ] Text content is verbatim from the site, not paraphrased
|
|
500
530
|
- [ ] The builder prompt is under ~150 lines of spec; if over, the section needs to be split
|
|
@@ -55,7 +55,9 @@ These are the truths that separate a successful clone from a "close enough" mess
|
|
|
55
55
|
|
|
56
56
|
**Raster & video are first-class.** Before you treat the page as “mostly typography,” run a dedicated **media inventory** (see `@docs/research/INSPECTION_GUIDE.md` Priority section): every `<img>`, `<picture>` / `<source>`, `<video>` (+ poster), and non-trivial `background-image`. Download to `public/images/` and `public/videos/` and write `docs/research/MEDIA_MANIFEST.md` (URL → local path, or `BLOCKED` + reason). Component specs MUST list concrete `public/...` paths; if you use a placeholder, say why in `docs/research/EXTRACTION_LIMITATIONS.md`. Never silently drop a hero layer, reel, or og visual.
|
|
57
57
|
|
|
58
|
-
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup
|
|
58
|
+
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup`, **`useReducedMotion`**) for: scroll-triggered reveals, staggered children, layout transitions, and gestures — anything beyond a trivial one-property CSS `transition`. In each spec file, add a **Motion** subsection: trigger, duration, easing, delay/stagger, **tier A–E coverage** (see `AGENTS.md` production polish table), reduced-motion fallback, and **implementation: CSS | framer-motion**. Prefer CSS only when it matches the target exactly without JS.
|
|
59
|
+
|
|
60
|
+
**Illustration & pixel art are production inputs.** Where the target (or post-rebrand layout) lacks convincing visuals, specs MUST still allocate **SVG illustration layers** — hero backdrop cluster, section separators, feature-card scenes tied to copy — using React SVG components (`currentColor` + theme vars). Pixel-art motifs require an explicit palette table in the spec. Do not ship ambiguous gray placeholders when `AGENTS.md` calls for production density on authored landings.
|
|
59
61
|
|
|
60
62
|
### 1. Completeness Beats Speed
|
|
61
63
|
|
|
@@ -369,10 +371,17 @@ For each section (or sub-component, if you're breaking it up), create a spec fil
|
|
|
369
371
|
- **<Element>:** <property>: <before> → <after>, transition: <value>
|
|
370
372
|
|
|
371
373
|
## Motion (Framer Motion vs CSS)
|
|
374
|
+
- **Tiers A–E:** <which tiers apply — load stagger, scroll reveal, ambient loop, interaction lifts, decorative parallax — list triggers>
|
|
375
|
+
- **Reduced motion:** <what disables or simplifies when user prefers reduced motion>
|
|
372
376
|
- **Entrance / scroll reveals:** <e.g. fade+translateY, staggerChildren — specify duration, easing, delay, viewport `once`/`margin`>
|
|
373
377
|
- **Library:** <`framer-motion` | CSS-only — justify if CSS-only>
|
|
374
378
|
- **Keyframes / springs:** <if any — match target curve>
|
|
375
379
|
|
|
380
|
+
## Illustration & pixel art *(production uplift)*
|
|
381
|
+
- **SVG components:** <named exports, paths using currentColor vs fixed fills>
|
|
382
|
+
- **Pixel motif:** <palette hex table, grid, scaling — or N/A>
|
|
383
|
+
- **Motif thread:** <how illustration echoes logo / OG / favicon>
|
|
384
|
+
|
|
376
385
|
## Per-State Content (if applicable)
|
|
377
386
|
|
|
378
387
|
### State: "Featured"
|
|
@@ -468,6 +477,26 @@ What you must NOT change in this pass:
|
|
|
468
477
|
|
|
469
478
|
After the rebrand pass, the codebase should look like the original site visually but read like the user's SaaS at a glance. Save a short `docs/research/REBRAND.md` summarizing the product name you chose, the headline rewrites, and any assets you swapped — so the user can audit what's clone-derived vs. authored.
|
|
470
479
|
|
|
480
|
+
## Phase 4.6: Production uplift *(sparse references / user asks for prod polish)*
|
|
481
|
+
|
|
482
|
+
Run this pass when **any** of the following is true:
|
|
483
|
+
|
|
484
|
+
- The cloned reference is mostly typography with weak imagery (internal demos, minimalist SaaS shells).
|
|
485
|
+
- The user asks for **more motion**, **SVG / illustration**, **pixel art**, **brandability**, or **production-ready** marketing polish.
|
|
486
|
+
- Visual QA feels “correct but dead” — layout matches but nothing moves and cards use unrelated placeholders.
|
|
487
|
+
|
|
488
|
+
**Do not contradict pixel-perfect emulation when cloning a rich reference** — this phase *adds* density only where the brief allows uplift or the reference was inherently flat.
|
|
489
|
+
|
|
490
|
+
Checklist (mirror `AGENTS.md`):
|
|
491
|
+
|
|
492
|
+
1. **Imagery** — Add layered hero treatment + purposeful SVG scenes per feature (swap nonsense placeholders). Prefer named components under `src/components/marketing/art/`.
|
|
493
|
+
2. **Motion tiers** — Implement at minimum **A + B + one of C/D**, optionally **E**: staggered hero load, `whileInView` sections + card stagger, looping ambient (marquee / caret / SVG dash loop), hover lifts / nav scroll shrink, optional light parallax. Gate loops with **`useReducedMotion()`**.
|
|
494
|
+
3. **Brand** — Establish motif thread + accent tokens in `:root`; refresh favicon / OG sketch to match.
|
|
495
|
+
|
|
496
|
+
Document deltas in `docs/research/PRODUCTION_UPLIFT.md` (what SVGs/motion/accent decisions shipped).
|
|
497
|
+
|
|
498
|
+
Invoke `.claude/skills/marketing-landing-production/SKILL.md` as a focused playbook for this pass.
|
|
499
|
+
|
|
471
500
|
## Phase 5: Visual QA Diff
|
|
472
501
|
|
|
473
502
|
After assembly, do NOT declare the clone complete. Take side-by-side comparison screenshots:
|
|
@@ -496,7 +525,8 @@ Before dispatching ANY builder agent, verify you can check every box. If you can
|
|
|
496
525
|
- [ ] For hover states: before/after values and transition timing are recorded
|
|
497
526
|
- [ ] All images in the section are identified (including overlays and layered compositions)
|
|
498
527
|
- [ ] Any `<video>` (and poster), Lottie, or canvas-driven hero is identified — not approximated as a static div
|
|
499
|
-
- [ ] **Motion** subsection filled: CSS vs **framer-motion**, durations, easings, stagger, scroll triggers
|
|
528
|
+
- [ ] **Motion** subsection filled: tiers **A–E** coverage (see `AGENTS.md`), CSS vs **framer-motion**, durations, easings, stagger, scroll triggers, **reduced-motion** fallback
|
|
529
|
+
- [ ] **Illustration** subsection filled when uplift applies: SVG components / palette / motif thread — or explicit **N/A** with justification only on strict clone parity jobs
|
|
500
530
|
- [ ] Responsive behavior is documented for at least desktop and mobile
|
|
501
531
|
- [ ] Text content is verbatim from the site, not paraphrased
|
|
502
532
|
- [ ] The builder prompt is under ~150 lines of spec; if over, the section needs to be split
|
|
@@ -42,6 +42,51 @@ Treat these as **first-class deliverables**, not polish at the end.
|
|
|
42
42
|
|
|
43
43
|
1. **Raster & video** — Early in recon, inventory every `<img>`, `<picture>` / `<source>`, `<video>`, poster image, and meaningful `background-image` URL. Download into `public/` and reference **local paths** in specs and components. Hero bands and marketing sections often fail visually when a single layer is skipped.
|
|
44
44
|
2. **Motion** — Match the target’s feel: easing, duration, stagger, scroll triggers. Prefer **`motion` from `framer-motion`** for entrance sequences, viewport-driven animations, shared-layout-style transitions, and anything beyond a one-off CSS transition. Note in each component spec whether behavior is **CSS-only** vs **Framer Motion**.
|
|
45
|
+
3. **Illustration & brand marks** — Inline **SVG React components** (not only Lucide) for motifs that repeat across sections: logo glyph variants, dividers, grain/noise overlays, hero “scene” shapes, feature-card mini-compositions. Prefer **`currentColor`** + CSS variables so SVGs inherit theme tokens. For **pixel art**, keep a tight palette (4–8 fills), consistent pixel grid logic, and use `style={{ imageRendering: "pixelated" }}` on upscaled raster OR build pixel SVG paths intentionally — never blurry upscale.
|
|
46
|
+
|
|
47
|
+
## Production polish for marketing landings *(imagery + motion density + brandability)*
|
|
48
|
+
|
|
49
|
+
Use this whenever the page is **authored or minimalist** (internal templates, rebranded clones that still feel flat, or targets that are mostly typography). “Looks OK” is not ship-ready — **production landings** stack multiple visual layers, choreographed motion, and recognizable brand cues.
|
|
50
|
+
|
|
51
|
+
### Imagery density (every fold earns a visual idea)
|
|
52
|
+
|
|
53
|
+
- **Hero** — Never headline-only on white: add at least two of — soft gradient mesh / radial spotlight, subtle SVG grid or notebook lines, floating glyph cluster, ambient particle dots, masked photo or device frame with **real `public/` raster**, thin geometric frame that echoes the logo.
|
|
54
|
+
- **Between sections** — Optional SVG waves, angled cuts, or dashed “tape” strips so rhythm feels intentional.
|
|
55
|
+
- **Feature rows** — Replace generic placeholders (random shirts, blank boxes) with **purpose-built SVG scenes** tied to copy (capture → waveform + mic; workspace → windows + avatars; publish → export arrows + formats). Each card gets **foreground illustration + supporting UI chrome**, not one flat rectangle.
|
|
56
|
+
- **Social proof** — Logo strip may use grayscale marks; add **slow infinite marquee** or gentle opacity drift — motion sells “living product.”
|
|
57
|
+
|
|
58
|
+
### Motion choreography *(ship several layers; respect `prefers-reduced-motion`)*
|
|
59
|
+
|
|
60
|
+
Default minimum bar for authored landings — implement with **`framer-motion`** unless matching CSS-only parity:
|
|
61
|
+
|
|
62
|
+
| Tier | What users feel | Typical implementation |
|
|
63
|
+
|------|-----------------|-------------------------|
|
|
64
|
+
| **A — Page load** | Hero headline, subcopy, CTAs, and hero art **stagger in** (opacity + `y`, or blur-in for type) | Parent `variants` + `staggerChildren`; durations 0.35–0.7s, ease `[0.22, 1, 0.36, 1]` or springs |
|
|
65
|
+
| **B — Scroll** | Sections **ease up / fade** on first viewport entry; grids **stagger cards** | `whileInView` + `viewport.once`; `margin: "-80px"` tweak so reveals feel early |
|
|
66
|
+
| **C — Looping ambient** | Logo strip marquee; gradient drift; subtle SVG stroke dashoffset loop; “thinking…” **typing caret** | CSS `@keyframes` or Framer `animate` repeat; keep amplitude **low** |
|
|
67
|
+
| **D — Interaction** | Buttons scale/shine on hover; cards **lift** (`translateY`, shadow); nav **backdrop blur / height** past threshold | `whileHover`, `whileTap`; scroll listener or Framer scroll hooks for nav |
|
|
68
|
+
| **E — Decorative depth** | Pointer parallax on hero cluster (2–4 layers at different strengths) OR scroll-linked `useTransform` | Small rotate/translate ranges (≤ 8px / ≤ 2deg) |
|
|
69
|
+
|
|
70
|
+
Always gate looping motion: **`useReducedMotion()`** from Framer Motion — swap loops for static frames and shorten entrances.
|
|
71
|
+
|
|
72
|
+
### Brandability checklist *(distinctive, not generic SaaS gray)*
|
|
73
|
+
|
|
74
|
+
- **Motif thread** — One recurring visual hook (pen stroke, folded page corner, hub spark, pixel creature) reused in hero, favicon, OG image sketch, and one feature illustration.
|
|
75
|
+
- **Accent discipline** — Define **primary + secondary accent** in `:root` (even if mostly monochrome). Use accents on CTAs, SVG highlights, focus rings — not rainbow scatter.
|
|
76
|
+
- **Wordmark lockup** — SVG glyph + tracked type; provide **icon-only** variant for favicon / meta.
|
|
77
|
+
- **OG & SEO assets** — Generate **`public/seo/og.png`** (or route og image) that includes motif + product name — not a bare screenshot.
|
|
78
|
+
|
|
79
|
+
### Where artifacts live
|
|
80
|
+
|
|
81
|
+
- **Raster/video** — `public/images/`, `public/videos/` (see `MEDIA_MANIFEST.md`).
|
|
82
|
+
- **SVG React illustrations** — Prefer `src/components/marketing/art/` or co-located `*-scene.tsx` modules; export named components (`HeroBackdrop`, `FeatureCaptureIllustration`).
|
|
83
|
+
- **Pixel art** — Same folder pattern; document palette in file header comment.
|
|
84
|
+
|
|
85
|
+
### Spec requirement *(hand-off quality)*
|
|
86
|
+
|
|
87
|
+
When writing `docs/research/components/*.spec.md`, add sections **Illustration** (layers, SVG components, raster paths) and expand **Motion** with tier **A–E** coverage and reduced-motion fallback. Builders should not invent motion ad hoc — the spec states durations and triggers.
|
|
88
|
+
|
|
89
|
+
Invoke **`marketing-landing-production`** (`.claude/skills/marketing-landing-production/SKILL.md`) when the user asks for **prod-ready polish**, **more motion**, **SVG/pixel art**, or **stronger branding** on an existing landing.
|
|
45
90
|
|
|
46
91
|
## Commands
|
|
47
92
|
- `npm run dev` — Start dev server
|
|
@@ -71,6 +116,7 @@ Prefer **Playwright** for repeatable extraction in-repo — do **not** rely on C
|
|
|
71
116
|
## Design Principles
|
|
72
117
|
- **Images & video fidelity** — prefer real downloaded assets; preserve aspect ratio, `object-fit`, layering, and poster frames. Rebrand pass may **swap** URLs for IP-safe alternates but must keep layout identical.
|
|
73
118
|
- **Motion fidelity** — timing and easing matter as much as color; use Framer Motion when CSS alone cannot match staggered or scroll-driven behavior.
|
|
119
|
+
- **Production landing density** — For authored/minimal pages, deliberately add **SVG illustration layers**, **pixel-art accents**, and **tiered motion (A–E)** per “Production polish” above; static monochrome layouts are incomplete unless the user explicitly wants extreme minimalism.
|
|
74
120
|
- **Pixel-perfect emulation** — match the target's spacing, colors, typography exactly
|
|
75
121
|
- **No personal aesthetic changes during emulation phase** — match 1:1 first, rebrand later
|
|
76
122
|
- **Real content during extraction** — use actual text and assets from the target site so the clone scaffolds against real shapes
|
|
@@ -83,6 +129,7 @@ src/
|
|
|
83
129
|
app/ # Next.js routes
|
|
84
130
|
components/ # React components
|
|
85
131
|
ui/ # shadcn/ui primitives
|
|
132
|
+
marketing/ # Landing sections + authored SVG scenes (`art/` recommended)
|
|
86
133
|
icons.tsx # Extracted SVG icons as React components
|
|
87
134
|
lib/
|
|
88
135
|
utils.ts # cn() utility (shadcn)
|
|
@@ -103,6 +150,7 @@ scripts/ # Asset download scripts
|
|
|
103
150
|
- When launching Claude Code agent teams, ALWAYS have each teammate work in their own worktree branch and merge everyone's work at the end, resolving any merge conflicts smartly since you are basically serving the orchestrator role and have full context to our goals, work given, work achieved, and desired outcomes.
|
|
104
151
|
- After editing `AGENTS.md`, run `bash scripts/sync-agent-rules.sh` to regenerate platform-specific instruction files.
|
|
105
152
|
- After editing `.claude/skills/clone-website/SKILL.md`, run `node scripts/sync-skills.mjs` to regenerate the skill for all platforms.
|
|
153
|
+
- After editing `.claude/skills/marketing-landing-production/SKILL.md`, update `.cursor/commands/marketing-landing-production.md` to match (Cursor command is maintained beside the Claude skill until sync-skills grows multi-skill support).
|
|
106
154
|
|
|
107
155
|
# Website Inspection Guide
|
|
108
156
|
|
|
@@ -129,6 +177,18 @@ If automation hits a bot wall, **do not pretend extraction succeeded** — captu
|
|
|
129
177
|
- [ ] **Gestures** — drag, pan, hover follow (often Framer Motion)
|
|
130
178
|
- [ ] **Implementation rule** — use **`framer-motion`** for anything beyond trivial single-property CSS `transition`. Record **duration, easing, delay, stagger**, and **trigger** (scroll, hover, tap) in specs.
|
|
131
179
|
|
|
180
|
+
### 3. Illustration, pixel art & brand motifs *(production landings)*
|
|
181
|
+
|
|
182
|
+
When the reference page is **sparse** (mostly type + gray boxes) or after a **rebrand** the UI still reads generic, treat illustration as required inventory — not optional garnish.
|
|
183
|
+
|
|
184
|
+
- [ ] **Inline SVG** — hero shapes, dividers, card mini-scenes; note `viewBox`, whether fills use **`currentColor`**, and which CSS variables apply
|
|
185
|
+
- [ ] **Pixel art / sprite accents** — intentional palette (list hex fills), grid size, scaling strategy (`imageRendering`), animation frames if any
|
|
186
|
+
- [ ] **Motif thread** — recurring stroke/icon creature/grid that should echo across hero, OG sketch, favicon
|
|
187
|
+
- [ ] **Accent tokens** — beyond monochrome: primary/secondary accent roles for SVG strokes, CTAs, focus (extract or **define** in `:root` for authored pages)
|
|
188
|
+
- [ ] **Motion tiers A–E** — page-load stagger, scroll reveals + staggerChildren, looping ambient (marquee/caret), hover lifts, decorative parallax — document each with **reduced-motion** fallback (`prefers-reduced-motion`)
|
|
189
|
+
|
|
190
|
+
See **`AGENTS.md` → Production polish for marketing landings** for tier definitions and folder conventions (`src/components/marketing/art/`).
|
|
191
|
+
|
|
132
192
|
---
|
|
133
193
|
|
|
134
194
|
## How to Reverse-Engineer Any Website
|
|
@@ -50,7 +50,9 @@ These are the truths that separate a successful clone from a "close enough" mess
|
|
|
50
50
|
|
|
51
51
|
**Raster & video are first-class.** Before you treat the page as “mostly typography,” run a dedicated **media inventory** (see `@docs/research/INSPECTION_GUIDE.md` Priority section): every `<img>`, `<picture>` / `<source>`, `<video>` (+ poster), and non-trivial `background-image`. Download to `public/images/` and `public/videos/` and write `docs/research/MEDIA_MANIFEST.md` (URL → local path, or `BLOCKED` + reason). Component specs MUST list concrete `public/...` paths; if you use a placeholder, say why in `docs/research/EXTRACTION_LIMITATIONS.md`. Never silently drop a hero layer, reel, or og visual.
|
|
52
52
|
|
|
53
|
-
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup
|
|
53
|
+
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup`, **`useReducedMotion`**) for: scroll-triggered reveals, staggered children, layout transitions, and gestures — anything beyond a trivial one-property CSS `transition`. In each spec file, add a **Motion** subsection: trigger, duration, easing, delay/stagger, **tier A–E coverage** (see `AGENTS.md` production polish table), reduced-motion fallback, and **implementation: CSS | framer-motion**. Prefer CSS only when it matches the target exactly without JS.
|
|
54
|
+
|
|
55
|
+
**Illustration & pixel art are production inputs.** Where the target (or post-rebrand layout) lacks convincing visuals, specs MUST still allocate **SVG illustration layers** — hero backdrop cluster, section separators, feature-card scenes tied to copy — using React SVG components (`currentColor` + theme vars). Pixel-art motifs require an explicit palette table in the spec. Do not ship ambiguous gray placeholders when `AGENTS.md` calls for production density on authored landings.
|
|
54
56
|
|
|
55
57
|
### 1. Completeness Beats Speed
|
|
56
58
|
|
|
@@ -364,10 +366,17 @@ For each section (or sub-component, if you're breaking it up), create a spec fil
|
|
|
364
366
|
- **<Element>:** <property>: <before> → <after>, transition: <value>
|
|
365
367
|
|
|
366
368
|
## Motion (Framer Motion vs CSS)
|
|
369
|
+
- **Tiers A–E:** <which tiers apply — load stagger, scroll reveal, ambient loop, interaction lifts, decorative parallax — list triggers>
|
|
370
|
+
- **Reduced motion:** <what disables or simplifies when user prefers reduced motion>
|
|
367
371
|
- **Entrance / scroll reveals:** <e.g. fade+translateY, staggerChildren — specify duration, easing, delay, viewport `once`/`margin`>
|
|
368
372
|
- **Library:** <`framer-motion` | CSS-only — justify if CSS-only>
|
|
369
373
|
- **Keyframes / springs:** <if any — match target curve>
|
|
370
374
|
|
|
375
|
+
## Illustration & pixel art *(production uplift)*
|
|
376
|
+
- **SVG components:** <named exports, paths using currentColor vs fixed fills>
|
|
377
|
+
- **Pixel motif:** <palette hex table, grid, scaling — or N/A>
|
|
378
|
+
- **Motif thread:** <how illustration echoes logo / OG / favicon>
|
|
379
|
+
|
|
371
380
|
## Per-State Content (if applicable)
|
|
372
381
|
|
|
373
382
|
### State: "Featured"
|
|
@@ -463,6 +472,26 @@ What you must NOT change in this pass:
|
|
|
463
472
|
|
|
464
473
|
After the rebrand pass, the codebase should look like the original site visually but read like the user's SaaS at a glance. Save a short `docs/research/REBRAND.md` summarizing the product name you chose, the headline rewrites, and any assets you swapped — so the user can audit what's clone-derived vs. authored.
|
|
465
474
|
|
|
475
|
+
## Phase 4.6: Production uplift *(sparse references / user asks for prod polish)*
|
|
476
|
+
|
|
477
|
+
Run this pass when **any** of the following is true:
|
|
478
|
+
|
|
479
|
+
- The cloned reference is mostly typography with weak imagery (internal demos, minimalist SaaS shells).
|
|
480
|
+
- The user asks for **more motion**, **SVG / illustration**, **pixel art**, **brandability**, or **production-ready** marketing polish.
|
|
481
|
+
- Visual QA feels “correct but dead” — layout matches but nothing moves and cards use unrelated placeholders.
|
|
482
|
+
|
|
483
|
+
**Do not contradict pixel-perfect emulation when cloning a rich reference** — this phase *adds* density only where the brief allows uplift or the reference was inherently flat.
|
|
484
|
+
|
|
485
|
+
Checklist (mirror `AGENTS.md`):
|
|
486
|
+
|
|
487
|
+
1. **Imagery** — Add layered hero treatment + purposeful SVG scenes per feature (swap nonsense placeholders). Prefer named components under `src/components/marketing/art/`.
|
|
488
|
+
2. **Motion tiers** — Implement at minimum **A + B + one of C/D**, optionally **E**: staggered hero load, `whileInView` sections + card stagger, looping ambient (marquee / caret / SVG dash loop), hover lifts / nav scroll shrink, optional light parallax. Gate loops with **`useReducedMotion()`**.
|
|
489
|
+
3. **Brand** — Establish motif thread + accent tokens in `:root`; refresh favicon / OG sketch to match.
|
|
490
|
+
|
|
491
|
+
Document deltas in `docs/research/PRODUCTION_UPLIFT.md` (what SVGs/motion/accent decisions shipped).
|
|
492
|
+
|
|
493
|
+
Invoke `.claude/skills/marketing-landing-production/SKILL.md` as a focused playbook for this pass.
|
|
494
|
+
|
|
466
495
|
## Phase 5: Visual QA Diff
|
|
467
496
|
|
|
468
497
|
After assembly, do NOT declare the clone complete. Take side-by-side comparison screenshots:
|
|
@@ -491,7 +520,8 @@ Before dispatching ANY builder agent, verify you can check every box. If you can
|
|
|
491
520
|
- [ ] For hover states: before/after values and transition timing are recorded
|
|
492
521
|
- [ ] All images in the section are identified (including overlays and layered compositions)
|
|
493
522
|
- [ ] Any `<video>` (and poster), Lottie, or canvas-driven hero is identified — not approximated as a static div
|
|
494
|
-
- [ ] **Motion** subsection filled: CSS vs **framer-motion**, durations, easings, stagger, scroll triggers
|
|
523
|
+
- [ ] **Motion** subsection filled: tiers **A–E** coverage (see `AGENTS.md`), CSS vs **framer-motion**, durations, easings, stagger, scroll triggers, **reduced-motion** fallback
|
|
524
|
+
- [ ] **Illustration** subsection filled when uplift applies: SVG components / palette / motif thread — or explicit **N/A** with justification only on strict clone parity jobs
|
|
495
525
|
- [ ] Responsive behavior is documented for at least desktop and mobile
|
|
496
526
|
- [ ] Text content is verbatim from the site, not paraphrased
|
|
497
527
|
- [ ] The builder prompt is under ~150 lines of spec; if over, the section needs to be split
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Mirrors .claude/skills/marketing-landing-production/SKILL.md — edit skill first, then sync this body if drift occurs. -->
|
|
2
|
+
|
|
3
|
+
# Marketing Landing — Production Polish
|
|
4
|
+
|
|
5
|
+
You are upgrading a **marketing landing** so it feels shipped — not “fine for a demo.” Read **`AGENTS.md` → Production polish for marketing landings** first; treat this command as the executable checklist.
|
|
6
|
+
|
|
7
|
+
## When to run
|
|
8
|
+
|
|
9
|
+
- Clone/rebrand finished but the page still reads **flat** (mostly black text on white + gray placeholders).
|
|
10
|
+
- User explicitly wants **more images**, **motion**, **SVG / illustration**, **pixel art**, **brandability**, **production-ready**.
|
|
11
|
+
- Feature cards use **off-topic filler art** — replace with scenes tied to copy.
|
|
12
|
+
|
|
13
|
+
## Hard requirements
|
|
14
|
+
|
|
15
|
+
1. **`framer-motion`** — staggered hero load (**tier A**), scroll reveals + nested staggers (**tier B**), at least **one** ambient loop (**tier C**: marquee, typing caret, SVG dash drift, gradient pulse — pick what fits brand).
|
|
16
|
+
2. **Interaction polish (tier D)** — measurable hover/tap on primary surfaces (buttons, cards): subtle lift, shadow ramp, scale ≤ 1.02.
|
|
17
|
+
3. **Decorative depth (tier E, optional)** — light pointer parallax **or** scroll-linked transforms; keep translation ≤ ~8px and rotation ≤ ~2deg.
|
|
18
|
+
4. **`useReducedMotion()`** — disable or simplify looping motion and shorten entrances when the user prefers reduced motion.
|
|
19
|
+
5. **SVG illustration layers** — dedicated React components (prefer `src/components/marketing/art/`); use **`currentColor`** where possible so theme tokens drive strokes/fills.
|
|
20
|
+
6. **Pixel art** — if requested: declare palette (hex table in component comment), crisp scaling (`imageRendering: "pixelated"` for intentional upscale), consistent grid logic.
|
|
21
|
+
7. **Brand spine** — motif repeats once in hero + once in a card or footer glyph cluster; define **accent CSS variables** if the page is only monochrome gray today.
|
|
22
|
+
8. **Artifacts** — write **`docs/research/PRODUCTION_UPLIFT.md`**: bullets for SVG modules added, motion tiers shipped, accent tokens, OG/favicon edits.
|
|
23
|
+
|
|
24
|
+
## Verification
|
|
25
|
+
|
|
26
|
+
- `npm run build` passes.
|
|
27
|
+
- Lighthouse/visual sanity: no layout shift explosions from animations; loops are subtle at default amplitude.
|
|
28
|
+
|
|
29
|
+
## Out of scope unless asked
|
|
30
|
+
|
|
31
|
+
Backend, CMS wiring, analytics, full accessibility audit beyond motion preferences.
|
|
@@ -13,7 +13,10 @@ When the user says **Build it**, **Go**, **Ship it**, **Clone the site**, **Run
|
|
|
13
13
|
2. Execute the **full** workflow described in `AGENTS.md` and in `.cursor/commands/clone-website.md` (recon → foundation → component specs → build → SaaS rebrand pass → assembly → QA).
|
|
14
14
|
3. Continue until `npm run build` passes unless the user stops you.
|
|
15
15
|
|
|
16
|
-
Do **not** ask the user to re-type the URL or idea unless the config is missing or broken. Optional
|
|
16
|
+
Do **not** ask the user to re-type the URL or idea unless the config is missing or broken. Optional slash commands:
|
|
17
|
+
|
|
18
|
+
- **`/clone-website`** — full recon → clone → rebrand pipeline (`launchframe.config.json`).
|
|
19
|
+
- **`/marketing-landing-production`** — production polish pass: SVG illustration density, pixel-art accents, choreographed motion tiers A–E, accent tokens, OG/favicon cohesion (see `AGENTS.md`).
|
|
17
20
|
|
|
18
21
|
## Browser automation
|
|
19
22
|
|
|
@@ -54,7 +54,9 @@ These are the truths that separate a successful clone from a "close enough" mess
|
|
|
54
54
|
|
|
55
55
|
**Raster & video are first-class.** Before you treat the page as “mostly typography,” run a dedicated **media inventory** (see `@docs/research/INSPECTION_GUIDE.md` Priority section): every `<img>`, `<picture>` / `<source>`, `<video>` (+ poster), and non-trivial `background-image`. Download to `public/images/` and `public/videos/` and write `docs/research/MEDIA_MANIFEST.md` (URL → local path, or `BLOCKED` + reason). Component specs MUST list concrete `public/...` paths; if you use a placeholder, say why in `docs/research/EXTRACTION_LIMITATIONS.md`. Never silently drop a hero layer, reel, or og visual.
|
|
56
56
|
|
|
57
|
-
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup
|
|
57
|
+
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup`, **`useReducedMotion`**) for: scroll-triggered reveals, staggered children, layout transitions, and gestures — anything beyond a trivial one-property CSS `transition`. In each spec file, add a **Motion** subsection: trigger, duration, easing, delay/stagger, **tier A–E coverage** (see `AGENTS.md` production polish table), reduced-motion fallback, and **implementation: CSS | framer-motion**. Prefer CSS only when it matches the target exactly without JS.
|
|
58
|
+
|
|
59
|
+
**Illustration & pixel art are production inputs.** Where the target (or post-rebrand layout) lacks convincing visuals, specs MUST still allocate **SVG illustration layers** — hero backdrop cluster, section separators, feature-card scenes tied to copy — using React SVG components (`currentColor` + theme vars). Pixel-art motifs require an explicit palette table in the spec. Do not ship ambiguous gray placeholders when `AGENTS.md` calls for production density on authored landings.
|
|
58
60
|
|
|
59
61
|
### 1. Completeness Beats Speed
|
|
60
62
|
|
|
@@ -368,10 +370,17 @@ For each section (or sub-component, if you're breaking it up), create a spec fil
|
|
|
368
370
|
- **<Element>:** <property>: <before> → <after>, transition: <value>
|
|
369
371
|
|
|
370
372
|
## Motion (Framer Motion vs CSS)
|
|
373
|
+
- **Tiers A–E:** <which tiers apply — load stagger, scroll reveal, ambient loop, interaction lifts, decorative parallax — list triggers>
|
|
374
|
+
- **Reduced motion:** <what disables or simplifies when user prefers reduced motion>
|
|
371
375
|
- **Entrance / scroll reveals:** <e.g. fade+translateY, staggerChildren — specify duration, easing, delay, viewport `once`/`margin`>
|
|
372
376
|
- **Library:** <`framer-motion` | CSS-only — justify if CSS-only>
|
|
373
377
|
- **Keyframes / springs:** <if any — match target curve>
|
|
374
378
|
|
|
379
|
+
## Illustration & pixel art *(production uplift)*
|
|
380
|
+
- **SVG components:** <named exports, paths using currentColor vs fixed fills>
|
|
381
|
+
- **Pixel motif:** <palette hex table, grid, scaling — or N/A>
|
|
382
|
+
- **Motif thread:** <how illustration echoes logo / OG / favicon>
|
|
383
|
+
|
|
375
384
|
## Per-State Content (if applicable)
|
|
376
385
|
|
|
377
386
|
### State: "Featured"
|
|
@@ -467,6 +476,26 @@ What you must NOT change in this pass:
|
|
|
467
476
|
|
|
468
477
|
After the rebrand pass, the codebase should look like the original site visually but read like the user's SaaS at a glance. Save a short `docs/research/REBRAND.md` summarizing the product name you chose, the headline rewrites, and any assets you swapped — so the user can audit what's clone-derived vs. authored.
|
|
469
478
|
|
|
479
|
+
## Phase 4.6: Production uplift *(sparse references / user asks for prod polish)*
|
|
480
|
+
|
|
481
|
+
Run this pass when **any** of the following is true:
|
|
482
|
+
|
|
483
|
+
- The cloned reference is mostly typography with weak imagery (internal demos, minimalist SaaS shells).
|
|
484
|
+
- The user asks for **more motion**, **SVG / illustration**, **pixel art**, **brandability**, or **production-ready** marketing polish.
|
|
485
|
+
- Visual QA feels “correct but dead” — layout matches but nothing moves and cards use unrelated placeholders.
|
|
486
|
+
|
|
487
|
+
**Do not contradict pixel-perfect emulation when cloning a rich reference** — this phase *adds* density only where the brief allows uplift or the reference was inherently flat.
|
|
488
|
+
|
|
489
|
+
Checklist (mirror `AGENTS.md`):
|
|
490
|
+
|
|
491
|
+
1. **Imagery** — Add layered hero treatment + purposeful SVG scenes per feature (swap nonsense placeholders). Prefer named components under `src/components/marketing/art/`.
|
|
492
|
+
2. **Motion tiers** — Implement at minimum **A + B + one of C/D**, optionally **E**: staggered hero load, `whileInView` sections + card stagger, looping ambient (marquee / caret / SVG dash loop), hover lifts / nav scroll shrink, optional light parallax. Gate loops with **`useReducedMotion()`**.
|
|
493
|
+
3. **Brand** — Establish motif thread + accent tokens in `:root`; refresh favicon / OG sketch to match.
|
|
494
|
+
|
|
495
|
+
Document deltas in `docs/research/PRODUCTION_UPLIFT.md` (what SVGs/motion/accent decisions shipped).
|
|
496
|
+
|
|
497
|
+
Invoke `.claude/skills/marketing-landing-production/SKILL.md` as a focused playbook for this pass.
|
|
498
|
+
|
|
470
499
|
## Phase 5: Visual QA Diff
|
|
471
500
|
|
|
472
501
|
After assembly, do NOT declare the clone complete. Take side-by-side comparison screenshots:
|
|
@@ -495,7 +524,8 @@ Before dispatching ANY builder agent, verify you can check every box. If you can
|
|
|
495
524
|
- [ ] For hover states: before/after values and transition timing are recorded
|
|
496
525
|
- [ ] All images in the section are identified (including overlays and layered compositions)
|
|
497
526
|
- [ ] Any `<video>` (and poster), Lottie, or canvas-driven hero is identified — not approximated as a static div
|
|
498
|
-
- [ ] **Motion** subsection filled: CSS vs **framer-motion**, durations, easings, stagger, scroll triggers
|
|
527
|
+
- [ ] **Motion** subsection filled: tiers **A–E** coverage (see `AGENTS.md`), CSS vs **framer-motion**, durations, easings, stagger, scroll triggers, **reduced-motion** fallback
|
|
528
|
+
- [ ] **Illustration** subsection filled when uplift applies: SVG components / palette / motif thread — or explicit **N/A** with justification only on strict clone parity jobs
|
|
499
529
|
- [ ] Responsive behavior is documented for at least desktop and mobile
|
|
500
530
|
- [ ] Text content is verbatim from the site, not paraphrased
|
|
501
531
|
- [ ] The builder prompt is under ~150 lines of spec; if over, the section needs to be split
|
|
@@ -38,6 +38,51 @@ Treat these as **first-class deliverables**, not polish at the end.
|
|
|
38
38
|
|
|
39
39
|
1. **Raster & video** — Early in recon, inventory every `<img>`, `<picture>` / `<source>`, `<video>`, poster image, and meaningful `background-image` URL. Download into `public/` and reference **local paths** in specs and components. Hero bands and marketing sections often fail visually when a single layer is skipped.
|
|
40
40
|
2. **Motion** — Match the target’s feel: easing, duration, stagger, scroll triggers. Prefer **`motion` from `framer-motion`** for entrance sequences, viewport-driven animations, shared-layout-style transitions, and anything beyond a one-off CSS transition. Note in each component spec whether behavior is **CSS-only** vs **Framer Motion**.
|
|
41
|
+
3. **Illustration & brand marks** — Inline **SVG React components** (not only Lucide) for motifs that repeat across sections: logo glyph variants, dividers, grain/noise overlays, hero “scene” shapes, feature-card mini-compositions. Prefer **`currentColor`** + CSS variables so SVGs inherit theme tokens. For **pixel art**, keep a tight palette (4–8 fills), consistent pixel grid logic, and use `style={{ imageRendering: "pixelated" }}` on upscaled raster OR build pixel SVG paths intentionally — never blurry upscale.
|
|
42
|
+
|
|
43
|
+
## Production polish for marketing landings *(imagery + motion density + brandability)*
|
|
44
|
+
|
|
45
|
+
Use this whenever the page is **authored or minimalist** (internal templates, rebranded clones that still feel flat, or targets that are mostly typography). “Looks OK” is not ship-ready — **production landings** stack multiple visual layers, choreographed motion, and recognizable brand cues.
|
|
46
|
+
|
|
47
|
+
### Imagery density (every fold earns a visual idea)
|
|
48
|
+
|
|
49
|
+
- **Hero** — Never headline-only on white: add at least two of — soft gradient mesh / radial spotlight, subtle SVG grid or notebook lines, floating glyph cluster, ambient particle dots, masked photo or device frame with **real `public/` raster**, thin geometric frame that echoes the logo.
|
|
50
|
+
- **Between sections** — Optional SVG waves, angled cuts, or dashed “tape” strips so rhythm feels intentional.
|
|
51
|
+
- **Feature rows** — Replace generic placeholders (random shirts, blank boxes) with **purpose-built SVG scenes** tied to copy (capture → waveform + mic; workspace → windows + avatars; publish → export arrows + formats). Each card gets **foreground illustration + supporting UI chrome**, not one flat rectangle.
|
|
52
|
+
- **Social proof** — Logo strip may use grayscale marks; add **slow infinite marquee** or gentle opacity drift — motion sells “living product.”
|
|
53
|
+
|
|
54
|
+
### Motion choreography *(ship several layers; respect `prefers-reduced-motion`)*
|
|
55
|
+
|
|
56
|
+
Default minimum bar for authored landings — implement with **`framer-motion`** unless matching CSS-only parity:
|
|
57
|
+
|
|
58
|
+
| Tier | What users feel | Typical implementation |
|
|
59
|
+
|------|-----------------|-------------------------|
|
|
60
|
+
| **A — Page load** | Hero headline, subcopy, CTAs, and hero art **stagger in** (opacity + `y`, or blur-in for type) | Parent `variants` + `staggerChildren`; durations 0.35–0.7s, ease `[0.22, 1, 0.36, 1]` or springs |
|
|
61
|
+
| **B — Scroll** | Sections **ease up / fade** on first viewport entry; grids **stagger cards** | `whileInView` + `viewport.once`; `margin: "-80px"` tweak so reveals feel early |
|
|
62
|
+
| **C — Looping ambient** | Logo strip marquee; gradient drift; subtle SVG stroke dashoffset loop; “thinking…” **typing caret** | CSS `@keyframes` or Framer `animate` repeat; keep amplitude **low** |
|
|
63
|
+
| **D — Interaction** | Buttons scale/shine on hover; cards **lift** (`translateY`, shadow); nav **backdrop blur / height** past threshold | `whileHover`, `whileTap`; scroll listener or Framer scroll hooks for nav |
|
|
64
|
+
| **E — Decorative depth** | Pointer parallax on hero cluster (2–4 layers at different strengths) OR scroll-linked `useTransform` | Small rotate/translate ranges (≤ 8px / ≤ 2deg) |
|
|
65
|
+
|
|
66
|
+
Always gate looping motion: **`useReducedMotion()`** from Framer Motion — swap loops for static frames and shorten entrances.
|
|
67
|
+
|
|
68
|
+
### Brandability checklist *(distinctive, not generic SaaS gray)*
|
|
69
|
+
|
|
70
|
+
- **Motif thread** — One recurring visual hook (pen stroke, folded page corner, hub spark, pixel creature) reused in hero, favicon, OG image sketch, and one feature illustration.
|
|
71
|
+
- **Accent discipline** — Define **primary + secondary accent** in `:root` (even if mostly monochrome). Use accents on CTAs, SVG highlights, focus rings — not rainbow scatter.
|
|
72
|
+
- **Wordmark lockup** — SVG glyph + tracked type; provide **icon-only** variant for favicon / meta.
|
|
73
|
+
- **OG & SEO assets** — Generate **`public/seo/og.png`** (or route og image) that includes motif + product name — not a bare screenshot.
|
|
74
|
+
|
|
75
|
+
### Where artifacts live
|
|
76
|
+
|
|
77
|
+
- **Raster/video** — `public/images/`, `public/videos/` (see `MEDIA_MANIFEST.md`).
|
|
78
|
+
- **SVG React illustrations** — Prefer `src/components/marketing/art/` or co-located `*-scene.tsx` modules; export named components (`HeroBackdrop`, `FeatureCaptureIllustration`).
|
|
79
|
+
- **Pixel art** — Same folder pattern; document palette in file header comment.
|
|
80
|
+
|
|
81
|
+
### Spec requirement *(hand-off quality)*
|
|
82
|
+
|
|
83
|
+
When writing `docs/research/components/*.spec.md`, add sections **Illustration** (layers, SVG components, raster paths) and expand **Motion** with tier **A–E** coverage and reduced-motion fallback. Builders should not invent motion ad hoc — the spec states durations and triggers.
|
|
84
|
+
|
|
85
|
+
Invoke **`marketing-landing-production`** (`.claude/skills/marketing-landing-production/SKILL.md`) when the user asks for **prod-ready polish**, **more motion**, **SVG/pixel art**, or **stronger branding** on an existing landing.
|
|
41
86
|
|
|
42
87
|
## Commands
|
|
43
88
|
- `npm run dev` — Start dev server
|
|
@@ -67,6 +112,7 @@ Prefer **Playwright** for repeatable extraction in-repo — do **not** rely on C
|
|
|
67
112
|
## Design Principles
|
|
68
113
|
- **Images & video fidelity** — prefer real downloaded assets; preserve aspect ratio, `object-fit`, layering, and poster frames. Rebrand pass may **swap** URLs for IP-safe alternates but must keep layout identical.
|
|
69
114
|
- **Motion fidelity** — timing and easing matter as much as color; use Framer Motion when CSS alone cannot match staggered or scroll-driven behavior.
|
|
115
|
+
- **Production landing density** — For authored/minimal pages, deliberately add **SVG illustration layers**, **pixel-art accents**, and **tiered motion (A–E)** per “Production polish” above; static monochrome layouts are incomplete unless the user explicitly wants extreme minimalism.
|
|
70
116
|
- **Pixel-perfect emulation** — match the target's spacing, colors, typography exactly
|
|
71
117
|
- **No personal aesthetic changes during emulation phase** — match 1:1 first, rebrand later
|
|
72
118
|
- **Real content during extraction** — use actual text and assets from the target site so the clone scaffolds against real shapes
|
|
@@ -79,6 +125,7 @@ src/
|
|
|
79
125
|
app/ # Next.js routes
|
|
80
126
|
components/ # React components
|
|
81
127
|
ui/ # shadcn/ui primitives
|
|
128
|
+
marketing/ # Landing sections + authored SVG scenes (`art/` recommended)
|
|
82
129
|
icons.tsx # Extracted SVG icons as React components
|
|
83
130
|
lib/
|
|
84
131
|
utils.ts # cn() utility (shadcn)
|
|
@@ -99,6 +146,7 @@ scripts/ # Asset download scripts
|
|
|
99
146
|
- When launching Claude Code agent teams, ALWAYS have each teammate work in their own worktree branch and merge everyone's work at the end, resolving any merge conflicts smartly since you are basically serving the orchestrator role and have full context to our goals, work given, work achieved, and desired outcomes.
|
|
100
147
|
- After editing `AGENTS.md`, run `bash scripts/sync-agent-rules.sh` to regenerate platform-specific instruction files.
|
|
101
148
|
- After editing `.claude/skills/clone-website/SKILL.md`, run `node scripts/sync-skills.mjs` to regenerate the skill for all platforms.
|
|
149
|
+
- After editing `.claude/skills/marketing-landing-production/SKILL.md`, update `.cursor/commands/marketing-landing-production.md` to match (Cursor command is maintained beside the Claude skill until sync-skills grows multi-skill support).
|
|
102
150
|
|
|
103
151
|
# Website Inspection Guide
|
|
104
152
|
|
|
@@ -125,6 +173,18 @@ If automation hits a bot wall, **do not pretend extraction succeeded** — captu
|
|
|
125
173
|
- [ ] **Gestures** — drag, pan, hover follow (often Framer Motion)
|
|
126
174
|
- [ ] **Implementation rule** — use **`framer-motion`** for anything beyond trivial single-property CSS `transition`. Record **duration, easing, delay, stagger**, and **trigger** (scroll, hover, tap) in specs.
|
|
127
175
|
|
|
176
|
+
### 3. Illustration, pixel art & brand motifs *(production landings)*
|
|
177
|
+
|
|
178
|
+
When the reference page is **sparse** (mostly type + gray boxes) or after a **rebrand** the UI still reads generic, treat illustration as required inventory — not optional garnish.
|
|
179
|
+
|
|
180
|
+
- [ ] **Inline SVG** — hero shapes, dividers, card mini-scenes; note `viewBox`, whether fills use **`currentColor`**, and which CSS variables apply
|
|
181
|
+
- [ ] **Pixel art / sprite accents** — intentional palette (list hex fills), grid size, scaling strategy (`imageRendering`), animation frames if any
|
|
182
|
+
- [ ] **Motif thread** — recurring stroke/icon creature/grid that should echo across hero, OG sketch, favicon
|
|
183
|
+
- [ ] **Accent tokens** — beyond monochrome: primary/secondary accent roles for SVG strokes, CTAs, focus (extract or **define** in `:root` for authored pages)
|
|
184
|
+
- [ ] **Motion tiers A–E** — page-load stagger, scroll reveals + staggerChildren, looping ambient (marquee/caret), hover lifts, decorative parallax — document each with **reduced-motion** fallback (`prefers-reduced-motion`)
|
|
185
|
+
|
|
186
|
+
See **`AGENTS.md` → Production polish for marketing landings** for tier definitions and folder conventions (`src/components/marketing/art/`).
|
|
187
|
+
|
|
128
188
|
---
|
|
129
189
|
|
|
130
190
|
## How to Reverse-Engineer Any Website
|
|
@@ -53,7 +53,9 @@ These are the truths that separate a successful clone from a "close enough" mess
|
|
|
53
53
|
|
|
54
54
|
**Raster & video are first-class.** Before you treat the page as “mostly typography,” run a dedicated **media inventory** (see `@docs/research/INSPECTION_GUIDE.md` Priority section): every `<img>`, `<picture>` / `<source>`, `<video>` (+ poster), and non-trivial `background-image`. Download to `public/images/` and `public/videos/` and write `docs/research/MEDIA_MANIFEST.md` (URL → local path, or `BLOCKED` + reason). Component specs MUST list concrete `public/...` paths; if you use a placeholder, say why in `docs/research/EXTRACTION_LIMITATIONS.md`. Never silently drop a hero layer, reel, or og visual.
|
|
55
55
|
|
|
56
|
-
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup
|
|
56
|
+
**Motion defaults to Framer Motion.** This template lists `framer-motion` as a dependency. After foundation tokens, ensure `import { motion } from "framer-motion"` (and related APIs: `useScroll`, `useTransform`, `AnimatePresence`, `LayoutGroup`, **`useReducedMotion`**) for: scroll-triggered reveals, staggered children, layout transitions, and gestures — anything beyond a trivial one-property CSS `transition`. In each spec file, add a **Motion** subsection: trigger, duration, easing, delay/stagger, **tier A–E coverage** (see `AGENTS.md` production polish table), reduced-motion fallback, and **implementation: CSS | framer-motion**. Prefer CSS only when it matches the target exactly without JS.
|
|
57
|
+
|
|
58
|
+
**Illustration & pixel art are production inputs.** Where the target (or post-rebrand layout) lacks convincing visuals, specs MUST still allocate **SVG illustration layers** — hero backdrop cluster, section separators, feature-card scenes tied to copy — using React SVG components (`currentColor` + theme vars). Pixel-art motifs require an explicit palette table in the spec. Do not ship ambiguous gray placeholders when `AGENTS.md` calls for production density on authored landings.
|
|
57
59
|
|
|
58
60
|
### 1. Completeness Beats Speed
|
|
59
61
|
|
|
@@ -367,10 +369,17 @@ For each section (or sub-component, if you're breaking it up), create a spec fil
|
|
|
367
369
|
- **<Element>:** <property>: <before> → <after>, transition: <value>
|
|
368
370
|
|
|
369
371
|
## Motion (Framer Motion vs CSS)
|
|
372
|
+
- **Tiers A–E:** <which tiers apply — load stagger, scroll reveal, ambient loop, interaction lifts, decorative parallax — list triggers>
|
|
373
|
+
- **Reduced motion:** <what disables or simplifies when user prefers reduced motion>
|
|
370
374
|
- **Entrance / scroll reveals:** <e.g. fade+translateY, staggerChildren — specify duration, easing, delay, viewport `once`/`margin`>
|
|
371
375
|
- **Library:** <`framer-motion` | CSS-only — justify if CSS-only>
|
|
372
376
|
- **Keyframes / springs:** <if any — match target curve>
|
|
373
377
|
|
|
378
|
+
## Illustration & pixel art *(production uplift)*
|
|
379
|
+
- **SVG components:** <named exports, paths using currentColor vs fixed fills>
|
|
380
|
+
- **Pixel motif:** <palette hex table, grid, scaling — or N/A>
|
|
381
|
+
- **Motif thread:** <how illustration echoes logo / OG / favicon>
|
|
382
|
+
|
|
374
383
|
## Per-State Content (if applicable)
|
|
375
384
|
|
|
376
385
|
### State: "Featured"
|
|
@@ -466,6 +475,26 @@ What you must NOT change in this pass:
|
|
|
466
475
|
|
|
467
476
|
After the rebrand pass, the codebase should look like the original site visually but read like the user's SaaS at a glance. Save a short `docs/research/REBRAND.md` summarizing the product name you chose, the headline rewrites, and any assets you swapped — so the user can audit what's clone-derived vs. authored.
|
|
468
477
|
|
|
478
|
+
## Phase 4.6: Production uplift *(sparse references / user asks for prod polish)*
|
|
479
|
+
|
|
480
|
+
Run this pass when **any** of the following is true:
|
|
481
|
+
|
|
482
|
+
- The cloned reference is mostly typography with weak imagery (internal demos, minimalist SaaS shells).
|
|
483
|
+
- The user asks for **more motion**, **SVG / illustration**, **pixel art**, **brandability**, or **production-ready** marketing polish.
|
|
484
|
+
- Visual QA feels “correct but dead” — layout matches but nothing moves and cards use unrelated placeholders.
|
|
485
|
+
|
|
486
|
+
**Do not contradict pixel-perfect emulation when cloning a rich reference** — this phase *adds* density only where the brief allows uplift or the reference was inherently flat.
|
|
487
|
+
|
|
488
|
+
Checklist (mirror `AGENTS.md`):
|
|
489
|
+
|
|
490
|
+
1. **Imagery** — Add layered hero treatment + purposeful SVG scenes per feature (swap nonsense placeholders). Prefer named components under `src/components/marketing/art/`.
|
|
491
|
+
2. **Motion tiers** — Implement at minimum **A + B + one of C/D**, optionally **E**: staggered hero load, `whileInView` sections + card stagger, looping ambient (marquee / caret / SVG dash loop), hover lifts / nav scroll shrink, optional light parallax. Gate loops with **`useReducedMotion()`**.
|
|
492
|
+
3. **Brand** — Establish motif thread + accent tokens in `:root`; refresh favicon / OG sketch to match.
|
|
493
|
+
|
|
494
|
+
Document deltas in `docs/research/PRODUCTION_UPLIFT.md` (what SVGs/motion/accent decisions shipped).
|
|
495
|
+
|
|
496
|
+
Invoke `.claude/skills/marketing-landing-production/SKILL.md` as a focused playbook for this pass.
|
|
497
|
+
|
|
469
498
|
## Phase 5: Visual QA Diff
|
|
470
499
|
|
|
471
500
|
After assembly, do NOT declare the clone complete. Take side-by-side comparison screenshots:
|
|
@@ -494,7 +523,8 @@ Before dispatching ANY builder agent, verify you can check every box. If you can
|
|
|
494
523
|
- [ ] For hover states: before/after values and transition timing are recorded
|
|
495
524
|
- [ ] All images in the section are identified (including overlays and layered compositions)
|
|
496
525
|
- [ ] Any `<video>` (and poster), Lottie, or canvas-driven hero is identified — not approximated as a static div
|
|
497
|
-
- [ ] **Motion** subsection filled: CSS vs **framer-motion**, durations, easings, stagger, scroll triggers
|
|
526
|
+
- [ ] **Motion** subsection filled: tiers **A–E** coverage (see `AGENTS.md`), CSS vs **framer-motion**, durations, easings, stagger, scroll triggers, **reduced-motion** fallback
|
|
527
|
+
- [ ] **Illustration** subsection filled when uplift applies: SVG components / palette / motif thread — or explicit **N/A** with justification only on strict clone parity jobs
|
|
498
528
|
- [ ] Responsive behavior is documented for at least desktop and mobile
|
|
499
529
|
- [ ] Text content is verbatim from the site, not paraphrased
|
|
500
530
|
- [ ] The builder prompt is under ~150 lines of spec; if over, the section needs to be split
|