Poster video
This project turns a list of short claims into a vertical and a square video with music. Each claim gets one full-screen colour panel with a few huge words. It must read with the sound off.
The project ships with an example film for Posta (getposta.co), the social media scheduler whose team made this starter. Replace all of it (name, logo, colours and every panel) with the user's own product; none of Posta's claims or colours should remain in their video.
Before you write anything
Ask the user for what you don't have. Don't invent it.
- Product: its name, what it does in one line, and who it's for.
- Claims: five to eight things to say, plus the price and the website if they want them shown.
- Brand: colours as hex codes and a logo file (a square PNG or SVG works best).
- What isn't released yet: anything that is planned but not live.
How the project works
film.jsonholds the brand and the panels. Each panel has akindand a length inbars.src/kit.tsxholds the timing and the building blocks (Big,Pop,Pill,Note,Panel,fit).src/Film.tsxdraws each kind of panel.tools/score.mjswrites the music fromfilm.json, so the music always matches the cuts.node render.mjs stillswrites one frame per panel, for both formats, toout/stills.node render.mjs videowrites the two MP4s toout/.
The music is 112.5 BPM and the video is 30 frames a second, so a beat is 16 frames and a bar is 64. Every panel starts on a bar. Keep panel lengths to whole bars, apart from the last one, which may run half a bar longer for the fade.
Panel kinds
| Kind | Fields | Use it for |
|---|---|---|
title | headline | The opening: logo and one line. |
words | headline, optional note, optional tag | One claim. tag is a small label such as "New" or "Soon". |
list | headline, items, optional note | A handful of names that pop in one by one. Give it two bars if there are more than four items. |
number | headline, value, label, optional note | A figure that counts up. |
end | lines, optional button, optional note | The close: logo, one or two lines, the website. |
Any panel can take a background hex code. Without one, the first and last panels use the dark colour and the rest take the brand's panel colours in turn.
Steps
- Put the logo in
public/and setbrand.logoto its file name. Set the colours. - Write the panels in
film.json. One idea per panel, six words at most in a headline. Keep the whole film under 30 seconds (about 14 bars). - Run
npm run typecheck, thennode render.mjs stills. - Open every still in
out/stills, vertical and square. Fix anything that overlaps, runs off the edge, or is too small to read on a phone. Render the stills again until all of them are clean. - Run
node render.mjs video. - Tell the user where the files are, and say plainly that you checked still frames and have not watched or heard the video. Ask them to watch it with the sound on.
Rules
- Only state what the user told you. No made-up numbers, customers or features. Example data on screen (a sample caption, a sample figure) must be plausible and must not read as a result the product achieved.
- Mark anything unreleased with a
tagof "Soon". Don't show it as available. - Use plain words the audience uses. Name the benefit, not the technology behind it.
- Don't use another company's logo unless the user asks and the claim about that company is true. Draw logos from the company's own published SVG, not from memory.
- The music is written by
tools/score.mjs. Don't add existing songs or samples: social apps mute or remove videos with copyrighted music.
Going past the template
The five kinds are a starting point. When a claim would land better with a picture (cards fanning out, a calendar filling up, a chart growing), add a new kind:
- Add it to
PanelSpecinsrc/Film.tsxand draw it inContent. - Time everything in beats with
go(beat, at, length)so it stays on the music. - Multiply every size by
kso the square video scales down with the vertical one. - Keep it flat: solid colours, hard offset shadows, no gradients, no blur, no fades between panels.
To change the sound, edit CHORDS, ROOTS and LINE in tools/score.mjs, or the instruments above them. If the user asks for a second video, change the palette, the panel order and the music so it doesn't look and sound like the first.