agentcut 0.2.26 → 0.2.28

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.
Files changed (97) hide show
  1. package/README.md +177 -177
  2. package/dist/studio/agents/claude.js +3 -2
  3. package/dist/studio/agents/claude.js.map +1 -1
  4. package/dist/studio/chat.js +1 -1
  5. package/dist/studio/chat.js.map +1 -1
  6. package/dist/studio/cli.js +24 -24
  7. package/dist/studio/download.d.ts +24 -0
  8. package/dist/studio/download.js +234 -0
  9. package/dist/studio/download.js.map +1 -0
  10. package/dist/studio/host.js +8 -0
  11. package/dist/studio/host.js.map +1 -1
  12. package/dist/studio/housekeeping.d.ts +2 -2
  13. package/dist/studio/housekeeping.js +18 -17
  14. package/dist/studio/housekeeping.js.map +1 -1
  15. package/dist/studio/release-cursor.js +21 -21
  16. package/dist/studio/release-video.js +10 -10
  17. package/dist/studio/schema.d.ts +102 -0
  18. package/dist/studio/schema.js +5 -0
  19. package/dist/studio/schema.js.map +1 -1
  20. package/dist/studio/tools.js +7 -0
  21. package/dist/studio/tools.js.map +1 -1
  22. package/package.json +56 -56
  23. package/template/AGENTS.md +14 -14
  24. package/template/components/README.md +70 -70
  25. package/template/components/before-after/BeforeAfter.tsx +89 -89
  26. package/template/components/catalog.ts +107 -107
  27. package/template/components/cinematic/Device3D.tsx +324 -324
  28. package/template/components/cinematic/devices3d/display-model.ts +184 -184
  29. package/template/components/cinematic/devices3d/iphone-model.ts +643 -643
  30. package/template/components/cinematic/devices3d/macbook-model.ts +608 -608
  31. package/template/components/cinematic/devices3d/models.ts +657 -657
  32. package/template/components/cinematic/devices3d/runtime.ts +267 -267
  33. package/template/components/cinematic/math.ts +100 -100
  34. package/template/components/color/grade-effect.ts +650 -650
  35. package/template/components/color/grade.ts +512 -512
  36. package/template/components/color/looks.ts +154 -154
  37. package/template/components/countdown/Countdown.tsx +166 -166
  38. package/template/components/dot-trace-title/DotTraceTitle.tsx +181 -181
  39. package/template/components/dot-trace-title/meta.json +51 -51
  40. package/template/components/generate/GenerateReveal.tsx +381 -381
  41. package/template/components/hook-card/HookCard.tsx +554 -554
  42. package/template/components/index.ts +199 -199
  43. package/template/components/lib.ts +191 -191
  44. package/template/components/line-diagram/LineDiagram.tsx +205 -205
  45. package/template/components/line-diagram/meta.json +215 -215
  46. package/template/components/list-card/ListCard.tsx +104 -104
  47. package/template/components/live-clip.ts +75 -75
  48. package/template/components/looks.tsx +1447 -1447
  49. package/template/components/loops/LoopCanvas.tsx +132 -132
  50. package/template/components/loops/engine.ts +184 -184
  51. package/template/components/loops/library.ts +667 -667
  52. package/template/components/loops/library2.ts +777 -777
  53. package/template/components/motion-loop/MotionLoop.tsx +37 -37
  54. package/template/components/motion-loop/meta.json +311 -311
  55. package/template/components/props.ts +73 -73
  56. package/template/components/quote-card/QuoteCard.tsx +71 -71
  57. package/template/components/style-layer.tsx +233 -233
  58. package/template/components/styles.ts +113 -113
  59. package/template/components/types.ts +66 -66
  60. package/template/components/word-pop/WordPop.tsx +59 -59
  61. package/template/components/word-stack/WordStack.tsx +122 -122
  62. package/template/presets/charcoal-sketch/PROMPT.md +48 -48
  63. package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -34
  64. package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -376
  65. package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -73
  66. package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -119
  67. package/template/runtime/composition.tsx +1207 -1189
  68. package/template/runtime/helpers.tsx +230 -230
  69. package/template/runtime/index.tsx +26 -22
  70. package/template/runtime/types.ts +324 -315
  71. package/template/skill/SKILL.md +188 -187
  72. package/template/skill/references/broll.md +44 -44
  73. package/template/skill/references/browser-export.md +61 -61
  74. package/template/skill/references/cinematic.md +206 -206
  75. package/template/skill/references/color.md +79 -79
  76. package/template/skill/references/craft.md +97 -97
  77. package/template/skill/references/editing-styles.md +57 -57
  78. package/template/skill/references/feature-launch.md +34 -34
  79. package/template/skill/references/footage.md +72 -72
  80. package/template/skill/references/format.md +145 -142
  81. package/template/skill/references/how-to.md +146 -146
  82. package/template/skill/references/launch-direction.md +89 -89
  83. package/template/skill/references/loops.md +151 -151
  84. package/template/skill/references/mcp-external.md +19 -19
  85. package/template/skill/references/performance.md +93 -93
  86. package/template/skill/references/person-cutout.md +19 -19
  87. package/template/skill/references/presets.md +60 -60
  88. package/template/skill/references/product-launch.md +134 -134
  89. package/template/skill/references/release-capture.md +53 -53
  90. package/template/skill/references/sound.md +167 -166
  91. package/template/skill/references/style-spy.md +160 -160
  92. package/template/skill/references/website-howto.md +45 -45
  93. package/template/starter/.studio/chat.json +1 -1
  94. package/template/starter/layers.json +46 -46
  95. package/template/starter/notes.md +4 -4
  96. package/template/starter/project.json +13 -13
  97. package/template/starter/scenes/Title.tsx +38 -38
@@ -1,205 +1,205 @@
1
- import type { ReactNode } from "react";
2
- import { AbsoluteFill, useCurrentFrame } from "remotion";
3
- import { FONTS, easeInOut, exitOut, fill, ramp, unit } from "../lib";
4
- import type { MotionBaseProps } from "../types";
5
-
6
- type Props = MotionBaseProps & {
7
- kind: string;
8
- title: string;
9
- labels: string[];
10
- color: string;
11
- accent: string;
12
- background: string;
13
- font: string;
14
- size: number;
15
- speed: number;
16
- };
17
-
18
- /** viewBox units: the diagram is drawn in a 1000×1000 square. */
19
- const V = 1000;
20
-
21
- /**
22
- * Minimal explainer line art that draws itself on, black-and-white with one accent: two ideas
23
- * overlapping, one reaching many, growth, a loop, small vs big, steps up. A title sits under it.
24
- */
25
- export function LineDiagram(props: Props) {
26
- const frame = useCurrentFrame();
27
- const { width, height, durationInFrames: d } = props;
28
- const u = unit(width, height);
29
- const side = (props.size / 100) * Math.min(width, height) * (height > width ? 1.1 : 1);
30
- const out = exitOut(frame, d, 10);
31
- // Every stroke draws over `speed` frames, one after another.
32
- const step = Math.max(4, props.speed);
33
- const draw = (i: number) => ramp(frame, 4 + i * step * 0.6, step, easeInOut);
34
- const stroke = 7;
35
- const line = { fill: "none", stroke: props.color, strokeWidth: stroke, strokeLinecap: "round" as const, strokeLinejoin: "round" as const, pathLength: 1, strokeDasharray: 1 };
36
- const label = (text: string | undefined, x: number, y: number, at: number, anchor: "start" | "middle" | "end" = "middle", accent = false) =>
37
- text ? (
38
- <text
39
- x={x}
40
- y={y}
41
- textAnchor={anchor}
42
- fontFamily={FONTS[props.font] ?? FONTS.sans}
43
- fontWeight={800}
44
- fontSize={46}
45
- letterSpacing={2}
46
- fill={accent ? props.accent : props.color}
47
- // A dark outline keeps labels readable where they cross the lines.
48
- stroke="#000000"
49
- strokeWidth={14}
50
- paintOrder="stroke"
51
- opacity={ramp(frame, at, 8)}
52
- style={{ textTransform: "uppercase" }}
53
- >
54
- {text.toUpperCase()}
55
- </text>
56
- ) : null;
57
- const L = props.labels;
58
-
59
- let art: ReactNode = null;
60
- switch (props.kind) {
61
- case "venn": {
62
- const overlap = ramp(frame, 4 + step * 1.6, 10);
63
- art = (
64
- <>
65
- <defs>
66
- <clipPath id="ld-venn">
67
- <circle cx={380} cy={470} r={270} />
68
- </clipPath>
69
- </defs>
70
- <circle cx={620} cy={470} r={270} clipPath="url(#ld-venn)" fill={props.accent} opacity={overlap * 0.9} />
71
- <circle cx={380} cy={470} r={270} {...line} strokeDashoffset={1 - draw(0)} transform="rotate(-90 380 470)" />
72
- <circle cx={620} cy={470} r={270} {...line} strokeDashoffset={1 - draw(1)} transform="rotate(90 620 470)" />
73
- {label(L[0], 250, 485, 4 + step)}
74
- {label(L[1], 750, 485, 4 + step * 1.5)}
75
- {label(L[2], 500, 485, 4 + step * 2.2, "middle")}
76
- </>
77
- );
78
- break;
79
- }
80
- case "network": {
81
- const n = 8;
82
- const nodes = Array.from({ length: n }, (_, i) => {
83
- const a = (i / n) * Math.PI * 2 - Math.PI / 2;
84
- return { x: 500 + Math.cos(a) * 340, y: 470 + Math.sin(a) * 340 };
85
- });
86
- art = (
87
- <>
88
- {nodes.map((p, i) => (
89
- <path key={`l${i}`} d={`M 500 470 L ${p.x.toFixed(0)} ${p.y.toFixed(0)}`} {...line} strokeDashoffset={1 - ramp(frame, 10 + i * 2, 10)} />
90
- ))}
91
- {nodes.map((p, i) => {
92
- const t = ramp(frame, 18 + i * 2, 6);
93
- return <circle key={`n${i}`} cx={p.x} cy={p.y} r={34 * t} fill="#000000" stroke={props.color} strokeWidth={stroke} />;
94
- })}
95
- <circle cx={500} cy={470} r={62 * ramp(frame, 2, 8)} fill={props.accent} />
96
- {label(L[0], 500, 600, 14)}
97
- {label(L[1], 500, 930, 34)}
98
- </>
99
- );
100
- break;
101
- }
102
- case "growth": {
103
- const curve = "M 170 820 C 420 800, 560 700, 650 520 S 800 200, 850 150";
104
- const t = draw(1);
105
- art = (
106
- <>
107
- <path d="M 170 140 L 170 820 L 860 820" {...line} strokeDashoffset={1 - draw(0)} />
108
- <path d={curve} {...line} stroke={props.accent} strokeWidth={stroke * 1.4} strokeDashoffset={1 - t} />
109
- <circle cx={850} cy={150} r={22 * ramp(frame, 4 + step * 1.6 + step, 6)} fill={props.accent} />
110
- {label(L[0], 860, 890, 4 + step, "end")}
111
- {label(L[1], 200, 120, 4 + step, "start")}
112
- </>
113
- );
114
- break;
115
- }
116
- case "cycle": {
117
- const count = Math.max(3, Math.min(4, L.length || 3));
118
- const r = 300;
119
- const arcs = Array.from({ length: count }, (_, i) => {
120
- const a0 = (i / count) * Math.PI * 2 - Math.PI / 2 + 0.22;
121
- const a1 = ((i + 1) / count) * Math.PI * 2 - Math.PI / 2 - 0.22;
122
- const p0 = { x: 500 + Math.cos(a0) * r, y: 480 + Math.sin(a0) * r };
123
- const p1 = { x: 500 + Math.cos(a1) * r, y: 480 + Math.sin(a1) * r };
124
- const head = a1 + Math.PI / 2;
125
- const hx = (dx: number, dy: number) => `${(p1.x + dx * Math.cos(head) - dy * Math.sin(head)).toFixed(0)} ${(p1.y + dx * Math.sin(head) + dy * Math.cos(head)).toFixed(0)}`;
126
- return {
127
- d: `M ${p0.x.toFixed(0)} ${p0.y.toFixed(0)} A ${r} ${r} 0 0 1 ${p1.x.toFixed(0)} ${p1.y.toFixed(0)}`,
128
- arrow: `M ${hx(-34, -26)} L ${p1.x.toFixed(0)} ${p1.y.toFixed(0)} L ${hx(-34, 26)}`,
129
- };
130
- });
131
- art = (
132
- <>
133
- {arcs.map((arc, i) => (
134
- <g key={i}>
135
- <path d={arc.d} {...line} strokeDashoffset={1 - draw(i)} />
136
- <path d={arc.arrow} {...line} strokeDashoffset={1 - ramp(frame, 4 + i * step * 0.6 + step, 4)} />
137
- </g>
138
- ))}
139
- {arcs.map((_, i) => {
140
- const a = (i / count) * Math.PI * 2 - Math.PI / 2;
141
- return <g key={`t${i}`}>{label(L[i], 500 + Math.cos(a) * 300, 480 + Math.sin(a) * 300 + 16, 4 + i * step * 0.6 + step, "middle", i === 0)}</g>;
142
- })}
143
- </>
144
- );
145
- break;
146
- }
147
- case "versus": {
148
- art = (
149
- <>
150
- <rect x={150} y={600} width={170} height={170} {...line} strokeDashoffset={1 - draw(0)} />
151
- <rect x={430} y={350} width={420} height={420} {...line} stroke={props.accent} strokeDashoffset={1 - draw(1)} />
152
- <path d="M 120 770 L 880 770" {...line} strokeDashoffset={1 - draw(0)} />
153
- {label(L[0], 235, 850, 4 + step)}
154
- {label(L[1], 640, 850, 4 + step * 1.6, "middle", true)}
155
- </>
156
- );
157
- break;
158
- }
159
- default: {
160
- // stairs: steps up with a dot climbing them.
161
- const climb = ramp(frame, 4 + step, step * 2.4, easeInOut);
162
- const steps = 4;
163
- const sx = (k: number) => 170 + k * 170;
164
- const sy = (k: number) => 820 - k * 170;
165
- const path = Array.from({ length: steps }, (_, k) => `L ${sx(k)} ${sy(k + 1)} L ${sx(k + 1)} ${sy(k + 1)}`).join(" ");
166
- const k = Math.min(steps - 1, Math.floor(climb * steps));
167
- art = (
168
- <>
169
- <path d={`M ${sx(0)} ${sy(0)} ${path}`} {...line} strokeDashoffset={1 - draw(0)} />
170
- <circle cx={sx(k) + 85} cy={sy(k + 1) - 40} r={30 * ramp(frame, 4 + step, 6)} fill={props.accent} />
171
- {label(L[0], sx(0), sy(0) + 70, 4 + step, "start")}
172
- {label(L[1], sx(steps), sy(steps) - 60, 4 + step * 2.4, "end", true)}
173
- </>
174
- );
175
- }
176
- }
177
-
178
- return (
179
- <AbsoluteFill style={{ background: fill(props.background), alignItems: "center", justifyContent: "center", opacity: out }}>
180
- <div style={{ display: "flex", flexDirection: "column", alignItems: "center", gap: 36 * u }}>
181
- <svg width={side} height={side} viewBox={`0 0 ${V} ${V}`} style={{ overflow: "visible" }}>
182
- {art}
183
- </svg>
184
- {props.title ? (
185
- <div
186
- style={{
187
- fontFamily: FONTS[props.font] ?? FONTS.sans,
188
- fontWeight: 900,
189
- fontSize: side * 0.085,
190
- letterSpacing: "0.02em",
191
- textTransform: "uppercase",
192
- color: props.color,
193
- textAlign: "center",
194
- maxWidth: width * 0.86,
195
- opacity: ramp(frame, 4 + step * 2, 10),
196
- transform: `translateY(${(1 - ramp(frame, 4 + step * 2, 10, easeInOut)) * 20 * u}px)`,
197
- }}
198
- >
199
- {props.title}
200
- </div>
201
- ) : null}
202
- </div>
203
- </AbsoluteFill>
204
- );
205
- }
1
+ import type { ReactNode } from "react";
2
+ import { AbsoluteFill, useCurrentFrame } from "remotion";
3
+ import { FONTS, easeInOut, exitOut, fill, ramp, unit } from "../lib";
4
+ import type { MotionBaseProps } from "../types";
5
+
6
+ type Props = MotionBaseProps & {
7
+ kind: string;
8
+ title: string;
9
+ labels: string[];
10
+ color: string;
11
+ accent: string;
12
+ background: string;
13
+ font: string;
14
+ size: number;
15
+ speed: number;
16
+ };
17
+
18
+ /** viewBox units: the diagram is drawn in a 1000×1000 square. */
19
+ const V = 1000;
20
+
21
+ /**
22
+ * Minimal explainer line art that draws itself on, black-and-white with one accent: two ideas
23
+ * overlapping, one reaching many, growth, a loop, small vs big, steps up. A title sits under it.
24
+ */
25
+ export function LineDiagram(props: Props) {
26
+ const frame = useCurrentFrame();
27
+ const { width, height, durationInFrames: d } = props;
28
+ const u = unit(width, height);
29
+ const side = (props.size / 100) * Math.min(width, height) * (height > width ? 1.1 : 1);
30
+ const out = exitOut(frame, d, 10);
31
+ // Every stroke draws over `speed` frames, one after another.
32
+ const step = Math.max(4, props.speed);
33
+ const draw = (i: number) => ramp(frame, 4 + i * step * 0.6, step, easeInOut);
34
+ const stroke = 7;
35
+ const line = { fill: "none", stroke: props.color, strokeWidth: stroke, strokeLinecap: "round" as const, strokeLinejoin: "round" as const, pathLength: 1, strokeDasharray: 1 };
36
+ const label = (text: string | undefined, x: number, y: number, at: number, anchor: "start" | "middle" | "end" = "middle", accent = false) =>
37
+ text ? (
38
+ <text
39
+ x={x}
40
+ y={y}
41
+ textAnchor={anchor}
42
+ fontFamily={FONTS[props.font] ?? FONTS.sans}
43
+ fontWeight={800}
44
+ fontSize={46}
45
+ letterSpacing={2}
46
+ fill={accent ? props.accent : props.color}
47
+ // A dark outline keeps labels readable where they cross the lines.
48
+ stroke="#000000"
49
+ strokeWidth={14}
50
+ paintOrder="stroke"
51
+ opacity={ramp(frame, at, 8)}
52
+ style={{ textTransform: "uppercase" }}
53
+ >
54
+ {text.toUpperCase()}
55
+ </text>
56
+ ) : null;
57
+ const L = props.labels;
58
+
59
+ let art: ReactNode = null;
60
+ switch (props.kind) {
61
+ case "venn": {
62
+ const overlap = ramp(frame, 4 + step * 1.6, 10);
63
+ art = (
64
+ <>
65
+ <defs>
66
+ <clipPath id="ld-venn">
67
+ <circle cx={380} cy={470} r={270} />
68
+ </clipPath>
69
+ </defs>
70
+ <circle cx={620} cy={470} r={270} clipPath="url(#ld-venn)" fill={props.accent} opacity={overlap * 0.9} />
71
+ <circle cx={380} cy={470} r={270} {...line} strokeDashoffset={1 - draw(0)} transform="rotate(-90 380 470)" />
72
+ <circle cx={620} cy={470} r={270} {...line} strokeDashoffset={1 - draw(1)} transform="rotate(90 620 470)" />
73
+ {label(L[0], 250, 485, 4 + step)}
74
+ {label(L[1], 750, 485, 4 + step * 1.5)}
75
+ {label(L[2], 500, 485, 4 + step * 2.2, "middle")}
76
+ </>
77
+ );
78
+ break;
79
+ }
80
+ case "network": {
81
+ const n = 8;
82
+ const nodes = Array.from({ length: n }, (_, i) => {
83
+ const a = (i / n) * Math.PI * 2 - Math.PI / 2;
84
+ return { x: 500 + Math.cos(a) * 340, y: 470 + Math.sin(a) * 340 };
85
+ });
86
+ art = (
87
+ <>
88
+ {nodes.map((p, i) => (
89
+ <path key={`l${i}`} d={`M 500 470 L ${p.x.toFixed(0)} ${p.y.toFixed(0)}`} {...line} strokeDashoffset={1 - ramp(frame, 10 + i * 2, 10)} />
90
+ ))}
91
+ {nodes.map((p, i) => {
92
+ const t = ramp(frame, 18 + i * 2, 6);
93
+ return <circle key={`n${i}`} cx={p.x} cy={p.y} r={34 * t} fill="#000000" stroke={props.color} strokeWidth={stroke} />;
94
+ })}
95
+ <circle cx={500} cy={470} r={62 * ramp(frame, 2, 8)} fill={props.accent} />
96
+ {label(L[0], 500, 600, 14)}
97
+ {label(L[1], 500, 930, 34)}
98
+ </>
99
+ );
100
+ break;
101
+ }
102
+ case "growth": {
103
+ const curve = "M 170 820 C 420 800, 560 700, 650 520 S 800 200, 850 150";
104
+ const t = draw(1);
105
+ art = (
106
+ <>
107
+ <path d="M 170 140 L 170 820 L 860 820" {...line} strokeDashoffset={1 - draw(0)} />
108
+ <path d={curve} {...line} stroke={props.accent} strokeWidth={stroke * 1.4} strokeDashoffset={1 - t} />
109
+ <circle cx={850} cy={150} r={22 * ramp(frame, 4 + step * 1.6 + step, 6)} fill={props.accent} />
110
+ {label(L[0], 860, 890, 4 + step, "end")}
111
+ {label(L[1], 200, 120, 4 + step, "start")}
112
+ </>
113
+ );
114
+ break;
115
+ }
116
+ case "cycle": {
117
+ const count = Math.max(3, Math.min(4, L.length || 3));
118
+ const r = 300;
119
+ const arcs = Array.from({ length: count }, (_, i) => {
120
+ const a0 = (i / count) * Math.PI * 2 - Math.PI / 2 + 0.22;
121
+ const a1 = ((i + 1) / count) * Math.PI * 2 - Math.PI / 2 - 0.22;
122
+ const p0 = { x: 500 + Math.cos(a0) * r, y: 480 + Math.sin(a0) * r };
123
+ const p1 = { x: 500 + Math.cos(a1) * r, y: 480 + Math.sin(a1) * r };
124
+ const head = a1 + Math.PI / 2;
125
+ const hx = (dx: number, dy: number) => `${(p1.x + dx * Math.cos(head) - dy * Math.sin(head)).toFixed(0)} ${(p1.y + dx * Math.sin(head) + dy * Math.cos(head)).toFixed(0)}`;
126
+ return {
127
+ d: `M ${p0.x.toFixed(0)} ${p0.y.toFixed(0)} A ${r} ${r} 0 0 1 ${p1.x.toFixed(0)} ${p1.y.toFixed(0)}`,
128
+ arrow: `M ${hx(-34, -26)} L ${p1.x.toFixed(0)} ${p1.y.toFixed(0)} L ${hx(-34, 26)}`,
129
+ };
130
+ });
131
+ art = (
132
+ <>
133
+ {arcs.map((arc, i) => (
134
+ <g key={i}>
135
+ <path d={arc.d} {...line} strokeDashoffset={1 - draw(i)} />
136
+ <path d={arc.arrow} {...line} strokeDashoffset={1 - ramp(frame, 4 + i * step * 0.6 + step, 4)} />
137
+ </g>
138
+ ))}
139
+ {arcs.map((_, i) => {
140
+ const a = (i / count) * Math.PI * 2 - Math.PI / 2;
141
+ return <g key={`t${i}`}>{label(L[i], 500 + Math.cos(a) * 300, 480 + Math.sin(a) * 300 + 16, 4 + i * step * 0.6 + step, "middle", i === 0)}</g>;
142
+ })}
143
+ </>
144
+ );
145
+ break;
146
+ }
147
+ case "versus": {
148
+ art = (
149
+ <>
150
+ <rect x={150} y={600} width={170} height={170} {...line} strokeDashoffset={1 - draw(0)} />
151
+ <rect x={430} y={350} width={420} height={420} {...line} stroke={props.accent} strokeDashoffset={1 - draw(1)} />
152
+ <path d="M 120 770 L 880 770" {...line} strokeDashoffset={1 - draw(0)} />
153
+ {label(L[0], 235, 850, 4 + step)}
154
+ {label(L[1], 640, 850, 4 + step * 1.6, "middle", true)}
155
+ </>
156
+ );
157
+ break;
158
+ }
159
+ default: {
160
+ // stairs: steps up with a dot climbing them.
161
+ const climb = ramp(frame, 4 + step, step * 2.4, easeInOut);
162
+ const steps = 4;
163
+ const sx = (k: number) => 170 + k * 170;
164
+ const sy = (k: number) => 820 - k * 170;
165
+ const path = Array.from({ length: steps }, (_, k) => `L ${sx(k)} ${sy(k + 1)} L ${sx(k + 1)} ${sy(k + 1)}`).join(" ");
166
+ const k = Math.min(steps - 1, Math.floor(climb * steps));
167
+ art = (
168
+ <>
169
+ <path d={`M ${sx(0)} ${sy(0)} ${path}`} {...line} strokeDashoffset={1 - draw(0)} />
170
+ <circle cx={sx(k) + 85} cy={sy(k + 1) - 40} r={30 * ramp(frame, 4 + step, 6)} fill={props.accent} />
171
+ {label(L[0], sx(0), sy(0) + 70, 4 + step, "start")}
172
+ {label(L[1], sx(steps), sy(steps) - 60, 4 + step * 2.4, "end", true)}
173
+ </>
174
+ );
175
+ }
176
+ }
177
+
178
+ return (
179
+ <AbsoluteFill style={{ background: fill(props.background), alignItems: "center", justifyContent: "center", opacity: out }}>
180
+ <div style={{ display: "flex", flexDirection: "column", alignItems: "center", gap: 36 * u }}>
181
+ <svg width={side} height={side} viewBox={`0 0 ${V} ${V}`} style={{ overflow: "visible" }}>
182
+ {art}
183
+ </svg>
184
+ {props.title ? (
185
+ <div
186
+ style={{
187
+ fontFamily: FONTS[props.font] ?? FONTS.sans,
188
+ fontWeight: 900,
189
+ fontSize: side * 0.085,
190
+ letterSpacing: "0.02em",
191
+ textTransform: "uppercase",
192
+ color: props.color,
193
+ textAlign: "center",
194
+ maxWidth: width * 0.86,
195
+ opacity: ramp(frame, 4 + step * 2, 10),
196
+ transform: `translateY(${(1 - ramp(frame, 4 + step * 2, 10, easeInOut)) * 20 * u}px)`,
197
+ }}
198
+ >
199
+ {props.title}
200
+ </div>
201
+ ) : null}
202
+ </div>
203
+ </AbsoluteFill>
204
+ );
205
+ }