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
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "list-card",
|
|
3
|
+
"name": "List Card",
|
|
4
|
+
"category": "Talking Head",
|
|
5
|
+
"durationInFrames": 120,
|
|
6
|
+
"layer": "overlay",
|
|
7
|
+
"description": "A titled card of label / value rows (a feature, a ledger, specs) in the project's look.",
|
|
8
|
+
"useWhen": "Showing what a thing is or does, item by item: a tool in a list video, numbers that belong together. Rows are \"Label | value\"; *star* a value to highlight it.",
|
|
9
|
+
"tags": [
|
|
10
|
+
"list",
|
|
11
|
+
"card",
|
|
12
|
+
"ledger",
|
|
13
|
+
"feature",
|
|
14
|
+
"talking head",
|
|
15
|
+
"stats"
|
|
16
|
+
],
|
|
17
|
+
"props": {
|
|
18
|
+
"kicker": {
|
|
19
|
+
"type": "text",
|
|
20
|
+
"label": "Kicker",
|
|
21
|
+
"default": "Mod 01 / 05"
|
|
22
|
+
},
|
|
23
|
+
"title": {
|
|
24
|
+
"type": "text",
|
|
25
|
+
"label": "Title",
|
|
26
|
+
"default": "Token Ledger"
|
|
27
|
+
},
|
|
28
|
+
"subtitle": {
|
|
29
|
+
"type": "text",
|
|
30
|
+
"label": "Subtitle",
|
|
31
|
+
"default": "Every turn's cost, live, in the status line."
|
|
32
|
+
},
|
|
33
|
+
"rows": {
|
|
34
|
+
"type": "lines",
|
|
35
|
+
"label": "Rows",
|
|
36
|
+
"default": [
|
|
37
|
+
"Context used | 41%",
|
|
38
|
+
"Tokens saved | *128k*",
|
|
39
|
+
"Turns | 17"
|
|
40
|
+
],
|
|
41
|
+
"max": 6,
|
|
42
|
+
"help": "Label | value per line."
|
|
43
|
+
},
|
|
44
|
+
"footer": {
|
|
45
|
+
"type": "text",
|
|
46
|
+
"label": "Footer",
|
|
47
|
+
"default": "costs you, *live*",
|
|
48
|
+
"help": "A phrase under the card (empty for none)."
|
|
49
|
+
},
|
|
50
|
+
"layout": {
|
|
51
|
+
"type": "select",
|
|
52
|
+
"label": "Layout",
|
|
53
|
+
"default": "full",
|
|
54
|
+
"options": [
|
|
55
|
+
{
|
|
56
|
+
"value": "full",
|
|
57
|
+
"label": "Full frame"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"value": "card",
|
|
61
|
+
"label": "Card over video"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"size": {
|
|
66
|
+
"type": "number",
|
|
67
|
+
"label": "Size",
|
|
68
|
+
"default": 10.5,
|
|
69
|
+
"min": 4,
|
|
70
|
+
"max": 18,
|
|
71
|
+
"step": 0.5,
|
|
72
|
+
"unit": "% of frame"
|
|
73
|
+
},
|
|
74
|
+
"look": {
|
|
75
|
+
"type": "select",
|
|
76
|
+
"style": "look",
|
|
77
|
+
"label": "Look",
|
|
78
|
+
"default": "ink",
|
|
79
|
+
"options": [
|
|
80
|
+
{
|
|
81
|
+
"value": "ink",
|
|
82
|
+
"label": "Ink (bold borders)"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"value": "paper",
|
|
86
|
+
"label": "Cut paper"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"value": "notebook",
|
|
90
|
+
"label": "Notebook"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"value": "crt",
|
|
94
|
+
"label": "Terminal"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"value": "neon",
|
|
98
|
+
"label": "Neon (cyberpunk)"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"value": "line",
|
|
102
|
+
"label": "Line (black & white)"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"value": "vhs",
|
|
106
|
+
"label": "VHS (90s tape)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"value": "clean",
|
|
110
|
+
"label": "Clean"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"help": "The graphic language. Follows the project style."
|
|
114
|
+
},
|
|
115
|
+
"font": {
|
|
116
|
+
"type": "select",
|
|
117
|
+
"style": "font",
|
|
118
|
+
"label": "Headline font",
|
|
119
|
+
"default": "archivo",
|
|
120
|
+
"options": [
|
|
121
|
+
{
|
|
122
|
+
"value": "archivo",
|
|
123
|
+
"label": "Archivo Black"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"value": "condensed",
|
|
127
|
+
"label": "Anton"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"value": "grotesk",
|
|
131
|
+
"label": "Space Grotesk"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"value": "caveat",
|
|
135
|
+
"label": "Caveat"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "pixel",
|
|
139
|
+
"label": "VT323"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value": "tech",
|
|
143
|
+
"label": "Orbitron"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"value": "heavy",
|
|
147
|
+
"label": "Montserrat"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"value": "retro",
|
|
151
|
+
"label": "Bungee"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"value": "sans",
|
|
155
|
+
"label": "Inter"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"value": "display",
|
|
159
|
+
"label": "Bricolage"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value": "serif",
|
|
163
|
+
"label": "Instrument Serif"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"value": "fraunces",
|
|
167
|
+
"label": "Fraunces"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"value": "wide",
|
|
171
|
+
"label": "Unbounded"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"accent": {
|
|
176
|
+
"type": "color",
|
|
177
|
+
"style": "accent",
|
|
178
|
+
"label": "Accent",
|
|
179
|
+
"default": "#ff3d8b"
|
|
180
|
+
},
|
|
181
|
+
"panel": {
|
|
182
|
+
"type": "color",
|
|
183
|
+
"style": "panel",
|
|
184
|
+
"label": "Card",
|
|
185
|
+
"default": "#ffffff"
|
|
186
|
+
},
|
|
187
|
+
"panelText": {
|
|
188
|
+
"type": "color",
|
|
189
|
+
"style": "panelText",
|
|
190
|
+
"label": "Card text",
|
|
191
|
+
"default": "#111111"
|
|
192
|
+
},
|
|
193
|
+
"line": {
|
|
194
|
+
"type": "color",
|
|
195
|
+
"style": "line",
|
|
196
|
+
"label": "Ink",
|
|
197
|
+
"default": "#111111",
|
|
198
|
+
"help": "Borders, hard shadows, pen strokes."
|
|
199
|
+
},
|
|
200
|
+
"backdrop": {
|
|
201
|
+
"type": "color",
|
|
202
|
+
"style": "backdrop",
|
|
203
|
+
"label": "Backdrop",
|
|
204
|
+
"default": "#ffe14d",
|
|
205
|
+
"help": "Full-frame and split backgrounds."
|
|
206
|
+
},
|
|
207
|
+
"onVideo": {
|
|
208
|
+
"type": "color",
|
|
209
|
+
"style": "text",
|
|
210
|
+
"label": "Text on video",
|
|
211
|
+
"default": "#ffffff"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"examples": [
|
|
215
|
+
{
|
|
216
|
+
"name": "Ledger",
|
|
217
|
+
"props": {}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "Over video",
|
|
221
|
+
"props": {
|
|
222
|
+
"layout": "card",
|
|
223
|
+
"footer": "",
|
|
224
|
+
"kicker": "",
|
|
225
|
+
"rows": [
|
|
226
|
+
"Setup | 2 min",
|
|
227
|
+
"Price | *free*"
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
2
|
+
import { FONTS, blurStyle, glowStyle, easeInOut, easeOutExpo, exitOut, fill, mix, pop, ramp, unit } from "../lib";
|
|
3
|
+
import type { MotionBaseProps } from "../types";
|
|
4
|
+
|
|
5
|
+
type Props = MotionBaseProps & {
|
|
6
|
+
name: string;
|
|
7
|
+
tagline: string;
|
|
8
|
+
mark: string;
|
|
9
|
+
color: string;
|
|
10
|
+
accent: string;
|
|
11
|
+
background: string;
|
|
12
|
+
size: number;
|
|
13
|
+
font: string;
|
|
14
|
+
weight: string;
|
|
15
|
+
glow: boolean;
|
|
16
|
+
shine: boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A brand sting: a mark pops in, the wordmark converges out of a wide, blurred spread beside it,
|
|
21
|
+
* a glow breathes and a light shine glides across the letters, then the tagline settles under it.
|
|
22
|
+
*/
|
|
23
|
+
export function LogoSting(props: Props) {
|
|
24
|
+
const frame = useCurrentFrame();
|
|
25
|
+
const { width, height, fps, durationInFrames: d } = props;
|
|
26
|
+
const u = unit(width, height);
|
|
27
|
+
const vertical = height > width;
|
|
28
|
+
const fontSize = (props.size / 100) * Math.min(width, height) * (vertical ? 1.1 : 1);
|
|
29
|
+
const out = exitOut(frame, d, 16);
|
|
30
|
+
const markIn = pop(frame, fps, 0, 220);
|
|
31
|
+
const hasMark = props.mark !== "none";
|
|
32
|
+
const textIn = ramp(frame, hasMark ? 8 : 0, 34, easeOutExpo);
|
|
33
|
+
const tagIn = ramp(frame, 30, 20, easeOutExpo);
|
|
34
|
+
const shine = ramp(frame, 26, 26, easeInOut);
|
|
35
|
+
const glow = props.glow ? 0.35 + 0.65 * Math.sin(Math.min(1, ramp(frame, 10, 40)) * Math.PI) : 0;
|
|
36
|
+
const markSize = fontSize * 0.82;
|
|
37
|
+
|
|
38
|
+
const wordStyle = {
|
|
39
|
+
fontFamily: FONTS[props.font] ?? FONTS.display,
|
|
40
|
+
fontWeight: Number(props.weight) || 700,
|
|
41
|
+
fontSize,
|
|
42
|
+
lineHeight: 1,
|
|
43
|
+
letterSpacing: `${mix(0.45, -0.035, textIn)}em`,
|
|
44
|
+
whiteSpace: "nowrap",
|
|
45
|
+
} as const;
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<AbsoluteFill
|
|
49
|
+
style={{
|
|
50
|
+
background: fill(props.background),
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
justifyContent: "center",
|
|
53
|
+
opacity: out,
|
|
54
|
+
transform: `scale(${mix(1, 1.04, ramp(frame, 0, d, easeInOut))})`,
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
{props.glow ? (
|
|
58
|
+
<div style={glowStyle(width / 2, height / 2, width * 0.9, height * 0.7, props.accent, glow * 0.35 * textIn)} />
|
|
59
|
+
) : null}
|
|
60
|
+
<div style={{ display: "flex", flexDirection: "column", alignItems: "center", gap: fontSize * 0.35 }}>
|
|
61
|
+
<div style={{ display: "flex", alignItems: "center", gap: fontSize * 0.3 }}>
|
|
62
|
+
{hasMark ? (
|
|
63
|
+
<div
|
|
64
|
+
style={{
|
|
65
|
+
width: markSize,
|
|
66
|
+
height: markSize,
|
|
67
|
+
borderRadius: props.mark === "dot" ? "50%" : markSize * 0.26,
|
|
68
|
+
background: props.accent,
|
|
69
|
+
transform: `scale(${markIn}) rotate(${(1 - markIn) * -90}deg)`,
|
|
70
|
+
boxShadow: props.glow ? `0 0 ${60 * u * glow}px ${props.accent}` : undefined,
|
|
71
|
+
}}
|
|
72
|
+
/>
|
|
73
|
+
) : null}
|
|
74
|
+
<div style={{ position: "relative" }}>
|
|
75
|
+
<div
|
|
76
|
+
style={{
|
|
77
|
+
...wordStyle,
|
|
78
|
+
color: props.color,
|
|
79
|
+
opacity: textIn,
|
|
80
|
+
textShadow: props.glow ? `0 0 ${Math.round(40 * u * glow)}px ${props.accent}` : undefined,
|
|
81
|
+
...blurStyle((1 - textIn) * fontSize * 0.1),
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
{props.name}
|
|
85
|
+
</div>
|
|
86
|
+
{/* The shine: a white copy of the wordmark showing only through a slanted band. */}
|
|
87
|
+
{props.shine && shine > 0 && shine < 1 ? (
|
|
88
|
+
<div
|
|
89
|
+
style={{
|
|
90
|
+
...wordStyle,
|
|
91
|
+
position: "absolute",
|
|
92
|
+
inset: 0,
|
|
93
|
+
color: "#ffffff",
|
|
94
|
+
opacity: 0.9,
|
|
95
|
+
clipPath: band(shine),
|
|
96
|
+
}}
|
|
97
|
+
>
|
|
98
|
+
{props.name}
|
|
99
|
+
</div>
|
|
100
|
+
) : null}
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
{props.tagline ? (
|
|
104
|
+
<div
|
|
105
|
+
style={{
|
|
106
|
+
fontFamily: FONTS.mono,
|
|
107
|
+
fontSize: Math.max(14, fontSize * 0.18),
|
|
108
|
+
letterSpacing: `${mix(0.6, 0.28, tagIn)}em`,
|
|
109
|
+
textTransform: "uppercase",
|
|
110
|
+
color: props.color,
|
|
111
|
+
opacity: tagIn * 0.75,
|
|
112
|
+
...blurStyle((1 - tagIn) * fontSize * 0.04),
|
|
113
|
+
}}
|
|
114
|
+
>
|
|
115
|
+
{props.tagline}
|
|
116
|
+
</div>
|
|
117
|
+
) : null}
|
|
118
|
+
</div>
|
|
119
|
+
</AbsoluteFill>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** A slanted band moving left to right across the box (t 0→1). */
|
|
124
|
+
function band(t: number) {
|
|
125
|
+
const x = mix(-30, 130, t);
|
|
126
|
+
const w = 14;
|
|
127
|
+
const slant = 12;
|
|
128
|
+
return `polygon(${x}% 0%, ${x + w}% 0%, ${x + w - slant}% 100%, ${x - slant}% 100%)`;
|
|
129
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "logo-sting",
|
|
3
|
+
"name": "Logo Sting",
|
|
4
|
+
"category": "Text & Titles",
|
|
5
|
+
"description": "A brand sting: a mark pops in, the wordmark converges out of a wide blur, a glow breathes and a shine glides across, then the tagline settles.",
|
|
6
|
+
"useWhen": "The first or last two seconds of a video: the brand or product name with its tagline, an end card before the call to action, a sponsor or partner reveal.",
|
|
7
|
+
"durationInFrames": 90,
|
|
8
|
+
"layer": "overlay",
|
|
9
|
+
"tags": ["logo", "brand", "sting", "intro", "outro", "end card", "wordmark", "shine", "glow"],
|
|
10
|
+
"props": {
|
|
11
|
+
"name": { "type": "text", "label": "Name", "default": "agentcut", "maxLength": 24 },
|
|
12
|
+
"tagline": { "type": "text", "label": "Tagline", "default": "Videos that sell themselves", "help": "Leave empty for none." },
|
|
13
|
+
"mark": { "type": "select", "label": "Mark", "default": "square", "options": [{ "value": "square", "label": "Rounded square" }, { "value": "dot", "label": "Dot" }, { "value": "none", "label": "None" }] },
|
|
14
|
+
"color": { "type": "color", "style": "text", "label": "Text", "default": "#ffffff" },
|
|
15
|
+
"accent": { "type": "color", "style": "accent", "label": "Accent", "default": "#8b5cf6" },
|
|
16
|
+
"background": { "type": "color", "label": "Background", "default": "transparent", "help": "\"transparent\" to sit over other layers." },
|
|
17
|
+
"size": { "type": "number", "label": "Size", "default": 11, "min": 4, "max": 22, "step": 0.5, "unit": "% of frame" },
|
|
18
|
+
"font": { "type": "select", "style": "font", "label": "Font", "default": "display", "options": [{ "value": "display", "label": "Bricolage" }, { "value": "sans", "label": "Inter" }, { "value": "serif", "label": "Instrument Serif" }, { "value": "fraunces", "label": "Fraunces" }, { "value": "grotesk", "label": "Space Grotesk" }, { "value": "syne", "label": "Syne" }, { "value": "wide", "label": "Unbounded" }, { "value": "condensed", "label": "Anton" }, { "value": "mono", "label": "Mono" }, { "value": "archivo", "label": "Archivo Black" }, { "value": "caveat", "label": "Caveat" }, { "value": "pixel", "label": "VT323" }, { "value": "tech", "label": "Orbitron" }, { "value": "heavy", "label": "Montserrat" }, { "value": "retro", "label": "Bungee" }] },
|
|
19
|
+
"weight": { "type": "select", "style": "weight", "label": "Weight", "default": "700", "options": [{ "value": "400", "label": "Regular" }, { "value": "500", "label": "Medium" }, { "value": "700", "label": "Bold" }, { "value": "800", "label": "Extra bold" }] },
|
|
20
|
+
"glow": { "type": "boolean", "label": "Glow", "default": true },
|
|
21
|
+
"shine": { "type": "boolean", "label": "Shine sweep", "default": true }
|
|
22
|
+
},
|
|
23
|
+
"examples": [
|
|
24
|
+
{ "name": "Glow", "props": { "background": "#07060d" } },
|
|
25
|
+
{ "name": "Clean light", "props": { "name": "Northwind", "tagline": "", "mark": "dot", "color": "#0f172a", "accent": "#0ea5e9", "background": "#f8fafc", "glow": false, "font": "sans", "weight": "800" } },
|
|
26
|
+
{ "name": "Serif luxe", "props": { "name": "Atelier", "tagline": "Since 2026", "mark": "none", "font": "serif", "weight": "400", "size": 15, "accent": "#d4a373", "background": "#0c0a09" } }
|
|
27
|
+
],
|
|
28
|
+
"stillAt": 0.7
|
|
29
|
+
}
|