norahe0304-art/30x-video / cli/skill
30x-web-to-video
FlaggedUse when a user gives a brand URL and wants a premium launch, demo, or marketing video. Zero-manual workflow — Claude runs the V2 orchestrator itself (scrapes brand evidence, auto-installs missing tools, generates the first-cut Remotion project). User only sees the URL and the Studio preview.
rules/ui-mockups.md
View on GitHub# Product UI Mockups
The #1 rule: build REAL product interfaces in code, not abstract graphics.
## Core Principle
Every showcase scene constructs a REAL product interface — sidebars, navigation, data cards, charts, input fields, buttons — then animates it. The UI mockup IS the animation.
Examples:
- ChatGPT-style conversation UI with typing animation and thinking indicators
- Full dashboard with sidebar nav, data cards, SVG line charts
- IDE/code editor with syntax-highlighted code typing + terminal output
- Video generation grid with progress spinners and completion states
- Data table with sortable columns and animated row entrance
**NEVER use abstract floating shapes as primary visual.**
## Density Is Polish
Every UI panel must be PACKED with sub-elements:
- **Cards:** icon + label + large number + colored ▲/▼ badge + SVG chart + footer text
- **Dashboards:** sidebar (280px) + brand selector + nav items + breadcrumb + filter bar + card grid + tables/charts
- **Tables:** column headers + rows with colored dot indicators + border-bottom dividers
- **Every panel:** header row (icon + title + dropdown/button right) + body + footer
Fill EVERY pixel. Empty space → add a data row, status badge, filter chip, or sub-panel.
## Title Bar Details
- Code editors: macOS traffic lights (red/yellow/green 12px dots) + filename
- Dashboards: breadcrumbs + nav headers
- These tiny details signal "real product" not "mockup"
## Syntax-Colored Code
Different colors for keywords, strings, comments, function names. Dark editor (#1E1E1E). Monospace font. Line numbers in muted gray. Blinking cursor.
## Interactive Animations
Every scene needs at least one "living" element:
- Typing cursor in search/chat box (~2 frames per char)
- Mouse pointer moving to interactive element
- Progress bar filling
- Code lines appearing
- Spinner rotating
- Chart drawing
## Button and Dropdown Details
Real apps have filter buttons and dropdowns. Add: "Monthly ▾", "3 LLMs ▾", "Optimization Hub" CTA. These fill header/filter bars and create visual density.
## Animated Cursor
`MousePointer2` from lucide-react:
- White circle (12px), 50% opacity trailing shadow
- Spring bezier movement — NEVER teleport
- Click ripple: circle 0→40px fading over 8 frames
- Button depression: `scale(0.95)` on click, `scale(1)` after 4 frames
- Loading spinner (0.5s) before results after click
## Typing Effect: Pre-Render, Never Slice
**NEVER** use `text.slice(0, charCount)` for typing animations. Slicing causes the container to reflow (width/height changes as characters appear) — the visual result is text "sliding in from the right", not typing.
**CORRECT:** Render ALL characters upfront, set untyped chars to `color: transparent`:
```tsx
// Container size is fixed from frame 0 — no reflow, true typing
{text.split("").map((char, i) => (
<span key={i} style={{
color: i < charCount ? visibleColor : "transparent",
}}>
{char}
</span>
))}
{showCursor && (
<span style={{ color: visibleColor, opacity: 0.6, marginLeft: -2 }}>|</span>
)}
```
**WRONG:**
```tsx
// slice = container resizes every frame = fake typing
{text.slice(0, charCount)}
```
This applies everywhere: chat bubbles, code editors, terminal output, search boxes.
## UI Mockup Patterns
**Chat UI:**
```tsx
// sidebar (280px) | main chat area
// Header + messages (user right, AI left with avatar) + input box
const typedChars = Math.floor((frame - 35) / 1.5);
const showCursor = frame > 35 && frame % 16 < 10;
// Use transparent-char technique above, NEVER slice
```
**IDE:**
```tsx
// macOS title bar (3 dots + filename) | dark code area | terminal
const visibleLines = Math.min(codeLines.length, Math.floor((frame - 20) / 4));
```
**Dashboard:**
```tsx
// stat cards row (3 cards) + chart panel below
const barWidth = interpolate(barEntrance, [0, 1], [0, data.value]);
```
## Giant Terminal — 底升巨型终端 (实战验证规格, happy-model + caylent 双片验收)
终端作为一幕的主角时用这个规格,不用 scaffold `TerminalWindow` 默认尺寸硬撑。
**几何(1920×1080 landscape):**
- 宽 **1460–1560**,水平居中,`bottom: 0` 底边出血;`borderRadius: "22px 22px 0 0"`(顶圆角、底直角),`borderBottom: none`
- 入场 = spring 底升(`translateY((1-rise) * 660px)`,damping ~17, stiffness ~60)
- header:三个 15px 红黄绿点 + mono 26px 标题(写产品语境,如 `caylent accelerate — prod`),padding `20px 30px`
- body:padding `38px 52px 44px`,行 fontSize **30–31** mono,lineHeight 1.66,行距 gap 12
- 玻璃感:`background rgba(12,13,12,0.94)` + 1px 白 12% 描边 + `0 -20px 120px <brand>1C` 上投光
**内容契约:**
- **4–6 行,全部落在画内 — 最后一行 + 底 padding 必须完整可见。验收方式 = 渲一帧看,不是读代码。**
- 最长行 55–65 字符 ≈ 撑满 1560 宽的内容区;终端不许比内容宽出一半(右半空 = 失衡)
- 行内容讲一个完整故事弧(cmd → 事件 → 决策 → 动作 → 结果✓ → 落款),结果行用品牌色
- 逐行打字 3 字/帧、行间 gap 6–8f、活动行块状光标 `▌`(品牌色闪烁)
**死法清单(都真死过一次):**
- ❌ `scale()` hack 放大组件 — 比例失衡 + 内容被推出画(caylent v3:第 6 行整行裁掉)
- ❌ 负 bottom 偏移(`bottom: -8`)借位 — 底 padding 消失,最后一行贴边
- ❌ 组件默认字号太小就整体 scale — 正解是按本规格自建,字号/padding/宽度独立控制
- ❌ 终端窄内容配超宽窗 — 宽度跟着最长行走,不是跟着"看起来大气"走
[PROTOCOL]: 变更时更新此头部,然后检查 AGENTS.md
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |