mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 21:03:47 -10:00
Proved by bench/direction/proof/proof.sh: five checks that import nothing of Bevy's (a lyric layer over footage, a footage cut, a cue in a mix, a caption in a vertical ad, a rider on a 3D seat), each passing its piece and failing its cheat, and a taste line failing the ad's cheat as the named check of its form. Fixed on the way: a text's box grows over words drawn past it (the caption cheat passed); a word a cut passes through is in each clip's words (the cut cheat passed); a Part carries its own box before its transform, so a turned part is tested as turned; the help reads `[A|B]` as one argument. Copies folded rather than added: a command's words (apps/check, now also raea workspace's), the printed report and exit code, the person's taste folder, a controller read from JSON (core/brief, now also apps/workspace's), and a path made plain (runtime/bundle's). The spec's lines that the code showed wrong are fixed beside them: --stage moves to DR10, a note's checks to DR6, and the rule field from DR8 to DR4.
14 lines
584 B
TypeScript
14 lines
584 B
TypeScript
// DR4's proof, the vertical ad as asked: its caption well above the platform's button band (from 80% down).
|
|
// checks/caption.ts holds it.
|
|
import { AbsoluteFill, Composition, registerRoot } from "raea";
|
|
|
|
function Ad() {
|
|
return (
|
|
<AbsoluteFill style={{ background: "#f4e9d8" }}>
|
|
<div style={{ position: "absolute", left: 60, top: 560, width: 380, fontSize: 44, fontWeight: 700, color: "#222" }}>Fresh bread, every morning</div>
|
|
</AbsoluteFill>
|
|
);
|
|
}
|
|
|
|
registerRoot(() => <Composition id="ad" component={Ad} width={540} height={960} fps={30} durationInFrames={90} />);
|