videowright 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.
Files changed (306) hide show
  1. package/README.md +91 -0
  2. package/dist/cli/argv.d.ts +28 -0
  3. package/dist/cli/argv.d.ts.map +1 -0
  4. package/dist/cli/argv.js +115 -0
  5. package/dist/cli/argv.js.map +1 -0
  6. package/dist/cli/bin.d.ts +7 -0
  7. package/dist/cli/bin.d.ts.map +1 -0
  8. package/dist/cli/bin.js +10 -0
  9. package/dist/cli/bin.js.map +1 -0
  10. package/dist/cli/dev.d.ts +19 -0
  11. package/dist/cli/dev.d.ts.map +1 -0
  12. package/dist/cli/dev.js +104 -0
  13. package/dist/cli/dev.js.map +1 -0
  14. package/dist/cli/discover.d.ts +29 -0
  15. package/dist/cli/discover.d.ts.map +1 -0
  16. package/dist/cli/discover.js +104 -0
  17. package/dist/cli/discover.js.map +1 -0
  18. package/dist/cli/discover_project.d.ts +29 -0
  19. package/dist/cli/discover_project.d.ts.map +1 -0
  20. package/dist/cli/discover_project.js +108 -0
  21. package/dist/cli/discover_project.js.map +1 -0
  22. package/dist/cli/errors.d.ts +10 -0
  23. package/dist/cli/errors.d.ts.map +1 -0
  24. package/dist/cli/errors.js +13 -0
  25. package/dist/cli/errors.js.map +1 -0
  26. package/dist/cli/ffmpeg.d.ts +57 -0
  27. package/dist/cli/ffmpeg.d.ts.map +1 -0
  28. package/dist/cli/ffmpeg.js +122 -0
  29. package/dist/cli/ffmpeg.js.map +1 -0
  30. package/dist/cli/index.d.ts +7 -0
  31. package/dist/cli/index.d.ts.map +1 -0
  32. package/dist/cli/index.js +152 -0
  33. package/dist/cli/index.js.map +1 -0
  34. package/dist/cli/playwright_check.d.ts +44 -0
  35. package/dist/cli/playwright_check.d.ts.map +1 -0
  36. package/dist/cli/playwright_check.js +20 -0
  37. package/dist/cli/playwright_check.js.map +1 -0
  38. package/dist/cli/prompt.d.ts +13 -0
  39. package/dist/cli/prompt.d.ts.map +1 -0
  40. package/dist/cli/prompt.js +47 -0
  41. package/dist/cli/prompt.js.map +1 -0
  42. package/dist/cli/render.d.ts +60 -0
  43. package/dist/cli/render.d.ts.map +1 -0
  44. package/dist/cli/render.js +471 -0
  45. package/dist/cli/render.js.map +1 -0
  46. package/dist/cli/script_cmd.d.ts +26 -0
  47. package/dist/cli/script_cmd.d.ts.map +1 -0
  48. package/dist/cli/script_cmd.js +88 -0
  49. package/dist/cli/script_cmd.js.map +1 -0
  50. package/dist/cli/time_shim.d.ts +44 -0
  51. package/dist/cli/time_shim.d.ts.map +1 -0
  52. package/dist/cli/time_shim.js +390 -0
  53. package/dist/cli/time_shim.js.map +1 -0
  54. package/dist/cli/ts_loader.d.ts +28 -0
  55. package/dist/cli/ts_loader.d.ts.map +1 -0
  56. package/dist/cli/ts_loader.js +95 -0
  57. package/dist/cli/ts_loader.js.map +1 -0
  58. package/dist/cli/vite_helpers.d.ts +62 -0
  59. package/dist/cli/vite_helpers.d.ts.map +1 -0
  60. package/dist/cli/vite_helpers.js +273 -0
  61. package/dist/cli/vite_helpers.js.map +1 -0
  62. package/dist/index.d.ts +11 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +14 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/player/hash_router.d.ts +23 -0
  67. package/dist/player/hash_router.d.ts.map +1 -0
  68. package/dist/player/hash_router.js +49 -0
  69. package/dist/player/hash_router.js.map +1 -0
  70. package/dist/player/hud.d.ts +33 -0
  71. package/dist/player/hud.d.ts.map +1 -0
  72. package/dist/player/hud.js +357 -0
  73. package/dist/player/hud.js.map +1 -0
  74. package/dist/player/index.d.ts +123 -0
  75. package/dist/player/index.d.ts.map +1 -0
  76. package/dist/player/index.js +848 -0
  77. package/dist/player/index.js.map +1 -0
  78. package/dist/player/input.d.ts +14 -0
  79. package/dist/player/input.d.ts.map +1 -0
  80. package/dist/player/input.js +90 -0
  81. package/dist/player/input.js.map +1 -0
  82. package/dist/player/slot.d.ts +22 -0
  83. package/dist/player/slot.d.ts.map +1 -0
  84. package/dist/player/slot.js +43 -0
  85. package/dist/player/slot.js.map +1 -0
  86. package/dist/player/transitions/cut.d.ts +7 -0
  87. package/dist/player/transitions/cut.d.ts.map +1 -0
  88. package/dist/player/transitions/cut.js +9 -0
  89. package/dist/player/transitions/cut.js.map +1 -0
  90. package/dist/player/transitions/fade.d.ts +7 -0
  91. package/dist/player/transitions/fade.d.ts.map +1 -0
  92. package/dist/player/transitions/fade.js +18 -0
  93. package/dist/player/transitions/fade.js.map +1 -0
  94. package/dist/player/transitions/index.d.ts +4 -0
  95. package/dist/player/transitions/index.d.ts.map +1 -0
  96. package/dist/player/transitions/index.js +4 -0
  97. package/dist/player/transitions/index.js.map +1 -0
  98. package/dist/player/transitions/slide.d.ts +6 -0
  99. package/dist/player/transitions/slide.d.ts.map +1 -0
  100. package/dist/player/transitions/slide.js +35 -0
  101. package/dist/player/transitions/slide.js.map +1 -0
  102. package/dist/script/index.d.ts +2 -0
  103. package/dist/script/index.d.ts.map +1 -0
  104. package/dist/script/index.js +2 -0
  105. package/dist/script/index.js.map +1 -0
  106. package/dist/script/script.d.ts +10 -0
  107. package/dist/script/script.d.ts.map +1 -0
  108. package/dist/script/script.js +41 -0
  109. package/dist/script/script.js.map +1 -0
  110. package/dist/segment/SegmentRunner.d.ts +52 -0
  111. package/dist/segment/SegmentRunner.d.ts.map +1 -0
  112. package/dist/segment/SegmentRunner.js +187 -0
  113. package/dist/segment/SegmentRunner.js.map +1 -0
  114. package/dist/segment/defineConfig.d.ts +6 -0
  115. package/dist/segment/defineConfig.d.ts.map +1 -0
  116. package/dist/segment/defineConfig.js +7 -0
  117. package/dist/segment/defineConfig.js.map +1 -0
  118. package/dist/segment/defineSegment.d.ts +7 -0
  119. package/dist/segment/defineSegment.d.ts.map +1 -0
  120. package/dist/segment/defineSegment.js +25 -0
  121. package/dist/segment/defineSegment.js.map +1 -0
  122. package/dist/segment/index.d.ts +5 -0
  123. package/dist/segment/index.d.ts.map +1 -0
  124. package/dist/segment/index.js +4 -0
  125. package/dist/segment/index.js.map +1 -0
  126. package/dist/timeline/index.d.ts +73 -0
  127. package/dist/timeline/index.d.ts.map +1 -0
  128. package/dist/timeline/index.js +142 -0
  129. package/dist/timeline/index.js.map +1 -0
  130. package/dist/timeline/loadAudioTrack.d.ts +18 -0
  131. package/dist/timeline/loadAudioTrack.d.ts.map +1 -0
  132. package/dist/timeline/loadAudioTrack.js +44 -0
  133. package/dist/timeline/loadAudioTrack.js.map +1 -0
  134. package/dist/timeline/loadVoiceover.d.ts +18 -0
  135. package/dist/timeline/loadVoiceover.d.ts.map +1 -0
  136. package/dist/timeline/loadVoiceover.js +38 -0
  137. package/dist/timeline/loadVoiceover.js.map +1 -0
  138. package/dist/timeline/resolveTiming.d.ts +28 -0
  139. package/dist/timeline/resolveTiming.d.ts.map +1 -0
  140. package/dist/timeline/resolveTiming.js +63 -0
  141. package/dist/timeline/resolveTiming.js.map +1 -0
  142. package/dist/timeline/validateTiming.d.ts +29 -0
  143. package/dist/timeline/validateTiming.d.ts.map +1 -0
  144. package/dist/timeline/validateTiming.js +62 -0
  145. package/dist/timeline/validateTiming.js.map +1 -0
  146. package/dist/types.d.ts +216 -0
  147. package/dist/types.d.ts.map +1 -0
  148. package/dist/types.js +6 -0
  149. package/dist/types.js.map +1 -0
  150. package/package.json +47 -0
  151. package/skill/SKILL.md +64 -0
  152. package/skill/assets/hello_world/PLAN.md +31 -0
  153. package/skill/assets/hello_world/README.md +27 -0
  154. package/skill/assets/hello_world/audio/audio_plan.md +14 -0
  155. package/skill/assets/hello_world/segments/hello_intro.ts +69 -0
  156. package/skill/assets/hello_world/segments/hello_outro.ts +71 -0
  157. package/skill/assets/hello_world/timeline.ts +15 -0
  158. package/skill/assets/hello_world/voiceover_script/script.md +10 -0
  159. package/skill/assets/install/package.json +10 -0
  160. package/skill/assets/install/tsconfig.json +23 -0
  161. package/skill/assets/styles/editorial-mono/STYLE.md +124 -0
  162. package/skill/assets/styles/editorial-mono/brand.md +85 -0
  163. package/skill/assets/styles/editorial-mono/reference/animations.jsx +752 -0
  164. package/skill/assets/styles/editorial-mono/reference/scenes.html +563 -0
  165. package/skill/assets/styles/editorial-mono/sample/bullet.ts +101 -0
  166. package/skill/assets/styles/editorial-mono/sample/content.ts +104 -0
  167. package/skill/assets/styles/editorial-mono/sample/cta.ts +113 -0
  168. package/skill/assets/styles/editorial-mono/sample/feature.ts +111 -0
  169. package/skill/assets/styles/editorial-mono/sample/grid.ts +97 -0
  170. package/skill/assets/styles/editorial-mono/sample/kinetic.ts +96 -0
  171. package/skill/assets/styles/editorial-mono/sample/section.ts +101 -0
  172. package/skill/assets/styles/editorial-mono/sample/stat.ts +128 -0
  173. package/skill/assets/styles/editorial-mono/sample/title.ts +97 -0
  174. package/skill/assets/styles/editorial-mono/sample/ui-showcase.ts +159 -0
  175. package/skill/assets/styles/editorial-mono/tokens.css +44 -0
  176. package/skill/assets/styles/iso-diagram/STYLE.md +109 -0
  177. package/skill/assets/styles/iso-diagram/brand.md +32 -0
  178. package/skill/assets/styles/iso-diagram/reference/animations.jsx +673 -0
  179. package/skill/assets/styles/iso-diagram/reference/scenes.html +427 -0
  180. package/skill/assets/styles/iso-diagram/sample/bullet.ts +144 -0
  181. package/skill/assets/styles/iso-diagram/sample/content.ts +192 -0
  182. package/skill/assets/styles/iso-diagram/sample/cta.ts +162 -0
  183. package/skill/assets/styles/iso-diagram/sample/feature.ts +205 -0
  184. package/skill/assets/styles/iso-diagram/sample/grid.ts +181 -0
  185. package/skill/assets/styles/iso-diagram/sample/kinetic.ts +102 -0
  186. package/skill/assets/styles/iso-diagram/sample/section.ts +149 -0
  187. package/skill/assets/styles/iso-diagram/sample/stat.ts +164 -0
  188. package/skill/assets/styles/iso-diagram/sample/title.ts +173 -0
  189. package/skill/assets/styles/iso-diagram/sample/ui-showcase.ts +162 -0
  190. package/skill/assets/styles/iso-diagram/tokens.css +40 -0
  191. package/skill/assets/styles/motion-engineering/STYLE.md +106 -0
  192. package/skill/assets/styles/motion-engineering/brand.md +29 -0
  193. package/skill/assets/styles/motion-engineering/reference/animations.jsx +673 -0
  194. package/skill/assets/styles/motion-engineering/reference/scenes.html +513 -0
  195. package/skill/assets/styles/motion-engineering/sample/bullet.ts +176 -0
  196. package/skill/assets/styles/motion-engineering/sample/content.ts +228 -0
  197. package/skill/assets/styles/motion-engineering/sample/cta.ts +209 -0
  198. package/skill/assets/styles/motion-engineering/sample/feature.ts +299 -0
  199. package/skill/assets/styles/motion-engineering/sample/grid.ts +190 -0
  200. package/skill/assets/styles/motion-engineering/sample/kinetic.ts +159 -0
  201. package/skill/assets/styles/motion-engineering/sample/section.ts +196 -0
  202. package/skill/assets/styles/motion-engineering/sample/stat.ts +230 -0
  203. package/skill/assets/styles/motion-engineering/sample/title.ts +219 -0
  204. package/skill/assets/styles/motion-engineering/sample/ui-showcase.ts +267 -0
  205. package/skill/assets/styles/motion-engineering/tokens.css +40 -0
  206. package/skill/assets/styles/neon-terminal/STYLE.md +105 -0
  207. package/skill/assets/styles/neon-terminal/brand.md +27 -0
  208. package/skill/assets/styles/neon-terminal/reference/animations.jsx +673 -0
  209. package/skill/assets/styles/neon-terminal/reference/scenes.html +387 -0
  210. package/skill/assets/styles/neon-terminal/sample/bullet.ts +113 -0
  211. package/skill/assets/styles/neon-terminal/sample/content.ts +117 -0
  212. package/skill/assets/styles/neon-terminal/sample/cta.ts +131 -0
  213. package/skill/assets/styles/neon-terminal/sample/feature.ts +112 -0
  214. package/skill/assets/styles/neon-terminal/sample/grid.ts +128 -0
  215. package/skill/assets/styles/neon-terminal/sample/kinetic.ts +105 -0
  216. package/skill/assets/styles/neon-terminal/sample/section.ts +96 -0
  217. package/skill/assets/styles/neon-terminal/sample/stat.ts +123 -0
  218. package/skill/assets/styles/neon-terminal/sample/title.ts +122 -0
  219. package/skill/assets/styles/neon-terminal/sample/ui-showcase.ts +127 -0
  220. package/skill/assets/styles/neon-terminal/tokens.css +39 -0
  221. package/skill/assets/styles/risograph/STYLE.md +110 -0
  222. package/skill/assets/styles/risograph/brand.md +26 -0
  223. package/skill/assets/styles/risograph/reference/animations.jsx +673 -0
  224. package/skill/assets/styles/risograph/reference/scenes.html +403 -0
  225. package/skill/assets/styles/risograph/sample/bullet.ts +124 -0
  226. package/skill/assets/styles/risograph/sample/content.ts +135 -0
  227. package/skill/assets/styles/risograph/sample/cta.ts +149 -0
  228. package/skill/assets/styles/risograph/sample/feature.ts +152 -0
  229. package/skill/assets/styles/risograph/sample/grid.ts +123 -0
  230. package/skill/assets/styles/risograph/sample/kinetic.ts +125 -0
  231. package/skill/assets/styles/risograph/sample/section.ts +130 -0
  232. package/skill/assets/styles/risograph/sample/stat.ts +145 -0
  233. package/skill/assets/styles/risograph/sample/title.ts +132 -0
  234. package/skill/assets/styles/risograph/sample/ui-showcase.ts +147 -0
  235. package/skill/assets/styles/risograph/tokens.css +39 -0
  236. package/skill/assets/styles/swiss-console/STYLE.md +107 -0
  237. package/skill/assets/styles/swiss-console/brand.md +37 -0
  238. package/skill/assets/styles/swiss-console/reference/animations.jsx +673 -0
  239. package/skill/assets/styles/swiss-console/reference/scenes.html +420 -0
  240. package/skill/assets/styles/swiss-console/sample/bullet.ts +122 -0
  241. package/skill/assets/styles/swiss-console/sample/content.ts +137 -0
  242. package/skill/assets/styles/swiss-console/sample/cta.ts +109 -0
  243. package/skill/assets/styles/swiss-console/sample/feature.ts +163 -0
  244. package/skill/assets/styles/swiss-console/sample/grid.ts +145 -0
  245. package/skill/assets/styles/swiss-console/sample/kinetic.ts +117 -0
  246. package/skill/assets/styles/swiss-console/sample/section.ts +127 -0
  247. package/skill/assets/styles/swiss-console/sample/stat.ts +148 -0
  248. package/skill/assets/styles/swiss-console/sample/title.ts +148 -0
  249. package/skill/assets/styles/swiss-console/sample/ui-showcase.ts +198 -0
  250. package/skill/assets/styles/swiss-console/tokens.css +39 -0
  251. package/skill/install/INSTALL.md +400 -0
  252. package/skill/references/audio/audio_plan.md +199 -0
  253. package/skill/references/audio/build.md +208 -0
  254. package/skill/references/audio/cue_template.md +219 -0
  255. package/skill/references/audio/ffmpeg_cookbook.md +267 -0
  256. package/skill/references/audio/music/music.md +171 -0
  257. package/skill/references/audio/music/providers/elevenlabs.md +170 -0
  258. package/skill/references/audio/music/providers/manual.md +140 -0
  259. package/skill/references/audio/music/providers/openverse.md +265 -0
  260. package/skill/references/audio/sfx/providers/elevenlabs.md +152 -0
  261. package/skill/references/audio/sfx/providers/manual.md +117 -0
  262. package/skill/references/audio/sfx/providers/openverse.md +243 -0
  263. package/skill/references/audio/sfx/sfx.md +149 -0
  264. package/skill/references/audio/styles.md +102 -0
  265. package/skill/references/audio/sync.md +237 -0
  266. package/skill/references/audio/voiceover/animation_sync.md +142 -0
  267. package/skill/references/audio/voiceover/provider_script.md +153 -0
  268. package/skill/references/audio/voiceover/providers/elevenlabs.md +288 -0
  269. package/skill/references/audio/voiceover/providers/manual.md +100 -0
  270. package/skill/references/audio/voiceover/script_writing.md +100 -0
  271. package/skill/references/audio/voiceover/style_intake.md +56 -0
  272. package/skill/references/audio/voiceover/sync_algorithm.md +167 -0
  273. package/skill/references/audio/voiceover.md +296 -0
  274. package/skill/references/audio.md +135 -0
  275. package/skill/references/authoring_segment.md +446 -0
  276. package/skill/references/create_or_edit_video.md +232 -0
  277. package/skill/references/dev_server.md +157 -0
  278. package/skill/references/export.md +145 -0
  279. package/skill/references/new_video.md +117 -0
  280. package/skill/references/project_structure.md +144 -0
  281. package/skill/references/setup.md +109 -0
  282. package/skill/references/setup_new_style.md +158 -0
  283. package/skill/references/styles.md +154 -0
  284. package/skill/references/testing.md +115 -0
  285. package/skill/references/types.md +240 -0
  286. package/src/cli/entry/components/copy_button.ts +42 -0
  287. package/src/cli/entry/components/download_modal.ts +204 -0
  288. package/src/cli/entry/components/empty_state.ts +55 -0
  289. package/src/cli/entry/components/hide_hud_tab.ts +37 -0
  290. package/src/cli/entry/components/icons.ts +31 -0
  291. package/src/cli/entry/components/top_bar.ts +69 -0
  292. package/src/cli/entry/components/video_card.ts +57 -0
  293. package/src/cli/entry/dev_frame.ts +189 -0
  294. package/src/cli/entry/entry_index.ts +16 -0
  295. package/src/cli/entry/entry_video.ts +24 -0
  296. package/src/cli/entry/index.html +12 -0
  297. package/src/cli/entry/parse_slug.ts +14 -0
  298. package/src/cli/entry/render.html +17 -0
  299. package/src/cli/entry/render_entry.ts +121 -0
  300. package/src/cli/entry/styles/base.css +45 -0
  301. package/src/cli/entry/styles/components.css +605 -0
  302. package/src/cli/entry/styles/tokens.css +44 -0
  303. package/src/cli/entry/video.html +22 -0
  304. package/src/cli/entry/views/homepage.ts +66 -0
  305. package/src/cli/entry/views/video_view.ts +286 -0
  306. package/src/cli/entry/virtual.d.ts +8 -0
@@ -0,0 +1,104 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "editorial-mono-sample-content",
7
+ advances: [2.0, 5.0],
8
+ voiceover:
9
+ "Content cards in Editorial Mono. A headline and body paragraph with generous line height.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 200px;">
22
+ <div data-ref="label" style="
23
+ font-family: var(--font-mono);
24
+ font-size: 14px;
25
+ letter-spacing: 0.16em;
26
+ text-transform: uppercase;
27
+ color: var(--color-muted);
28
+ margin-bottom: 48px;
29
+ opacity: 0;
30
+ ">On the Record</div>
31
+
32
+ <div data-ref="headline" style="
33
+ font-family: var(--font-display);
34
+ font-style: italic;
35
+ font-size: 120px;
36
+ line-height: 0.98;
37
+ margin-bottom: 64px;
38
+ opacity: 0;
39
+ ">What we believe.</div>
40
+
41
+ <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 96px;">
42
+ <div data-ref="col1" style="
43
+ font-family: var(--font-body);
44
+ font-size: 28px;
45
+ line-height: 1.5;
46
+ font-weight: 400;
47
+ opacity: 0;
48
+ ">The next decade of AI infrastructure will be built around <em style="font-family: var(--font-display); font-style: italic;">long</em> runs — agents that work for hours, not seconds. The bottleneck will be everything around the model.</div>
49
+
50
+ <div data-ref="col2" style="
51
+ font-family: var(--font-body);
52
+ font-size: 22px;
53
+ line-height: 1.55;
54
+ color: var(--color-muted);
55
+ opacity: 0;
56
+ ">A workbench for long-running agents: memory, recovery, observability. Designed for research engineers at labs, founders shipping product, evaluators who need to know what their model just did and why.</div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ `;
61
+ },
62
+
63
+ async play(ctx) {
64
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
65
+ const headline = host?.querySelector('[data-ref="headline"]') as HTMLElement;
66
+ const col1 = host?.querySelector('[data-ref="col1"]') as HTMLElement;
67
+ const col2 = host?.querySelector('[data-ref="col2"]') as HTMLElement;
68
+
69
+ const ease = "cubic-bezier(0.16, 1, 0.3, 1)";
70
+ const opts = { fill: "forwards" as const, easing: ease };
71
+
72
+ label.animate([{ opacity: 0 }, { opacity: 1 }], { ...opts, duration: 480 });
73
+
74
+ headline.animate(
75
+ [
76
+ { opacity: 0, transform: "translateY(16px)" },
77
+ { opacity: 1, transform: "translateY(0)" },
78
+ ],
79
+ { ...opts, duration: 480, delay: 200 },
80
+ );
81
+
82
+ col1.animate(
83
+ [
84
+ { opacity: 0, transform: "translateY(16px)" },
85
+ { opacity: 1, transform: "translateY(0)" },
86
+ ],
87
+ { ...opts, duration: 480, delay: 450 },
88
+ );
89
+
90
+ col2.animate(
91
+ [
92
+ { opacity: 0, transform: "translateY(16px)" },
93
+ { opacity: 1, transform: "translateY(0)" },
94
+ ],
95
+ { ...opts, duration: 480, delay: 650 },
96
+ );
97
+
98
+ await ctx.waitForNext();
99
+ },
100
+
101
+ unmount() {
102
+ host = null;
103
+ },
104
+ });
@@ -0,0 +1,113 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "editorial-mono-sample-cta",
7
+ advances: [2.0, 5.0],
8
+ voiceover:
9
+ "CTA cards in Editorial Mono. A centered italic headline with a red arrow pointing to the destination.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ justify-content: center;
23
+ gap: 56px;
24
+ overflow: hidden;
25
+ ">
26
+ <div data-ref="label" style="
27
+ font-family: var(--font-mono);
28
+ font-size: 14px;
29
+ letter-spacing: 0.16em;
30
+ text-transform: uppercase;
31
+ color: var(--color-muted);
32
+ opacity: 0;
33
+ ">Continued in Vol. 02</div>
34
+
35
+ <div data-ref="headline" style="
36
+ font-family: var(--font-display);
37
+ font-style: italic;
38
+ font-size: 100px;
39
+ line-height: 0.98;
40
+ text-align: center;
41
+ opacity: 0;
42
+ ">Read the brief.</div>
43
+
44
+ <div data-ref="cta" style="
45
+ display: flex;
46
+ align-items: center;
47
+ gap: 24px;
48
+ opacity: 0;
49
+ ">
50
+ <span style="font-family: var(--font-body); font-size: 36px; font-weight: 500;">example.com</span>
51
+ <span style="font-family: var(--font-display); font-style: italic; font-size: 60px; line-height: 1; color: var(--color-accent);">&rarr;</span>
52
+ </div>
53
+
54
+ <div data-ref="logo" style="
55
+ position: absolute;
56
+ bottom: var(--safe-y);
57
+ display: flex;
58
+ align-items: center;
59
+ gap: 14px;
60
+ opacity: 0;
61
+ ">
62
+ <div style="
63
+ width: 24px;
64
+ height: 24px;
65
+ border: 1.5px solid var(--color-fg);
66
+ position: relative;
67
+ "><div style="position: absolute; inset: 6px; background: var(--color-accent);"></div></div>
68
+ <span style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;">Sample / 2026</span>
69
+ </div>
70
+ </div>
71
+ `;
72
+ },
73
+
74
+ async play(ctx) {
75
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
76
+ const headline = host?.querySelector('[data-ref="headline"]') as HTMLElement;
77
+ const cta = host?.querySelector('[data-ref="cta"]') as HTMLElement;
78
+ const logo = host?.querySelector('[data-ref="logo"]') as HTMLElement;
79
+
80
+ const ease = "cubic-bezier(0.16, 1, 0.3, 1)";
81
+ const opts = { fill: "forwards" as const, easing: ease };
82
+
83
+ label.animate([{ opacity: 0 }, { opacity: 1 }], { ...opts, duration: 480 });
84
+
85
+ headline.animate(
86
+ [
87
+ { opacity: 0, transform: "translateY(16px)" },
88
+ { opacity: 1, transform: "translateY(0)" },
89
+ ],
90
+ { ...opts, duration: 480, delay: 150 },
91
+ );
92
+
93
+ cta.animate(
94
+ [
95
+ { opacity: 0, transform: "translateY(16px)" },
96
+ { opacity: 1, transform: "translateY(0)" },
97
+ ],
98
+ { ...opts, duration: 480, delay: 400 },
99
+ );
100
+
101
+ logo.animate([{ opacity: 0 }, { opacity: 1 }], {
102
+ ...opts,
103
+ duration: 480,
104
+ delay: 650,
105
+ });
106
+
107
+ await ctx.waitForNext();
108
+ },
109
+
110
+ unmount() {
111
+ host = null;
112
+ },
113
+ });
@@ -0,0 +1,111 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "editorial-mono-sample-feature",
7
+ advances: [2.0, 5.0],
8
+ voiceover: "Feature cards in Editorial Mono. One feature per scene with generous negative space.",
9
+
10
+ mount(el) {
11
+ host = el;
12
+ el.innerHTML = `
13
+ <div style="
14
+ position: relative;
15
+ height: 100%;
16
+ background: var(--color-bg);
17
+ color: var(--color-fg);
18
+ overflow: hidden;
19
+ ">
20
+ <div style="position: absolute; left: var(--safe-x); top: 220px; right: var(--safe-x);">
21
+ <div data-ref="label" style="
22
+ font-family: var(--font-mono);
23
+ font-size: 14px;
24
+ letter-spacing: 0.16em;
25
+ text-transform: uppercase;
26
+ color: var(--color-muted);
27
+ margin-bottom: 64px;
28
+ opacity: 0;
29
+ ">Feature / 01 of 03</div>
30
+
31
+ <div style="display: grid; grid-template-columns: 180px 1fr; gap: 64px; align-items: start;">
32
+ <div data-ref="icon" style="
33
+ width: 140px;
34
+ height: 140px;
35
+ border: var(--rule-weight) solid var(--color-fg);
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ font-family: var(--font-display);
40
+ font-size: 100px;
41
+ font-style: italic;
42
+ opacity: 0;
43
+ ">C</div>
44
+
45
+ <div>
46
+ <div data-ref="name" style="
47
+ font-family: var(--font-display);
48
+ font-style: italic;
49
+ font-size: 80px;
50
+ line-height: 0.98;
51
+ opacity: 0;
52
+ ">Checkpoint memory.</div>
53
+
54
+ <div data-ref="body" style="
55
+ font-family: var(--font-body);
56
+ font-size: 32px;
57
+ line-height: 1.4;
58
+ max-width: 1100px;
59
+ margin-top: 48px;
60
+ font-weight: 400;
61
+ opacity: 0;
62
+ ">Snapshots an agent's reasoning state at each tool boundary. When a plan goes stale, the agent rewinds to the last point its model of the world was correct.</div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ `;
68
+ },
69
+
70
+ async play(ctx) {
71
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
72
+ const icon = host?.querySelector('[data-ref="icon"]') as HTMLElement;
73
+ const name = host?.querySelector('[data-ref="name"]') as HTMLElement;
74
+ const body = host?.querySelector('[data-ref="body"]') as HTMLElement;
75
+
76
+ const ease = "cubic-bezier(0.16, 1, 0.3, 1)";
77
+ const opts = { fill: "forwards" as const, easing: ease };
78
+
79
+ label.animate([{ opacity: 0 }, { opacity: 1 }], { ...opts, duration: 480 });
80
+
81
+ icon.animate(
82
+ [
83
+ { opacity: 0, transform: "translateY(16px)" },
84
+ { opacity: 1, transform: "translateY(0)" },
85
+ ],
86
+ { ...opts, duration: 480, delay: 150 },
87
+ );
88
+
89
+ name.animate(
90
+ [
91
+ { opacity: 0, transform: "translateY(16px)" },
92
+ { opacity: 1, transform: "translateY(0)" },
93
+ ],
94
+ { ...opts, duration: 480, delay: 250 },
95
+ );
96
+
97
+ body.animate(
98
+ [
99
+ { opacity: 0, transform: "translateY(16px)" },
100
+ { opacity: 1, transform: "translateY(0)" },
101
+ ],
102
+ { ...opts, duration: 480, delay: 500 },
103
+ );
104
+
105
+ await ctx.waitForNext();
106
+ },
107
+
108
+ unmount() {
109
+ host = null;
110
+ },
111
+ });
@@ -0,0 +1,97 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "editorial-mono-sample-grid",
7
+ advances: [2.5, 5.0],
8
+ voiceover:
9
+ "Card grids in Editorial Mono. Three items separated by hairline rules, staggered entry.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); top: 220px; right: var(--safe-x);">
22
+ <div data-ref="label" style="
23
+ font-family: var(--font-mono);
24
+ font-size: 14px;
25
+ letter-spacing: 0.16em;
26
+ text-transform: uppercase;
27
+ color: var(--color-muted);
28
+ margin-bottom: 64px;
29
+ opacity: 0;
30
+ ">The Architecture</div>
31
+
32
+ <div data-ref="headline" style="
33
+ font-family: var(--font-display);
34
+ font-style: italic;
35
+ font-size: 100px;
36
+ line-height: 0.98;
37
+ margin-bottom: 96px;
38
+ opacity: 0;
39
+ ">Three primitives.</div>
40
+
41
+ <div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--color-border);">
42
+ <div data-ref="card0" style="background: var(--color-bg); padding: 48px 56px 56px; min-height: 360px; opacity: 0;">
43
+ <div style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.16em; color: var(--color-accent); margin-bottom: 32px;">01</div>
44
+ <div style="font-family: var(--font-display); font-size: 64px; margin-bottom: 32px;">Memory</div>
45
+ <div style="font-family: var(--font-body); font-size: 24px; color: var(--color-muted); line-height: 1.4; max-width: 320px;">Persistent state across long sessions.</div>
46
+ </div>
47
+ <div data-ref="card1" style="background: var(--color-bg); padding: 48px 56px 56px; min-height: 360px; opacity: 0;">
48
+ <div style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.16em; color: var(--color-accent); margin-bottom: 32px;">02</div>
49
+ <div style="font-family: var(--font-display); font-size: 64px; margin-bottom: 32px;">Reasoning</div>
50
+ <div style="font-family: var(--font-body); font-size: 24px; color: var(--color-muted); line-height: 1.4; max-width: 320px;">Plans that adapt to fresh evidence.</div>
51
+ </div>
52
+ <div data-ref="card2" style="background: var(--color-bg); padding: 48px 56px 56px; min-height: 360px; opacity: 0;">
53
+ <div style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.16em; color: var(--color-accent); margin-bottom: 32px;">03</div>
54
+ <div style="font-family: var(--font-display); font-size: 64px; margin-bottom: 32px;">Recovery</div>
55
+ <div style="font-family: var(--font-body); font-size: 24px; color: var(--color-muted); line-height: 1.4; max-width: 320px;">Rewind to a last-known-good moment.</div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ `;
61
+ },
62
+
63
+ async play(ctx) {
64
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
65
+ const headline = host?.querySelector('[data-ref="headline"]') as HTMLElement;
66
+
67
+ const ease = "cubic-bezier(0.16, 1, 0.3, 1)";
68
+ const opts = { fill: "forwards" as const, easing: ease };
69
+
70
+ label.animate([{ opacity: 0 }, { opacity: 1 }], { ...opts, duration: 480 });
71
+
72
+ headline.animate(
73
+ [
74
+ { opacity: 0, transform: "translateY(16px)" },
75
+ { opacity: 1, transform: "translateY(0)" },
76
+ ],
77
+ { ...opts, duration: 480, delay: 150 },
78
+ );
79
+
80
+ for (let i = 0; i < 3; i++) {
81
+ const card = host?.querySelector(`[data-ref="card${i}"]`) as HTMLElement;
82
+ card.animate(
83
+ [
84
+ { opacity: 0, transform: "translateY(20px)" },
85
+ { opacity: 1, transform: "translateY(0)" },
86
+ ],
87
+ { ...opts, duration: 480, delay: 450 + i * 180 },
88
+ );
89
+ }
90
+
91
+ await ctx.waitForNext();
92
+ },
93
+
94
+ unmount() {
95
+ host = null;
96
+ },
97
+ });
@@ -0,0 +1,96 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "editorial-mono-sample-kinetic",
7
+ advances: [2.5, 5.0],
8
+ voiceover:
9
+ "Kinetic statements in Editorial Mono. Words enter one at a time, the last marked in red.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); top: 260px; max-width: 1500px;">
22
+ <div data-ref="label" style="
23
+ font-family: var(--font-mono);
24
+ font-size: 14px;
25
+ letter-spacing: 0.16em;
26
+ text-transform: uppercase;
27
+ color: var(--color-muted);
28
+ margin-bottom: 48px;
29
+ opacity: 0;
30
+ ">Statement</div>
31
+
32
+ <div style="
33
+ font-family: var(--font-display);
34
+ font-style: italic;
35
+ font-size: 110px;
36
+ line-height: 1.0;
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ column-gap: 38px;
40
+ row-gap: 12px;
41
+ ">
42
+ <span data-ref="w0" style="opacity: 0;">Most</span>
43
+ <span data-ref="w1" style="opacity: 0;">agents</span>
44
+ <span data-ref="w2" style="opacity: 0;">fail</span>
45
+ <span data-ref="w3" style="opacity: 0;">because</span>
46
+ <span data-ref="w4" style="opacity: 0;">they</span>
47
+ <span data-ref="w5" style="opacity: 0; position: relative;">forget.
48
+ <span data-ref="underline" style="
49
+ position: absolute;
50
+ left: 0;
51
+ bottom: 18px;
52
+ height: 8px;
53
+ width: 0;
54
+ background: var(--color-accent);
55
+ "></span>
56
+ </span>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ `;
61
+ },
62
+
63
+ async play(ctx) {
64
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
65
+ const underline = host?.querySelector('[data-ref="underline"]') as HTMLElement;
66
+
67
+ const ease = "cubic-bezier(0.16, 1, 0.3, 1)";
68
+ const opts = { fill: "forwards" as const, easing: ease };
69
+
70
+ label.animate([{ opacity: 0 }, { opacity: 1 }], { ...opts, duration: 480 });
71
+
72
+ for (let i = 0; i < 6; i++) {
73
+ const word = host?.querySelector(`[data-ref="w${i}"]`) as HTMLElement;
74
+ word.animate(
75
+ [
76
+ { opacity: 0, transform: "translateY(28px)" },
77
+ { opacity: 1, transform: "translateY(0)" },
78
+ ],
79
+ { ...opts, duration: 480, delay: 80 * i },
80
+ );
81
+ }
82
+
83
+ underline.animate([{ width: "0%" }, { width: "calc(100% - 14px)" }], {
84
+ duration: 480,
85
+ delay: 1000,
86
+ fill: "forwards",
87
+ easing: ease,
88
+ });
89
+
90
+ await ctx.waitForNext();
91
+ },
92
+
93
+ unmount() {
94
+ host = null;
95
+ },
96
+ });
@@ -0,0 +1,101 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "editorial-mono-sample-section",
7
+ advances: [2.0, 4.0],
8
+ voiceover: "Section headers in Editorial Mono. Centered italic serif between two hairline rules.",
9
+
10
+ mount(el) {
11
+ host = el;
12
+ el.innerHTML = `
13
+ <div style="
14
+ position: relative;
15
+ height: 100%;
16
+ background: var(--color-bg);
17
+ color: var(--color-fg);
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: center;
21
+ justify-content: center;
22
+ gap: 56px;
23
+ overflow: hidden;
24
+ ">
25
+ <div data-ref="label" style="
26
+ font-family: var(--font-mono);
27
+ font-size: 18px;
28
+ letter-spacing: 0.16em;
29
+ text-transform: uppercase;
30
+ color: var(--color-muted);
31
+ opacity: 0;
32
+ ">Chapter One</div>
33
+
34
+ <div data-ref="rule-top" style="
35
+ width: 240px;
36
+ height: 1px;
37
+ background: var(--color-border);
38
+ opacity: 0;
39
+ "></div>
40
+
41
+ <div data-ref="headline" style="
42
+ font-family: var(--font-display);
43
+ font-style: italic;
44
+ font-size: 140px;
45
+ line-height: 0.98;
46
+ text-align: center;
47
+ opacity: 0;
48
+ ">The Problem</div>
49
+
50
+ <div data-ref="rule-bottom" style="
51
+ width: 240px;
52
+ height: 1px;
53
+ background: var(--color-border);
54
+ opacity: 0;
55
+ "></div>
56
+ </div>
57
+ `;
58
+ },
59
+
60
+ async play(ctx) {
61
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
62
+ const ruleTop = host?.querySelector('[data-ref="rule-top"]') as HTMLElement;
63
+ const headline = host?.querySelector('[data-ref="headline"]') as HTMLElement;
64
+ const ruleBottom = host?.querySelector('[data-ref="rule-bottom"]') as HTMLElement;
65
+
66
+ const ease = "cubic-bezier(0.16, 1, 0.3, 1)";
67
+ const opts = { fill: "forwards" as const, easing: ease };
68
+
69
+ label.animate([{ opacity: 0 }, { opacity: 1 }], { ...opts, duration: 480 });
70
+
71
+ ruleTop.animate(
72
+ [
73
+ { opacity: 0, transform: "translateY(8px)" },
74
+ { opacity: 1, transform: "translateY(0)" },
75
+ ],
76
+ { ...opts, duration: 480, delay: 150 },
77
+ );
78
+
79
+ headline.animate(
80
+ [
81
+ { opacity: 0, transform: "translateY(16px)" },
82
+ { opacity: 1, transform: "translateY(0)" },
83
+ ],
84
+ { ...opts, duration: 480, delay: 300 },
85
+ );
86
+
87
+ ruleBottom.animate(
88
+ [
89
+ { opacity: 0, transform: "translateY(8px)" },
90
+ { opacity: 1, transform: "translateY(0)" },
91
+ ],
92
+ { ...opts, duration: 480, delay: 550 },
93
+ );
94
+
95
+ await ctx.waitForNext();
96
+ },
97
+
98
+ unmount() {
99
+ host = null;
100
+ },
101
+ });