launchframe 0.2.3 → 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/README.md +147 -147
- package/bin/launchframe.mjs +315 -315
- package/package.json +1 -1
- package/template/.amazonq/cli-agents/clone-website.json +1 -1
- package/template/.amazonq/rules/project.md +180 -109
- package/template/.augment/commands/clone-website.md +33 -3
- package/template/.claude/skills/clone-website/SKILL.md +564 -534
- package/template/.claude/skills/marketing-landing-production/SKILL.md +36 -0
- package/template/.clinerules +180 -109
- package/template/.codex/skills/clone-website/SKILL.md +33 -3
- package/template/.continue/commands/clone-website.md +33 -3
- package/template/.continue/rules/project.md +180 -109
- package/template/.cursor/commands/clone-website.md +33 -3
- package/template/.cursor/commands/marketing-landing-production.md +31 -0
- package/template/.cursor/rules/project.mdc +25 -20
- package/template/.gemini/commands/clone-website.toml +33 -3
- package/template/.github/copilot-instructions.md +180 -109
- package/template/.github/skills/clone-website/SKILL.md +33 -3
- package/template/.opencode/commands/clone-website.md +33 -3
- package/template/.windsurf/workflows/clone-website.md +33 -3
- package/template/AGENTS.md +148 -89
- package/template/README.md +121 -120
- package/template/START_HERE.md +15 -15
- package/template/docs/design-references/playwright-example.com-1440px.png +0 -0
- package/template/docs/design-references/playwright-example.com-390px.png +0 -0
- package/template/docs/research/INSPECTION_GUIDE.md +121 -109
- package/template/package.json +63 -60
- package/template/scripts/recon-playwright.mjs +323 -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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: marketing-landing-production
|
|
3
|
+
description: Elevate an authored or minimalist marketing landing to production quality — layered SVG illustration, pixel-art accents, choreographed motion (Framer Motion tiers A–E), accent tokens, OG/favicon cohesion. Use when the user asks for prod polish, more motion, stronger branding, SVG scenes, or pixel art on `src/app/page.tsx` / `src/components/marketing/**`.
|
|
4
|
+
argument-hint: "[optional paths or sections to prioritize]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Marketing Landing — Production Polish
|
|
9
|
+
|
|
10
|
+
You are upgrading a **marketing landing** so it feels shipped — not “fine for a demo.” Read **`AGENTS.md` → Production polish for marketing landings** first; this skill is the executable checklist.
|
|
11
|
+
|
|
12
|
+
## When to run
|
|
13
|
+
|
|
14
|
+
- Clone/rebrand finished but the page still reads **flat** (mostly black text on white + gray placeholders).
|
|
15
|
+
- User explicitly wants **more images**, **motion**, **SVG / illustration**, **pixel art**, **brandability**, **production-ready**.
|
|
16
|
+
- Feature cards use **off-topic filler art** — replace with scenes tied to copy.
|
|
17
|
+
|
|
18
|
+
## Hard requirements
|
|
19
|
+
|
|
20
|
+
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).
|
|
21
|
+
2. **Interaction polish (tier D)** — measurable hover/tap on primary surfaces (buttons, cards): subtle lift, shadow ramp, scale ≤ 1.02.
|
|
22
|
+
3. **Decorative depth (tier E, optional)** — light pointer parallax **or** scroll-linked transforms; keep translation ≤ ~8px and rotation ≤ ~2deg.
|
|
23
|
+
4. **`useReducedMotion()`** — disable or simplify looping motion and shorten entrances when the user prefers reduced motion.
|
|
24
|
+
5. **SVG illustration layers** — dedicated React components (prefer `src/components/marketing/art/`); use **`currentColor`** where possible so theme tokens drive strokes/fills.
|
|
25
|
+
6. **Pixel art** — if requested: declare palette (hex table in component comment), crisp scaling (`imageRendering: "pixelated"` for intentional upscale), consistent grid logic.
|
|
26
|
+
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.
|
|
27
|
+
8. **Artifacts** — write **`docs/research/PRODUCTION_UPLIFT.md`**: bullets for SVG modules added, motion tiers shipped, accent tokens, OG/favicon edits.
|
|
28
|
+
|
|
29
|
+
## Verification
|
|
30
|
+
|
|
31
|
+
- `npm run build` passes.
|
|
32
|
+
- Lighthouse/visual sanity: no layout shift explosions from animations; loops are subtle at default amplitude.
|
|
33
|
+
|
|
34
|
+
## Out of scope unless asked
|
|
35
|
+
|
|
36
|
+
Backend, CMS wiring, analytics, full accessibility audit beyond motion preferences.
|
package/template/.clinerules
CHANGED
|
@@ -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
|
|
@@ -45,6 +90,17 @@ Treat these as **first-class deliverables**, not polish at the end.
|
|
|
45
90
|
- `npm run lint` — ESLint check
|
|
46
91
|
- `npm run typecheck` — TypeScript check
|
|
47
92
|
- `npm run check` — Run lint + typecheck + build
|
|
93
|
+
- **`npm run recon`** — **Playwright** capture: full-page screenshots, `computed-snapshot.json`, `MEDIA_MANIFEST.md` (use when Browser MCP / Chrome DevTools MCP is broken or missing)
|
|
94
|
+
- **`npm run recon:headed`** — Same as `recon` but **headed** Chromium (often better for WAF / “Just a moment…” pages)
|
|
95
|
+
|
|
96
|
+
**Playwright browser binaries (once per machine):** `npx playwright install chromium`
|
|
97
|
+
|
|
98
|
+
## When Browser MCP is down
|
|
99
|
+
Prefer **Playwright** for repeatable extraction in-repo — do **not** rely on Chrome DevTools MCP alone.
|
|
100
|
+
|
|
101
|
+
1. Run **`npm run recon`** (or **`npm run recon:headed`** if headless hits a challenge page).
|
|
102
|
+
2. Read **`docs/research/computed-snapshot.json`**, **`docs/research/MEDIA_MANIFEST.md`**, and **`docs/research/EXTRACTION_LIMITATIONS.md`** before writing specs.
|
|
103
|
+
3. Fill **`scripts/download-assets.mjs`** from `MEDIA_MANIFEST.md` and run it to populate `public/images/` and `public/videos/`.
|
|
48
104
|
|
|
49
105
|
## Code Style
|
|
50
106
|
- TypeScript strict mode, no `any`
|
|
@@ -56,6 +112,7 @@ Treat these as **first-class deliverables**, not polish at the end.
|
|
|
56
112
|
## Design Principles
|
|
57
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.
|
|
58
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.
|
|
59
116
|
- **Pixel-perfect emulation** — match the target's spacing, colors, typography exactly
|
|
60
117
|
- **No personal aesthetic changes during emulation phase** — match 1:1 first, rebrand later
|
|
61
118
|
- **Real content during extraction** — use actual text and assets from the target site so the clone scaffolds against real shapes
|
|
@@ -68,6 +125,7 @@ src/
|
|
|
68
125
|
app/ # Next.js routes
|
|
69
126
|
components/ # React components
|
|
70
127
|
ui/ # shadcn/ui primitives
|
|
128
|
+
marketing/ # Landing sections + authored SVG scenes (`art/` recommended)
|
|
71
129
|
icons.tsx # Extracted SVG icons as React components
|
|
72
130
|
lib/
|
|
73
131
|
utils.ts # cn() utility (shadcn)
|
|
@@ -88,113 +146,126 @@ scripts/ # Asset download scripts
|
|
|
88
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.
|
|
89
147
|
- After editing `AGENTS.md`, run `bash scripts/sync-agent-rules.sh` to regenerate platform-specific instruction files.
|
|
90
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).
|
|
150
|
+
|
|
151
|
+
# Website Inspection Guide
|
|
152
|
+
|
|
153
|
+
## Priority (read first): media & motion
|
|
154
|
+
|
|
155
|
+
Launchframe clones live pages for a **visual** result. Two things most often separate a convincing build from a hollow one:
|
|
156
|
+
|
|
157
|
+
### 1. Images & video (do this before obsessing over utility classes)
|
|
158
|
+
|
|
159
|
+
- [ ] **Every `<img>`** — `src` / `srcset` / `currentSrc`, `sizes`, `loading`, `decoding`, `alt`, intrinsic dimensions
|
|
160
|
+
- [ ] **`<picture>` / `<source>`** — resolution switches, art direction, `type` (WebP/AVIF)
|
|
161
|
+
- [ ] **Every `<video>`** — `src` + nested `<source>`, **poster**, `autoplay`, `loop`, `muted`, `playsinline`, `controls`
|
|
162
|
+
- [ ] **Background images** — `background-image` on ancestors (hero stacks are often **layers** of img + gradient + PNG mockup)
|
|
163
|
+
- [ ] **Lazy / below-fold** — scroll the page once before asset discovery so `data-src` / lazy-loaded URLs resolve if the site uses them
|
|
164
|
+
- [ ] **Download** — mirror into `public/images/` and `public/videos/` with stable paths; list failures in `docs/research/EXTRACTION_LIMITATIONS.md`
|
|
165
|
+
|
|
166
|
+
If automation hits a bot wall, **do not pretend extraction succeeded** — capture what you can from successful fetches and document gaps.
|
|
167
|
+
|
|
168
|
+
### 2. Motion (prefer Framer Motion in this repo)
|
|
169
|
+
|
|
170
|
+
- [ ] **Entrance** — fade/slide/scale on mount or on **scroll into view** (note threshold / `margin`)
|
|
171
|
+
- [ ] **Stagger** — children animating in sequence (hero bullets, card grids)
|
|
172
|
+
- [ ] **Scroll-linked** — progress, parallax, pinned sections (may combine with CSS `animation-timeline` or libs)
|
|
173
|
+
- [ ] **Gestures** — drag, pan, hover follow (often Framer Motion)
|
|
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.
|
|
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
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## How to Reverse-Engineer Any Website
|
|
191
|
+
|
|
192
|
+
This guide outlines what to capture when inspecting a target website via Chrome MCP or browser DevTools.
|
|
193
|
+
|
|
194
|
+
## Phase 1: Visual Audit
|
|
195
|
+
|
|
196
|
+
### Screenshots to Capture
|
|
197
|
+
- [ ] Every distinct page — desktop, tablet, mobile
|
|
198
|
+
- [ ] Dark mode variants (if applicable)
|
|
199
|
+
- [ ] Light mode variants (if applicable)
|
|
200
|
+
- [ ] Key interaction states (hover, active, open menus, modals)
|
|
201
|
+
- [ ] Loading/skeleton states
|
|
202
|
+
- [ ] Empty states
|
|
203
|
+
- [ ] Error states
|
|
204
|
+
- [ ] **Video frames** — capture a frame mid-play for reference if motion is subtle
|
|
205
|
+
- [ ] **Hero / full-bleed** — wide crops where raster layers are easy to miss
|
|
206
|
+
|
|
207
|
+
### Design Tokens to Extract
|
|
208
|
+
- [ ] **Colors** — background, text (primary/secondary/muted), accent, border, hover, error, success, warning
|
|
209
|
+
- [ ] **Typography** — font family, sizes (h1-h6, body, caption, label), weights, line heights, letter spacing
|
|
210
|
+
- [ ] **Spacing** — padding/margin patterns (look for a scale: 4px, 8px, 12px, 16px, 24px, 32px, etc.)
|
|
211
|
+
- [ ] **Border radius** — buttons, cards, avatars, inputs
|
|
212
|
+
- [ ] **Shadows/elevation** — card shadows, dropdown shadows, modal overlay
|
|
213
|
+
- [ ] **Breakpoints** — when does the layout shift? (inspect with DevTools responsive mode)
|
|
214
|
+
- [ ] **Icons** — which icon library? custom SVGs? sizes?
|
|
215
|
+
- [ ] **Avatars** — sizes, shapes, fallback behavior
|
|
216
|
+
- [ ] **Buttons** — all variants (primary, secondary, ghost, icon-only, danger)
|
|
217
|
+
- [ ] **Inputs** — text fields, textareas, selects, checkboxes, toggles
|
|
218
|
+
|
|
219
|
+
## Phase 2: Component Inventory
|
|
220
|
+
|
|
221
|
+
For each distinct UI component, document:
|
|
222
|
+
1. **Name** — what would you call this component?
|
|
223
|
+
2. **Structure** — what HTML elements / child components does it contain?
|
|
224
|
+
3. **Variants** — does it have different sizes, colors, or states?
|
|
225
|
+
4. **States** — default, hover, active, disabled, loading, error, empty
|
|
226
|
+
5. **Responsive behavior** — how does it change at different breakpoints?
|
|
227
|
+
6. **Interactions** — click, hover, focus, keyboard navigation
|
|
228
|
+
7. **Animations** — transitions, entrance/exit, micro-interactions — **`framer-motion` vs CSS** and exact timing
|
|
229
|
+
|
|
230
|
+
### Common Components to Look For
|
|
231
|
+
- Navigation (top bar, sidebar, bottom bar)
|
|
232
|
+
- Cards / list items
|
|
233
|
+
- Buttons and links
|
|
234
|
+
- Forms and inputs
|
|
235
|
+
- Modals and dialogs
|
|
236
|
+
- Dropdowns and menus
|
|
237
|
+
- Tabs and segmented controls
|
|
238
|
+
- Avatars and user badges
|
|
239
|
+
- Loading skeletons
|
|
240
|
+
- Toast notifications
|
|
241
|
+
- Tooltips and popovers
|
|
242
|
+
- **Video / Lottie / canvas** blocks (do not substitute with static mockups without documenting why)
|
|
243
|
+
|
|
244
|
+
## Phase 3: Layout Architecture
|
|
245
|
+
|
|
246
|
+
- [ ] **Grid system** — CSS Grid? Flexbox? Fixed widths?
|
|
247
|
+
- [ ] **Column layout** — how many columns at each breakpoint?
|
|
248
|
+
- [ ] **Max-width** — main content area max-width
|
|
249
|
+
- [ ] **Sticky elements** — header, sidebar, floating buttons
|
|
250
|
+
- [ ] **Z-index layers** — navigation, modals, tooltips, overlays
|
|
251
|
+
- [ ] **Scroll behavior** — infinite scroll, pagination, virtual scrolling
|
|
252
|
+
|
|
253
|
+
## Phase 4: Technical Stack Analysis
|
|
254
|
+
|
|
255
|
+
- [ ] **Framework** — React? Vue? Angular? Check `__NEXT_DATA__`, `__NUXT__`, `ng-version`
|
|
256
|
+
- [ ] **CSS approach** — Tailwind (utility classes), CSS Modules, Styled Components, Emotion, vanilla CSS
|
|
257
|
+
- [ ] **State management** — Redux (check DevTools), React Query, Zustand, Pinia
|
|
258
|
+
- [ ] **API patterns** — REST, GraphQL (check network tab for `/graphql` requests)
|
|
259
|
+
- [ ] **Font loading** — Google Fonts, self-hosted, system fonts
|
|
260
|
+
- [ ] **Image strategy** — CDN, lazy loading, srcset, WebP/AVIF — **mirror URLs you are allowed to fetch**
|
|
261
|
+
- [ ] **Animation library** — site may use GSAP, Lottie, Rive, or CSS only — **in the Next.js clone, default to Framer Motion** unless a different lib is required for parity
|
|
262
|
+
|
|
263
|
+
## Phase 5: Documentation Output
|
|
91
264
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
- [ ] **Every `<img>`** — `src` / `srcset` / `currentSrc`, `sizes`, `loading`, `decoding`, `alt`, intrinsic dimensions
|
|
101
|
-
- [ ] **`<picture>` / `<source>`** — resolution switches, art direction, `type` (WebP/AVIF)
|
|
102
|
-
- [ ] **Every `<video>`** — `src` + nested `<source>`, **poster**, `autoplay`, `loop`, `muted`, `playsinline`, `controls`
|
|
103
|
-
- [ ] **Background images** — `background-image` on ancestors (hero stacks are often **layers** of img + gradient + PNG mockup)
|
|
104
|
-
- [ ] **Lazy / below-fold** — scroll the page once before asset discovery so `data-src` / lazy-loaded URLs resolve if the site uses them
|
|
105
|
-
- [ ] **Download** — mirror into `public/images/` and `public/videos/` with stable paths; list failures in `docs/research/EXTRACTION_LIMITATIONS.md`
|
|
106
|
-
|
|
107
|
-
If automation hits a bot wall, **do not pretend extraction succeeded** — capture what you can from successful fetches and document gaps.
|
|
108
|
-
|
|
109
|
-
### 2. Motion (prefer Framer Motion in this repo)
|
|
110
|
-
|
|
111
|
-
- [ ] **Entrance** — fade/slide/scale on mount or on **scroll into view** (note threshold / `margin`)
|
|
112
|
-
- [ ] **Stagger** — children animating in sequence (hero bullets, card grids)
|
|
113
|
-
- [ ] **Scroll-linked** — progress, parallax, pinned sections (may combine with CSS `animation-timeline` or libs)
|
|
114
|
-
- [ ] **Gestures** — drag, pan, hover follow (often Framer Motion)
|
|
115
|
-
- [ ] **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.
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## How to Reverse-Engineer Any Website
|
|
120
|
-
|
|
121
|
-
This guide outlines what to capture when inspecting a target website via Chrome MCP or browser DevTools.
|
|
122
|
-
|
|
123
|
-
## Phase 1: Visual Audit
|
|
124
|
-
|
|
125
|
-
### Screenshots to Capture
|
|
126
|
-
- [ ] Every distinct page — desktop, tablet, mobile
|
|
127
|
-
- [ ] Dark mode variants (if applicable)
|
|
128
|
-
- [ ] Light mode variants (if applicable)
|
|
129
|
-
- [ ] Key interaction states (hover, active, open menus, modals)
|
|
130
|
-
- [ ] Loading/skeleton states
|
|
131
|
-
- [ ] Empty states
|
|
132
|
-
- [ ] Error states
|
|
133
|
-
- [ ] **Video frames** — capture a frame mid-play for reference if motion is subtle
|
|
134
|
-
- [ ] **Hero / full-bleed** — wide crops where raster layers are easy to miss
|
|
135
|
-
|
|
136
|
-
### Design Tokens to Extract
|
|
137
|
-
- [ ] **Colors** — background, text (primary/secondary/muted), accent, border, hover, error, success, warning
|
|
138
|
-
- [ ] **Typography** — font family, sizes (h1-h6, body, caption, label), weights, line heights, letter spacing
|
|
139
|
-
- [ ] **Spacing** — padding/margin patterns (look for a scale: 4px, 8px, 12px, 16px, 24px, 32px, etc.)
|
|
140
|
-
- [ ] **Border radius** — buttons, cards, avatars, inputs
|
|
141
|
-
- [ ] **Shadows/elevation** — card shadows, dropdown shadows, modal overlay
|
|
142
|
-
- [ ] **Breakpoints** — when does the layout shift? (inspect with DevTools responsive mode)
|
|
143
|
-
- [ ] **Icons** — which icon library? custom SVGs? sizes?
|
|
144
|
-
- [ ] **Avatars** — sizes, shapes, fallback behavior
|
|
145
|
-
- [ ] **Buttons** — all variants (primary, secondary, ghost, icon-only, danger)
|
|
146
|
-
- [ ] **Inputs** — text fields, textareas, selects, checkboxes, toggles
|
|
147
|
-
|
|
148
|
-
## Phase 2: Component Inventory
|
|
149
|
-
|
|
150
|
-
For each distinct UI component, document:
|
|
151
|
-
1. **Name** — what would you call this component?
|
|
152
|
-
2. **Structure** — what HTML elements / child components does it contain?
|
|
153
|
-
3. **Variants** — does it have different sizes, colors, or states?
|
|
154
|
-
4. **States** — default, hover, active, disabled, loading, error, empty
|
|
155
|
-
5. **Responsive behavior** — how does it change at different breakpoints?
|
|
156
|
-
6. **Interactions** — click, hover, focus, keyboard navigation
|
|
157
|
-
7. **Animations** — transitions, entrance/exit, micro-interactions — **`framer-motion` vs CSS** and exact timing
|
|
158
|
-
|
|
159
|
-
### Common Components to Look For
|
|
160
|
-
- Navigation (top bar, sidebar, bottom bar)
|
|
161
|
-
- Cards / list items
|
|
162
|
-
- Buttons and links
|
|
163
|
-
- Forms and inputs
|
|
164
|
-
- Modals and dialogs
|
|
165
|
-
- Dropdowns and menus
|
|
166
|
-
- Tabs and segmented controls
|
|
167
|
-
- Avatars and user badges
|
|
168
|
-
- Loading skeletons
|
|
169
|
-
- Toast notifications
|
|
170
|
-
- Tooltips and popovers
|
|
171
|
-
- **Video / Lottie / canvas** blocks (do not substitute with static mockups without documenting why)
|
|
172
|
-
|
|
173
|
-
## Phase 3: Layout Architecture
|
|
174
|
-
|
|
175
|
-
- [ ] **Grid system** — CSS Grid? Flexbox? Fixed widths?
|
|
176
|
-
- [ ] **Column layout** — how many columns at each breakpoint?
|
|
177
|
-
- [ ] **Max-width** — main content area max-width
|
|
178
|
-
- [ ] **Sticky elements** — header, sidebar, floating buttons
|
|
179
|
-
- [ ] **Z-index layers** — navigation, modals, tooltips, overlays
|
|
180
|
-
- [ ] **Scroll behavior** — infinite scroll, pagination, virtual scrolling
|
|
181
|
-
|
|
182
|
-
## Phase 4: Technical Stack Analysis
|
|
183
|
-
|
|
184
|
-
- [ ] **Framework** — React? Vue? Angular? Check `__NEXT_DATA__`, `__NUXT__`, `ng-version`
|
|
185
|
-
- [ ] **CSS approach** — Tailwind (utility classes), CSS Modules, Styled Components, Emotion, vanilla CSS
|
|
186
|
-
- [ ] **State management** — Redux (check DevTools), React Query, Zustand, Pinia
|
|
187
|
-
- [ ] **API patterns** — REST, GraphQL (check network tab for `/graphql` requests)
|
|
188
|
-
- [ ] **Font loading** — Google Fonts, self-hosted, system fonts
|
|
189
|
-
- [ ] **Image strategy** — CDN, lazy loading, srcset, WebP/AVIF — **mirror URLs you are allowed to fetch**
|
|
190
|
-
- [ ] **Animation library** — site may use GSAP, Lottie, Rive, or CSS only — **in the Next.js clone, default to Framer Motion** unless a different lib is required for parity
|
|
191
|
-
|
|
192
|
-
## Phase 5: Documentation Output
|
|
193
|
-
|
|
194
|
-
After inspection, create these files in `docs/research/`:
|
|
195
|
-
1. `DESIGN_TOKENS.md` — All extracted colors, typography, spacing
|
|
196
|
-
2. `COMPONENT_INVENTORY.md` — Every component with structure notes
|
|
197
|
-
3. **`MEDIA_MANIFEST.md`** — (recommended) Table of every image/video/poster URL → local `public/` path or “blocked”
|
|
198
|
-
4. `LAYOUT_ARCHITECTURE.md` — Page layouts, grid system, responsive behavior
|
|
199
|
-
5. `INTERACTION_PATTERNS.md` — Animations: **CSS vs Framer Motion**, transitions, hover states
|
|
200
|
-
6. `TECH_STACK_ANALYSIS.md` — What the site uses and our chosen equivalents (Framer Motion for React animation)
|
|
265
|
+
After inspection, create these files in `docs/research/`:
|
|
266
|
+
1. `DESIGN_TOKENS.md` — All extracted colors, typography, spacing
|
|
267
|
+
2. `COMPONENT_INVENTORY.md` — Every component with structure notes
|
|
268
|
+
3. **`MEDIA_MANIFEST.md`** — (recommended) Table of every image/video/poster URL → local `public/` path or “blocked”
|
|
269
|
+
4. `LAYOUT_ARCHITECTURE.md` — Page layouts, grid system, responsive behavior
|
|
270
|
+
5. `INTERACTION_PATTERNS.md` — Animations: **CSS vs Framer Motion**, transitions, hover states
|
|
271
|
+
6. `TECH_STACK_ANALYSIS.md` — What the site uses and our chosen equivalents (Framer Motion for React animation)
|
|
@@ -39,7 +39,7 @@ If the user provides additional instructions (specific fidelity level, deeper cu
|
|
|
39
39
|
## Pre-Flight
|
|
40
40
|
|
|
41
41
|
1. **Read `launchframe.config.json`** (see Step 0 above). After a fresh `npx launchframe` scaffold, proceed immediately — only echo `url`/`idea` for confirmation if the config looks wrong or the user asked to verify.
|
|
42
|
-
2. **Browser automation
|
|
42
|
+
2. **Browser automation.** Prefer an MCP (Chrome DevTools MCP, Playwright MCP, Browserbase MCP, etc.) when it is healthy. **If MCP is missing or in an error state, run `npm run recon` (Playwright)** — see `scripts/recon-playwright.mjs`. It writes `docs/research/computed-snapshot.json`, `docs/research/MEDIA_MANIFEST.md`, and full-page screenshots under `docs/design-references/`. Use `npm run recon:headed` if headless hits a WAF/challenge page. One-time install: `npx playwright install chromium`. Do not skip extraction — adapt the pipeline to the tools that work.
|
|
43
43
|
3. Validate the resolved URL(s). Normalize and verify each is accessible via your browser MCP tool. If any are invalid, ask the user to correct `launchframe.config.json` (or pass an override) before proceeding.
|
|
44
44
|
4. Verify the base project builds: `npm run build`. The Next.js + shadcn/ui + Tailwind v4 scaffold should already be in place. If not, tell the user to run `npm install` first.
|
|
45
45
|
5. Create the output directories if they don't exist: `docs/research/`, `docs/research/components/`, `docs/design-references/`, `scripts/`. Plan `docs/research/MEDIA_MANIFEST.md` as soon as media is inventoried. For multiple clones, also prepare per-site folders like `docs/research/<hostname>/` and `docs/design-references/<hostname>/`.
|
|
@@ -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
|
|
@@ -41,7 +41,7 @@ If the user provides additional instructions (specific fidelity level, deeper cu
|
|
|
41
41
|
## Pre-Flight
|
|
42
42
|
|
|
43
43
|
1. **Read `launchframe.config.json`** (see Step 0 above). After a fresh `npx launchframe` scaffold, proceed immediately — only echo `url`/`idea` for confirmation if the config looks wrong or the user asked to verify.
|
|
44
|
-
2. **Browser automation
|
|
44
|
+
2. **Browser automation.** Prefer an MCP (Chrome DevTools MCP, Playwright MCP, Browserbase MCP, etc.) when it is healthy. **If MCP is missing or in an error state, run `npm run recon` (Playwright)** — see `scripts/recon-playwright.mjs`. It writes `docs/research/computed-snapshot.json`, `docs/research/MEDIA_MANIFEST.md`, and full-page screenshots under `docs/design-references/`. Use `npm run recon:headed` if headless hits a WAF/challenge page. One-time install: `npx playwright install chromium`. Do not skip extraction — adapt the pipeline to the tools that work.
|
|
45
45
|
3. Validate the resolved URL(s). Normalize and verify each is accessible via your browser MCP tool. If any are invalid, ask the user to correct `launchframe.config.json` (or pass an override) before proceeding.
|
|
46
46
|
4. Verify the base project builds: `npm run build`. The Next.js + shadcn/ui + Tailwind v4 scaffold should already be in place. If not, tell the user to run `npm install` first.
|
|
47
47
|
5. Create the output directories if they don't exist: `docs/research/`, `docs/research/components/`, `docs/design-references/`, `scripts/`. Plan `docs/research/MEDIA_MANIFEST.md` as soon as media is inventoried. For multiple clones, also prepare per-site folders like `docs/research/<hostname>/` and `docs/design-references/<hostname>/`.
|
|
@@ -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
|