@koda-sl/baker-cli 0.71.2 → 0.79.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/README.md +88 -8
- package/canvas/end-card-composition/index.html +66 -0
- package/canvas/end-card-composition/meta.json +19 -0
- package/canvas/feature-reveal-composition/index.html +83 -0
- package/canvas/feature-reveal-composition/meta.json +18 -0
- package/canvas/lower-third-composition/index.html +75 -0
- package/canvas/lower-third-composition/meta.json +18 -0
- package/canvas/stat-counter-composition/index.html +73 -0
- package/canvas/stat-counter-composition/meta.json +20 -0
- package/canvas/title-card-composition/index.html +90 -0
- package/canvas/title-card-composition/meta.json +20 -0
- package/dist/{chunk-JIDZ37KG.js → chunk-CCO34ACK.js} +507 -307
- package/dist/chunk-CCO34ACK.js.map +1 -0
- package/dist/cli.js +986 -113
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.d.ts +6 -0
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-JIDZ37KG.js.map +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=1080, height=1920" />
|
|
6
|
+
<script src="./gsap.min.js"></script>
|
|
7
|
+
<style>
|
|
8
|
+
/* Drop brand-bold.otf / brand-regular.otf in this dir for on-brand type;
|
|
9
|
+
falls back cleanly to a system stack if absent. */
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: 'BrandFont';
|
|
12
|
+
src: url('./brand-bold.otf') format('opentype'), url('./brand-bold.ttf') format('truetype');
|
|
13
|
+
font-weight: 700 900;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'BrandFont';
|
|
18
|
+
src: url('./brand-regular.otf') format('opentype'), url('./brand-regular.ttf') format('truetype');
|
|
19
|
+
font-weight: 100 600;
|
|
20
|
+
font-display: swap;
|
|
21
|
+
}
|
|
22
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
23
|
+
html, body { width: 1080px; height: 1920px; overflow: hidden; }
|
|
24
|
+
#root {
|
|
25
|
+
position: absolute; inset: 0;
|
|
26
|
+
background: linear-gradient(160deg, {{bg_from}} 0%, {{bg_to}} 100%);
|
|
27
|
+
font-family: 'BrandFont', Arial, sans-serif;
|
|
28
|
+
color: {{text_color}};
|
|
29
|
+
display: flex; flex-direction: column; justify-content: center;
|
|
30
|
+
padding: 140px 110px;
|
|
31
|
+
text-align: {{align}};
|
|
32
|
+
}
|
|
33
|
+
#root.center { align-items: center; }
|
|
34
|
+
#root.left { align-items: flex-start; }
|
|
35
|
+
.kicker {
|
|
36
|
+
font-size: 38px; font-weight: 600; letter-spacing: 6px; text-transform: uppercase;
|
|
37
|
+
color: {{accent_color}}; opacity: 0; margin-bottom: 28px;
|
|
38
|
+
}
|
|
39
|
+
.rule { height: 6px; width: 160px; background: {{accent_color}}; border-radius: 3px; transform: scaleX(0); transform-origin: left center; margin-bottom: 40px; }
|
|
40
|
+
#root.center .rule { transform-origin: center; }
|
|
41
|
+
.headline { font-size: 132px; font-weight: 900; line-height: 1.1; letter-spacing: -1px; text-wrap: balance; }
|
|
42
|
+
.headline .word { display: inline-block; }
|
|
43
|
+
.headline .word > span { display: inline-block; transform: translateY(40px); opacity: 0; }
|
|
44
|
+
.subhead { font-size: 44px; font-weight: 500; line-height: 1.3; opacity: 0.92; margin-top: 40px; max-width: 820px; text-wrap: balance; opacity: 0; }
|
|
45
|
+
</style>
|
|
46
|
+
</head>
|
|
47
|
+
<body>
|
|
48
|
+
<div id="root" class="{{align}}" data-composition-id="main" data-start="0" data-duration="{{duration}}" data-width="1080" data-height="1920">
|
|
49
|
+
<div class="kicker" id="kicker">{{kicker}}</div>
|
|
50
|
+
<div class="rule" id="rule"></div>
|
|
51
|
+
<h1 class="headline" id="headline">{{headline}}</h1>
|
|
52
|
+
<div class="subhead" id="subhead">{{subhead}}</div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<script>
|
|
56
|
+
(() => {
|
|
57
|
+
var DURATION = parseFloat('{{duration}}') || 4;
|
|
58
|
+
|
|
59
|
+
// Wrap each headline word so it can rise/fade in independently.
|
|
60
|
+
var h = document.getElementById('headline');
|
|
61
|
+
var words = (h.textContent || '').trim().split(/\s+/).filter(Boolean);
|
|
62
|
+
h.textContent = '';
|
|
63
|
+
var spans = words.map(function (w, i) {
|
|
64
|
+
var word = document.createElement('span');
|
|
65
|
+
word.className = 'word';
|
|
66
|
+
var inner = document.createElement('span');
|
|
67
|
+
inner.textContent = w;
|
|
68
|
+
word.appendChild(inner);
|
|
69
|
+
h.appendChild(word);
|
|
70
|
+
if (i < words.length - 1) h.appendChild(document.createTextNode(' '));
|
|
71
|
+
return inner;
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
var hasKicker = ((document.getElementById('kicker').textContent) || '').trim().length > 0;
|
|
75
|
+
var hasSub = ((document.getElementById('subhead').textContent) || '').trim().length > 0;
|
|
76
|
+
|
|
77
|
+
var tl = gsap.timeline({ paused: true });
|
|
78
|
+
if (hasKicker) tl.to('#kicker', { opacity: 1, duration: 0.4, ease: 'power2.out' }, 0.1);
|
|
79
|
+
tl.to('#rule', { scaleX: 1, duration: 0.5, ease: 'power3.out' }, 0.25);
|
|
80
|
+
tl.to(spans, { y: 0, opacity: 1, duration: 0.6, stagger: 0.08, ease: 'power3.out' }, 0.35);
|
|
81
|
+
if (hasSub) tl.to('#subhead', { opacity: 0.92, duration: 0.5, ease: 'power2.out' }, '>-0.1');
|
|
82
|
+
// Pad the timeline to the full duration so the card holds on screen.
|
|
83
|
+
tl.to({}, { duration: 0.01 }, Math.max(0.02, DURATION - 0.01));
|
|
84
|
+
|
|
85
|
+
window.__timelines = window.__timelines || {};
|
|
86
|
+
window.__timelines.main = tl;
|
|
87
|
+
})();
|
|
88
|
+
</script>
|
|
89
|
+
</body>
|
|
90
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "title-card",
|
|
3
|
+
"title": "Kinetic title card — kicker + headline + subhead on a gradient",
|
|
4
|
+
"description": "A standalone opening/section card. Headline masks up word-by-word, kicker and accent rule wipe in, subhead fades. No inputs — renders a solid gradient background, so it works as an intro clip (mp4) or, with format=webm/mov, a transparent lower band you composite over footage. Drop brand-bold.otf / brand-regular.otf in this dir for on-brand type.",
|
|
5
|
+
"width": 1080,
|
|
6
|
+
"height": 1920,
|
|
7
|
+
"fps": 30,
|
|
8
|
+
"default_duration": 4,
|
|
9
|
+
"inputs": {},
|
|
10
|
+
"params": {
|
|
11
|
+
"kicker": { "kind": "string", "default": "", "description": "Small label above the headline (optional)." },
|
|
12
|
+
"headline": { "kind": "string", "required": true, "description": "The main line. Word-by-word mask reveal." },
|
|
13
|
+
"subhead": { "kind": "string", "default": "", "description": "Supporting line below (optional)." },
|
|
14
|
+
"bg_from": { "kind": "color", "default": "#0b1020", "description": "Gradient start." },
|
|
15
|
+
"bg_to": { "kind": "color", "default": "#1b2a4a", "description": "Gradient end." },
|
|
16
|
+
"text_color": { "kind": "color", "default": "#ffffff" },
|
|
17
|
+
"accent_color": { "kind": "color", "default": "#5b8cff", "description": "Kicker + accent rule." },
|
|
18
|
+
"align": { "kind": "string", "default": "center", "enum": ["left", "center"], "description": "Text alignment." }
|
|
19
|
+
}
|
|
20
|
+
}
|