Video ArtCraft : presentation de la suite libre (75 s, vertical)

Composition Remotion ArtCraft (theme sombre propre a cette video), voix provisoire
dots.tts-soar, musique CC0 Pure Raceway calee sur 160 bpm, bruitages synthetises.
Script et sources verifiees dans SCRIPT-artcraft-20261026.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cette révision appartient à :
Théo GastineletClaude Sonnet 5.5 a révisé 2026-10-26 20:16:00 +01:00
1 Parent 9a20e84fad
révision cf95879404
37 fichiers modifiés
+1927

Aucun fichier ne correspond à votre recherche

+38
Voir le fichier
@@ -0,0 +1,38 @@
# ArtCraft, la suite libre (vidéo de 75 s, 26/10/2026)
Vidéo verticale 1080x1920, 30 i/s, thème sombre (voulu par Théo pour cette vidéo seulement : la DA est propre à cette vidéo, pas celle de Gastinel).
Composition : `src/ArtCraft.tsx` (id Remotion `ArtCraft`). Voix PROVISOIRE (dots.tts-soar, voix par défaut, graine 21). Rendu : `out/artcraft-2026-10-26.mp4`.
## Faits et sources (vérifiés le 26/10/2026 sur GitHub, organisation officielle `storytold`)
| Phrase / affichage | Fait | Source |
|---|---|---|
| Suite créative gratuite et open source | Dépôts sous licence Apache-2.0 (API GitHub) ; README : « open source, offline » | `storytold/photocraft`, `effectcraft`, `lightcraft` |
| Treize applications, un seul lanceur | Le README du lanceur liste 13 apps : PhotoCraft, LightCraft, FilmCraft, DesignCraft, VectorCraft, PdfCraft, EffectCraft, WordCraft, DeckCraft, GridCraft, CADCraft, SoundCraft, FigCraft | `storytold/craft-launcher` |
| PhotoCraft = équivalent de Photoshop | « clean-room reimplementation of Adobe Photoshop » | README PhotoCraft |
| 68 outils ; 16 calques de réglage ; vrais fichiers PSD | « 68 tools », « 16 adjustment layers », « Real PSD files » | README PhotoCraft |
| 307 sur 309 fichiers de test gardent le même rendu | « re-saving keeps the render of 307 of the 309 psd-tools test files » (les 2 autres sont en rouge à l'écran) | README PhotoCraft, section PSD |
| 1 700 tests | « more than 1,700 tests » | README PhotoCraft |
| EffectCraft = équivalent d'After Effects ; 306 effets, images clés, expressions, 3D | « 306 effects, keyframes, expressions, 3D cameras and lights, render queue » ; la capture du lanceur affiche « Like Adobe After Effects » | README EffectCraft |
| LightCraft = équivalent de Lightroom ; RAW | « non-destructive photo library and raw developer » ; formats DNG, CR2/CR3, ARW, NEF, RAF | README LightCraft |
| Sans compte, sans cloud, sans abonnement, sans pistage | « No account, no cloud, no telemetry, no subscription » | README LightCraft (« Local-first ») |
| 73 000 étoiles (PhotoCraft) | 73 179 étoiles le 26/10/2026 (arrondi vers le bas, « 73 000+ ») | API GitHub |
| Plusieurs mises à jour par semaine | PhotoCraft v0.14.0 (23/10), v0.15.1 (23/10), v0.16.0 (25/10) | `gh release list -R storytold/photocraft` |
| Encore en alpha | Badge « early alpha » (PhotoCraft) ; « alpha » (LightCraft) ; « young and moving fast » (EffectCraft) | README |
| Windows, Mac, Linux, navigateur | « macOS · Windows · Linux · FreeBSD · Web » | README PhotoCraft |
| getartcraft.com | Site officiel lié depuis les README ; répond HTTP 200 le 26/10/2026 | README |
À ne pas dire : « remplace Adobe » (le projet dit lui-même qu'il est jeune), le prix d'Adobe (non vérifié), un nombre d'applis autre que 13 (les articles de presse varient entre 7, 12 et 13).
## Texte dit (voix) et texte affiché
Voir `public/voix-artcraft/phrases-affichees.json` (affiché) et `phrases-tts.json` (écriture phonétique envoyée au synthétiseur).
## Musique et sons
- Musique : « Pure Raceway » (MintoDog, CC0, bpm160), voir `public/musique/LICENCES.md`. Tempo mesuré à 160,0 bpm, tous les effets visuels sont calés dessus.
- Bruitages : synthétisés par `outils-voix/sfx_artcraft.py` (numpy), aucun échantillon tiers.
## Visuels et licences
- Captures : dépôts officiels `storytold` (Apache-2.0), dossier `public/artcraft/` : `photocraft.jpg` (Hokusai, domaine public), `effectcraft.png`, `effectcraft3d.png`, `lightcraft.jpg` (Ansel Adams, domaine public), `launcher.png`. Crédit à citer en description : « Captures : dépôts officiels ArtCraft (storytold, Apache-2.0) ».
- Accents : bleu (PhotoCraft), rose (EffectCraft), ambre (LightCraft) = couleurs de leurs icônes ; les autres couleurs sont libres, sans lien avec les marques.
## Refaire la voix avec la voix clonée de Théo
Mêmes textes : `public/voix-artcraft/phrases-tts.json` → synthèse sur cornafserver → `python -X utf8 -I outils-voix/preparer_artcraft.py out/voix-artcraft-brut` → nouveau rendu.
+87
Voir le fichier
@@ -0,0 +1,87 @@
"""Prépare les prises de voix de la vidéo ArtCraft pour Remotion (écrit par Claude, 20/10/2026).
1. Coupe les silences de début et de fin de chaque pNN.wav (seuil d'énergie), normalise le volume (loudnorm).
2. Cale les mots du SCRIPT (texte affiché) sur l'horodatage Whisper de la prise (mots.json) :
1 pour 1 si le nombre de mots est le même, sinon au prorata des lettres (Whisper découpe « n 'est »…).
3. Écrit public/voix-artcraft/pNN.wav, mots-cales.json et src/voixArtcraft.ts.
Usage : python -I outils-voix/preparer.py out/voix-artcraft-brut
"""
import json, re, subprocess, sys, unicodedata, wave
from pathlib import Path
import numpy as np
RACINE = Path(__file__).resolve().parent.parent
FFMPEG = RACINE / "node_modules/@remotion/compositor-win32-x64-msvc/ffmpeg.exe"
BRUT = Path(sys.argv[1])
SORTIE = RACINE / "public/voix-artcraft"
TEXTES = json.loads((SORTIE / "phrases-affichees.json").read_text(encoding="utf-8"))
MOTS = json.loads((BRUT / "mots.json").read_text(encoding="utf-8"))
AVANT, APRES, SEUIL = 0.06, 0.18, 0.01
def bornes(f):
with wave.open(str(f)) as w:
sr, n = w.getframerate(), w.getnframes()
a = np.frombuffer(w.readframes(n), dtype=np.int16).astype(np.float32) / 32768.0
hop = sr // 50 # 20 ms
rms = np.array([np.sqrt(np.mean(a[i:i + hop] ** 2)) for i in range(0, len(a) - hop, hop)])
actif = np.where(rms > SEUIL)[0]
t0 = max(0.0, actif[0] * hop / sr - AVANT)
t1 = min(len(a) / sr, (actif[-1] + 1) * hop / sr + APRES)
return t0, t1
def norm(m):
m = unicodedata.normalize("NFD", m.lower())
return re.sub(r"[^a-z0-9]", "", "".join(c for c in m if unicodedata.category(c) != "Mn"))
def caler(affiche, whisper, t0, dur):
w = [(x, max(0.0, s - t0), min(dur, e - t0)) for x, s, e in whisper]
if len(w) == len(affiche):
return [[m, round(s, 2), round(e, 2)] for m, (_, s, e) in zip(affiche, w)]
# prorata des lettres : position (0..1) -> temps, par morceaux sur les mots Whisper
lw = [max(1, len(norm(x))) for x, _, _ in w]
tot = sum(lw)
xs, ts, c = [], [], 0
for l, (_, s, e) in zip(lw, w):
xs += [c / tot, (c + l) / tot]
ts += [s, e]
c += l
la = [max(1, len(norm(m))) for m in affiche]
tota, c, res = sum(la), 0, []
for m, l in zip(affiche, la):
s = float(np.interp(c / tota, xs, ts))
e = float(np.interp((c + l) / tota, xs, ts))
res.append([m, round(s, 2), round(e, 2)])
c += l
return res
phrases, cales = [], {}
for i, texte in enumerate(TEXTES, 1):
pid = f"p{i:02d}"
src = BRUT / f"{pid}.wav"
t0, t1 = bornes(src)
dst = SORTIE / f"{pid}.wav"
subprocess.run([str(FFMPEG), "-loglevel", "error", "-y", "-i", str(src), "-af",
f"atrim={t0:.3f}:{t1:.3f},asetpts=PTS-STARTPTS,loudnorm=I=-16:TP=-1.5:LRA=11",
"-ar", "48000", "-ac", "1", str(dst)], check=True)
with wave.open(str(dst)) as w:
dur = w.getnframes() / w.getframerate()
# ponctuation française : « : » et « ? » restent collés au mot (espace insécable)
if MOTS[pid] and MOTS[pid][0][1] - t0 > 0.8: # Whisper rate le premier mot : il commence à l'attaque de la prise
MOTS[pid][0] = (MOTS[pid][0][0], t0, MOTS[pid][0][2])
mots = caler(texte.replace(" :", " :").replace(" ?", " ?").split(" "), MOTS[pid], t0, dur)
phrases.append({"id": pid, "dur": round(dur, 2), "mots": mots})
cales[pid] = {"coupe": [round(t0, 2), round(t1, 2)], "whisper": " ".join(x[0] for x in MOTS[pid])}
print(f"{pid} {t0:.2f}-{t1:.2f} -> {dur:.2f}s | {texte}")
(SORTIE / "mots-cales.json").write_text(json.dumps({"phrases": phrases, "controle": cales}, ensure_ascii=False, indent=1), encoding="utf-8")
ts = ("// Généré par outils-voix/preparer.py depuis public/voix-artcraft (horodatage faster-whisper, texte = script).\n"
"// Voix PROVISOIRE (dots.tts-soar, voix par défaut), en attendant la voix clonée de Théo.\n"
"export type Phrase = {id: string; dur: number; mots: [string, number, number][]};\n"
f"export const PHRASES_ART: Phrase[] = {json.dumps(phrases, ensure_ascii=False)};\n")
(RACINE / "src/voixArtcraft.ts").write_text(ts, encoding="utf-8")
print("total", round(sum(p["dur"] for p in phrases), 2), "s")
+62
Voir le fichier
@@ -0,0 +1,62 @@
"""Synthétise les bruitages de la vidéo ArtCraft (écrit par Claude, 26/10/2026).
Sons créés ici avec numpy (aucun échantillon tiers, donc aucune licence à citer).
Usage : python -I outils-voix/sfx_artcraft.py -> public/sfx/{hit,pop,whoosh,tick,riser,ding}.wav
"""
import wave
from pathlib import Path
import numpy as np
SR = 48000
SORTIE = Path(__file__).resolve().parent.parent / "public/sfx"
SORTIE.mkdir(parents=True, exist_ok=True)
rng = np.random.default_rng(26)
def ecrire(nom, x, gain=0.9):
x = x / max(1e-9, np.max(np.abs(x))) * gain
with wave.open(str(SORTIE / f"{nom}.wav"), "wb") as w:
w.setnchannels(1); w.setsampwidth(2); w.setframerate(SR)
w.writeframes((x * 32767).astype(np.int16).tobytes())
def t(d): return np.arange(int(SR * d)) / SR
# hit : impact grave (sinus qui descend) + claque de bruit
x = t(0.35)
f = 150 * np.exp(-x * 14) + 45
corps = np.sin(2 * np.pi * np.cumsum(f) / SR) * np.exp(-x * 9)
claque = rng.standard_normal(len(x)) * np.exp(-x * 60) * 0.5
ecrire("hit", corps + claque)
# pop : petit blip aigu qui monte
x = t(0.16)
f = 500 + 1400 * (x / 0.16)
ecrire("pop", np.sin(2 * np.pi * np.cumsum(f) / SR) * np.exp(-x * 22))
# whoosh : bruit filtré qui balaie
x = t(0.5)
b = rng.standard_normal(len(x))
k = (np.sin(np.pi * x / 0.5)) ** 2
fc = 300 + 5200 * (x / 0.5)
y = np.zeros_like(b); a = 0.0
for i in range(len(b)): # filtre passe-bas à fréquence variable
c = min(0.99, 2 * np.pi * fc[i] / SR)
a += c * (b[i] - a); y[i] = a
ecrire("whoosh", y * k, 0.8)
# tick : clic sec pour les compteurs
x = t(0.04)
ecrire("tick", np.sin(2 * np.pi * 1800 * x) * np.exp(-x * 120), 0.6)
# riser : montée de bruit + sinus aigu (avant la révélation)
x = t(1.0)
b = rng.standard_normal(len(x)) * (x ** 2)
f = 200 + 1800 * x ** 2
ecrire("riser", b * 0.5 + np.sin(2 * np.pi * np.cumsum(f) / SR) * x ** 2, 0.8)
# ding : cloche courte (accord majeur) pour les victoires
x = t(0.9)
y = sum(np.sin(2 * np.pi * fr * x) * np.exp(-x * d) for fr, d in ((1046, 5), (1318, 5.5), (1568, 6)))
ecrire("ding", y, 0.7)
print("ok", sorted(p.name for p in SORTIE.iterdir()))
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 746 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 658 KiB

BIN
Voir le fichier
Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 245 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 828 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 1.0 MiB

BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
Diff désactivé car ce fichier est trop long. Voir la Diff
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
BIN
Voir le fichier
Fichier binaire non affiché.
+19
Voir le fichier
@@ -0,0 +1,19 @@
[
"Photoshop. After Effects. Lightroom.",
"Tu les paies chaque mois. Et si c’était gratuit ?",
"Voici ArtCraft : une suite créative gratuite et open source.",
"Photo, vidéo, PDF, design, audio, bureautique : treize applications, un seul lanceur.",
"PhotoCraft : l’équivalent de Photoshop.",
"Soixante-huit outils, et de vrais fichiers PSD.",
"Sur 309 fichiers de test, 307 gardent le même rendu.",
"EffectCraft : l’équivalent d’After Effects.",
"306 effets, des images clés, des expressions, de la 3D.",
"LightCraft : l’équivalent de Lightroom, pour tes photos RAW.",
"Sans compte. Sans cloud. Sans abonnement. Sans pistage.",
"Et ce n’est pas un jouet : 73 000 étoiles sur GitHub, plus de 1 700 tests, plusieurs mises à jour par semaine.",
"Le code est ouvert : tout le monde peut le vérifier.",
"Il est encore en alpha, donc tout n’est pas parfait. Mais ça avance à toute vitesse.",
"Windows, Mac, Linux, et même dans ton navigateur.",
"Va sur getartcraft.com, télécharge le lanceur, et teste-le dès ce soir.",
"Partage cette vidéo à un créateur qui paie encore ses abonnements."
]
+19
Voir le fichier
@@ -0,0 +1,19 @@
[
"Fotochope. Aftère Effèkts. Laïtroum.",
"Tu les paies chaque mois. Et si c’était gratuit ?",
"Voici Art Craft : une suite créative gratuite et openne source.",
"Photo, vidéo, P D F, design, audio, bureautique : treize applications, un seul lanceur.",
"Foto Craft : l’équivalent de Fotochope.",
"Soixante-huit outils, et de vrais fichiers P S D.",
"Sur trois cent neuf fichiers de test, trois cent sept gardent le même rendu.",
"Éffecte Craft : l’équivalent d’Aftère Effèkts.",
"Trois cent six effets, des images clés, des expressions, de la trois D.",
"Laïte Craft : l’équivalent de Laïtroum, pour tes photos rô.",
"Sans compte. Sans cloude. Sans abonnement. Sans pistage.",
"Et ce n’est pas un jouet : soixante-treize mille étoiles sur Guitehub, plus de mille sept cents tests, plusieurs mises à jour par semaine.",
"Le code est ouvert : tout le monde peut le vérifier.",
"Il est encore en alpha, donc tout n’est pas parfait. Mais ça avance à toute vitesse.",
"Windows, Mac, Linux, et même dans ton navigateur.",
"Va sur guète Art Craft point comme, télécharge le lanceur, et teste-le dès ce soir.",
"Partage cette vidéo à un créateur qui paie encore ses abonnements."
]
+659
Voir le fichier
@@ -0,0 +1,659 @@
import React from 'react';
import {AbsoluteFill, Audio, Easing, Img, Sequence, interpolate, spring, staticFile, useCurrentFrame} from 'remotion';
import {loadFont} from '@remotion/google-fonts/Inter';
import {PHRASES_ART, Phrase} from './voixArtcraft';
const {fontFamily} = loadFont('normal', {weights: ['400', '600', '800'], subsets: ['latin']});
// « ArtCraft, la suite libre » (26/10/2026). Vidéo de présentation, 75 s, 1080x1920.
// Direction artistique PROPRE à cette vidéo (thème sombre voulu par Théo pour celle-ci uniquement) : fond encre,
// un accent par application (bleu PhotoCraft, rose EffectCraft, ambre LightCraft : ce sont les couleurs de leurs icônes),
// aplats, ombres décalées pleines, aucun arrondi, tout calé sur le tempo de la musique (160 bpm).
// Faits et sources : SCRIPT-artcraft-20261026.md. Voix PROVISOIRE (dots.tts-soar, voix par défaut).
export const FPS_ART = 30;
export const TOTAL_ART = 75 * FPS_ART;
const fr = (s: number) => Math.round(s * FPS_ART);
const K = {
bg: '#0b0b14', panel: '#161624', txt: '#f6f5ff', soft: '#9a98b4', ink: '#0b0b14',
bleu: '#3b82f6', rose: '#ec4899', ambre: '#f5a524', violet: '#8b5cf6', vert: '#22d3a0', rouge: '#ff4d4d', cyan: '#22d3ee',
};
const ROT = [K.bleu, K.rose, K.ambre, K.vert, K.violet, K.cyan, K.rouge, K.bleu];
const clampO = {extrapolateLeft: 'clamp', extrapolateRight: 'clamp'} as const;
const BEAT = 60 / 160; // 160 bpm (analysé sur pure-raceway.mp3 : 160,0 bpm, premier temps ≈ 0)
const rgba = (hex: string, a: number) => {
const n = parseInt(hex.slice(1), 16);
return `rgba(${(n >> 16) & 255},${(n >> 8) & 255},${n & 255},${a})`;
};
const sp = (frame: number, delay: number, damping = 13, stiffness = 210) =>
spring({frame: frame - delay, fps: FPS_ART, config: {damping, stiffness, mass: 0.6}});
const pulseAt = (globalFrame: number) => Math.exp(-(((globalFrame / FPS_ART) % BEAT) / BEAT) * 5);
const rnd = (i: number, k = 1) => {
const x = Math.sin(i * 127.1 + k * 311.7) * 43758.5453;
return x - Math.floor(x);
};
const spaced = (n: number) => String(Math.round(n)).replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
// ---------- Calage sur la voix ----------
const wi = (ph: Phrase, i: number) => fr(ph.mots[Math.min(i, ph.mots.length - 1)]?.[1] ?? 0);
const wf = (ph: Phrase, re: RegExp, fallback = 0) => {
const i = ph.mots.findIndex((m) => re.test(m[0]));
return i >= 0 ? fr(ph.mots[i][1]) : fr(fallback);
};
const N = PHRASES_ART.length;
const SUM = PHRASES_ART.reduce((a, p) => a + p.dur, 0);
const INTRO = 0.2;
const OUTRO = 2.6;
const GAP = Math.max(0.1, Math.min(0.9, (75 - INTRO - OUTRO - SUM) / (N - 1)));
const STARTS = PHRASES_ART.map((_, i) => fr(INTRO + PHRASES_ART.slice(0, i).reduce((a, p) => a + p.dur + GAP, 0)));
// ---------- Briques ----------
const Sfx: React.FC<{at: number; name: string; volume?: number}> = ({at, name, volume = 0.5}) => (
<Sequence from={Math.max(0, at)} layout="none">
<Audio src={staticFile(`sfx/${name}.wav`)} volume={volume} />
</Sequence>
);
const Flash: React.FC<{at: number; color?: string; power?: number}> = ({at, color = '#ffffff', power = 0.4}) => {
const f = useCurrentFrame();
const o = f < at ? 0 : Math.max(0, power - (f - at) * 0.055);
return <AbsoluteFill style={{background: color, opacity: o, pointerEvents: 'none'}} />;
};
const Burst: React.FC<{at: number; x: number; y: number; n?: number; colors?: string[]; dist?: number}> = ({at, x, y, n = 22, colors = ROT, dist = 340}) => {
const f = useCurrentFrame() - at;
if (f < 0 || f > 30) return null;
const e = Easing.out(Easing.cubic)(f / 30);
return (
<>
{Array.from({length: n}).map((_, i) => {
const a = i * 2.399 + rnd(i) * 0.6;
const d = dist * (0.45 + rnd(i, 2) * 0.75) * e;
const s = 10 + rnd(i, 3) * 22;
return (
<div key={i} style={{position: 'absolute', left: x + Math.cos(a) * d - s / 2, top: y + Math.sin(a) * d - s / 2, width: s, height: s, background: colors[i % colors.length], opacity: 1 - f / 30, transform: `rotate(${f * (6 + rnd(i, 4) * 14)}deg)`}} />
);
})}
</>
);
};
/** Bloc plein qui claque sur l'écran (échelle, tremblement, ombre décalée, bruitage). */
const Slam: React.FC<{children: React.ReactNode; delay: number; bg?: string; color?: string; size?: number; rot?: number; shadow?: string; sfx?: boolean; pad?: string}> = ({
children, delay, bg = K.bleu, color = K.ink, size = 120, rot = 0, shadow = K.txt, sfx = true, pad = '0.1em 0.3em',
}) => {
const f = useCurrentFrame();
const p = sp(f, delay, 12, 240);
const k = f - delay;
const shake = k >= 0 && k < 9 ? Math.sin(k * 3.1) * (9 - k) * 1.6 : 0;
if (f < delay) return null;
return (
<>
{sfx && <Sfx at={delay} name="hit" volume={0.55} />}
<div style={{width: 'fit-content', whiteSpace: 'nowrap', background: bg, color, fontSize: size, fontWeight: 800, letterSpacing: -size * 0.03, lineHeight: 1, padding: pad, boxShadow: `${size * 0.09}px ${size * 0.09}px 0 ${shadow}`, transform: `translate(${shake}px, ${shake * 0.6}px) rotate(${rot}deg) scale(${1 + (1 - p) * 1.3})`, opacity: Math.min(1, p * 3), transformOrigin: '30% 60%'}}>
{children}
</div>
</>
);
};
const Chip: React.FC<{children: React.ReactNode; delay: number; bg?: string; color?: string; size?: number; sfx?: boolean}> = ({children, delay, bg = K.violet, color = K.ink, size = 54, sfx = true}) => {
const f = useCurrentFrame();
const p = sp(f, delay, 14, 230);
if (f < delay) return null;
return (
<>
{sfx && <Sfx at={delay} name="pop" volume={0.4} />}
<div style={{width: 'fit-content', whiteSpace: 'nowrap', background: bg, color, fontSize: size, fontWeight: 800, letterSpacing: 2, padding: '10px 22px', transform: `scale(${0.3 + 0.7 * p}) translateY(${(1 - p) * 30}px)`, opacity: Math.min(1, p * 2.5), transformOrigin: 'left center'}}>
{children}
</div>
</>
);
};
const Count: React.FC<{to: number; from?: number; at: number; dur?: number; fmt?: (n: number) => string}> = ({to, from = 0, at, dur = 26, fmt = spaced}) => {
const f = useCurrentFrame();
const v = interpolate(f, [at, at + dur], [from, to], {...clampO, easing: Easing.out(Easing.cubic)});
return <>{fmt(v)}</>;
};
/** Capture officielle dans un cadre à ombre pleine, dévoilée de gauche à droite, zoom lent. */
const Shot: React.FC<{src: string; w: number; h: number; accent: string; delay: number; pos?: string; rot?: number; zoom?: number; filter?: string}> = ({src, w, h, accent, delay, pos = 'center', rot = 0, zoom = 1.12, filter}) => {
const f = useCurrentFrame();
const p = sp(f, delay, 20, 150);
const z = interpolate(f, [delay, delay + 150], [zoom, 1], {...clampO, easing: Easing.out(Easing.cubic)});
if (f < delay) return null;
return (
<div style={{position: 'relative', width: w, height: h, transform: `rotate(${rot}deg)`}}>
<Sfx at={delay} name="whoosh" volume={0.3} />
<div style={{position: 'absolute', inset: 0, transform: 'translate(20px,20px)', background: accent, clipPath: `inset(0 ${(1 - p) * 100}% 0 0)`}} />
<div style={{position: 'absolute', inset: 0, border: `4px solid ${K.txt}`, overflow: 'hidden', background: K.panel, clipPath: `inset(0 ${(1 - p) * 100}% 0 0)`}}>
<Img src={staticFile(src)} style={{width: '100%', height: '100%', objectFit: 'cover', objectPosition: pos, transform: `scale(${z})`, filter}} />
</div>
</div>
);
};
const Check: React.FC<{size: number; at: number; color: string}> = ({size, at, color}) => {
const f = useCurrentFrame();
const d = interpolate(f, [at, at + 12], [0, 1], clampO);
return (
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strokeWidth={3.2} strokeLinecap="square">
<path d="M4 12.5l5 5 11-11" pathLength={1} strokeDasharray="1 1" strokeDashoffset={1 - d} />
</svg>
);
};
// ---------- Scènes (une par phrase) ----------
type SP = {ph: Phrase};
const Abs: React.FC<{children: React.ReactNode; top?: number; left?: number; gap?: number; align?: string}> = ({children, top = 300, left = 60, gap = 40, align = 'flex-start'}) => (
<div style={{position: 'absolute', left, right: left, top, display: 'flex', flexDirection: 'column', gap, alignItems: align}}>{children}</div>
);
const S01: React.FC<SP> = ({ph}) => {
const a = wi(ph, 0), b = wf(ph, /after/i, 0.9), c = wf(ph, /lightroom/i, 1.8);
return (
<AbsoluteFill>
<Abs top={380} gap={56}>
<Slam delay={a} bg={K.bleu} size={124} rot={-2}>PHOTOSHOP</Slam>
<Slam delay={b} bg={K.rose} size={92} rot={2}>AFTER EFFECTS</Slam>
<Slam delay={c} bg={K.ambre} size={124} rot={-1.5}>LIGHTROOM</Slam>
</Abs>
<Burst at={a} x={760} y={450} colors={[K.bleu, K.txt]} />
<Burst at={b} x={780} y={760} colors={[K.rose, K.txt]} />
<Burst at={c} x={760} y={1060} colors={[K.ambre, K.txt]} />
<Flash at={a} /><Flash at={b} /><Flash at={c} />
</AbsoluteFill>
);
};
const S02: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const sw = wf(ph, /^Et$/i, 1.7);
const g = wf(ph, /gratuit/i, 2.5);
const fall = Math.max(0, f - sw);
const cards = [[wi(ph, 0), K.rouge], [wi(ph, 2), K.ambre], [wf(ph, /mois/i, 1.3), K.rose]] as [number, string][];
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 330, display: 'flex', flexDirection: 'column', gap: 36, transform: `translateY(${fall * fall * 3.4}px) rotate(${fall * 0.9}deg)`, opacity: f > sw + 14 ? 0 : 1}}>
{cards.map(([d, c], i) => (
<Slam key={i} delay={d} bg={K.panel} color={K.txt} shadow={c} size={92} rot={i % 2 ? 1.5 : -1.5}>
<span style={{color: c}}>■</span> ABONNEMENT <span style={{color: K.soft, fontSize: '0.5em'}}>/ MOIS</span>
</Slam>
))}
</div>
{f >= g && (
<div style={{position: 'absolute', left: 0, right: 0, top: 420, display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 30}}>
<Slam delay={g} bg={K.vert} size={380} sfx={false} shadow={K.txt} pad="0.02em 0.2em">0 €</Slam>
<Chip delay={g + 6} bg={K.txt} size={70}>GRATUIT</Chip>
</div>
)}
<Sfx at={sw} name="riser" volume={0.35} />
<Sfx at={g} name="ding" volume={0.5} />
<Burst at={g} x={540} y={620} n={34} colors={[K.vert, K.txt, K.cyan, K.ambre]} dist={520} />
<Flash at={g} color="#e9fff7" power={0.6} />
</AbsoluteFill>
);
};
const S03: React.FC<SP> = ({ph}) => {
const a = wf(ph, /art/i, 0.6);
const g = wf(ph, /gratuite/i, 2.2), o = wf(ph, /open/i, 3), s = wf(ph, /suite/i, 1.4);
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 50, top: 420, display: 'flex', gap: 6}}>
{'ArtCraft'.split('').map((l, i) => (
<Slam key={i} delay={a + i * 2} bg={ROT[i]} size={150} sfx={i % 2 === 0} pad="0.04em 0.12em" shadow={K.txt} rot={i % 2 ? 2 : -2}>{l}</Slam>
))}
</div>
<div style={{position: 'absolute', left: 60, top: 760, display: 'flex', flexDirection: 'column', gap: 26}}>
<Chip delay={s} bg={K.violet} color={K.txt} size={62}>SUITE CRÉATIVE</Chip>
<Chip delay={g} bg={K.vert} size={62}>GRATUITE</Chip>
<Chip delay={o} bg={K.ambre} size={62}>OPEN SOURCE</Chip>
</div>
<Burst at={a + 14} x={540} y={500} n={30} dist={560} />
<Flash at={a} />
</AbsoluteFill>
);
};
const APPS: [string, string, string][] = [
['Ph', 'PhotoCraft', K.bleu], ['Lr', 'LightCraft', K.ambre], ['Fi', 'FilmCraft', K.rouge], ['De', 'DesignCraft', K.violet], ['Ve', 'VectorCraft', K.vert],
['Pd', 'PdfCraft', '#ff7a45'], ['Fx', 'EffectCraft', K.rose], ['Wo', 'WordCraft', '#38bdf8'], ['Dk', 'DeckCraft', '#fb923c'], ['Gr', 'GridCraft', '#4ade80'],
['Cd', 'CADCraft', K.cyan], ['So', 'SoundCraft', '#a78bfa'], ['Fg', 'FigCraft', '#f472b6'],
];
const S04: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const t13 = wf(ph, /treize/i, 2.4), lan = wf(ph, /lanceur/i, 4);
const out = interpolate(f, [lan - 2, lan + 8], [0, 1], clampO);
const start = wi(ph, 0);
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 250, display: 'flex', alignItems: 'baseline', gap: 24, opacity: 1 - out}}>
<div style={{fontSize: 330, fontWeight: 800, letterSpacing: -14, lineHeight: 0.9, color: K.txt}}><Count to={13} at={t13} dur={14} fmt={(n) => String(Math.round(n))} /></div>
<div style={{fontSize: 64, fontWeight: 800, color: K.soft, letterSpacing: 2}}>APPLICATIONS</div>
</div>
<div style={{position: 'absolute', left: 60, top: 640, width: 960, display: 'flex', flexWrap: 'wrap', gap: 24, opacity: 1 - out, transform: `translateY(${out * 120}px)`}}>
{APPS.map(([ab, , c], i) => {
const d = start + i * 3;
const p = sp(f, d, 11, 260);
return (
<div key={i} style={{width: 168, height: 168, background: c, color: K.ink, fontSize: 84, fontWeight: 800, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: `10px 10px 0 ${K.txt}`, transform: `scale(${f < d ? 0 : 0.2 + 0.8 * p}) rotate(${(1 - p) * 25}deg)`, opacity: f < d ? 0 : 1}}>
{ab}
</div>
);
})}
</div>
{APPS.map((_, i) => <Sfx key={i} at={start + i * 3} name="tick" volume={0.35} />)}
<div style={{position: 'absolute', left: 60, top: 420}}>
<Shot src="artcraft/launcher.png" w={960} h={732} accent={K.violet} delay={lan} rot={-1.5} zoom={1.05} />
</div>
<Flash at={lan} color="#efe9ff" power={0.35} />
</AbsoluteFill>
);
};
const AppScene: React.FC<{ph: Phrase; accent: string; name: string; src: string; eq: string; ink?: string; pos?: string; h?: number}> = ({ph, accent, name, src, eq, ink = K.ink, pos = 'center', h = 700}) => {
const q = wf(ph, new RegExp(eq.split(' ')[0].replace(/[^a-z]/gi, '') || 'x', 'i'), 1.5);
return (
<AbsoluteFill>
<Abs top={250}><Slam delay={wi(ph, 0)} bg={accent} color={ink} size={150} rot={-2}>{name}</Slam></Abs>
<div style={{position: 'absolute', left: 60, top: 520}}><Shot src={src} w={960} h={h} accent={accent} delay={wi(ph, 1) + 4} pos={pos} rot={1.2} /></div>
<div style={{position: 'absolute', left: 60, top: 520 + h + 60}}><Chip delay={Math.max(q, wi(ph, 2))} bg={K.txt} size={62}>{'≈ ' + eq.toUpperCase()}</Chip></div>
<Burst at={wi(ph, 0)} x={700} y={330} colors={[accent, K.txt]} />
<Flash at={wi(ph, 0)} />
</AbsoluteFill>
);
};
const S05: React.FC<SP> = ({ph}) => <AppScene ph={ph} accent={K.bleu} name="PhotoCraft" src="artcraft/photocraft.jpg" eq="Photoshop" ink={K.txt} />;
const S08: React.FC<SP> = ({ph}) => <AppScene ph={ph} accent={K.rose} name="EffectCraft" src="artcraft/effectcraft.png" eq="After Effects" ink={K.txt} pos="left top" h={620} />;
const S06: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const psd = wf(ph, /psd/i, 2);
const o = interpolate(f, [0, 20], [0, 0.22], clampO);
return (
<AbsoluteFill>
<Img src={staticFile('artcraft/photocraft.jpg')} style={{position: 'absolute', inset: 0, width: '100%', height: '100%', objectFit: 'cover', opacity: o, filter: 'blur(6px)'}} />
<div style={{position: 'absolute', left: 60, top: 250, display: 'flex', alignItems: 'baseline', gap: 28}}>
<div style={{fontSize: 470, fontWeight: 800, letterSpacing: -22, lineHeight: 0.85, color: K.bleu, textShadow: `14px 14px 0 ${K.txt}`}}><Count to={68} at={wi(ph, 0)} dur={22} fmt={(n) => String(Math.round(n))} /></div>
<div style={{fontSize: 84, fontWeight: 800, letterSpacing: 2}}>OUTILS</div>
</div>
<div style={{position: 'absolute', left: 60, top: 760, display: 'flex', flexDirection: 'column', gap: 24}}>
<Chip delay={wi(ph, 0) + 14} bg={K.panel} color={K.txt} size={50}>CALQUES · MASQUES · STYLES</Chip>
<Chip delay={wi(ph, 0) + 20} bg={K.panel} color={K.txt} size={50}>16 CALQUES DE RÉGLAGE</Chip>
</div>
<div style={{position: 'absolute', left: 60, top: 1010}}>
<Slam delay={psd} bg={K.bleu} color={K.txt} size={250} rot={-3} shadow={K.txt}>.PSD</Slam>
</div>
<Burst at={psd} x={600} y={1100} colors={[K.bleu, K.txt, K.cyan]} n={30} dist={480} />
<Flash at={psd} color="#dbe8ff" power={0.5} />
</AbsoluteFill>
);
};
const S07: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const a = wi(ph, 1), b = Math.max(a + 30, wi(ph, 5));
const per = (b - a) / 309;
const k = wf(ph, /^307$/, 3.2);
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 270, width: 976, display: 'flex', flexWrap: 'wrap', gap: 8}}>
{Array.from({length: 309}).map((_, i) => {
const d = a + i * per;
const bad = i >= 307;
const on = f >= d;
return <div key={i} style={{width: 36, height: 36, background: on ? (bad ? K.rouge : K.bleu) : K.panel}} />;
})}
</div>
<div style={{position: 'absolute', left: 60, top: 960, display: 'flex', alignItems: 'baseline', gap: 20}}>
<div style={{fontSize: 300, fontWeight: 800, letterSpacing: -14, lineHeight: 0.9, color: K.txt}}><Count to={307} at={a} dur={b - a} fmt={(n) => String(Math.round(n))} /></div>
<div style={{fontSize: 110, fontWeight: 800, color: K.soft}}>/ 309</div>
</div>
<div style={{position: 'absolute', left: 60, top: 1260}}><Slam delay={b} bg={K.vert} size={110} rot={-2}>99 % IDENTIQUES</Slam></div>
<Sfx at={a} name="riser" volume={0.3} />
<Burst at={b} x={700} y={1320} colors={[K.vert, K.txt, K.bleu]} n={30} dist={440} />
<Flash at={b} color="#e9fff7" power={0.45} />
</AbsoluteFill>
);
};
const S09: React.FC<SP> = ({ph}) => {
const a = wi(ph, 0), cl = wf(ph, /cl/i, 1.4), ex = wf(ph, /expressions/i, 2.2), d3 = wf(ph, /3D|trois/i, 3.4);
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 240, display: 'flex', alignItems: 'baseline', gap: 24}}>
<div style={{fontSize: 330, fontWeight: 800, letterSpacing: -15, lineHeight: 0.85, color: K.rose, textShadow: `12px 12px 0 ${K.txt}`}}><Count to={306} at={a} dur={22} fmt={(n) => String(Math.round(n))} /></div>
<div style={{fontSize: 64, fontWeight: 800}}>EFFETS</div>
</div>
<div style={{position: 'absolute', left: 60, top: 640, display: 'flex', flexDirection: 'column', gap: 22}}>
<Chip delay={cl} bg={K.rose} color={K.txt} size={56}>IMAGES CLÉS</Chip>
<Chip delay={ex} bg={K.txt} size={56}>EXPRESSIONS</Chip>
<Chip delay={d3} bg={K.ambre} size={56}>3D</Chip>
</div>
<div style={{position: 'absolute', left: 150, top: 940}}><Shot src="artcraft/effectcraft3d.png" w={830} h={440} accent={K.rose} delay={d3 + 2} rot={2} /></div>
<Flash at={d3} color="#ffe3f2" power={0.45} />
<Burst at={d3} x={300} y={1000} colors={[K.rose, K.ambre, K.txt]} />
</AbsoluteFill>
);
};
const S10: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const raw = wf(ph, /raw|rô/i, 3);
const a = wi(ph, 1) + 4;
const sat = interpolate(f, [a + 10, a + 70], [0.15, 1.15], clampO);
const sweep = interpolate(f, [a + 10, a + 70], [-5, 105], clampO);
const fmts = ['DNG', 'CR3', 'ARW', 'NEF', 'RAF'];
return (
<AbsoluteFill>
<Abs top={250}><Slam delay={wi(ph, 0)} bg={K.ambre} size={150} rot={-2}>LightCraft</Slam></Abs>
<div style={{position: 'absolute', left: 60, top: 520}}>
<Shot src="artcraft/lightcraft.jpg" w={960} h={700} accent={K.ambre} delay={a} rot={1.2} filter={`saturate(${sat}) contrast(${1 + (1.15 - sat) * 0.15})`} />
<div style={{position: 'absolute', top: 0, bottom: 0, left: `${sweep}%`, width: 8, background: K.ambre, boxShadow: `0 0 40px 6px ${K.ambre}`, opacity: f > a + 8 && f < a + 74 ? 1 : 0}} />
</div>
<div style={{position: 'absolute', left: 60, top: 1290, display: 'flex', gap: 16}}>
{fmts.map((x, i) => <Chip key={x} delay={raw + i * 3} bg={i % 2 ? K.ambre : K.txt} size={46}>{x}</Chip>)}
</div>
<Flash at={raw} color="#fff0d1" power={0.4} />
</AbsoluteFill>
);
};
const S11: React.FC<SP> = ({ph}) => {
const rows: [number, string, string, string][] = [
[wi(ph, 0), 'SANS COMPTE', K.violet, K.txt], [wi(ph, 2), 'SANS CLOUD', K.cyan, K.ink],
[wi(ph, 4), 'SANS ABONNEMENT', K.rose, K.txt], [wi(ph, 6), 'SANS PISTAGE', K.vert, K.ink],
];
return (
<AbsoluteFill>
<Abs top={300} gap={54}>
{rows.map(([d, t, c, ink], i) => <Slam key={i} delay={d} bg={c} color={ink} size={i === 2 ? 84 : 108} rot={i % 2 ? 2 : -2}>{t}</Slam>)}
</Abs>
{rows.map(([d, , c], i) => <Burst key={i} at={d} x={800} y={380 + i * 190} colors={[c, K.txt]} n={16} dist={260} />)}
{rows.map(([d, , c], i) => <Flash key={i} at={d} color={c} power={0.18} />)}
</AbsoluteFill>
);
};
const S12: React.FC<SP> = ({ph}) => {
const st = wf(ph, /étoiles/i, 2.6), te = wf(ph, /tests/i, 4.6), mi = wf(ph, /mises/i, 5.6), jo = wf(ph, /jouet/i, 1);
const s0 = Math.max(wi(ph, 7) - 4, jo + 6), t0 = Math.max(wi(ph, 12) - 4, st + 10);
const rel: [string, string][] = [['v0.14', '23 OCT'], ['v0.15.1', '23 OCT'], ['v0.16.0', '25 OCT']];
const f = useCurrentFrame();
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 230}}><Slam delay={jo - 8 > 0 ? jo - 8 : 0} bg={K.rose} color={K.txt} size={104} rot={-2}>PAS UN JOUET</Slam></div>
{f >= s0 && (
<div style={{position: 'absolute', left: 60, top: 420, display: 'flex', alignItems: 'baseline', gap: 20}}>
<div style={{fontSize: 230, fontWeight: 800, letterSpacing: -11, lineHeight: 0.9, color: K.ambre, textShadow: `10px 10px 0 ${K.txt}`}}><Count to={73000} at={s0} dur={Math.max(20, st - s0 + 8)} />+</div>
<div style={{fontSize: 110, color: K.ambre}}>★</div>
</div>
)}
<div style={{position: 'absolute', left: 60, top: 660}}><Chip delay={st} bg={K.txt} size={52}>ÉTOILES SUR GITHUB</Chip></div>
{f >= t0 && (
<div style={{position: 'absolute', left: 60, top: 780, display: 'flex', alignItems: 'baseline', gap: 20}}>
<div style={{fontSize: 230, fontWeight: 800, letterSpacing: -11, lineHeight: 0.9, color: K.vert, textShadow: `10px 10px 0 ${K.txt}`}}><Count to={1700} at={t0} dur={Math.max(20, te - t0 + 6)} />+</div>
</div>
)}
<div style={{position: 'absolute', left: 60, top: 1020}}><Chip delay={te} bg={K.vert} size={52}>TESTS AUTOMATIQUES</Chip></div>
<div style={{position: 'absolute', left: 60, top: 1140, display: 'flex', flexDirection: 'column', gap: 16}}>
{f >= mi && <div style={{fontSize: 36, fontWeight: 800, color: K.soft, letterSpacing: 3}}>PHOTOCRAFT · DERNIÈRES VERSIONS</div>}
<div style={{display: 'flex', gap: 18}}>
{rel.map(([v, d], i) => (
<Chip key={v} delay={mi + i * 6} bg={K.panel} color={K.txt} size={38}>{v}<span style={{color: K.ambre, marginLeft: 12}}>{d}</span></Chip>
))}
</div>
</div>
<Burst at={st} x={900} y={500} colors={[K.ambre, K.txt]} n={26} dist={420} />
<Burst at={te} x={800} y={900} colors={[K.vert, K.txt]} n={26} dist={420} />
<Flash at={st} color="#fff0d1" power={0.3} /><Flash at={te} color="#e9fff7" power={0.3} />
</AbsoluteFill>
);
};
const S13: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const v = wf(ph, /vérifier/i, 3.3);
const rows = 15;
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 260, width: 960, height: 760, background: K.panel, border: `4px solid ${K.violet}`, boxShadow: `18px 18px 0 ${K.violet}`, padding: 36, display: 'flex', flexDirection: 'column', gap: 18, overflow: 'hidden'}}>
{Array.from({length: rows}).map((_, i) => {
const d = wi(ph, 0) + i * 3;
const ind = (i % 5 === 1 || i % 5 === 2 ? 1 : i % 5 === 3 ? 2 : 0) * 50;
const segs = 2 + Math.floor(rnd(i, 7) * 3);
const w = interpolate(f, [d, d + 6], [0, 1], clampO);
return (
<div key={i} style={{display: 'flex', gap: 14, marginLeft: ind, height: 28, opacity: f < d ? 0 : 1}}>
{Array.from({length: segs}).map((__, j) => (
<div key={j} style={{width: (60 + rnd(i * 5 + j, 9) * 230) * w, background: ROT[(i + j * 2) % ROT.length], opacity: 0.9}} />
))}
</div>
);
})}
</div>
<div style={{position: 'absolute', left: 60, top: 1090, display: 'flex', gap: 18, alignItems: 'center'}}>
<Chip delay={wi(ph, 0) + 4} bg={K.violet} color={K.txt} size={60}>OPEN SOURCE</Chip>
<Chip delay={wi(ph, 0) + 10} bg={K.panel} color={K.soft} size={40}>github.com/storytold</Chip>
</div>
{f >= v && (
<div style={{position: 'absolute', right: 80, top: 880, background: K.vert, width: 220, height: 220, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: `12px 12px 0 ${K.txt}`, transform: `scale(${0.4 + 0.6 * sp(f, v, 10, 260)})`}}>
<Check size={160} at={v} color={K.ink} />
</div>
)}
<Sfx at={v} name="ding" volume={0.5} />
<Flash at={v} color="#e9fff7" power={0.4} />
<Burst at={v} x={900} y={990} colors={[K.vert, K.txt]} n={24} dist={380} />
</AbsoluteFill>
);
};
const S14: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const al = wf(ph, /alpha/i, 1.1), mais = wf(ph, /^Mais$/i, 3.4);
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 320}}><Slam delay={al} bg={K.ambre} size={250} rot={-4} shadow={K.txt}>ALPHA</Slam></div>
<div style={{position: 'absolute', left: 60, top: 640}}><Chip delay={al + 8} bg={K.panel} color={K.soft} size={46}>TOUT N’EST PAS PARFAIT</Chip></div>
{f >= mais && Array.from({length: 14}).map((_, i) => {
const sp2 = 40 + rnd(i, 5) * 60;
const x = ((f - mais) * sp2 + rnd(i, 6) * 1200) % 1500 - 200;
return <div key={i} style={{position: 'absolute', top: 760 + i * 46, left: x, width: 140 + rnd(i, 8) * 320, height: 10 + rnd(i, 9) * 14, background: ROT[i % ROT.length], opacity: 0.85}} />;
})}
{f >= mais && (
<div style={{position: 'absolute', left: 60, top: 1000, display: 'flex', alignItems: 'baseline', gap: 18}}>
<div style={{fontSize: 210, fontWeight: 800, letterSpacing: -8, color: K.txt, textShadow: `8px 8px 0 ${K.vert}`}}>v0.<Count to={16} at={mais} dur={20} fmt={(n) => String(Math.round(n)).padStart(2, '0')} /></div>
<div style={{fontSize: 44, fontWeight: 800, color: K.soft}}>PHOTOCRAFT</div>
</div>
)}
<Sfx at={mais} name="whoosh" volume={0.5} />
<Flash at={al} color="#fff0d1" power={0.4} />
<Burst at={al} x={640} y={450} colors={[K.ambre, K.txt]} />
</AbsoluteFill>
);
};
const S15: React.FC<SP> = ({ph}) => {
const rows: [number, string, string][] = [
[wi(ph, 0), 'WINDOWS', K.bleu], [wi(ph, 1), 'MAC', K.rose], [wi(ph, 2), 'LINUX', K.ambre], [wf(ph, /navigateur/i, 2.6), 'NAVIGATEUR', K.vert],
];
return (
<AbsoluteFill>
<Abs top={320} gap={46}>
{rows.map(([d, t, c], i) => <Slam key={i} delay={d} bg={c} color={i === 0 ? K.txt : K.ink} size={i === 3 ? 124 : 150} rot={i % 2 ? 2 : -2}>{t}</Slam>)}
</Abs>
{rows.map(([d, , c], i) => <Flash key={i} at={d} color={c} power={0.2} />)}
{rows.map(([d, , c], i) => <Burst key={i} at={d} x={820} y={400 + i * 200} colors={[c, K.txt]} n={14} dist={240} />)}
</AbsoluteFill>
);
};
const S16: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const u = wf(ph, /getartcraft/i, 0.7), l = u + 14, t = wf(ph, /teste/i, 3.2);
const pul = pulseAt(f + 0);
return (
<AbsoluteFill>
<Abs top={250}><Slam delay={u} bg={K.vert} size={96} rot={-1.5} shadow={K.txt}>getartcraft.com</Slam></Abs>
<div style={{position: 'absolute', left: 60, top: 430}}><Shot src="artcraft/launcher.png" w={960} h={732} accent={K.vert} delay={l} rot={1.2} zoom={1.06} /></div>
{f >= t && (
<div style={{position: 'absolute', left: 60, top: 1230, transform: `scale(${1 + pul * 0.06})`, transformOrigin: 'left center'}}>
<Slam delay={t} bg={K.txt} size={66} shadow={K.vert} rot={0}>TÉLÉCHARGER LE LANCEUR ↓</Slam>
</div>
)}
<Flash at={u} color="#e9fff7" power={0.4} />
<Burst at={u} x={900} y={310} colors={[K.vert, K.txt, K.cyan]} n={24} dist={380} />
<Flash at={t} color="#e9fff7" power={0.3} />
</AbsoluteFill>
);
};
const S17: React.FC<SP> = ({ph}) => {
const f = useCurrentFrame();
const a = wi(ph, 0);
const pul = pulseAt(f + 0);
const bursts = [a, a + 12, a + 24, a + 40, a + 56, a + 74, a + 92];
return (
<AbsoluteFill>
<div style={{position: 'absolute', left: 60, top: 330}}><Slam delay={a} bg={K.rose} color={K.txt} size={176} rot={-3} shadow={K.txt}>PARTAGE</Slam></div>
<div style={{position: 'absolute', left: 60, top: 640, transform: `translateY(${-pul * 18}px)`}}>
<svg width={260} height={260} viewBox="0 0 24 24" fill="none" stroke={K.txt} strokeWidth={2.4} strokeLinecap="square" strokeLinejoin="miter">
<path d="M12 15V3M7 8l5-5 5 5M5 14v6h14v-6" />
</svg>
</div>
<div style={{position: 'absolute', left: 60, top: 1010, display: 'flex', gap: 4}}>
{'ArtCraft'.split('').map((c, i) => (
<Slam key={i} delay={a + 18 + i * 2} bg={ROT[i]} size={118} sfx={false} pad="0.04em 0.12em" rot={i % 2 ? 2 : -2}>{c}</Slam>
))}
</div>
{bursts.map((b, i) => <Burst key={i} at={b} x={140 + rnd(i, 3) * 800} y={400 + rnd(i, 4) * 700} n={18} dist={300} />)}
<Flash at={a} color="#ffe3f2" power={0.45} />
</AbsoluteFill>
);
};
const SCENES: {C: React.FC<SP>; accent: string}[] = [
{C: S01, accent: K.bleu}, {C: S02, accent: K.vert}, {C: S03, accent: K.violet}, {C: S04, accent: K.violet}, {C: S05, accent: K.bleu},
{C: S06, accent: K.bleu}, {C: S07, accent: K.bleu}, {C: S08, accent: K.rose}, {C: S09, accent: K.rose}, {C: S10, accent: K.ambre},
{C: S11, accent: K.vert}, {C: S12, accent: K.ambre}, {C: S13, accent: K.violet}, {C: S14, accent: K.ambre}, {C: S15, accent: K.cyan},
{C: S16, accent: K.vert}, {C: S17, accent: K.rose},
];
// ---------- Calques globaux ----------
const sceneIndexAt = (frame: number) => {
let k = 0;
for (let i = 0; i < N; i++) if (frame >= STARTS[i]) k = i;
return k;
};
const Backdrop: React.FC = () => {
const f = useCurrentFrame();
const accent = SCENES[sceneIndexAt(f)].accent;
const pulse = pulseAt(f);
return (
<AbsoluteFill style={{background: K.bg}}>
<AbsoluteFill style={{background: `radial-gradient(circle at 70% 35%, ${rgba(accent, 0.26 + 0.12 * pulse)} 0%, transparent 62%)`}} />
<AbsoluteFill style={{
backgroundImage: `linear-gradient(${rgba(accent, 0.12)} 2px, transparent 2px), linear-gradient(90deg, ${rgba(accent, 0.12)} 2px, transparent 2px)`,
backgroundSize: '90px 90px', backgroundPosition: `${f * 1.2}px ${f * 1.6}px`,
}} />
{Array.from({length: 16}).map((_, i) => {
const y = 1920 - ((f * (0.6 + rnd(i) * 1.4) * 2 + rnd(i, 2) * 2400) % 2100) + 100;
return <div key={i} style={{position: 'absolute', left: rnd(i, 3) * 1000, top: y, width: 14 + rnd(i, 4) * 20, height: 14 + rnd(i, 4) * 20, background: rgba(ROT[i % ROT.length], 0.28), transform: `rotate(${f * (1 + rnd(i, 5) * 3)}deg)`}} />;
})}
</AbsoluteFill>
);
};
const Wipes: React.FC = () => {
const f = useCurrentFrame();
return (
<>
{STARTS.map((s, i) => {
const k = f - s;
if (k < 0 || k > 16) return null;
const acc = SCENES[i].accent;
const cols = [acc, K.txt, SCENES[Math.max(0, i - 1)].accent, acc];
return (
<AbsoluteFill key={i} style={{pointerEvents: 'none'}}>
{cols.map((c, j) => {
const x = interpolate(k, [j * 2, j * 2 + 10], [0, 1180], {...clampO, easing: Easing.in(Easing.cubic)});
return <div key={j} style={{position: 'absolute', left: 0, width: 1080, top: j * 480, height: 480, background: c, transform: `translateX(${x}px)`}} />;
})}
</AbsoluteFill>
);
})}
</>
);
};
const TopBar: React.FC = () => {
const f = useCurrentFrame();
const accent = SCENES[sceneIndexAt(f)].accent;
return (
<>
<div style={{position: 'absolute', left: 0, top: 0, height: 12, width: `${(f / TOTAL_ART) * 100}%`, background: accent, boxShadow: `0 0 24px ${accent}`}} />
<div style={{position: 'absolute', left: 60, top: 96, fontSize: 36, fontWeight: 800, letterSpacing: 8, color: K.soft}}>ARTCRAFT <span style={{color: accent}}>■</span> SUITE LIBRE</div>
</>
);
};
const Subtitles: React.FC = () => {
const f = useCurrentFrame();
const i = sceneIndexAt(f);
const ph = PHRASES_ART[i];
const local = (f - STARTS[i]) / FPS_ART;
if (local < -0.05 || local > ph.dur + GAP) return null;
const accent = SCENES[i].accent;
// les signes de ponctuation isolés (« : », « ? ») se collent au mot précédent
const mots: [string, number, number][] = [];
ph.mots.forEach((m) => {
if (/^[:?!;]$/.test(m[0]) && mots.length) mots[mots.length - 1][0] += ' ' + m[0];
else mots.push([m[0], m[1], m[2]]);
});
return (
<div style={{position: 'absolute', left: 60, top: 1470, width: 960, display: 'flex', flexWrap: 'wrap', columnGap: 20, rowGap: 6, fontSize: 60, fontWeight: 800, lineHeight: 1.12, letterSpacing: -1.5}}>
{mots.map(([w, s, e], j) => {
const cur = local >= s && local < e + 0.04;
const past = local >= e + 0.04;
return (
<span key={j} style={{color: cur ? accent : K.txt, opacity: past || cur ? 1 : 0.32, transform: cur ? 'translateY(-4px)' : 'none', textShadow: `0 4px 0 ${K.bg}, 0 0 18px ${K.bg}`, display: 'inline-block'}}>{w}</span>
);
})}
</div>
);
};
export const ArtCraft: React.FC = () => {
const f = useCurrentFrame();
const punch = 1 + 0.014 * pulseAt(f);
return (
<AbsoluteFill style={{fontFamily, background: K.bg, color: K.txt}}>
<Audio src={staticFile('musique/pure-raceway.mp3')} volume={(g) => 0.2 * interpolate(g, [0, 8, TOTAL_ART - 45, TOTAL_ART - 2], [0.6, 1, 1, 0], clampO)} />
<Backdrop />
<AbsoluteFill style={{transform: `scale(${punch})`}}>
{SCENES.slice(0, N).map(({C: Sc}, i) => {
const end = i + 1 < N ? STARTS[i + 1] : TOTAL_ART;
return (
<Sequence key={i} from={STARTS[i]} durationInFrames={end - STARTS[i]}>
<Sc ph={PHRASES_ART[i]} />
<Sfx at={0} name="whoosh" volume={0.3} />
</Sequence>
);
})}
</AbsoluteFill>
{PHRASES_ART.map((p, i) => (
<Sequence key={p.id} from={STARTS[i]} layout="none">
<Audio src={staticFile(`voix-artcraft/${p.id}.wav`)} volume={1} />
</Sequence>
))}
<Subtitles />
<TopBar />
<Wipes />
</AbsoluteFill>
);
};
+2
Voir le fichier
@@ -9,6 +9,7 @@ import {NouveauteMindMusique} from './NouveauteMindMusique';
import {ActuMeet1018, TOTAL_AM, FPS_AM} from './ActuMeet1018';
import {ExempleVoix2, TOTAL_EV2, FPS_EV2} from './ExempleVoix2';
import {EcosystemeComplet, EcosystemeCourt, TOTAL_ECO_COMPLET, TOTAL_ECO_COURT, FPS_ECO} from './Ecosysteme';
import {ArtCraft, FPS_ART, TOTAL_ART} from './ArtCraft';
export const Root: React.FC = () => (
<>
@@ -23,6 +24,7 @@ export const Root: React.FC = () => (
<Composition id="ActuMeet1018" component={ActuMeet1018} durationInFrames={TOTAL_AM} fps={FPS_AM} width={1080} height={1920} />
<Composition id="EcosystemeComplet" component={EcosystemeComplet} durationInFrames={TOTAL_ECO_COMPLET} fps={FPS_ECO} width={1080} height={1920} />
<Composition id="EcosystemeCourt" component={EcosystemeCourt} durationInFrames={TOTAL_ECO_COURT} fps={FPS_ECO} width={1080} height={1920} />
<Composition id="ArtCraft" component={ArtCraft} durationInFrames={TOTAL_ART} fps={FPS_ART} width={1080} height={1920} />
</>
);
+4
Voir le fichier
@@ -0,0 +1,4 @@
// Généré par outils-voix/preparer.py depuis public/voix-artcraft (horodatage faster-whisper, texte = script).
// Voix PROVISOIRE (dots.tts-soar, voix par défaut), en attendant la voix clonée de Théo.
export type Phrase = {id: string; dur: number; mots: [string, number, number][]};
export const PHRASES_ART: Phrase[] = [{"id": "p01", "dur": 3.06, "mots": [["Photoshop.", 0.0, 0.46], ["After", 0.9, 1.42], ["Effects.", 1.42, 1.8], ["Lightroom.", 2.16, 2.82]]}, {"id": "p02", "dur": 2.92, "mots": [["Tu", 0.0, 0.2], ["les", 0.2, 0.32], ["paies", 0.32, 0.62], ["chaque", 0.62, 0.78], ["mois.", 0.78, 1.4], ["Et", 1.4, 1.72], ["si", 1.72, 1.84], ["c’était", 1.84, 2.1], ["gratuit ?", 2.1, 2.46]]}, {"id": "p03", "dur": 3.88, "mots": [["Voici", 0.0, 0.34], ["ArtCraft :", 0.34, 0.94], ["une", 1.22, 1.5], ["suite", 1.5, 1.74], ["créative", 1.74, 2.28], ["gratuite", 2.28, 2.74], ["et", 2.74, 2.86], ["open", 2.86, 3.18], ["source.", 3.18, 3.54]]}, {"id": "p04", "dur": 4.42, "mots": [["Photo,", 0.0, 0.22], ["vidéo,", 0.4, 0.62], ["PDF,", 0.8, 0.98], ["design,", 1.34, 1.52], ["audio,", 1.68, 1.8], ["bureautique :", 1.92, 2.34], ["treize", 2.56, 2.72], ["applications,", 2.72, 3.18], ["un", 3.44, 3.62], ["seul", 3.62, 3.76], ["lanceur.", 3.76, 4.22]]}, {"id": "p05", "dur": 2.48, "mots": [["PhotoCraft :", 0.0, 1.02], ["l’équivalent", 1.02, 1.58], ["de", 1.58, 1.74], ["Photoshop.", 1.74, 2.06]]}, {"id": "p06", "dur": 2.44, "mots": [["Soixante-huit", 0.0, 0.42], ["outils,", 0.42, 0.82], ["et", 0.82, 1.04], ["de", 1.04, 1.16], ["vrais", 1.16, 1.34], ["fichiers", 1.34, 1.68], ["PSD.", 1.68, 2.22]]}, {"id": "p07", "dur": 4.1, "mots": [["Sur", 0.0, 0.3], ["309", 0.3, 0.96], ["fichiers", 0.96, 1.32], ["de", 1.32, 1.44], ["test,", 1.44, 1.84], ["307", 2.1, 2.92], ["gardent", 2.92, 3.26], ["le", 3.26, 3.36], ["même", 3.36, 3.54], ["rendu.", 3.54, 3.92]]}, {"id": "p08", "dur": 3.12, "mots": [["EffectCraft :", 0.0, 1.28], ["l’équivalent", 1.28, 2.04], ["d’After", 2.04, 2.32], ["Effects.", 2.32, 2.72]]}, {"id": "p09", "dur": 4.14, "mots": [["306", 0.0, 0.72], ["effets,", 0.72, 1.12], ["des", 1.12, 1.48], ["images", 1.48, 1.84], ["clés,", 1.84, 2.18], ["des", 2.18, 2.44], ["expressions,", 2.44, 2.94], ["de", 2.94, 3.4], ["la", 3.4, 3.52], ["3D.", 3.52, 3.9]]}, {"id": "p10", "dur": 4.02, "mots": [["LightCraft :", 0.28, 1.24], ["l’équivalent", 1.24, 2.1], ["de", 2.1, 2.2], ["Lightroom,", 2.2, 2.74], ["pour", 2.74, 3.06], ["tes", 3.06, 3.26], ["photos", 3.26, 3.54], ["RAW.", 3.54, 3.8]]}, {"id": "p11", "dur": 5.4, "mots": [["Sans", 0.0, 0.24], ["compte.", 0.24, 0.74], ["Sans", 1.2, 1.68], ["cloud.", 1.68, 2.24], ["Sans", 2.62, 3.0], ["abonnement.", 3.0, 3.6], ["Sans", 4.16, 4.44], ["pistage.", 4.44, 5.14]]}, {"id": "p12", "dur": 8.48, "mots": [["Et", 0.0, 0.14], ["ce", 0.14, 0.28], ["n’est", 0.28, 0.42], ["pas", 0.42, 0.57], ["un", 0.57, 0.77], ["jouet :", 0.77, 1.14], ["73", 1.14, 1.99], ["000", 1.99, 2.59], ["étoiles", 2.59, 3.04], ["sur", 3.04, 3.26], ["GitHub,", 3.26, 3.59], ["plus", 3.59, 4.66], ["de", 4.66, 4.87], ["1", 4.87, 5.01], ["700", 5.01, 5.43], ["tests,", 5.43, 5.89], ["plusieurs", 5.89, 6.96], ["mises", 6.96, 7.4], ["à", 7.4, 7.45], ["jour", 7.45, 7.63], ["par", 7.63, 7.83], ["semaine.", 7.83, 8.26]]}, {"id": "p13", "dur": 2.2, "mots": [["Le", 0.0, 0.14], ["code", 0.14, 0.36], ["est", 0.36, 0.48], ["ouvert :", 0.48, 0.8], ["tout", 0.98, 1.04], ["le", 1.04, 1.16], ["monde", 1.16, 1.3], ["peut", 1.3, 1.46], ["le", 1.46, 1.56], ["vérifier.", 1.56, 1.94]]}, {"id": "p14", "dur": 4.34, "mots": [["Il", 0.0, 0.2], ["est", 0.2, 0.2], ["encore", 0.2, 0.5], ["en", 0.5, 0.64], ["alpha,", 0.64, 1.12], ["donc", 1.12, 1.2], ["tout", 1.2, 1.34], ["n’est", 1.34, 1.48], ["pas", 1.48, 1.6], ["parfait.", 1.6, 2.26], ["Mais", 2.26, 2.72], ["ça", 2.72, 2.9], ["avance", 2.9, 3.2], ["à", 3.2, 3.4], ["toute", 3.4, 3.6], ["vitesse.", 3.6, 3.96]]}, {"id": "p15", "dur": 4.2, "mots": [["Windows,", 0.0, 0.36], ["Mac,", 0.82, 1.3], ["Linux,", 1.58, 2.02], ["et", 2.2, 2.52], ["même", 2.52, 2.74], ["dans", 2.74, 3.0], ["ton", 3.0, 3.14], ["navigateur.", 3.14, 3.98]]}, {"id": "p16", "dur": 4.98, "mots": [["Va", 0.0, 0.14], ["sur", 0.14, 0.42], ["getartcraft.com,", 0.42, 2.42], ["télécharge", 2.42, 2.96], ["le", 2.96, 3.12], ["lanceur,", 3.12, 3.56], ["et", 3.56, 3.8], ["teste-le", 3.8, 4.18], ["dès", 4.18, 4.32], ["ce", 4.32, 4.5], ["soir.", 4.5, 4.78]]}, {"id": "p17", "dur": 3.4, "mots": [["Partage", 0.0, 0.48], ["cette", 0.48, 0.74], ["vidéo", 0.74, 1.08], ["à", 1.08, 1.26], ["un", 1.26, 1.4], ["créateur", 1.4, 1.8], ["qui", 1.8, 2.02], ["paie", 2.02, 2.22], ["encore", 2.22, 2.52], ["ses", 2.52, 2.72], ["abonnements.", 2.72, 3.16]]}];