Files
hyperframes/packages/studio/fixtures/storyboard-sample/compositions/frames/03-feature.html
T
James RussoandClaude Opus 4.8 8a13a07074 feat(studio): add storyboard manifest contract, parser, and read API (#1528)
First PR in the Studio storyboarding stack. Establishes the parseable
contract the storyboard UI reads from; no UI yet.

- core/storyboard: StoryboardManifest/Frame/Globals types + a lenient
  STORYBOARD.md parser (frontmatter + status/src/duration/transition_in,
  freeform narrative tolerated, never throws, records warnings). Exposed as
  @hyperframes/core/storyboard (browser-safe).
- studio-api: GET /projects/:id/storyboard returns the normalized manifest
  with per-frame srcExists; missing file -> exists:false, not 404.
- fixture: packages/studio/fixtures/storyboard-sample for dogfooding the
  storyboard view in later PRs (built/animated frames + one outline).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 12:06:56 -07:00

85 lines
2.4 KiB
HTML

<template id="frame-03-feature-template">
<div
data-composition-id="frame-03-feature"
data-width="1920"
data-height="1080"
data-duration="5"
>
<div class="canvas">
<div class="sheet">
<div class="tile t1"></div>
<div class="tile t2"></div>
<div class="tile t3"></div>
<div class="tile t4"></div>
</div>
<div class="cap">Lock the story first. Then it animates.</div>
</div>
<style>
[data-composition-id="frame-03-feature"] .canvas {
width: 1920px;
height: 1080px;
background: #f5f3ec;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 56px;
font-family: "Inter", system-ui, sans-serif;
overflow: hidden;
}
[data-composition-id="frame-03-feature"] .sheet {
display: grid;
grid-template-columns: repeat(2, 360px);
grid-auto-rows: 202px;
gap: 28px;
}
[data-composition-id="frame-03-feature"] .tile {
border-radius: 18px;
opacity: 0;
}
[data-composition-id="frame-03-feature"] .t1 {
background: #8b7bff;
}
[data-composition-id="frame-03-feature"] .t2 {
background: #ff7262;
}
[data-composition-id="frame-03-feature"] .t3 {
background: #1abcfe;
}
[data-composition-id="frame-03-feature"] .t4 {
background: #0acf83;
}
[data-composition-id="frame-03-feature"] .cap {
color: #1a1726;
font-size: 44px;
font-weight: 600;
letter-spacing: -0.01em;
opacity: 0;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<script>
(function () {
const id = '[data-composition-id="frame-03-feature"]';
const tl = gsap.timeline({ paused: true });
tl.to(
id + " .tile",
{ opacity: 1, y: 0, duration: 0.5, stagger: 0.18, ease: "back.out(1.3)" },
0.2,
);
tl.fromTo(
id + " .tile",
{ y: 30 },
{ y: 0, duration: 0.5, stagger: 0.18, ease: "back.out(1.3)" },
0.2,
);
tl.to(id + " .cap", { opacity: 1, duration: 0.6, ease: "power2.out" }, 1.4);
window.__timelines = window.__timelines || {};
window.__timelines["frame-03-feature"] = tl;
})();
</script>
</div>
</template>