Video actu vie privee (ActuViePrivee) : exemple source, 36 s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
c0bc73a7c9
révision
8d433713f9
2 fichiers modifiés
+208
Aucun fichier ne correspond à votre recherche
@@ -0,0 +1,206 @@
|
||||
import React from 'react';
|
||||
import {AbsoluteFill, Easing, Sequence, interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
|
||||
import {loadFont} from '@remotion/google-fonts/Inter';
|
||||
import {ICONES} from './icones';
|
||||
|
||||
const {fontFamily} = loadFont('normal', {weights: ['400', '600', '700', '800'], subsets: ['latin']});
|
||||
|
||||
export const FPS_AVP = 30;
|
||||
const s = (sec: number) => Math.round(sec * FPS_AVP);
|
||||
|
||||
// Charte relevée (voir DIRECTION-ARTISTIQUE.md) : fond clair réchauffé, encre #111, filets, aucun arrondi.
|
||||
const C = {
|
||||
bg: '#fffdf8', ink: '#111111', soft: '#6b6b6b', line: '#d9d9d9',
|
||||
bleu: '#1e4d8b', vert: '#1a8a3c', orange: '#e8590c', jaune: '#f5b301',
|
||||
};
|
||||
|
||||
const Icon: React.FC<{name: string; size: number; color?: string; draw?: number; stroke?: number}> = ({name, size, color = C.ink, draw = 1, stroke = 2}) => (
|
||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strokeWidth={stroke} strokeLinecap="square" strokeLinejoin="miter">
|
||||
<path d={ICONES[name]} pathLength={1} strokeDasharray={draw >= 1 ? undefined : '1 1'} strokeDashoffset={draw >= 1 ? undefined : 1 - draw} />
|
||||
</svg>
|
||||
);
|
||||
|
||||
const useSpring = (delay: number, damping = 18) => {
|
||||
const frame = useCurrentFrame();
|
||||
const {fps} = useVideoConfig();
|
||||
return spring({frame: frame - delay, fps, config: {damping, stiffness: 170, mass: 0.7}});
|
||||
};
|
||||
|
||||
/** Mots qui montent un par un derrière un masque. `hl` = indices de mots en couleur d'accent. */
|
||||
const Words: React.FC<{text: string; size: number; delay?: number; accent?: string; hl?: number[]; weight?: number; color?: string}> = ({
|
||||
text, size, delay = 0, accent = C.bleu, hl = [], weight = 800, color = C.ink,
|
||||
}) => {
|
||||
const frame = useCurrentFrame();
|
||||
const {fps} = useVideoConfig();
|
||||
return (
|
||||
<div style={{fontSize: size, fontWeight: weight, lineHeight: 1.08, letterSpacing: -size * 0.02, color, display: 'flex', flexWrap: 'wrap', columnGap: size * 0.26}}>
|
||||
{text.split(' ').map((w, i) => {
|
||||
const p = spring({frame: frame - delay - i * 3, fps, config: {damping: 16, stiffness: 190, mass: 0.6}});
|
||||
return (
|
||||
<span key={i} style={{display: 'inline-block', overflow: 'hidden', paddingBottom: size * 0.08, marginBottom: -size * 0.08}}>
|
||||
<span style={{display: 'inline-block', transform: `translateY(${(1 - p) * 110}%)`, color: hl.includes(i) ? accent : color}}>{w}</span>
|
||||
</span>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
/** Bloc d'icône : carré à filet épais, trait qui se dessine. */
|
||||
const IconBlock: React.FC<{name: string; accent: string; size?: number; delay?: number; fill?: boolean}> = ({name, accent, size = 280, delay = 2, fill = true}) => {
|
||||
const frame = useCurrentFrame();
|
||||
const p = useSpring(delay);
|
||||
const draw = interpolate(frame, [delay + 2, delay + 20], [0, 1], {extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic)});
|
||||
return (
|
||||
<div style={{width: size, height: size, border: `3px solid ${C.ink}`, background: fill ? accent : C.bg, display: 'flex', alignItems: 'center', justifyContent: 'center', transform: `scale(${0.6 + 0.4 * p}) rotate(${(1 - p) * -6}deg)`, opacity: Math.min(1, p * 2)}}>
|
||||
<Icon name={name} size={size * 0.62} color={fill ? '#fff' : accent} draw={draw} stroke={1.8} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
/** Filet qui se trace de gauche à droite. */
|
||||
const Rule: React.FC<{delay?: number; color?: string; h?: number}> = ({delay = 0, color = C.ink, h = 3}) => {
|
||||
const p = useSpring(delay, 22);
|
||||
return <div style={{height: h, background: color, transformOrigin: 'left', transform: `scaleX(${p})`}} />;
|
||||
};
|
||||
|
||||
/** Cadre commun d'un plan : étiquette de chapitre, zoom lent, rideau de couleur en entrée. */
|
||||
const Shot: React.FC<{dur: number; accent: string; chap: string; source?: string; children: React.ReactNode}> = ({dur, accent, chap, source, children}) => {
|
||||
const frame = useCurrentFrame();
|
||||
const wipe = interpolate(frame, [0, 9], [0, 1], {extrapolateRight: 'clamp', easing: Easing.bezier(0.7, 0, 0.2, 1)});
|
||||
const zoom = interpolate(frame, [0, dur], [1, 1.035]);
|
||||
return (
|
||||
<AbsoluteFill style={{background: C.bg}}>
|
||||
<AbsoluteFill style={{transform: `scale(${zoom})`, padding: '150px 90px 300px', justifyContent: 'center'}}>{children}</AbsoluteFill>
|
||||
<div style={{position: 'absolute', top: 70, left: 90, right: 90, display: 'flex', justifyContent: 'space-between', fontSize: 30, fontWeight: 600, letterSpacing: 4, color: C.soft}}>
|
||||
<span>{chap}</span>
|
||||
<span>17.10.2026</span>
|
||||
</div>
|
||||
{source && <div style={{position: 'absolute', left: 90, right: 90, bottom: 150, fontSize: 30, fontWeight: 600, color: C.soft, borderTop: `1px solid ${C.line}`, paddingTop: 16}}>Source : {source}</div>}
|
||||
{/* rideau : bloc franc qui traverse et sort à droite */}
|
||||
<div style={{position: 'absolute', inset: 0, background: accent, transform: `translateX(${wipe * 101}%)`}} />
|
||||
</AbsoluteFill>
|
||||
);
|
||||
};
|
||||
|
||||
// ---------- Plans ----------
|
||||
const Kicker: React.FC<{icon: string; label: string; accent: string}> = ({icon, label, accent}) => {
|
||||
const p = useSpring(8);
|
||||
return (
|
||||
<div style={{display: 'flex', alignItems: 'center', gap: 22, opacity: p, transform: `translateX(${(1 - p) * -60}px)`}}>
|
||||
<Icon name={icon} size={64} color={accent} stroke={2.4} />
|
||||
<span style={{fontSize: 40, fontWeight: 700, letterSpacing: 6, textTransform: 'uppercase', color: accent}}>{label}</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const Title: React.FC<{icon: string; kicker: string; title: string; hl: number[]; accent: string; size?: number}> = ({icon, kicker, title, hl, accent, size = 150}) => (
|
||||
<div style={{display: 'flex', flexDirection: 'column', gap: 44}}>
|
||||
<Kicker icon={icon} label={kicker} accent={accent} />
|
||||
<Rule delay={10} />
|
||||
<Words text={title} size={size} delay={12} hl={hl} accent={accent} />
|
||||
</div>
|
||||
);
|
||||
|
||||
const Fact: React.FC<{icon: string; text: string; hl: number[]; accent: string; size?: number}> = ({icon, text, hl, accent, size = 84}) => (
|
||||
<div style={{display: 'flex', flexDirection: 'column', gap: 60}}>
|
||||
<IconBlock name={icon} accent={accent} size={300} delay={8} />
|
||||
<Rule delay={12} />
|
||||
<Words text={text} size={size} delay={14} hl={hl} accent={accent} weight={700} />
|
||||
</div>
|
||||
);
|
||||
|
||||
const Count: React.FC<{to: number; unit: string; label: string; icon: string; accent: string}> = ({to, unit, label, icon, accent}) => {
|
||||
const frame = useCurrentFrame();
|
||||
const ease = {extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.exp)} as const;
|
||||
const v = Math.round(interpolate(frame, [6, 36], [0, to], ease));
|
||||
const bar = interpolate(frame, [6, 36], [0, 1], ease);
|
||||
return (
|
||||
<div style={{display: 'flex', flexDirection: 'column', gap: 36}}>
|
||||
<div style={{display: 'flex', alignItems: 'center', gap: 26}}>
|
||||
<IconBlock name={icon} accent={accent} size={150} delay={0} />
|
||||
<span style={{fontSize: 52, fontWeight: 700, color: C.soft, lineHeight: 1.15, maxWidth: 640}}>{label}</span>
|
||||
</div>
|
||||
<div style={{fontSize: 430, fontWeight: 800, color: accent, lineHeight: 0.9, letterSpacing: -14, display: 'flex', alignItems: 'baseline'}}>
|
||||
{v}<span style={{fontSize: 130, letterSpacing: 0, marginLeft: 20, color: C.ink}}>{unit}</span>
|
||||
</div>
|
||||
<div style={{height: 22, border: `3px solid ${C.ink}`}}><div style={{height: '100%', width: `${bar * 100}%`, background: accent}} /></div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
/** Carte d'alternative : nom en gros, promesse en dessous. */
|
||||
const Alt: React.FC<{icon: string; name: string; by: string; text: string; hl: number[]; accent: string}> = ({icon, name, by, text, hl, accent}) => (
|
||||
<div style={{display: 'flex', flexDirection: 'column', gap: 40}}>
|
||||
<div style={{display: 'flex', alignItems: 'center', gap: 30}}>
|
||||
<IconBlock name={icon} accent={accent} size={200} delay={4} />
|
||||
<div>
|
||||
<div style={{fontSize: 130, fontWeight: 800, letterSpacing: -4, lineHeight: 1}}>{name}</div>
|
||||
<div style={{fontSize: 44, fontWeight: 600, color: C.soft, marginTop: 8}}>{by}</div>
|
||||
</div>
|
||||
</div>
|
||||
<Rule delay={10} />
|
||||
<Words text={text} size={74} delay={12} hl={hl} accent={accent} weight={700} />
|
||||
</div>
|
||||
);
|
||||
|
||||
const Hook: React.FC = () => (
|
||||
<div style={{display: 'flex', flexDirection: 'column', gap: 50}}>
|
||||
<IconBlock name="cadenas" accent={C.jaune} size={240} delay={0} fill={false} />
|
||||
<Words text="Ton IA garde tes conversations ?" size={160} delay={2} hl={[3, 4]} accent={C.orange} />
|
||||
<div style={{height: 36, width: 700, background: C.jaune}} />
|
||||
</div>
|
||||
);
|
||||
|
||||
const Outro: React.FC = () => (
|
||||
<div style={{display: 'flex', flexDirection: 'column', gap: 50}}>
|
||||
<div style={{display: 'flex', gap: 24}}>
|
||||
{['chat', 'bouclier', 'serveur', 'cadenas'].map((n, i) => (
|
||||
<IconBlock key={n} name={n} accent={[C.bleu, C.vert, C.orange, C.jaune][i]} size={190} delay={4 + i * 3} />
|
||||
))}
|
||||
</div>
|
||||
<Words text="Et toi, tu utilises quoi ?" size={170} delay={12} hl={[3, 4]} accent={C.bleu} />
|
||||
<Words text="Sources en description" size={56} delay={26} weight={600} color={C.soft} />
|
||||
</div>
|
||||
);
|
||||
|
||||
type Plan = {dur: number; accent: string; chap: string; source?: string; node: React.ReactNode};
|
||||
const SRC_A = 'Anthropic, 28 août 2025';
|
||||
const SRC_T = 'TechCrunch, 28 août 2025';
|
||||
const SRC_C = 'CNIL, 16 octobre 2025';
|
||||
|
||||
const plans: Plan[] = [
|
||||
{dur: s(2.4), accent: C.jaune, chap: 'RAPPEL', node: <Hook />},
|
||||
{dur: s(3.4), accent: C.orange, chap: 'LE FAIT', source: SRC_A, node: <Fact icon="donnees" text="Août 2025 : Anthropic permet d'entraîner Claude avec les conversations des comptes grand public." hl={[0, 1, 2]} accent={C.orange} size={78} />},
|
||||
{dur: s(3.2), accent: C.orange, chap: 'LE FAIT', source: SRC_A, node: <Count to={5} unit="ans" icon="horloge" label="de conservation si tu acceptes · 30 jours sinon" accent={C.orange} />},
|
||||
{dur: s(3.2), accent: C.orange, chap: 'LE FAIT', source: SRC_A, node: <Fact icon="utilisateur" text="Offres Free, Pro et Max. Pas l'API ni les offres pour entreprises." hl={[2, 3, 4]} accent={C.orange} />},
|
||||
{dur: s(3.4), accent: C.bleu, chap: 'POURQUOI', source: SRC_T, node: <Fact icon="chat" text="Le choix : un petit interrupteur, à côté d'un gros bouton « Accepter »." hl={[4, 5]} accent={C.bleu} />},
|
||||
{dur: s(3.2), accent: C.bleu, chap: 'POURQUOI', node: <Fact icon="cadenas" text="Dans une conversation, on écrit souvent des choses très personnelles." hl={[5, 6, 7]} accent={C.bleu} />},
|
||||
{dur: s(3.2), accent: C.bleu, chap: 'POURQUOI', source: `${SRC_A} · ${SRC_C}`, node: <Fact icon="engrenage" text="Bonne nouvelle : le réglage se change à tout moment, dans Confidentialité." hl={[0, 1]} accent={C.bleu} />},
|
||||
{dur: s(1.6), accent: C.vert, chap: 'ALTERNATIVES', node: <Title icon="bouclier" kicker="Autres choix" title="Des alternatives" hl={[1]} accent={C.vert} />},
|
||||
{dur: s(3.0), accent: C.vert, chap: 'ALTERNATIVES', node: <Alt icon="montagne" name="Mind" by="par Théo" text="Hébergée dans le Vercors, en France." hl={[2, 3, 4]} accent={C.vert} />},
|
||||
{dur: s(3.4), accent: C.vert, chap: 'ALTERNATIVES', source: SRC_C, node: <Alt icon="chat" name="Le Chat" by="Mistral AI" text="IA française, avec un réglage pour refuser l'entraînement." hl={[1, 2]} accent={C.vert} />},
|
||||
{dur: s(3.6), accent: C.vert, chap: 'ALTERNATIVES', source: 'Infomaniak, 9 décembre 2025', node: <Alt icon="serveur" name="Euria" by="Infomaniak" text="Hébergée en Suisse. Selon Infomaniak : pas d'entraînement sur tes échanges." hl={[1, 2]} accent={C.vert} />},
|
||||
{dur: s(2.8), accent: C.jaune, chap: 'À TOI', node: <Outro />},
|
||||
];
|
||||
|
||||
export const TOTAL_AVP = plans.reduce((a, x) => a + x.dur, 0);
|
||||
|
||||
export const ActuViePrivee: React.FC = () => {
|
||||
const frame = useCurrentFrame();
|
||||
let from = 0;
|
||||
return (
|
||||
<AbsoluteFill style={{background: C.bg, fontFamily, color: C.ink}}>
|
||||
{plans.map((pl, i) => {
|
||||
const el = (
|
||||
<Sequence key={i} from={from} durationInFrames={pl.dur}>
|
||||
<Shot dur={pl.dur} accent={pl.accent} chap={pl.chap} source={pl.source}>{pl.node}</Shot>
|
||||
</Sequence>
|
||||
);
|
||||
from += pl.dur;
|
||||
return el;
|
||||
})}
|
||||
<div style={{position: 'absolute', left: 0, bottom: 0, height: 6, width: `${(frame / TOTAL_AVP) * 100}%`, background: C.ink}} />
|
||||
</AbsoluteFill>
|
||||
);
|
||||
};
|
||||
@@ -3,6 +3,7 @@ import {Composition} from 'remotion';
|
||||
import {JourneeTheo, TOTAL_FRAMES, FPS} from './JourneeTheo';
|
||||
import {JourneeTheoV2, TOTAL_V2, FPS_V2} from './JourneeTheoV2';
|
||||
import {ActuViePrivee, TOTAL_AVP, FPS_AVP} from './ActuViePrivee';
|
||||
import {ActuViePrivee, TOTAL_AVP, FPS_AVP} from './ActuViePrivee';
|
||||
import {NouveauteMind, TOTAL_NM, FPS_NM} from './NouveauteMind';
|
||||
|
||||
export const Root: React.FC = () => (
|
||||
@@ -11,5 +12,6 @@ export const Root: React.FC = () => (
|
||||
<Composition id="JourneeTheoV2" component={JourneeTheoV2} durationInFrames={TOTAL_V2} fps={FPS_V2} width={1080} height={1920} />
|
||||
<Composition id="NouveauteMind" component={NouveauteMind} durationInFrames={TOTAL_NM} fps={FPS_NM} width={1080} height={1920} />
|
||||
<Composition id="ActuViePrivee" component={ActuViePrivee} durationInFrames={TOTAL_AVP} fps={FPS_AVP} width={1080} height={1920} />
|
||||
<Composition id="ActuViePrivee" component={ActuViePrivee} durationInFrames={TOTAL_AVP} fps={FPS_AVP} width={1080} height={1920} />
|
||||
</>
|
||||
);
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur