README : apercu, rendu, licence, plan de la skill /video
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cette révision appartient à :
révision
b3a04aa2fc
9 fichiers modifiés
+4126
Aucun fichier ne correspond à votre recherche
@@ -0,0 +1,158 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
AbsoluteFill,
|
||||
Easing,
|
||||
Sequence,
|
||||
interpolate,
|
||||
spring,
|
||||
useCurrentFrame,
|
||||
useVideoConfig,
|
||||
} from 'remotion';
|
||||
import {loadFont} from '@remotion/google-fonts/Inter';
|
||||
|
||||
const {fontFamily} = loadFont('normal', {weights: ['400', '600', '800'], subsets: ['latin']});
|
||||
|
||||
export const FPS = 30;
|
||||
const s = (sec: number) => Math.round(sec * FPS);
|
||||
|
||||
const C = {bg: '#0f172a', card: '#1e293b', text: '#f8fafc', muted: '#94a3b8', accent: '#38bdf8', green: '#4ade80', amber: '#fbbf24'};
|
||||
|
||||
type Scene = {dur: number; node: React.ReactNode};
|
||||
|
||||
/** Apparition fluide : opacité + glissement vers le haut. */
|
||||
const useReveal = (delay: number) => {
|
||||
const frame = useCurrentFrame();
|
||||
const {fps} = useVideoConfig();
|
||||
const p = spring({frame: frame - delay, fps, config: {damping: 200}});
|
||||
return {opacity: p, transform: `translateY(${(1 - p) * 40}px)`};
|
||||
};
|
||||
|
||||
const Title: React.FC<{children: React.ReactNode; delay?: number; size?: number; color?: string}> = ({
|
||||
children, delay = 0, size = 92, color = C.text,
|
||||
}) => (
|
||||
<div style={{...useReveal(delay), fontSize: size, fontWeight: 800, color, lineHeight: 1.1}}>{children}</div>
|
||||
);
|
||||
|
||||
const Card: React.FC<{delay: number; icon: string; text: string}> = ({delay, icon, text}) => {
|
||||
const st = useReveal(delay);
|
||||
return (
|
||||
<div style={{...st, background: C.card, borderRadius: 32, padding: '36px 44px', display: 'flex', gap: 28, alignItems: 'center', fontSize: 44, fontWeight: 600, color: C.text, lineHeight: 1.25}}>
|
||||
<span style={{fontSize: 60}}>{icon}</span>
|
||||
<span>{text}</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const Counter: React.FC<{to: number; label: string; delay: number; unit?: string; color?: string}> = ({to, label, delay, unit = '', color = C.accent}) => {
|
||||
const frame = useCurrentFrame();
|
||||
const v = Math.round(interpolate(frame, [delay, delay + 45], [0, to], {
|
||||
extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic),
|
||||
}));
|
||||
return (
|
||||
<div style={{...useReveal(delay), flex: 1, background: C.card, borderRadius: 32, padding: '36px 20px', textAlign: 'center'}}>
|
||||
<div style={{fontSize: 130, fontWeight: 800, color, lineHeight: 1}}>{v}{unit}</div>
|
||||
<div style={{fontSize: 36, color: C.muted, marginTop: 12, fontWeight: 400}}>{label}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const Layout: React.FC<{kicker: string; title: string; children: React.ReactNode}> = ({kicker, title, children}) => (
|
||||
<AbsoluteFill style={{padding: '170px 80px 170px', justifyContent: 'center', gap: 36}}>
|
||||
<div style={{...useReveal(0), fontSize: 38, fontWeight: 600, color: C.accent, letterSpacing: 4, textTransform: 'uppercase'}}>{kicker}</div>
|
||||
<Title delay={4}>{title}</Title>
|
||||
<div style={{display: 'flex', flexDirection: 'column', gap: 28, marginTop: 24}}>{children}</div>
|
||||
</AbsoluteFill>
|
||||
);
|
||||
|
||||
const Intro = () => (
|
||||
<AbsoluteFill style={{padding: 80, justifyContent: 'center', gap: 30}}>
|
||||
<Title size={64} color={C.accent} delay={0}>16 octobre 2026</Title>
|
||||
<Title size={130} delay={8}>La journée de Théo</Title>
|
||||
<Title size={46} color={C.muted} delay={20}>15 ans, il code ses propres projets</Title>
|
||||
</AbsoluteFill>
|
||||
);
|
||||
|
||||
const Hub = () => (
|
||||
<Layout kicker="Hub de comptes" title="Le profil est en ligne">
|
||||
<Card delay={14} icon="👤" text="Profil du compte publié, base migrée avec sauvegarde" />
|
||||
<Card delay={26} icon="📷" text="Envoi de photo réparé : limite relevée à 6 Mo" />
|
||||
<Card delay={38} icon="📝" text="Brouillons RGPD v1.2 prêts, pas encore publiés" />
|
||||
</Layout>
|
||||
);
|
||||
|
||||
const Minecraft = () => (
|
||||
<Layout kicker="Mods Minecraft Gastinel" title="Deux mods fiabilisés">
|
||||
<div style={{display: 'flex', gap: 28}}>
|
||||
<Counter to={73} label="tests OK · GastinelTpa" delay={16} color={C.green} />
|
||||
<Counter to={54} label="tests OK · GastinelClaims" delay={28} color={C.green} />
|
||||
</div>
|
||||
<Card delay={44} icon="🔧" text="Correctifs sur une branche de test, rien de déployé" />
|
||||
</Layout>
|
||||
);
|
||||
|
||||
const Meteo = () => (
|
||||
<Layout kicker="Site météo" title="Les choix sont faits">
|
||||
<div style={{display: 'flex', gap: 28}}>
|
||||
<Counter to={25} label="postes confirmés" delay={16} />
|
||||
<Counter to={10} unit=" min" label="rafraîchissement" delay={28} color={C.amber} />
|
||||
</div>
|
||||
<Card delay={44} icon="🗺️" text="Domaine weather.gastinel.me, fond de carte Plan IGN" />
|
||||
</Layout>
|
||||
);
|
||||
|
||||
const Autres = () => (
|
||||
<Layout kicker="Et aussi" title="Petits chantiers">
|
||||
<Card delay={14} icon="🔗" text="Site gastinel.me : lien vers le Hub corrigé" />
|
||||
<Card delay={26} icon="✨" text="Jobrunner : animations réparées" />
|
||||
<Card delay={38} icon="📊" text="Mod Claude Code : CPU, RAM et GPU en direct" />
|
||||
</Layout>
|
||||
);
|
||||
|
||||
const Outro = () => (
|
||||
<AbsoluteFill style={{padding: 80, justifyContent: 'center', gap: 28}}>
|
||||
<Title size={110} delay={0}>À demain !</Title>
|
||||
<Title size={46} color={C.muted} delay={14}>Mods, Hub, météo : un projet après l'autre.</Title>
|
||||
<Title size={40} color={C.accent} delay={28}>gastinel.me</Title>
|
||||
</AbsoluteFill>
|
||||
);
|
||||
|
||||
const scenes: Scene[] = [
|
||||
{dur: s(4), node: <Intro />},
|
||||
{dur: s(7), node: <Hub />},
|
||||
{dur: s(8), node: <Minecraft />},
|
||||
{dur: s(8), node: <Meteo />},
|
||||
{dur: s(7), node: <Autres />},
|
||||
{dur: s(5), node: <Outro />},
|
||||
];
|
||||
|
||||
export const TOTAL_FRAMES = scenes.reduce((a, x) => a + x.dur, 0);
|
||||
|
||||
/** Fondu entrant/sortant autour de chaque scène. */
|
||||
const Fade: React.FC<{dur: number; children: React.ReactNode}> = ({dur, children}) => {
|
||||
const frame = useCurrentFrame();
|
||||
const o = interpolate(frame, [0, 8, dur - 8, dur], [0, 1, 1, 0]);
|
||||
return <AbsoluteFill style={{opacity: o}}>{children}</AbsoluteFill>;
|
||||
};
|
||||
|
||||
export const JourneeTheo: React.FC = () => {
|
||||
const frame = useCurrentFrame();
|
||||
// Barre de progression discrète en bas
|
||||
const prog = frame / TOTAL_FRAMES;
|
||||
let from = 0;
|
||||
return (
|
||||
<AbsoluteFill style={{background: C.bg, fontFamily}}>
|
||||
{scenes.map((sc, i) => {
|
||||
const el = (
|
||||
<Sequence key={i} from={from} durationInFrames={sc.dur}>
|
||||
<Fade dur={sc.dur}>{sc.node}</Fade>
|
||||
</Sequence>
|
||||
);
|
||||
from += sc.dur;
|
||||
return el;
|
||||
})}
|
||||
<div style={{position: 'absolute', left: 80, right: 80, bottom: 110, height: 8, background: C.card, borderRadius: 4}}>
|
||||
<div style={{width: `${prog * 100}%`, height: '100%', background: C.accent, borderRadius: 4}} />
|
||||
</div>
|
||||
</AbsoluteFill>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import {Composition} from 'remotion';
|
||||
import {JourneeTheo, TOTAL_FRAMES, FPS} from './JourneeTheo';
|
||||
|
||||
export const Root: React.FC = () => (
|
||||
<Composition
|
||||
id="JourneeTheo"
|
||||
component={JourneeTheo}
|
||||
durationInFrames={TOTAL_FRAMES}
|
||||
fps={FPS}
|
||||
width={1080}
|
||||
height={1920}
|
||||
/>
|
||||
);
|
||||
@@ -0,0 +1,3 @@
|
||||
import {registerRoot} from 'remotion';
|
||||
import {Root} from './Root';
|
||||
registerRoot(Root);
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur