@senseihq/emaki-cli 0.0.0-stage → 0.1.1
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 +69 -2
- package/package.json +44 -4
- package/plugin/.claude-plugin/plugin.json +19 -0
- package/plugin/PLAYBOOK.md +137 -0
- package/plugin/README.md +51 -0
- package/plugin/agents/fact-checker.md +28 -0
- package/plugin/agents/localizer.md +34 -0
- package/plugin/agents/scene-builder.md +43 -0
- package/plugin/agents/story-planner.md +42 -0
- package/plugin/agents/story-writer.md +34 -0
- package/plugin/agents/visual-reviewer.md +33 -0
- package/plugin/modules/campaign/README.md +30 -0
- package/plugin/modules/campaign/calendar.csv +2 -0
- package/plugin/modules/campaign/day-script.template.md +42 -0
- package/plugin/modules/posting-desk/README.md +37 -0
- package/plugin/skills/emaki/SKILL.md +107 -0
- package/plugin/skills/emaki/references/01-interview.md +68 -0
- package/plugin/skills/emaki/references/02-architecture.md +69 -0
- package/plugin/skills/emaki/references/03-content-model.md +68 -0
- package/plugin/skills/emaki/references/04-scene-authoring.md +99 -0
- package/plugin/skills/emaki/references/05-voice-and-video.md +97 -0
- package/plugin/skills/emaki/references/06-i18n.md +37 -0
- package/plugin/skills/emaki/references/07-quality-gates.md +44 -0
- package/plugin/skills/emaki/references/08-feedback-loop.md +32 -0
- package/plugin/skills/emaki/references/09-publishing.md +14 -0
- package/plugin/skills/story-build/SKILL.md +37 -0
- package/plugin/skills/story-localize/SKILL.md +24 -0
- package/plugin/skills/story-media/SKILL.md +38 -0
- package/plugin/skills/story-publish/SKILL.md +36 -0
- package/plugin/skills/story-review/SKILL.md +29 -0
- package/plugin/templates/brief.md +32 -0
- package/plugin/templates/change-request.md +7 -0
- package/plugin/templates/changelog.md +4 -0
- package/plugin/templates/decisions.md +5 -0
- package/plugin/templates/glossary.md +4 -0
- package/plugin/templates/item-card.md +34 -0
- package/plugin/templates/outline.md +19 -0
- package/plugin/templates/review-sheet.md +12 -0
- package/plugin/templates/style-guide.md +21 -0
- package/plugin/templates/tracker.md +11 -0
- package/src/api.js +20 -0
- package/src/campaign.js +157 -0
- package/src/capture.js +205 -0
- package/src/carousel.js +91 -0
- package/src/config.js +32 -0
- package/src/day-script.js +66 -0
- package/src/desk-client.js +37 -0
- package/src/desk-plan.js +57 -0
- package/src/films.js +152 -0
- package/src/http.js +30 -0
- package/src/index.js +353 -0
- package/src/init.js +110 -0
- package/src/media.js +236 -0
- package/src/migrate.js +67 -0
- package/src/plugin.js +106 -0
- package/src/publish.js +118 -0
- package/src/stage.js +107 -0
- package/src/stories.js +66 -0
- package/src/tts.js +290 -0
- package/src/upload/instagram.js +34 -0
- package/src/upload/youtube.js +90 -0
- package/src/util.js +66 -0
- package/src/voice.js +295 -0
- package/src/youtube-text.js +58 -0
- package/templates/content/films/index.json +1 -0
- package/templates/content/films/measure-the-right-work/film.json +68 -0
- package/templates/content/films/measure-the-right-work/look.css +17 -0
- package/templates/content/films/measure-the-right-work/scene-close.json +153 -0
- package/templates/content/films/measure-the-right-work/scene-groups.json +99 -0
- package/templates/content/films/measure-the-right-work/scene-hook.json +96 -0
- package/templates/content/films/measure-the-right-work/scene-pair.json +190 -0
- package/templates/content/films/measure-the-right-work/scene-problem.json +162 -0
- package/templates/content/films/measure-the-right-work/score.js +19 -0
- package/templates/content/films/measure-the-right-work/strings/en.json +50 -0
- package/templates/content/films/measure-the-right-work/strings/es.json +50 -0
- package/templates/content/films/measure-the-right-work/timing.en.json +24 -0
- package/templates/content/films/measure-the-right-work/timing.es.json +24 -0
- package/templates/content/films/measure-the-right-work/voice/en/close.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/groups.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/hook.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/pair.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/problem.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en.json +7 -0
- package/templates/content/films/measure-the-right-work/voice/es/close.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/groups.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/hook.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/pair.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/problem.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es.json +7 -0
- package/templates/content/logos/brand.svg +1 -0
- package/templates/content/site.json +10 -0
- package/templates/content/stories/en/measure-the-right-work.json +13 -0
- package/templates/content/stories/es/measure-the-right-work.json +13 -0
- package/templates/content/stories/index.json +12 -0
- package/templates/content/ui/en.json +1 -0
- package/templates/content/ui/es.json +1 -0
- package/templates/emaki.config.json +67 -0
- package/templates/film/look.css +17 -0
- package/templates/film/scene-close.json +153 -0
- package/templates/film/scene-template.json +71 -0
- package/templates/film/score.js +12 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scenes": {
|
|
3
|
+
"hook": {
|
|
4
|
+
"voice": 0.6,
|
|
5
|
+
"dur": 6.3
|
|
6
|
+
},
|
|
7
|
+
"problem": {
|
|
8
|
+
"voice": 0.6,
|
|
9
|
+
"dur": 6.3
|
|
10
|
+
},
|
|
11
|
+
"pair": {
|
|
12
|
+
"voice": 0.6,
|
|
13
|
+
"dur": 12.2
|
|
14
|
+
},
|
|
15
|
+
"groups": {
|
|
16
|
+
"voice": 0.6,
|
|
17
|
+
"dur": 7.4
|
|
18
|
+
},
|
|
19
|
+
"close": {
|
|
20
|
+
"voice": 0.6,
|
|
21
|
+
"dur": 4.1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scenes": {
|
|
3
|
+
"groups": {
|
|
4
|
+
"dur": 9.1,
|
|
5
|
+
"voice": 0.6
|
|
6
|
+
},
|
|
7
|
+
"hook": {
|
|
8
|
+
"voice": 0.6,
|
|
9
|
+
"dur": 6.4
|
|
10
|
+
},
|
|
11
|
+
"problem": {
|
|
12
|
+
"voice": 0.6,
|
|
13
|
+
"dur": 7.7
|
|
14
|
+
},
|
|
15
|
+
"pair": {
|
|
16
|
+
"voice": 0.6,
|
|
17
|
+
"dur": 12.2
|
|
18
|
+
},
|
|
19
|
+
"close": {
|
|
20
|
+
"voice": 0.6,
|
|
21
|
+
"dur": 5.1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[
|
|
2
|
+
{ "scene": "hook", "text": "More tokens. More commits. More lines. Is any of it right?", "say": null },
|
|
3
|
+
{ "scene": "problem", "text": "Volume goes up on bad weeks too, because fixing things is activity as well.", "say": null },
|
|
4
|
+
{ "scene": "pair", "text": "So read two numbers together: first-turn resolution and rework share. High resolution with rising rework means work deferred, not done.", "say": null },
|
|
5
|
+
{ "scene": "groups", "text": "Group the rest by the question they answer, and never show a speed metric without its quality companion.", "say": null },
|
|
6
|
+
{ "scene": "close", "text": "Measure the right work, not more work.", "say": null }
|
|
7
|
+
]
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[
|
|
2
|
+
{ "scene": "hook", "text": "Más tokens. Más commits. Más líneas. ¿Algo de eso está bien?", "say": null },
|
|
3
|
+
{ "scene": "problem", "text": "El volumen también sube en las malas semanas, porque arreglar cosas también es actividad.", "say": null },
|
|
4
|
+
{ "scene": "pair", "text": "Lee dos números juntos: la resolución al primer intento y la cuota de retrabajo. Mucha resolución con retrabajo en alza es trabajo aplazado, no hecho.", "say": null },
|
|
5
|
+
{ "scene": "groups", "text": "Agrupa el resto por la pregunta que responde, y nunca muestres una métrica de velocidad sin su compañera de calidad.", "say": null },
|
|
6
|
+
{ "scene": "close", "text": "Mide el trabajo correcto, no más trabajo.", "say": null }
|
|
7
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><circle cx="256" cy="256" r="200" fill="none" stroke="#C25237" stroke-width="28"/><circle cx="256" cy="210" r="34" fill="#C25237"/><path d="M136 346 L222 262 L268 306 L312 252 L376 346 Z" fill="#C25237"/><rect x="150" y="368" width="212" height="14" rx="7" fill="#C25237"/></svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Acme Learning",
|
|
3
|
+
"url": "https://learn.example.com",
|
|
4
|
+
"timeZone": "America/Chicago",
|
|
5
|
+
"locales": ["en", "es"],
|
|
6
|
+
"defaultLocale": "en",
|
|
7
|
+
"rtl": ["ar", "he", "fa", "ur"],
|
|
8
|
+
"brand": { "logo": "brand", "accent": "#C25237" },
|
|
9
|
+
"topics": [{ "id": "metrics", "label": { "en": "Metrics", "es": "Métricas" } }]
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Measure the right work, not more work",
|
|
3
|
+
"dek": "Tokens, commits and lines tell you how much happened. They don't tell you whether it was right. Two paired numbers do better.",
|
|
4
|
+
"sections": [
|
|
5
|
+
{ "id": "hook", "eyebrow": "The question", "title": "Busy is not the same as right", "body": ["Activity counters only go up. They rise on good weeks and bad ones alike."], "caption": "Counters that only go up." },
|
|
6
|
+
{ "id": "problem", "eyebrow": "The problem", "title": "Volume is a vanity metric", "body": ["More commits, more tokens, more lines: all of these go up when work is going badly too, because fixing things is also activity."] },
|
|
7
|
+
{ "id": "pair", "eyebrow": "The pair", "title": "First-turn resolution and rework share", "body": ["First-turn resolution is the share of sessions completed without a correction. Rework share is the share of effort that came from corrected sessions. Read them together: high resolution with rising rework means work is being deferred, not done."], "points": ["Never read a speed metric alone", "Look where the friction concentrates", "Treat rising rework as an early warning"] },
|
|
8
|
+
{ "id": "groups", "eyebrow": "In practice", "title": "Grouped by what they answer", "body": ["Group metrics by the question they answer (outcome, quality, velocity, usage, cost) and always show a velocity number next to its quality companion."] }
|
|
9
|
+
],
|
|
10
|
+
"takeaway": "Measure the right work, not more work.",
|
|
11
|
+
"takeawaySub": "Pair every speed metric with its quality companion.",
|
|
12
|
+
"sources": []
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Mide el trabajo correcto, no más trabajo",
|
|
3
|
+
"dek": "Los tokens, los commits y las líneas dicen cuánto pasó. No dicen si estuvo bien. Dos números en pareja lo hacen mejor.",
|
|
4
|
+
"sections": [
|
|
5
|
+
{ "id": "hook", "eyebrow": "La pregunta", "title": "Estar ocupado no es lo mismo que acertar", "body": ["Los contadores de actividad solo suben. Suben en las buenas semanas y en las malas."], "caption": "Contadores que solo suben." },
|
|
6
|
+
{ "id": "problem", "eyebrow": "El problema", "title": "El volumen es una métrica de vanidad", "body": ["Más commits, más tokens, más líneas: todo eso sube también cuando el trabajo va mal, porque corregir también es actividad."] },
|
|
7
|
+
{ "id": "pair", "eyebrow": "El par", "title": "Resolución al primer intento y cuota de retrabajo", "body": ["La resolución al primer intento es la proporción de sesiones completadas sin una corrección. La cuota de retrabajo es la proporción del esfuerzo que vino de sesiones corregidas. Léelas juntas: una resolución alta con retrabajo en aumento significa trabajo aplazado, no hecho."], "points": ["Nunca leas una métrica de velocidad sola", "Mira dónde se concentra la fricción", "Trata el retrabajo en aumento como una alerta temprana"] },
|
|
8
|
+
{ "id": "groups", "eyebrow": "En la práctica", "title": "Agrupadas por lo que responden", "body": ["Agrupa las métricas por la pregunta que responden (resultado, calidad, velocidad, uso, coste) y muestra siempre una cifra de velocidad junto a su compañera de calidad."] }
|
|
9
|
+
],
|
|
10
|
+
"takeaway": "Mide el trabajo correcto, no más trabajo.",
|
|
11
|
+
"takeawaySub": "Acompaña cada métrica de velocidad con su compañera de calidad.",
|
|
12
|
+
"sources": []
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"slug": "measure-the-right-work",
|
|
4
|
+
"publish_date": "2026-11-01",
|
|
5
|
+
"kind": "film",
|
|
6
|
+
"topic": "metrics",
|
|
7
|
+
"tags": ["metrics", "quality", "productivity"],
|
|
8
|
+
"minutes": 4,
|
|
9
|
+
"cover": "/covers/measure-the-right-work.jpg",
|
|
10
|
+
"social": { "youtube": "", "instagram": "", "x": "" }
|
|
11
|
+
}
|
|
12
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "nav.stories": "Stories", "nav.topics": "Topics", "story.play": "Play the story", "story.withSound": "with sound", "story.minutes": "{n} min read", "story.shortVersion": "The short version", "story.notTranslated": "This story isn't available in your language yet; showing {lang}.", "story.related": "More stories", "search.placeholder": "Search stories" }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "nav.stories": "Historias", "nav.topics": "Temas", "story.play": "Reproducir la historia", "story.withSound": "con sonido", "story.minutes": "{n} min de lectura", "story.shortVersion": "En resumen", "story.notTranslated": "Esta historia aún no está disponible en tu idioma; se muestra en {lang}.", "story.related": "Más historias", "search.placeholder": "Buscar historias" }
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": "content",
|
|
3
|
+
"production": "production",
|
|
4
|
+
"port": 5199,
|
|
5
|
+
"devCommand": "npm run dev -- --port {port} --strictPort",
|
|
6
|
+
"showPath": "/show/{slug}?capture=1&o={layout}&locale={locale}",
|
|
7
|
+
"coversDir": "public/covers",
|
|
8
|
+
"lead": 0.6,
|
|
9
|
+
"tail": 1.2,
|
|
10
|
+
"scoreLevel": 0.55,
|
|
11
|
+
"voice": {
|
|
12
|
+
"_how": "No provider is chosen yet: run `emaki tts-check`, then `emaki set-voice --locale default --provider <name> --opt key=value`. Keys go in environment variables, never here.",
|
|
13
|
+
"_examples": {
|
|
14
|
+
"piper": {
|
|
15
|
+
"provider": "piper",
|
|
16
|
+
"model": "voices/en_US-lessac-medium.onnx"
|
|
17
|
+
},
|
|
18
|
+
"kokoro": {
|
|
19
|
+
"provider": "kokoro",
|
|
20
|
+
"voice": "af_heart",
|
|
21
|
+
"speed": 1.0
|
|
22
|
+
},
|
|
23
|
+
"macos": {
|
|
24
|
+
"provider": "macos",
|
|
25
|
+
"voice": "Samantha",
|
|
26
|
+
"rate": 175
|
|
27
|
+
},
|
|
28
|
+
"espeak": {
|
|
29
|
+
"provider": "espeak",
|
|
30
|
+
"voice": "en-us",
|
|
31
|
+
"speed": 160
|
|
32
|
+
},
|
|
33
|
+
"elevenlabs": {
|
|
34
|
+
"provider": "elevenlabs",
|
|
35
|
+
"voice_id": "YOUR_VOICE_ID",
|
|
36
|
+
"model": "eleven_multilingual_v2",
|
|
37
|
+
"stability": 0.55,
|
|
38
|
+
"similarity": 0.8
|
|
39
|
+
},
|
|
40
|
+
"openai": {
|
|
41
|
+
"provider": "openai",
|
|
42
|
+
"model": "gpt-4o-mini-tts",
|
|
43
|
+
"voice": "coral",
|
|
44
|
+
"instructions": "Calm, warm, unhurried explainer."
|
|
45
|
+
},
|
|
46
|
+
"azure": {
|
|
47
|
+
"provider": "azure",
|
|
48
|
+
"voice": "en-US-AvaMultilingualNeural",
|
|
49
|
+
"rate": "0%"
|
|
50
|
+
},
|
|
51
|
+
"google": {
|
|
52
|
+
"provider": "google",
|
|
53
|
+
"voice": "en-US-Neural2-F",
|
|
54
|
+
"speed": 1.0
|
|
55
|
+
},
|
|
56
|
+
"polly": {
|
|
57
|
+
"provider": "polly",
|
|
58
|
+
"voice": "Joanna",
|
|
59
|
+
"engine": "neural",
|
|
60
|
+
"region": "us-east-1"
|
|
61
|
+
},
|
|
62
|
+
"manual": {
|
|
63
|
+
"provider": "manual"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#stage { --ground:#F9F6F1; --main:#48413D; --second:#1F1916; --accent:#C25237; color:var(--second); font-family:var(--sans, system-ui, sans-serif) }
|
|
2
|
+
#stage { --jade:#599576; --board:#F3F0E9; --dot:#DCD7CD; --tile:#FCFAF6; --hair:#DCD7CD; --mute:#7F7975; --wire:#B2ADA9; --edge:color-mix(in srgb, var(--second) 14%, transparent); --shade:color-mix(in srgb, var(--second) 7%, transparent); --soft:var(--main) }
|
|
3
|
+
#stage[data-mode="dark"] { --ground:#191614; --main:#D8D0C7; --second:#F2ECE4; --accent:#E0795C; --jade:#6FAE8B; --board:#1E1B18; --dot:#34302B; --tile:#26221F; --hair:#3A3530; --mute:#A0978F; --wire:#5E5751; --shade:rgba(0,0,0,.35) }
|
|
4
|
+
.ground { position:absolute; inset:0; background:var(--board) }
|
|
5
|
+
.art { position:absolute; inset:0; width:100%; height:100%; overflow:visible }
|
|
6
|
+
.cam { position:absolute; inset:0; transform-origin:960px 540px }
|
|
7
|
+
.words { position:absolute; margin:0; display:flex; flex-direction:column; gap:20px } .words > * { margin:0 }
|
|
8
|
+
.line { font-family:var(--display, var(--sans, system-ui, sans-serif)); font-size:84px; line-height:1.08; font-weight:400; letter-spacing:-0.02em }
|
|
9
|
+
.sub { font-size:36px; line-height:1.35; color:var(--soft) }
|
|
10
|
+
.eyebrow { font-size:26px; font-weight:600; letter-spacing:0.16em; text-transform:uppercase; color:var(--accent) }
|
|
11
|
+
.card { position:absolute; background:var(--tile); border:2px solid var(--hair); border-radius:18px }
|
|
12
|
+
.tag { position:absolute; transform:translate(-50%,0); padding:8px 18px; border-radius:999px; font-size:28px; font-weight:600; white-space:nowrap; background:var(--tile); color:var(--second); border:2px solid var(--hair) }
|
|
13
|
+
.tag.hot { background:var(--accent); color:var(--ground); border-color:var(--accent) } .tag.ink { background:var(--main); color:var(--ground); border-color:var(--main) } .tag.ok { background:var(--jade); color:var(--ground); border-color:var(--jade) }
|
|
14
|
+
.checks { position:absolute; display:flex; flex-direction:column; gap:14px }
|
|
15
|
+
.chk { display:flex; align-items:flex-start; gap:18px; padding:16px 22px; background:var(--tile); border:2px solid var(--hair); border-radius:14px; font-size:32px; line-height:1.25; font-weight:500 }
|
|
16
|
+
.chk i { flex:none; width:30px; height:30px; margin-top:3px; border-radius:50%; background:var(--jade); position:relative } .chk i::after { content:''; position:absolute; left:9px; top:5px; width:8px; height:14px; border:solid var(--ground); border-width:0 4px 4px 0; transform:rotate(45deg) }
|
|
17
|
+
.mono { font-family:var(--mono, ui-monospace, monospace) }
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": [
|
|
3
|
+
{
|
|
4
|
+
"type": "board",
|
|
5
|
+
"id": "__ID__-bg"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "group",
|
|
9
|
+
"id": "close-mark",
|
|
10
|
+
"style": "transform-origin:1530px 540px",
|
|
11
|
+
"children": [
|
|
12
|
+
{
|
|
13
|
+
"type": "logo",
|
|
14
|
+
"id": "close-logo",
|
|
15
|
+
"name": "brand",
|
|
16
|
+
"x": 1530,
|
|
17
|
+
"y": 540,
|
|
18
|
+
"size": 400
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "box",
|
|
24
|
+
"id": "close-card",
|
|
25
|
+
"at": "ground",
|
|
26
|
+
"children": [
|
|
27
|
+
{
|
|
28
|
+
"type": "text",
|
|
29
|
+
"id": "close-title",
|
|
30
|
+
"tag": "h1",
|
|
31
|
+
"text": "{{close.title}}",
|
|
32
|
+
"split": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "raw",
|
|
36
|
+
"id": "close-bar",
|
|
37
|
+
"html": "<div class='close-bar'></div>"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "text",
|
|
41
|
+
"id": "close-sub",
|
|
42
|
+
"cls": "sub",
|
|
43
|
+
"text": "{{close.sub}}"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"tracks": [
|
|
49
|
+
{
|
|
50
|
+
"kind": "effect",
|
|
51
|
+
"effect": "push",
|
|
52
|
+
"target": ".cam",
|
|
53
|
+
"t0": 0,
|
|
54
|
+
"dur": 5,
|
|
55
|
+
"from": 1,
|
|
56
|
+
"to": 1.025
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"kind": "tween",
|
|
60
|
+
"target": ".close-card",
|
|
61
|
+
"prop": "opacity",
|
|
62
|
+
"from": 0,
|
|
63
|
+
"to": 1,
|
|
64
|
+
"t0": -0.2,
|
|
65
|
+
"t1": 0.4,
|
|
66
|
+
"easing": "eo"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"kind": "tween",
|
|
70
|
+
"target": ".close-card",
|
|
71
|
+
"prop": "transform",
|
|
72
|
+
"template": "translateY({v}px)",
|
|
73
|
+
"from": 24,
|
|
74
|
+
"to": 0,
|
|
75
|
+
"t0": -0.2,
|
|
76
|
+
"t1": 0.4,
|
|
77
|
+
"easing": "eo"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"kind": "effect",
|
|
81
|
+
"effect": "words",
|
|
82
|
+
"target": ".close-title",
|
|
83
|
+
"t0": 0
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"kind": "tween",
|
|
87
|
+
"target": ".close-bar",
|
|
88
|
+
"prop": "transform",
|
|
89
|
+
"template": "scaleX({v})",
|
|
90
|
+
"from": 0,
|
|
91
|
+
"to": 1,
|
|
92
|
+
"t0": 0.6,
|
|
93
|
+
"t1": 1.1,
|
|
94
|
+
"easing": "eo",
|
|
95
|
+
"decimals": 3
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"kind": "tween",
|
|
99
|
+
"target": ".close-sub",
|
|
100
|
+
"prop": "opacity",
|
|
101
|
+
"from": 0,
|
|
102
|
+
"to": 1,
|
|
103
|
+
"t0": 0.8,
|
|
104
|
+
"t1": 1.3,
|
|
105
|
+
"easing": "eo"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"kind": "tween",
|
|
109
|
+
"target": ".close-sub",
|
|
110
|
+
"prop": "transform",
|
|
111
|
+
"template": "translateX({v}px)",
|
|
112
|
+
"from": 26,
|
|
113
|
+
"to": 0,
|
|
114
|
+
"t0": 0.8,
|
|
115
|
+
"t1": 1.3,
|
|
116
|
+
"easing": "eo"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"kind": "effect",
|
|
120
|
+
"effect": "settle",
|
|
121
|
+
"target": ".close-mark",
|
|
122
|
+
"t0": 0.3,
|
|
123
|
+
"t1": 1,
|
|
124
|
+
"o": 1.4,
|
|
125
|
+
"scaleFrom": 0.7,
|
|
126
|
+
"scaleTo": 1,
|
|
127
|
+
"breatheAmp": 0.012,
|
|
128
|
+
"breatheFreq": 1.6,
|
|
129
|
+
"rotateFrom": -14,
|
|
130
|
+
"rotateTo": 0,
|
|
131
|
+
"rt0": 0.3,
|
|
132
|
+
"rt1": 1.4,
|
|
133
|
+
"opacityMult": 1.5
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"css": ".close-card { position:absolute; left:110px; top:330px; display:flex; flex-direction:column; gap:26px; max-width:1060px }.close-title { margin:0; font-family:var(--display, serif); font-weight:400; font-size:120px; line-height:1.04; letter-spacing:-0.02em }.close-bar { width:300px; height:3px; border-radius:2px; background:var(--accent); transform-origin:0 50% } .close-card .sub { font-size:42px }",
|
|
137
|
+
"portrait": {
|
|
138
|
+
"hoist": [
|
|
139
|
+
".close-card"
|
|
140
|
+
],
|
|
141
|
+
"frame": [
|
|
142
|
+
700,
|
|
143
|
+
920
|
|
144
|
+
],
|
|
145
|
+
"crop": [
|
|
146
|
+
1250,
|
|
147
|
+
260,
|
|
148
|
+
560,
|
|
149
|
+
560
|
|
150
|
+
],
|
|
151
|
+
"css": ".close-card{left:70px!important;top:180px!important;max-width:none!important;width:940px} .close-title{font-size:110px!important}"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": [
|
|
3
|
+
{
|
|
4
|
+
"type": "board",
|
|
5
|
+
"id": "__ID__-bg"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "box",
|
|
9
|
+
"id": "__ID__-card",
|
|
10
|
+
"cls": "card",
|
|
11
|
+
"style": "left:900px;top:200px;width:880px;height:560px;padding:32px",
|
|
12
|
+
"children": [
|
|
13
|
+
{
|
|
14
|
+
"type": "text",
|
|
15
|
+
"id": "__ID__-label",
|
|
16
|
+
"tag": "h4",
|
|
17
|
+
"text": "{{__ID__.label}}"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "head",
|
|
23
|
+
"id": "__ID__-head",
|
|
24
|
+
"at": "ground",
|
|
25
|
+
"eyebrow": "{{__ID__.eyebrow}}",
|
|
26
|
+
"line": "{{__ID__.line}}",
|
|
27
|
+
"sub": "{{__ID__.sub}}",
|
|
28
|
+
"style": "left:110px;top:300px;width:700px"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"tracks": [
|
|
32
|
+
{
|
|
33
|
+
"kind": "effect",
|
|
34
|
+
"effect": "push",
|
|
35
|
+
"target": ".cam",
|
|
36
|
+
"t0": 0,
|
|
37
|
+
"dur": 10,
|
|
38
|
+
"from": 1,
|
|
39
|
+
"to": 1.02
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"kind": "effect",
|
|
43
|
+
"effect": "showHead",
|
|
44
|
+
"target": ".__ID__-head",
|
|
45
|
+
"t0": -0.4
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"kind": "effect",
|
|
49
|
+
"effect": "fade",
|
|
50
|
+
"target": ".__ID__-card",
|
|
51
|
+
"t0": 0.8
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"css": ".__ID__-card { position:absolute; box-sizing:border-box; box-shadow:0 14px 30px rgba(0,0,0,.07) } .__ID__-label { margin:0; font-size:24px; font-weight:600; letter-spacing:.08em; color:var(--mute) }",
|
|
55
|
+
"portrait": {
|
|
56
|
+
"hoist": [
|
|
57
|
+
".__ID__-head"
|
|
58
|
+
],
|
|
59
|
+
"frame": [
|
|
60
|
+
640,
|
|
61
|
+
1000
|
|
62
|
+
],
|
|
63
|
+
"crop": [
|
|
64
|
+
880,
|
|
65
|
+
180,
|
|
66
|
+
920,
|
|
67
|
+
600
|
|
68
|
+
],
|
|
69
|
+
"css": ".__ID__-head{left:70px!important;top:150px!important;width:940px!important}"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// The film's sound: action tones only (no bed). T.<scene> is each scene's running start; time a note to the
|
|
2
|
+
// moment it marks (a card landing, a tick, a reveal). Instruments: vibes, marimba, pluck, ep, bass. Effects via
|
|
3
|
+
// S.fx(name, t): click, tick, thud, pop, whoosh, ding, chime, sparkle, roll.
|
|
4
|
+
kit.score(function (S, T) {
|
|
5
|
+
S.tempo(70, { t0: 0 });
|
|
6
|
+
S.program('bell', 'vibes', { rev: 0.6, gain: -5 });
|
|
7
|
+
S.program('wood', 'marimba', { rev: 0.4, gain: -7, pan: 0.15 });
|
|
8
|
+
S.program('pl', 'pluck', { rev: 0.5, gain: -9, pan: -0.15 });
|
|
9
|
+
const P = (track, n, t, vel, dur) => S.note(track, n, { t, dur: dur || 0.8, vel });
|
|
10
|
+
Object.keys(T).forEach((id, i) => P('wood', ['D4', 'E4', 'F#4', 'A4', 'B4', 'D5'][i % 6], T[id] + 0.8, 20, 0.4));
|
|
11
|
+
if (T.close !== undefined) S.chord('bell', ['D5', 'F#5', 'A5'], { t: T.close + 0.3, dur: 3.2, vel: 30 });
|
|
12
|
+
});
|