agentcut 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +11 -2
- package/dist/bridge.d.ts +45 -0
- package/dist/bridge.js +691 -0
- package/dist/bridge.js.map +1 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +50 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/log.d.ts +1 -0
- package/dist/log.js +14 -0
- package/dist/log.js.map +1 -0
- package/dist/studio/agents/claude.d.ts +7 -0
- package/dist/studio/agents/claude.js +155 -0
- package/dist/studio/agents/claude.js.map +1 -0
- package/dist/studio/agents/codex.d.ts +4 -0
- package/dist/studio/agents/codex.js +169 -0
- package/dist/studio/agents/codex.js.map +1 -0
- package/dist/studio/agents/index.d.ts +8 -0
- package/dist/studio/agents/index.js +50 -0
- package/dist/studio/agents/index.js.map +1 -0
- package/dist/studio/agents/types.d.ts +131 -0
- package/dist/studio/agents/types.js +11 -0
- package/dist/studio/agents/types.js.map +1 -0
- package/dist/studio/bundler.d.ts +29 -0
- package/dist/studio/bundler.js +136 -0
- package/dist/studio/bundler.js.map +1 -0
- package/dist/studio/chat.d.ts +147 -0
- package/dist/studio/chat.js +681 -0
- package/dist/studio/chat.js.map +1 -0
- package/dist/studio/cli.d.ts +2 -0
- package/dist/studio/cli.js +194 -0
- package/dist/studio/cli.js.map +1 -0
- package/dist/studio/components.d.ts +4 -0
- package/dist/studio/components.js +36 -0
- package/dist/studio/components.js.map +1 -0
- package/dist/studio/host.d.ts +105 -0
- package/dist/studio/host.js +634 -0
- package/dist/studio/host.js.map +1 -0
- package/dist/studio/http.d.ts +21 -0
- package/dist/studio/http.js +240 -0
- package/dist/studio/http.js.map +1 -0
- package/dist/studio/music.d.ts +35 -0
- package/dist/studio/music.js +130 -0
- package/dist/studio/music.js.map +1 -0
- package/dist/studio/proc.d.ts +11 -0
- package/dist/studio/proc.js +69 -0
- package/dist/studio/proc.js.map +1 -0
- package/dist/studio/projects.d.ts +84 -0
- package/dist/studio/projects.js +369 -0
- package/dist/studio/projects.js.map +1 -0
- package/dist/studio/render.d.ts +24 -0
- package/dist/studio/render.js +197 -0
- package/dist/studio/render.js.map +1 -0
- package/dist/studio/reveal.d.ts +7 -0
- package/dist/studio/reveal.js +49 -0
- package/dist/studio/reveal.js.map +1 -0
- package/dist/studio/schema.d.ts +4152 -0
- package/dist/studio/schema.js +358 -0
- package/dist/studio/schema.js.map +1 -0
- package/dist/studio/tools.d.ts +2 -0
- package/dist/studio/tools.js +165 -0
- package/dist/studio/tools.js.map +1 -0
- package/dist/studio/voice.d.ts +150 -0
- package/dist/studio/voice.js +434 -0
- package/dist/studio/voice.js.map +1 -0
- package/dist/studio/workspace.d.ts +31 -0
- package/dist/studio/workspace.js +187 -0
- package/dist/studio/workspace.js.map +1 -0
- package/package.json +50 -4
- package/template/AGENTS.md +13 -0
- package/template/components/CATALOG.md +1306 -0
- package/template/components/README.md +61 -0
- package/template/components/STYLES.md +246 -0
- package/template/components/arcade-title/ArcadeTitle.tsx +860 -0
- package/template/components/arcade-title/meta.json +28 -0
- package/template/components/aurora/Aurora.tsx +63 -0
- package/template/components/aurora/meta.json +28 -0
- package/template/components/bar-wipe-title/BarWipeTitle.tsx +94 -0
- package/template/components/bar-wipe-title/meta.json +29 -0
- package/template/components/before-after/BeforeAfter.tsx +89 -0
- package/template/components/before-after/meta.json +233 -0
- package/template/components/bento-grid/BentoGrid.tsx +202 -0
- package/template/components/bento-grid/meta.json +25 -0
- package/template/components/blur-in-title/BlurInTitle.tsx +121 -0
- package/template/components/blur-in-title/meta.json +32 -0
- package/template/components/catalog.json +8730 -0
- package/template/components/catalog.ts +103 -0
- package/template/components/chat-thread/ChatThread.tsx +128 -0
- package/template/components/chat-thread/meta.json +24 -0
- package/template/components/checklist/Checklist.tsx +129 -0
- package/template/components/checklist/meta.json +25 -0
- package/template/components/confetti/Confetti.tsx +109 -0
- package/template/components/confetti/meta.json +28 -0
- package/template/components/countdown/Countdown.tsx +166 -0
- package/template/components/countdown/meta.json +28 -0
- package/template/components/cut-and-paste/CutAndPaste.tsx +654 -0
- package/template/components/cut-and-paste/meta.json +29 -0
- package/template/components/decode-text/DecodeText.tsx +97 -0
- package/template/components/decode-text/meta.json +29 -0
- package/template/components/editorial-quote/EditorialQuote.tsx +122 -0
- package/template/components/editorial-quote/meta.json +28 -0
- package/template/components/glitch-title/GlitchTitle.tsx +171 -0
- package/template/components/glitch-title/meta.json +32 -0
- package/template/components/halftone-wave/HalftoneWave.tsx +106 -0
- package/template/components/halftone-wave/meta.json +28 -0
- package/template/components/highlighter/Highlighter.tsx +142 -0
- package/template/components/highlighter/meta.json +28 -0
- package/template/components/hook-card/HookCard.tsx +552 -0
- package/template/components/hook-card/meta.json +304 -0
- package/template/components/index.ts +149 -0
- package/template/components/iris-wipe/IrisWipe.tsx +76 -0
- package/template/components/iris-wipe/meta.json +24 -0
- package/template/components/kinetic-poster/KineticPoster.tsx +437 -0
- package/template/components/kinetic-poster/meta.json +31 -0
- package/template/components/kinetic-punch/KineticPunch.tsx +80 -0
- package/template/components/kinetic-punch/meta.json +30 -0
- package/template/components/lava-lamp/LavaLamp.tsx +92 -0
- package/template/components/lava-lamp/meta.json +28 -0
- package/template/components/letter-cascade/LetterCascade.tsx +102 -0
- package/template/components/letter-cascade/meta.json +29 -0
- package/template/components/lib.ts +179 -0
- package/template/components/light-leak/LightLeakTransition.tsx +43 -0
- package/template/components/light-leak/meta.json +74 -0
- package/template/components/line-diagram/LineDiagram.tsx +205 -0
- package/template/components/line-diagram/meta.json +217 -0
- package/template/components/list-card/ListCard.tsx +104 -0
- package/template/components/list-card/meta.json +232 -0
- package/template/components/logo-sting/LogoSting.tsx +129 -0
- package/template/components/logo-sting/meta.json +29 -0
- package/template/components/looks.tsx +1447 -0
- package/template/components/lower-third/LowerThird.tsx +100 -0
- package/template/components/lower-third/meta.json +24 -0
- package/template/components/marquee/Marquee.tsx +100 -0
- package/template/components/marquee/meta.json +30 -0
- package/template/components/notification/Notification.tsx +115 -0
- package/template/components/notification/meta.json +27 -0
- package/template/components/outline-fill/OutlineFill.tsx +106 -0
- package/template/components/outline-fill/meta.json +28 -0
- package/template/components/panel-sweep/PanelSweep.tsx +86 -0
- package/template/components/panel-sweep/meta.json +25 -0
- package/template/components/prompt-box/PromptBox.tsx +131 -0
- package/template/components/prompt-box/meta.json +24 -0
- package/template/components/props.ts +73 -0
- package/template/components/quote-card/QuoteCard.tsx +71 -0
- package/template/components/quote-card/meta.json +216 -0
- package/template/components/shape-shift/ShapeShift.tsx +420 -0
- package/template/components/shape-shift/meta.json +31 -0
- package/template/components/slide-zoom-message/SlideZoomMessage.tsx +179 -0
- package/template/components/slide-zoom-message/meta.json +199 -0
- package/template/components/social-post/SocialPost.tsx +185 -0
- package/template/components/social-post/meta.json +30 -0
- package/template/components/split-flap/SplitFlap.tsx +191 -0
- package/template/components/split-flap/meta.json +29 -0
- package/template/components/spotlight-grid/SpotlightGrid.tsx +84 -0
- package/template/components/spotlight-grid/meta.json +25 -0
- package/template/components/stat-counter/StatCounter.tsx +117 -0
- package/template/components/stat-counter/meta.json +27 -0
- package/template/components/sticker-badge/StickerBadge.tsx +46 -0
- package/template/components/sticker-badge/meta.json +220 -0
- package/template/components/sticker-slam/StickerSlam.tsx +941 -0
- package/template/components/sticker-slam/meta.json +34 -0
- package/template/components/style-layer.tsx +233 -0
- package/template/components/styles.json +762 -0
- package/template/components/styles.ts +113 -0
- package/template/components/target-lock/TargetLock.tsx +662 -0
- package/template/components/target-lock/meta.json +32 -0
- package/template/components/text-reveal/TextReveal.tsx +99 -0
- package/template/components/text-reveal/meta.json +28 -0
- package/template/components/tile-wipe/TileWipe.tsx +75 -0
- package/template/components/tile-wipe/meta.json +24 -0
- package/template/components/type-zoom/TypeZoom.tsx +103 -0
- package/template/components/type-zoom/meta.json +27 -0
- package/template/components/types.ts +66 -0
- package/template/components/typewriter/Typewriter.tsx +112 -0
- package/template/components/typewriter/meta.json +29 -0
- package/template/components/word-pop/WordPop.tsx +59 -0
- package/template/components/word-pop/meta.json +237 -0
- package/template/components/word-stack/WordStack.tsx +122 -0
- package/template/components/word-stack/meta.json +27 -0
- package/template/components/word-swap/WordSwap.tsx +127 -0
- package/template/components/word-swap/meta.json +30 -0
- package/template/presets/charcoal-sketch/PROMPT.md +48 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-0.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-1.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-2.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/sketch-paper.jpg +0 -0
- package/template/presets/charcoal-sketch/assets/paper/smudge.png +0 -0
- package/template/presets/charcoal-sketch/poster.jpg +0 -0
- package/template/presets/charcoal-sketch/preset.json +17 -0
- package/template/presets/charcoal-sketch/preview.mp4 +0 -0
- package/template/presets/charcoal-sketch/scenes/Grain.tsx +23 -0
- package/template/presets/charcoal-sketch/scenes/Paper.tsx +17 -0
- package/template/presets/charcoal-sketch/scenes/examples/Agents.tsx +100 -0
- package/template/presets/charcoal-sketch/scenes/examples/Approvals.tsx +110 -0
- package/template/presets/charcoal-sketch/scenes/examples/Blog.tsx +105 -0
- package/template/presets/charcoal-sketch/scenes/examples/EndCard.tsx +41 -0
- package/template/presets/charcoal-sketch/scenes/examples/Hook.tsx +130 -0
- package/template/presets/charcoal-sketch/scenes/examples/Ideas.tsx +92 -0
- package/template/presets/charcoal-sketch/scenes/examples/Posting.tsx +128 -0
- package/template/presets/charcoal-sketch/scenes/lib/painfix.tsx +119 -0
- package/template/presets/charcoal-sketch/scenes/lib/sketch.tsx +291 -0
- package/template/presets/charcoal-sketch/scripts/build_layers.example.py +193 -0
- package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -0
- package/template/presets/charcoal-sketch/scripts/make_textures.py +93 -0
- package/template/presets/punk-cut-paper/PROMPT.md +37 -0
- package/template/presets/punk-cut-paper/assets/paper/desk-cream.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/grain-overlay.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-black.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-red.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-yellow.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/kraft.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/newsprint.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/paper-cream.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/paper-white.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/tape.png +0 -0
- package/template/presets/punk-cut-paper/build_layers.example.py +150 -0
- package/template/presets/punk-cut-paper/poster.jpg +0 -0
- package/template/presets/punk-cut-paper/preset.json +15 -0
- package/template/presets/punk-cut-paper/preview.mp4 +0 -0
- package/template/presets/punk-cut-paper/scenes/Backdrop.tsx +76 -0
- package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -0
- package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -0
- package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -0
- package/template/presets/punk-cut-paper/scenes/Xerox.tsx +31 -0
- package/template/presets/punk-cut-paper/scenes/lib/punk.tsx +208 -0
- package/template/runtime/composition.tsx +918 -0
- package/template/runtime/helpers.tsx +228 -0
- package/template/runtime/index.tsx +22 -0
- package/template/runtime/types.ts +248 -0
- package/template/skill/SKILL.md +149 -0
- package/template/skill/references/browser-export.md +61 -0
- package/template/skill/references/components.md +38 -0
- package/template/skill/references/craft.md +53 -0
- package/template/skill/references/cursor.md +91 -0
- package/template/skill/references/footage.md +73 -0
- package/template/skill/references/format.md +140 -0
- package/template/skill/references/presets.md +56 -0
- package/template/skill/references/sound.md +128 -0
- package/template/starter/.studio/chat.json +1 -0
- package/template/starter/assets/.keep +0 -0
- package/template/starter/layers.json +46 -0
- package/template/starter/notes.md +4 -0
- package/template/starter/project.json +13 -0
- package/template/starter/renders/.keep +0 -0
- package/template/starter/scenes/Title.tsx +38 -0
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Charcoal Sketch",
|
|
3
|
+
"description": "Product explainer as a pencil comic: boiling graphite lines on paper, one full-colour hero that dashes across and erases each pain into its fix, 80s synth-pop.",
|
|
4
|
+
"kind": "Product explainer",
|
|
5
|
+
"aspect": "wide",
|
|
6
|
+
"preview": "preview.mp4",
|
|
7
|
+
"poster": "poster.jpg",
|
|
8
|
+
"fields": [
|
|
9
|
+
{ "id": "topic", "label": "Product or topic", "type": "longtext", "required": true, "placeholder": "What it is and who it's for" },
|
|
10
|
+
{ "id": "story", "label": "Story", "type": "longtext", "placeholder": "Pains and how it fixes each one, or the beats you want" },
|
|
11
|
+
{ "id": "hero", "label": "Colour hero", "type": "images", "help": "Mascot, logo or product images to keep in colour (one per pose)." },
|
|
12
|
+
{ "id": "length", "label": "Length", "type": "text", "placeholder": "~60 s" },
|
|
13
|
+
{ "id": "voice", "label": "Voice-over", "type": "text", "placeholder": "Yes (Gemini Puck) or no" },
|
|
14
|
+
{ "id": "music", "label": "Music", "type": "audio", "help": "Leave empty to make new 80s synth-pop." },
|
|
15
|
+
{ "id": "endcard", "label": "End card", "type": "text", "placeholder": "Name · tagline · URL" }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Charcoal dust over the whole film, swapped on threes (paper "boil"). Drawn above the mascot too, very light.
|
|
2
|
+
import { AbsoluteFill, Img, useCurrentFrame } from "remotion";
|
|
3
|
+
import { asset, type SceneProps } from "agentcut";
|
|
4
|
+
import { boil, rng } from "./lib/sketch";
|
|
5
|
+
|
|
6
|
+
type Props = SceneProps & { opacity?: number };
|
|
7
|
+
|
|
8
|
+
export default function Grain({ opacity = 0.55 }: Props) {
|
|
9
|
+
const f = useCurrentFrame();
|
|
10
|
+
const b = boil(f);
|
|
11
|
+
const r = rng(b + 77);
|
|
12
|
+
const dx = Math.round((r() - 0.5) * 300), dy = Math.round((r() - 0.5) * 200);
|
|
13
|
+
return (
|
|
14
|
+
<AbsoluteFill style={{ overflow: "hidden", opacity }}>
|
|
15
|
+
<Img src={asset(`assets/paper/grain-${b % 3}.png`)} style={{
|
|
16
|
+
position: "absolute", left: -200, top: -150, width: 2320, height: 1380, transform: `translate(${dx}px, ${dy}px)`,
|
|
17
|
+
}} />
|
|
18
|
+
<AbsoluteFill style={{
|
|
19
|
+
background: "linear-gradient(90deg, rgba(40,38,36,0.16) 0%, rgba(40,38,36,0) 14%, rgba(40,38,36,0) 86%, rgba(40,38,36,0.16) 100%)",
|
|
20
|
+
}} />
|
|
21
|
+
</AbsoluteFill>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Drawing paper under everything. The sheet shifts a pixel or two on threes, like rotoscoped frames.
|
|
2
|
+
import { AbsoluteFill, Img, useCurrentFrame } from "remotion";
|
|
3
|
+
import { asset, type SceneProps } from "agentcut";
|
|
4
|
+
import { boil, rng } from "./lib/sketch";
|
|
5
|
+
|
|
6
|
+
export default function Paper(_: SceneProps) {
|
|
7
|
+
const f = useCurrentFrame();
|
|
8
|
+
const r = rng(boil(f) + 5);
|
|
9
|
+
const dx = (r() - 0.5) * 6, dy = (r() - 0.5) * 6;
|
|
10
|
+
return (
|
|
11
|
+
<AbsoluteFill style={{ background: "#E9E6DF", overflow: "hidden" }}>
|
|
12
|
+
<Img src={asset("assets/paper/sketch-paper.jpg")} style={{
|
|
13
|
+
position: "absolute", left: -12, top: -12, width: 1944, height: 1104, transform: `translate(${dx}px, ${dy}px)`,
|
|
14
|
+
}} />
|
|
15
|
+
</AbsoluteFill>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Pain 3: copy-pasting from your AI into five tools (chat sheet, arrows to five tool boxes, Ctrl+C / Ctrl+V scribbles)
|
|
2
|
+
// Fix 3: Rolino in the middle, your AI agents wired in, a padlock + check on every line (access you approve).
|
|
3
|
+
import { SPRING, sp, type SceneProps } from "agentcut";
|
|
4
|
+
import { PainFix } from "./lib/painfix";
|
|
5
|
+
import { HAND, HandText, Hatch, PRINT, SCRIPT, Sk, SkArrow, SkCheck, SkLine, SkPoly, SkRect, Smudge, prog } from "./lib/sketch";
|
|
6
|
+
|
|
7
|
+
type Props = SceneProps & {
|
|
8
|
+
tSwipe: number; tPainText: number; tFixText: number; painText: string; fixText: string;
|
|
9
|
+
tools: string[]; agents: string[]; footnote: string; tLocks: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default function Agents(p: Props) {
|
|
13
|
+
return (
|
|
14
|
+
<PainFix duration={p.clip.duration} tSwipe={p.tSwipe} tPainText={p.tPainText} tFixText={p.tFixText}
|
|
15
|
+
painText={p.painText} fixText={p.fixText} fixPose="working" fixAt={[1700, 1005, 300]} painSize={88}
|
|
16
|
+
pain={(f) => <Pain f={f} {...p} />} fix={(f, fl) => <Fix fl={fl} {...p} />} />
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const TOOLS_Y = (i: number) => 290 + i * 140;
|
|
21
|
+
|
|
22
|
+
function Pain({ f, tools }: Props & { f: number }) {
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<Smudge x={420} y={640} w={700} h={760} o={0.18} />
|
|
26
|
+
<Sk>
|
|
27
|
+
{/* AI chat sheet */}
|
|
28
|
+
<SkRect x={170} y={300} w={480} h={660} p={prog(f, 2, 12)} id={20} sw={4} fill="#EEEBE5" />
|
|
29
|
+
{[0, 1, 2, 3].map((k) => {
|
|
30
|
+
const y = 400 + k * 135, left = k % 2 === 0;
|
|
31
|
+
return (
|
|
32
|
+
<g key={k}>
|
|
33
|
+
<SkRect x={left ? 200 : 300} y={y} w={320} h={96} p={prog(f, 8 + k * 4, 8)} id={30 + k} sw={2.6} />
|
|
34
|
+
{[0, 1].map((j) => <SkLine key={j} a={[(left ? 220 : 320), y + 32 + j * 30]} b={[(left ? 480 : 590) - j * 60, y + 32 + j * 30]} p={prog(f, 10 + k * 4, 8)} id={40 + k * 2 + j} sw={2} o={0.55} />)}
|
|
35
|
+
</g>
|
|
36
|
+
);
|
|
37
|
+
})}
|
|
38
|
+
{/* five tool boxes */}
|
|
39
|
+
{tools.map((_, i) => (
|
|
40
|
+
<g key={i}>
|
|
41
|
+
<SkRect x={1080} y={TOOLS_Y(i)} w={330} h={104} p={prog(f, 14 + i * 4, 8)} id={60 + i} sw={3.4} />
|
|
42
|
+
<Hatch x={1086} y={TOOLS_Y(i) + 6} w={60} h={92} p={prog(f, 14 + i * 4, 8)} id={70 + i} gap={8} o={0.4} />
|
|
43
|
+
</g>
|
|
44
|
+
))}
|
|
45
|
+
{/* copy/paste arrows, drawn one after another, again and again */}
|
|
46
|
+
{tools.map((_, i) => {
|
|
47
|
+
const t0 = 34 + i * 14;
|
|
48
|
+
return <SkArrow key={i} a={[660, 620]} b={[1070, TOOLS_Y(i) + 52]} p={prog(f, t0, 8)} id={80 + i} sw={3} />;
|
|
49
|
+
})}
|
|
50
|
+
</Sk>
|
|
51
|
+
{tools.map((t, i) => (
|
|
52
|
+
<HandText key={t} x={1166} y={TOOLS_Y(i) + 24} size={50} font={SCRIPT} p={prog(f, 18 + i * 4, 6)} id={100 + i}>{t}</HandText>
|
|
53
|
+
))}
|
|
54
|
+
<HandText x={210} y={312} size={38} font={PRINT} weight={400} p={prog(f, 6, 6)} id={110}>AI chat</HandText>
|
|
55
|
+
{[0, 1, 2, 3, 4].map((i) => (
|
|
56
|
+
<HandText key={i} x={760 + (i % 2) * 40} y={330 + i * 130} size={40} font={SCRIPT} p={prog(f, 40 + i * 14, 6)} id={120 + i} rot={-8 + i * 4} color="#4a4744">
|
|
57
|
+
{i % 2 === 0 ? "Ctrl+C" : "Ctrl+V"}
|
|
58
|
+
</HandText>
|
|
59
|
+
))}
|
|
60
|
+
</>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const HUB = { x: 690, y: 500, w: 420, h: 220 };
|
|
65
|
+
const SPOTS: [number, number][] = [[200, 300], [1210, 300], [200, 790], [1210, 790]];
|
|
66
|
+
|
|
67
|
+
function Fix({ fl, agents, footnote, tLocks }: Props & { fl: number }) {
|
|
68
|
+
const cx = HUB.x + HUB.w / 2, cy = HUB.y + HUB.h / 2;
|
|
69
|
+
return (
|
|
70
|
+
<>
|
|
71
|
+
<Smudge x={cx} y={cy + 30} w={900} h={520} o={0.2} />
|
|
72
|
+
<Sk>
|
|
73
|
+
<SkRect x={HUB.x} y={HUB.y} w={HUB.w} h={HUB.h} p={prog(fl, -2, 10)} id={200} sw={6} fill="#EFECE6" />
|
|
74
|
+
{SPOTS.map(([x, y], i) => {
|
|
75
|
+
const bx = x + 150, by = y + 50;
|
|
76
|
+
const lx = (bx + cx) / 2, ly = (by + cy) / 2;
|
|
77
|
+
const lock = sp(fl, tLocks + i * 6, SPRING.pop);
|
|
78
|
+
return (
|
|
79
|
+
<g key={i}>
|
|
80
|
+
<SkRect x={x} y={y} w={300} h={100} p={prog(fl, 6 + i * 4, 8)} id={210 + i} sw={3.6} />
|
|
81
|
+
<SkLine a={[x < cx ? x + 300 : x, by]} b={[x < cx ? HUB.x : HUB.x + HUB.w, cy + (y < cy ? -50 : 50)]} p={prog(fl, 12 + i * 4, 10)} id={220 + i} sw={3} />
|
|
82
|
+
{fl >= tLocks + i * 6 && (
|
|
83
|
+
<g transform={`translate(${lx - 30} ${ly - 30}) scale(${lock * 1.7})`} >
|
|
84
|
+
<SkRect x={-22} y={-4} w={44} h={36} id={230 + i} sw={3.4} fill="#EFECE6" />
|
|
85
|
+
<SkPoly pts={[[-13, -4], [-13, -20], [0, -30], [13, -20], [13, -4]]} id={240 + i} sw={3} />
|
|
86
|
+
<SkCheck x={22} y={10} s={0.8} id={250 + i} sw={4} />
|
|
87
|
+
</g>
|
|
88
|
+
)}
|
|
89
|
+
</g>
|
|
90
|
+
);
|
|
91
|
+
})}
|
|
92
|
+
</Sk>
|
|
93
|
+
<HandText x={cx} y={HUB.y + 58} size={92} font={HAND} p={prog(fl, 2, 8)} id={260} align="center" width={HUB.w}>Rolino</HandText>
|
|
94
|
+
{SPOTS.map(([x, y], i) => (
|
|
95
|
+
<HandText key={i} x={x + 150} y={y + 22} size={50} font={SCRIPT} p={prog(fl, 10 + i * 4, 6)} id={270 + i} align="center" width={300}>{agents[i]}</HandText>
|
|
96
|
+
))}
|
|
97
|
+
<HandText x={200} y={950} size={28} font={PRINT} weight={400} p={prog(fl, 40, 10)} id={280} color="#55524e">{footnote}</HandText>
|
|
98
|
+
</>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Pain 2: approvals lost in email threads (scattered envelopes, Re: Re: Fwd subjects, one tangled thread line)
|
|
2
|
+
// Fix 2: one review panel — post preview, the client's comment, Approve pressed, APPROVED stamp.
|
|
3
|
+
import { SPRING, mix, sp, type SceneProps } from "agentcut";
|
|
4
|
+
import { PainFix } from "./lib/painfix";
|
|
5
|
+
import { HAND, HandText, Hatch, PRINT, SCRIPT, Sk, SkEllipse, SkLine, SkPoly, SkRect, Smudge, clamp, prog, rng } from "./lib/sketch";
|
|
6
|
+
|
|
7
|
+
type Props = SceneProps & {
|
|
8
|
+
tSwipe: number; tPainText: number; tFixText: number; painText: string; fixText: string;
|
|
9
|
+
subjects: string[]; client: string; comment: string; tPress: number; tStamp: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ENV = [
|
|
13
|
+
{ x: 150, y: 300, r: -6 }, { x: 560, y: 270, r: 4 }, { x: 980, y: 320, r: -3 },
|
|
14
|
+
{ x: 260, y: 640, r: 5 }, { x: 700, y: 610, r: -4 }, { x: 1120, y: 660, r: 3 },
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export default function Approvals(p: Props) {
|
|
18
|
+
return (
|
|
19
|
+
<PainFix duration={p.clip.duration} tSwipe={p.tSwipe} tPainText={p.tPainText} tFixText={p.tFixText}
|
|
20
|
+
painText={p.painText} fixText={p.fixText} fixPose="celebration" fixAt={[1720, 1005, 320]}
|
|
21
|
+
pain={(f) => <Pain f={f} {...p} />} fix={(f, fl) => <Fix fl={fl} {...p} />} />
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function Pain({ f, subjects }: Props & { f: number }) {
|
|
26
|
+
// the tangled thread: a long wandering line through every envelope
|
|
27
|
+
const r = rng(42);
|
|
28
|
+
const thread: [number, number][] = [];
|
|
29
|
+
for (let i = 0; i < 14; i++) thread.push([180 + r() * 1200, 300 + r() * 620]);
|
|
30
|
+
return (
|
|
31
|
+
<>
|
|
32
|
+
<Smudge x={760} y={620} w={1400} h={700} o={0.18} />
|
|
33
|
+
<Sk>
|
|
34
|
+
{ENV.map((e, i) => {
|
|
35
|
+
const pp = prog(f, 4 + i * 5, 10);
|
|
36
|
+
return (
|
|
37
|
+
<g key={i} transform={`rotate(${e.r} ${e.x + 190} ${e.y + 110})`}>
|
|
38
|
+
<SkRect x={e.x} y={e.y} w={380} h={220} p={pp} id={20 + i} sw={3.4} fill="#EEEBE5" />
|
|
39
|
+
<SkPoly pts={[[e.x, e.y], [e.x + 190, e.y + 110], [e.x + 380, e.y]]} p={pp} id={30 + i} sw={3} />
|
|
40
|
+
<Hatch x={e.x + 300} y={e.y + 16} w={60} h={40} p={pp} id={40 + i} gap={7} o={0.5} />
|
|
41
|
+
</g>
|
|
42
|
+
);
|
|
43
|
+
})}
|
|
44
|
+
<SkPoly pts={thread} p={prog(f, 36, 70)} id={60} sw={2.4} o={0.5} rough={1.5} />
|
|
45
|
+
{/* question marks */}
|
|
46
|
+
{[[1430, 420], [1300, 800]].map(([x, y], i) => (
|
|
47
|
+
<SkEllipse key={i} cx={x} cy={y} rx={10} ry={10} p={prog(f, 70 + i * 8, 6)} id={70 + i} sw={6} />
|
|
48
|
+
))}
|
|
49
|
+
</Sk>
|
|
50
|
+
{ENV.map((e, i) => (
|
|
51
|
+
<HandText key={i} x={e.x + 20} y={e.y + 150} size={34} font={PRINT} weight={400} p={prog(f, 10 + i * 5, 8)} id={80 + i}
|
|
52
|
+
rot={e.r} width={360}>{subjects[i % subjects.length]}</HandText>
|
|
53
|
+
))}
|
|
54
|
+
<HandText x={1390} y={300} size={160} font={HAND} p={prog(f, 70, 6)} id={90}>?</HandText>
|
|
55
|
+
<HandText x={1260} y={680} size={120} font={HAND} p={prog(f, 78, 6)} id={91} rot={12}>?</HandText>
|
|
56
|
+
</>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function Fix({ fl, client, comment, tPress, tStamp }: Props & { fl: number }) {
|
|
61
|
+
const pg = (d: number, l = 10) => prog(fl, d, l);
|
|
62
|
+
const pressed = fl >= tPress;
|
|
63
|
+
const stamp = sp(fl, tStamp, SPRING.land);
|
|
64
|
+
return (
|
|
65
|
+
<>
|
|
66
|
+
<Smudge x={820} y={640} w={1500} h={760} o={0.14} />
|
|
67
|
+
<Sk>
|
|
68
|
+
<SkRect x={170} y={270} w={1330} h={720} p={pg(-2, 12)} id={200} sw={4.5} fill="#EFECE6" />
|
|
69
|
+
{/* post preview */}
|
|
70
|
+
<SkRect x={220} y={330} w={560} h={600} p={pg(4)} id={201} sw={3.2} />
|
|
71
|
+
<SkEllipse cx={270} cy={380} rx={26} ry={26} p={pg(6)} id={202} sw={3} />
|
|
72
|
+
<SkRect x={240} y={430} w={520} h={300} p={pg(8)} id={203} sw={3} />
|
|
73
|
+
<Hatch x={246} y={436} w={508} h={288} p={pg(8)} id={204} gap={14} o={0.25} />
|
|
74
|
+
{[0, 1, 2].map((k) => <SkLine key={k} a={[240, 770 + k * 40]} b={[740 - k * 120, 770 + k * 40]} p={pg(12 + k * 2)} id={205 + k} sw={2.4} o={0.6} />)}
|
|
75
|
+
{/* comment bubble */}
|
|
76
|
+
<SkPoly pts={[[840, 340], [1450, 340], [1450, 560], [920, 560], [880, 610], [890, 560], [840, 560]]} closed p={pg(14, 12)} id={210} sw={3.4} />
|
|
77
|
+
{/* buttons */}
|
|
78
|
+
<SkRect x={840} y={800} w={290} h={110} p={pg(20)} id={220} sw={3.4} />
|
|
79
|
+
<SkRect x={1160} y={800 + (pressed ? 4 : 0)} w={290} h={110} p={pg(22)} id={221} sw={5} fill={pressed ? "#3a3734" : "#d9d5ce"} />
|
|
80
|
+
{pressed && fl < tPress + 8 && [0, 1, 2, 3, 4].map((k) => {
|
|
81
|
+
const a = (k / 5) * Math.PI * 2;
|
|
82
|
+
return <SkLine key={k} a={[1305 + Math.cos(a) * 170, 855 + Math.sin(a) * 80]} b={[1305 + Math.cos(a) * 205, 855 + Math.sin(a) * 100]} id={225 + k} sw={3} />;
|
|
83
|
+
})}
|
|
84
|
+
{/* pointer that presses Approve */}
|
|
85
|
+
{fl >= tPress - 14 && (() => {
|
|
86
|
+
const t = clamp((fl - (tPress - 14)) / 14, 0, 1);
|
|
87
|
+
const x = mix(1500, 1330, t), y = mix(1000, 870, t);
|
|
88
|
+
return <SkPoly pts={[[x, y], [x + 18, y + 52], [x + 28, y + 34], [x + 52, y + 46], [x, y]]} closed id={230} sw={3.4} />;
|
|
89
|
+
})()}
|
|
90
|
+
{/* APPROVED stamp */}
|
|
91
|
+
{fl >= tStamp && (
|
|
92
|
+
<g transform={`rotate(-9 500 580) translate(${500 * (1 - mix(1.4, 1, stamp))} ${580 * (1 - mix(1.4, 1, stamp))}) scale(${mix(1.4, 1, stamp)})`} opacity={Math.min(1, stamp * 2)}>
|
|
93
|
+
<SkRect x={230} y={495} w={540} h={170} id={240} sw={7} fill="#EFECE6" />
|
|
94
|
+
<SkRect x={246} y={511} w={508} h={138} id={241} sw={3} o={0.7} />
|
|
95
|
+
</g>
|
|
96
|
+
)}
|
|
97
|
+
</Sk>
|
|
98
|
+
<HandText x={312} y={360} size={34} font={SCRIPT} p={pg(8, 6)} id={250}>{client}</HandText>
|
|
99
|
+
<HandText x={870} y={360} size={30} font={PRINT} weight={400} p={pg(18, 6)} id={251} color="#4a4744">Client · {client}</HandText>
|
|
100
|
+
<HandText x={870} y={410} size={58} font={SCRIPT} p={pg(22, 12)} id={252} width={560}>{comment}</HandText>
|
|
101
|
+
<HandText x={985} y={828} size={38} font={PRINT} weight={400} p={pg(24, 6)} id={253} align="center" width={290}>Request changes</HandText>
|
|
102
|
+
<HandText x={1305} y={824} size={46} font={HAND} p={pg(26, 6)} id={254} align="center" width={290} color={pressed ? "#F1EEE8" : "#2a2826"}>Approve</HandText>
|
|
103
|
+
{fl >= tStamp && (
|
|
104
|
+
<div style={{ position: "absolute", left: 0, top: 0, opacity: Math.min(1, stamp * 2), transform: `rotate(-9deg) scale(${mix(1.4, 1, stamp)})`, transformOrigin: "500px 580px", width: 1920, height: 1080 }}>
|
|
105
|
+
<HandText x={500} y={517} size={118} font={HAND} id={260} align="center" width={540} style={{ letterSpacing: 6 }}>APPROVED</HandText>
|
|
106
|
+
</div>
|
|
107
|
+
)}
|
|
108
|
+
</>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Pain 4: a blog that hasn't moved in months (browser sketch, "Last post: March", cobweb, month pages crossed out)
|
|
2
|
+
// Fix 4: a blog plan — Tue/Thu articles planned and drafted, then "You approve" ticked before anything goes live.
|
|
3
|
+
import { type SceneProps } from "agentcut";
|
|
4
|
+
import { PainFix } from "./lib/painfix";
|
|
5
|
+
import { HAND, HandText, Hatch, PRINT, SCRIPT, Sk, SkCheck, SkEllipse, SkLine, SkPoly, SkRect, Smudge, prog } from "./lib/sketch";
|
|
6
|
+
|
|
7
|
+
type Row = { day: string; title: string; status: string };
|
|
8
|
+
type Props = SceneProps & {
|
|
9
|
+
tSwipe: number; tPainText: number; tFixText: number; painText: string; fixText: string;
|
|
10
|
+
months: string[]; rows: Row[]; tApprove: number; approveText: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default function Blog(p: Props) {
|
|
14
|
+
return (
|
|
15
|
+
<PainFix duration={p.clip.duration} tSwipe={p.tSwipe} tPainText={p.tPainText} tFixText={p.tFixText}
|
|
16
|
+
painText={p.painText} fixText={p.fixText} fixPose="idea" fixAt={[1715, 1005, 330]}
|
|
17
|
+
pain={(f) => <Pain f={f} {...p} />} fix={(f, fl) => <Fix fl={fl} {...p} />} />
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function Pain({ f, months }: Props & { f: number }) {
|
|
22
|
+
const W = { x: 170, y: 280, w: 980, h: 700 };
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<Smudge x={660} y={640} w={1200} h={760} o={0.2} />
|
|
26
|
+
<Sk>
|
|
27
|
+
<SkRect x={W.x} y={W.y} w={W.w} h={W.h} p={prog(f, 2, 12)} id={20} sw={4} fill="#EEEBE5" />
|
|
28
|
+
<SkLine a={[W.x, W.y + 60]} b={[W.x + W.w, W.y + 60]} p={prog(f, 6, 8)} id={21} sw={3} />
|
|
29
|
+
{[0, 1, 2].map((k) => <SkEllipse key={k} cx={W.x + 34 + k * 36} cy={W.y + 30} rx={10} ry={10} p={prog(f, 8, 6)} id={22 + k} sw={2.6} />)}
|
|
30
|
+
<SkRect x={W.x + 60} y={W.y + 220} w={860} h={360} p={prog(f, 14, 10)} id={30} sw={3} />
|
|
31
|
+
<Hatch x={W.x + 66} y={W.y + 226} w={300} h={348} p={prog(f, 16, 10)} id={31} gap={12} o={0.3} />
|
|
32
|
+
{[0, 1, 2].map((k) => <SkLine key={k} a={[W.x + 400, W.y + 380 + k * 44]} b={[W.x + 860 - k * 90, W.y + 380 + k * 44]} p={prog(f, 20 + k * 2, 8)} id={32 + k} sw={2.4} o={0.55} />)}
|
|
33
|
+
{/* cobweb in the top-right corner of the window */}
|
|
34
|
+
{[0, 1, 2, 3, 4].map((k) => {
|
|
35
|
+
const a = (Math.PI / 2) * (k / 4);
|
|
36
|
+
return <SkLine key={k} a={[W.x + W.w, W.y + 60]} b={[W.x + W.w - Math.sin(a) * 230, W.y + 60 + Math.cos(a) * 230]} p={prog(f, 30 + k * 2, 8)} id={40 + k} sw={1.8} o={0.6} />;
|
|
37
|
+
})}
|
|
38
|
+
{[70, 130, 190].map((r, k) => {
|
|
39
|
+
const pts: [number, number][] = [0, 1, 2, 3, 4].map((j) => {
|
|
40
|
+
const a = (Math.PI / 2) * (j / 4);
|
|
41
|
+
return [W.x + W.w - Math.sin(a) * r, W.y + 60 + Math.cos(a) * r];
|
|
42
|
+
});
|
|
43
|
+
return <SkPoly key={k} pts={pts} p={prog(f, 38 + k * 3, 8)} id={50 + k} sw={1.6} o={0.55} />;
|
|
44
|
+
})}
|
|
45
|
+
{/* month pages, each crossed out */}
|
|
46
|
+
{months.map((_, i) => {
|
|
47
|
+
const x = 1220 + (i % 2) * 150, y = 300 + i * 120;
|
|
48
|
+
const pp = prog(f, 40 + i * 8, 8);
|
|
49
|
+
return (
|
|
50
|
+
<g key={i} transform={`rotate(${(i % 2 ? 6 : -5)} ${x + 90} ${y + 50})`}>
|
|
51
|
+
<SkRect x={x} y={y} w={190} h={100} p={pp} id={60 + i} sw={3} fill="#EEEBE5" />
|
|
52
|
+
<SkLine a={[x - 10, y + 70]} b={[x + 200, y + 30]} p={prog(f, 46 + i * 8, 4)} id={70 + i} sw={4} />
|
|
53
|
+
</g>
|
|
54
|
+
);
|
|
55
|
+
})}
|
|
56
|
+
</Sk>
|
|
57
|
+
<HandText x={W.x + 60} y={W.y + 100} size={84} font={HAND} p={prog(f, 10, 8)} id={80}>BLOG</HandText>
|
|
58
|
+
<HandText x={W.x + 400} y={W.y + 250} size={56} font={SCRIPT} p={prog(f, 22, 10)} id={81}>Last post: March</HandText>
|
|
59
|
+
{months.map((m, i) => (
|
|
60
|
+
<HandText key={m} x={1220 + (i % 2) * 150 + 95} y={300 + i * 120 + 24} size={46} font={SCRIPT} p={prog(f, 42 + i * 8, 6)} id={90 + i}
|
|
61
|
+
align="center" width={190} rot={i % 2 ? 6 : -5}>{m}</HandText>
|
|
62
|
+
))}
|
|
63
|
+
</>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function Fix({ fl, rows, tApprove, approveText }: Props & { fl: number }) {
|
|
68
|
+
const X = 170, Y = 280, W = 1330;
|
|
69
|
+
return (
|
|
70
|
+
<>
|
|
71
|
+
<Smudge x={X + W / 2} y={640} w={1500} h={760} o={0.14} />
|
|
72
|
+
<Sk>
|
|
73
|
+
<SkRect x={X} y={Y} w={W} h={560} p={prog(fl, -2, 12)} id={200} sw={4.5} fill="#EFECE6" />
|
|
74
|
+
<SkLine a={[X, Y + 90]} b={[X + W, Y + 90]} p={prog(fl, 4, 8)} id={201} sw={3} />
|
|
75
|
+
{rows.map((_, i) => {
|
|
76
|
+
const y = Y + 90 + i * 156;
|
|
77
|
+
return (
|
|
78
|
+
<g key={i}>
|
|
79
|
+
{i > 0 && <SkLine a={[X + 20, y]} b={[X + W - 20, y]} p={prog(fl, 8 + i * 6, 8)} id={210 + i} sw={2} o={0.55} />}
|
|
80
|
+
<SkRect x={X + 30} y={y + 30} w={110} h={96} p={prog(fl, 10 + i * 6, 8)} id={220 + i} sw={3} />
|
|
81
|
+
<Hatch x={X + 34} y={y + 34} w={102} h={88} p={prog(fl, 12 + i * 6, 8)} id={230 + i} gap={10} o={0.3} />
|
|
82
|
+
<SkRect x={X + W - 330} y={y + 46} w={290} h={64} p={prog(fl, 14 + i * 6, 8)} id={240 + i} sw={i === 0 ? 4 : 2.6} />
|
|
83
|
+
</g>
|
|
84
|
+
);
|
|
85
|
+
})}
|
|
86
|
+
{/* approval gate */}
|
|
87
|
+
<SkRect x={X} y={Y + 600} w={84} h={84} p={prog(fl, tApprove - 20, 8)} id={260} sw={4.5} />
|
|
88
|
+
<SkCheck x={X + 14} y={Y + 640} s={1.4} p={prog(fl, tApprove, 6)} id={261} sw={7} />
|
|
89
|
+
</Sk>
|
|
90
|
+
<HandText x={X + 40} y={Y + 18} size={56} font={HAND} p={prog(fl, 2, 8)} id={270}>Blog plan</HandText>
|
|
91
|
+
<HandText x={X + 380} y={Y + 30} size={40} font={PRINT} weight={400} p={prog(fl, 6, 8)} id={271} color="#4a4744">Tue + Thu · next article prepared</HandText>
|
|
92
|
+
{rows.map((r, i) => {
|
|
93
|
+
const y = Y + 90 + i * 156;
|
|
94
|
+
return (
|
|
95
|
+
<div key={i}>
|
|
96
|
+
<HandText x={X + 170} y={y + 26} size={34} font={PRINT} weight={400} p={prog(fl, 12 + i * 6, 6)} id={280 + i} color="#4a4744">{r.day}</HandText>
|
|
97
|
+
<HandText x={X + 170} y={y + 66} size={54} font={SCRIPT} p={prog(fl, 14 + i * 6, 10)} id={290 + i}>{r.title}</HandText>
|
|
98
|
+
<HandText x={X + W - 185} y={y + 58} size={38} font={PRINT} weight={400} p={prog(fl, 18 + i * 6, 6)} id={300 + i} align="center" width={290}>{r.status}</HandText>
|
|
99
|
+
</div>
|
|
100
|
+
);
|
|
101
|
+
})}
|
|
102
|
+
<HandText x={X + 120} y={Y + 608} size={64} font={HAND} p={prog(fl, tApprove - 16, 12)} id={310}>{approveText}</HandText>
|
|
103
|
+
</>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// End card: one big comic panel; the colour mascot waves, ROLINO is lettered in charcoal, the line and URL follow
|
|
2
|
+
// the voice; a burst of pencil rays on the final hit.
|
|
3
|
+
import { useCurrentFrame } from "remotion";
|
|
4
|
+
import { SPRING, mix, sp, type SceneProps } from "agentcut";
|
|
5
|
+
import { HAND, HandText, Mascot, MascotShadow, SCRIPT, Sk, SkLine, SkRect, Smudge, prog } from "./lib/sketch";
|
|
6
|
+
|
|
7
|
+
type Props = SceneProps & {
|
|
8
|
+
title: string; line: string; url: string; tTitle: number; tLine: number; tUrl: number; tHit: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default function EndCard({ title, line, url, tTitle, tLine, tUrl, tHit }: Props) {
|
|
12
|
+
const f = useCurrentFrame();
|
|
13
|
+
const land = sp(f, 4, SPRING.land);
|
|
14
|
+
const hit = f >= tHit ? Math.max(0, 1 - (f - tHit) / 10) : 0;
|
|
15
|
+
const mx = 520, my = mix(-200, 930, land);
|
|
16
|
+
const urlP = sp(f, tUrl, SPRING.pop);
|
|
17
|
+
return (
|
|
18
|
+
<>
|
|
19
|
+
<Smudge x={mx} y={900} w={700} h={260} o={0.25} />
|
|
20
|
+
<Sk>
|
|
21
|
+
<SkRect x={56} y={44} w={1808} h={992} p={prog(f, 0, 10)} id={7} sw={7} />
|
|
22
|
+
<SkRect x={72} y={60} w={1776} h={960} p={prog(f, 4, 10)} id={8} sw={2.4} o={0.6} />
|
|
23
|
+
{/* pencil rays behind the mascot on the final hit (and faintly before) */}
|
|
24
|
+
{Array.from({ length: 14 }, (_, i) => {
|
|
25
|
+
const a = (i / 14) * Math.PI * 2;
|
|
26
|
+
const r0 = 280 + hit * 30, r1 = 360 + hit * 120;
|
|
27
|
+
return <SkLine key={i} a={[mx + Math.cos(a) * r0, 700 + Math.sin(a) * r0 * 0.8]} b={[mx + Math.cos(a) * r1, 700 + Math.sin(a) * r1 * 0.8]}
|
|
28
|
+
p={prog(f, 20 + i, 6)} id={20 + i} sw={3 + hit * 3} o={0.45 + hit * 0.5} />;
|
|
29
|
+
})}
|
|
30
|
+
<SkLine a={[900, 560]} b={[1720, 552]} p={prog(f, tTitle + 14, 10)} id={40} sw={6} />
|
|
31
|
+
{urlP > 0 && <SkRect x={940} y={800} w={720} h={130} id={41} sw={4.5} p={prog(f, tUrl, 8)} />}
|
|
32
|
+
</Sk>
|
|
33
|
+
{land > 0.05 && <MascotShadow x={mx} y={930} w={300} o={0.5} />}
|
|
34
|
+
<Mascot pose="wave" x={mx} y={my} h={500} rot={mix(-10, 0, land)} squash={hit * 0.05} />
|
|
35
|
+
<HandText x={1300} y={300} size={250} font={HAND} p={prog(f, tTitle, 14)} id={50} align="center" width={900}
|
|
36
|
+
style={{ letterSpacing: 10, transform: `scale(${1 + hit * 0.04})` }}>{title}</HandText>
|
|
37
|
+
<HandText x={1300} y={610} size={72} font={SCRIPT} p={prog(f, tLine, 20)} id={51} align="center" width={980}>{line}</HandText>
|
|
38
|
+
<HandText x={1300} y={822} size={84} font={HAND} p={prog(f, tUrl + 2, 10)} id={52} align="center" width={720}>{url}</HandText>
|
|
39
|
+
</>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// Hook: a comic page sketches itself, one panel per phrase ("Ten clients. Ten calendars. One very tired team.").
|
|
2
|
+
// All charcoal. At the drop the colour mascot jumps up through the gutter and the page blows away.
|
|
3
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
4
|
+
import { SPRING, ease, mix, sp, type SceneProps } from "agentcut";
|
|
5
|
+
import {
|
|
6
|
+
HAND, Hatch, HandText, INK, Mascot, MascotShadow, PRINT, Sk, SkEllipse, SkLine, SkPoly, SkRect, prog, rng, boil,
|
|
7
|
+
} from "./lib/sketch";
|
|
8
|
+
|
|
9
|
+
type Props = SceneProps & {
|
|
10
|
+
t1: number; t2: number; t3: number; tShake: number; tMascot: number; tDrop: number;
|
|
11
|
+
l1: string; l2: string; l3: string; clients: string[];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const PANELS = [
|
|
15
|
+
{ x: 70, y: 90, w: 570, h: 900 },
|
|
16
|
+
{ x: 675, y: 90, w: 570, h: 900 },
|
|
17
|
+
{ x: 1280, y: 90, w: 570, h: 900 },
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export default function Hook({ t1, t2, t3, tShake, tMascot, tDrop, l1, l2, l3, clients, clip }: Props) {
|
|
21
|
+
const f = useCurrentFrame();
|
|
22
|
+
const shake = f >= tShake && f < tDrop ? (rng(boil(f, 2) + 3)() - 0.5) * mix(2, 10, ease(f, tShake, tDrop)) : 0;
|
|
23
|
+
const blow = ease(f, tDrop - 2, tDrop + 12);
|
|
24
|
+
const pageStyle = {
|
|
25
|
+
transform: `translate(${shake}px, ${shake * 0.6}px) scale(${1 + blow * 0.35}) rotate(${blow * -4}deg)`,
|
|
26
|
+
opacity: 1 - blow,
|
|
27
|
+
};
|
|
28
|
+
const out = ease(f, clip.duration - 8, clip.duration);
|
|
29
|
+
|
|
30
|
+
// mascot: rises in the centre gutter, then jumps on the drop
|
|
31
|
+
const rise = sp(f, tMascot, SPRING.pop);
|
|
32
|
+
const jump = sp(f, tDrop - 4, SPRING.snappy);
|
|
33
|
+
const my = mix(1180, 1030, rise) - jump * 120 + ease(f, tDrop + 6, tDrop + 18) * 120;
|
|
34
|
+
const pose = f < tDrop - 4 ? "confused" : "excited";
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<AbsoluteFill style={{ opacity: 1 - out }}>
|
|
38
|
+
<AbsoluteFill style={pageStyle}>
|
|
39
|
+
<Sk>
|
|
40
|
+
{PANELS.map((p, i) => (
|
|
41
|
+
<SkRect key={i} x={p.x} y={p.y} w={p.w} h={p.h} p={prog(f, [t1, t2, t3][i] - 14, 12)} id={10 + i} sw={5} />
|
|
42
|
+
))}
|
|
43
|
+
{/* panel 1: ten client folders */}
|
|
44
|
+
{clients.map((_, i) => {
|
|
45
|
+
const c = i % 2, r = Math.floor(i / 2);
|
|
46
|
+
const x = 120 + c * 270, y = 270 + r * 140;
|
|
47
|
+
const pp = prog(f, t1 + i * 2, 10);
|
|
48
|
+
return (
|
|
49
|
+
<g key={i}>
|
|
50
|
+
<SkPoly pts={[[x, y + 18], [x + 60, y + 18], [x + 78, y], [x + 140, y], [x + 150, y + 18], [x + 220, y + 18], [x + 220, y + 110], [x, y + 110]]} closed p={pp} id={40 + i} sw={3} />
|
|
51
|
+
<Hatch x={x + 6} y={y + 74} w={208} h={30} p={pp} id={60 + i} gap={12} o={0.25} />
|
|
52
|
+
</g>
|
|
53
|
+
);
|
|
54
|
+
})}
|
|
55
|
+
{/* panel 2: ten calendars, fanned */}
|
|
56
|
+
{Array.from({ length: 10 }, (_, i) => {
|
|
57
|
+
const pp = prog(f, t2 + i * 2, 10);
|
|
58
|
+
const ox = 712 + i * 10, oy = 262 + i * 44;
|
|
59
|
+
return (
|
|
60
|
+
<g key={i} transform={`rotate(${(i - 5) * 1.6} ${ox + 190} ${oy + 120})`}>
|
|
61
|
+
<SkRect x={ox} y={oy} w={380} h={240} p={pp} id={80 + i} sw={2.8} fill="#ECE9E2" />
|
|
62
|
+
<SkLine a={[ox, oy + 50]} b={[ox + 380, oy + 50]} p={pp} id={95 + i} sw={2.4} />
|
|
63
|
+
{i === 9 && [1, 2, 3, 4, 5, 6].map((k) => (
|
|
64
|
+
<SkLine key={k} a={[ox + k * 54, oy + 50]} b={[ox + k * 54, oy + 240]} p={pp} id={110 + k} sw={1.8} o={0.6} />
|
|
65
|
+
))}
|
|
66
|
+
{i === 9 && [1, 2, 3].map((k) => (
|
|
67
|
+
<SkLine key={k} a={[ox, oy + 50 + k * 47]} b={[ox + 380, oy + 50 + k * 47]} p={pp} id={120 + k} sw={1.8} o={0.6} />
|
|
68
|
+
))}
|
|
69
|
+
</g>
|
|
70
|
+
);
|
|
71
|
+
})}
|
|
72
|
+
{/* panel 3: tired team — coffee, clock, buzzing laptop (props only) */}
|
|
73
|
+
{(() => {
|
|
74
|
+
const pp = (d: number) => prog(f, t3 + d, 10);
|
|
75
|
+
return (
|
|
76
|
+
<g>
|
|
77
|
+
{/* clock */}
|
|
78
|
+
<SkEllipse cx={1565} cy={330} rx={110} ry={110} p={pp(0)} id={140} sw={4} />
|
|
79
|
+
<SkLine a={[1565, 330]} b={[1565, 255]} p={pp(4)} id={141} sw={5} />
|
|
80
|
+
<SkLine a={[1565, 330]} b={[1620, 360]} p={pp(4)} id={142} sw={5} />
|
|
81
|
+
{[0, 1, 2, 3].map((k) => (
|
|
82
|
+
<SkLine key={k} a={[1565 + Math.cos((k * Math.PI) / 2) * 92, 330 + Math.sin((k * Math.PI) / 2) * 92]} b={[1565 + Math.cos((k * Math.PI) / 2) * 104, 330 + Math.sin((k * Math.PI) / 2) * 104]} p={pp(2)} id={143 + k} sw={3} />
|
|
83
|
+
))}
|
|
84
|
+
{/* laptop */}
|
|
85
|
+
<SkPoly pts={[[1370, 760], [1410, 560], [1720, 560], [1760, 760]]} closed p={pp(6)} id={150} sw={3.5} />
|
|
86
|
+
<SkRect x={1340} y={760} w={450} h={26} p={pp(8)} id={151} sw={3} />
|
|
87
|
+
<Hatch x={1425} y={578} w={280} h={160} p={pp(8)} id={152} gap={16} o={0.22} />
|
|
88
|
+
{/* notification badge 99+ */}
|
|
89
|
+
<SkEllipse cx={1712} cy={560} rx={52} ry={40} p={pp(10)} id={153} sw={4} />
|
|
90
|
+
{/* mug + steam */}
|
|
91
|
+
<SkPoly pts={[[1400, 850], [1412, 960], [1500, 960], [1512, 850]]} p={pp(12)} id={154} sw={3.5} />
|
|
92
|
+
<SkEllipse cx={1534} cy={895} rx={26} ry={30} p={pp(12)} id={155} sw={3} />
|
|
93
|
+
<SkPoly pts={[[1430, 830], [1440, 800], [1428, 770], [1440, 740]]} p={pp(16)} id={156} sw={2.2} o={0.55} />
|
|
94
|
+
<SkPoly pts={[[1470, 830], [1482, 800], [1468, 770], [1480, 740]]} p={pp(18)} id={157} sw={2.2} o={0.55} />
|
|
95
|
+
{/* stress lines */}
|
|
96
|
+
{f >= tShake && [0, 1, 2].map((k) => (
|
|
97
|
+
<SkLine key={k} a={[1700 + k * 30, 250 - k * 10]} b={[1730 + k * 34, 200 - k * 14]} id={160 + k} sw={3} />
|
|
98
|
+
))}
|
|
99
|
+
</g>
|
|
100
|
+
);
|
|
101
|
+
})()}
|
|
102
|
+
</Sk>
|
|
103
|
+
{/* caption boxes (comic style) */}
|
|
104
|
+
{[l1, l2, l3].map((t, i) => {
|
|
105
|
+
const p = PANELS[i];
|
|
106
|
+
const pp = prog(f, [t1, t2, t3][i], 8);
|
|
107
|
+
return (
|
|
108
|
+
<div key={i} style={{ position: "absolute", left: p.x + 24, top: p.y + 24, opacity: pp > 0 ? 1 : 0 }}>
|
|
109
|
+
<div style={{ position: "absolute", left: 0, top: 0, width: p.w - 48, height: 120, background: "#F1EEE8", border: `4px solid ${INK}`, transform: `rotate(${i === 1 ? 0.8 : -0.6}deg)` }} />
|
|
110
|
+
<HandText x={18} y={14} size={i === 2 ? 62 : i === 1 ? 74 : 92} p={prog(f, [t1, t2, t3][i], 8)} id={200 + i} width={p.w - 84}>{t}</HandText>
|
|
111
|
+
</div>
|
|
112
|
+
);
|
|
113
|
+
})}
|
|
114
|
+
{/* client names on the folders */}
|
|
115
|
+
{clients.map((n, i) => {
|
|
116
|
+
const c = i % 2, r = Math.floor(i / 2);
|
|
117
|
+
return <HandText key={n} x={136 + c * 270} y={302 + r * 140} size={30} font={PRINT} weight={400} p={prog(f, t1 + i * 2 + 4, 6)} id={220 + i}>{n}</HandText>;
|
|
118
|
+
})}
|
|
119
|
+
<HandText x={1712} y={536} size={40} font={HAND} p={prog(f, t3 + 12, 6)} id={240} align="center" width={110}>99+</HandText>
|
|
120
|
+
</AbsoluteFill>
|
|
121
|
+
|
|
122
|
+
{f >= tMascot && f < tDrop && (
|
|
123
|
+
<>
|
|
124
|
+
{f < tDrop + 4 && <MascotShadow x={960} y={1030} w={220} o={0.45 * (1 - jump)} />}
|
|
125
|
+
<Mascot pose={pose} x={960} y={my} h={300} rot={mix(0, -6, jump)} squash={f >= tDrop - 6 && f < tDrop - 3 ? 0.08 : 0} />
|
|
126
|
+
</>
|
|
127
|
+
)}
|
|
128
|
+
</AbsoluteFill>
|
|
129
|
+
);
|
|
130
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Pain 5: stuck on what to post next (a blank sheet, a blinking cursor, a pencil tapping, question marks)
|
|
2
|
+
// Fix 5: ideas from your own data — a Search line chart + an Analytics bar chart, arrow into three idea cards.
|
|
3
|
+
import { useCurrentFrame } from "remotion";
|
|
4
|
+
import { SPRING, sp, type SceneProps } from "agentcut";
|
|
5
|
+
import { PainFix } from "./lib/painfix";
|
|
6
|
+
import { HAND, HandText, Hatch, PRINT, SCRIPT, Sk, SkArrow, SkLine, SkPoly, SkRect, Smudge, prog } from "./lib/sketch";
|
|
7
|
+
|
|
8
|
+
type Idea = { kind: string; title: string };
|
|
9
|
+
type Props = SceneProps & {
|
|
10
|
+
tSwipe: number; tPainText: number; tFixText: number; painText: string; fixText: string;
|
|
11
|
+
ideas: Idea[]; tSearch: number; tAnalytics: number; tIdeas: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default function Ideas(p: Props) {
|
|
15
|
+
return (
|
|
16
|
+
<PainFix duration={p.clip.duration} tSwipe={p.tSwipe} tPainText={p.tPainText} tFixText={p.tFixText}
|
|
17
|
+
painText={p.painText} fixText={p.fixText} fixPose="excited" fixAt={[1730, 1005, 330]}
|
|
18
|
+
pain={(f) => <Pain f={f} />} fix={(f, fl) => <Fix fl={fl} {...p} />} />
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function Pain({ f }: { f: number }) {
|
|
23
|
+
const g = useCurrentFrame();
|
|
24
|
+
const blink = Math.floor(g / 8) % 2 === 0;
|
|
25
|
+
const tap = Math.abs(Math.sin(g * 0.9)) * 18;
|
|
26
|
+
return (
|
|
27
|
+
<>
|
|
28
|
+
<Smudge x={760} y={640} w={1000} h={720} o={0.18} />
|
|
29
|
+
<Sk>
|
|
30
|
+
<SkRect x={360} y={280} w={760} h={700} p={prog(f, 2, 12)} id={20} sw={4} fill="#F0EDE7" />
|
|
31
|
+
{blink && f > 10 && <SkLine a={[440, 360]} b={[440, 430]} id={21} sw={5} />}
|
|
32
|
+
{/* pencil, tapping */}
|
|
33
|
+
<g transform={`rotate(-35 1260 ${560 - tap}) translate(0 ${-tap})`}>
|
|
34
|
+
<SkRect x={1230} y={380} w={56} h={300} p={prog(f, 6, 10)} id={22} sw={3.4} fill="#E2DED6" />
|
|
35
|
+
<SkPoly pts={[[1230, 680], [1258, 750], [1286, 680]]} p={prog(f, 10, 6)} id={23} sw={3.4} />
|
|
36
|
+
<Hatch x={1234} y={384} w={48} h={50} p={prog(f, 10, 6)} id={24} gap={7} o={0.5} />
|
|
37
|
+
</g>
|
|
38
|
+
</Sk>
|
|
39
|
+
{[[200, 330, 120, -10], [1300, 820, 140, 14], [560, 640, 96, 8], [880, 470, 80, -6]].map(([x, y, s, r], i) => (
|
|
40
|
+
<HandText key={i} x={x} y={y} size={s} font={HAND} p={prog(f, 14 + i * 6, 4)} id={30 + i} rot={r} color={i % 2 ? "#4a4744" : "#2a2826"}>?</HandText>
|
|
41
|
+
))}
|
|
42
|
+
</>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function Fix({ fl, ideas, tSearch, tAnalytics, tIdeas }: Props & { fl: number }) {
|
|
47
|
+
const line: [number, number][] = [[200, 560], [290, 540], [370, 550], [450, 500], [530, 470], [610, 420], [690, 380]];
|
|
48
|
+
return (
|
|
49
|
+
<>
|
|
50
|
+
<Smudge x={460} y={620} w={720} h={760} o={0.16} />
|
|
51
|
+
<Sk>
|
|
52
|
+
{/* Search chart */}
|
|
53
|
+
<SkRect x={170} y={290} w={560} h={320} p={prog(fl, tSearch - 4, 10)} id={200} sw={3.6} fill="#EFECE6" />
|
|
54
|
+
<SkPoly pts={line} p={prog(fl, tSearch, 14)} id={201} sw={4.5} />
|
|
55
|
+
<SkLine a={[190, 590]} b={[710, 590]} p={prog(fl, tSearch, 8)} id={202} sw={2} o={0.6} />
|
|
56
|
+
{/* Analytics chart */}
|
|
57
|
+
<SkRect x={170} y={650} w={560} h={320} p={prog(fl, tAnalytics - 4, 10)} id={210} sw={3.6} fill="#EFECE6" />
|
|
58
|
+
{[120, 170, 140, 210, 250].map((h, i) => (
|
|
59
|
+
<g key={i}>
|
|
60
|
+
<SkRect x={220 + i * 96} y={950 - h} w={60} h={h} p={prog(fl, tAnalytics + i * 3, 8)} id={211 + i} sw={3} />
|
|
61
|
+
<Hatch x={224 + i * 96} y={954 - h} w={52} h={h - 8} p={prog(fl, tAnalytics + i * 3, 8)} id={220 + i} gap={9} o={0.35} />
|
|
62
|
+
</g>
|
|
63
|
+
))}
|
|
64
|
+
<SkArrow a={[760, 630]} b={[900, 630]} p={prog(fl, tIdeas - 10, 8)} id={230} sw={5} head={34} />
|
|
65
|
+
{ideas.map((_, i) => {
|
|
66
|
+
const s = sp(fl, tIdeas + i * 7, SPRING.pop);
|
|
67
|
+
if (fl < tIdeas + i * 7) return null;
|
|
68
|
+
const y = 300 + i * 225 + (1 - s) * 40;
|
|
69
|
+
return (
|
|
70
|
+
<g key={i} opacity={Math.min(1, s * 1.5)}>
|
|
71
|
+
<SkRect x={940} y={y} w={600} h={190} id={240 + i} sw={3.8} fill="#F3F1EC" />
|
|
72
|
+
<SkRect x={962} y={y + 22} w={150} h={50} id={250 + i} sw={2.6} />
|
|
73
|
+
</g>
|
|
74
|
+
);
|
|
75
|
+
})}
|
|
76
|
+
</Sk>
|
|
77
|
+
<HandText x={196} y={306} size={42} font={PRINT} weight={400} p={prog(fl, tSearch, 6)} id={260}>Search</HandText>
|
|
78
|
+
<HandText x={196} y={666} size={42} font={PRINT} weight={400} p={prog(fl, tAnalytics, 6)} id={261}>Analytics</HandText>
|
|
79
|
+
{ideas.map((d, i) => {
|
|
80
|
+
if (fl < tIdeas + i * 7) return null;
|
|
81
|
+
const s = sp(fl, tIdeas + i * 7, SPRING.pop);
|
|
82
|
+
const y = 300 + i * 225 + (1 - s) * 40;
|
|
83
|
+
return (
|
|
84
|
+
<div key={i} style={{ opacity: Math.min(1, s * 1.5) }}>
|
|
85
|
+
<HandText x={1037} y={y + 28} size={32} font={PRINT} weight={400} id={270 + i} align="center" width={150}>{d.kind}</HandText>
|
|
86
|
+
<HandText x={966} y={y + 88} size={54} font={SCRIPT} id={280 + i} width={560}>{d.title}</HandText>
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
})}
|
|
90
|
+
</>
|
|
91
|
+
);
|
|
92
|
+
}
|