Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/droid-control/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ The `Showcase` composition in `remotion/src/compositions/Showcase.tsx` is the on
| Layer | Purpose | Controlled by |
|---|---|---|
| Background + FloatingParticles | Preset-driven warmth or coolness | `preset` |
| TitleCard / FanningRotorOutro | Opening and closing cards | `title`, `subtitle`, `speedNote` |
| TitleCard / DroidOutro | Opening and closing cards (outro plays fanning rotor → crossfade → DROID wordmark) | `title`, `subtitle`, `speedNote` |
| Window chrome + layouts | `SingleLayout` or `SideBySideLayout` | `layout`, `labels`, `objectFit` |
| ZoomEffect / SpotlightOverlay / KeystrokeOverlay / SectionHeader | Timed in-scene overlays | `effects`, `keys`, `sections` |
| CodeAnnotationOverlay | Timed syntax-highlighted code cards | `codeAnnotations` |
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ import React from 'react';
import { AbsoluteFill, useCurrentFrame, useVideoConfig, interpolate, Easing } from 'remotion';
import type { Palette } from '../lib/palettes';
import { RotorMark } from './RotorMark';
import { DroidWordmark } from './DroidWordmark';

export const FanningRotorOutro: React.FC<{
export const DroidOutro: React.FC<{
palette: Palette;
}> = ({ palette }) => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const rotorCenterX = 303.105;
const rotorCenterY = 319.528;
const rotorCenterXPercent = (rotorCenterX / 613) * 100;
const rotorCenterYPercent = (rotorCenterY / 650) * 100;
const topRightSliceYPercent = ((rotorCenterY - (613 - rotorCenterX)) / 650) * 100;

// Phase 1: Fan out the 8 triangles (0s to 1.5s)
const fanDuration = 1.5 * fps;
Expand Down Expand Up @@ -47,17 +53,13 @@ export const FanningRotorOutro: React.FC<{
left: '50%',
width: '613px',
height: '650px',
marginLeft: '-306.5px',
marginTop: '-325px',
transformOrigin: '50% 50%',
marginLeft: `${-rotorCenterX}px`,
marginTop: `${-rotorCenterY}px`,
transformOrigin: `${rotorCenterX}px ${rotorCenterY}px`,
transform: `scale(${scaleProgress}) rotate(${rotationProgress}deg)`,
opacity,
mixBlendMode: 'screen',
// A 45-degree pie slice capturing exactly one blade (top-right)
// 50% 50% = center
// 100% 50% = straight right
// 100% 2.85% = exactly 45 degrees up (y = 18.5px out of 650px)
clipPath: 'polygon(50% 50%, 100% 50%, 100% 2.85%)',
clipPath: `polygon(${rotorCenterXPercent}% ${rotorCenterYPercent}%, 100% ${rotorCenterYPercent}%, 100% ${topRightSliceYPercent}%)`,
}}
>
<RotorMark width={613} height={650} color="white" />
Expand All @@ -76,16 +78,6 @@ export const FanningRotorOutro: React.FC<{
extrapolateRight: 'clamp',
});

const asciiLogo = `
█████████ █████████ ████████ ███ █████████
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ █████████ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███
█████████ ███ ███ ████████ ███ █████████
`.trim();

return (
<AbsoluteFill
style={{
Expand All @@ -101,43 +93,17 @@ export const FanningRotorOutro: React.FC<{
{wedges}
</div>

{/* The ASCII Droid layer */}
{/* The ASCII Droid wordmark layer */}
<div
style={{
position: 'absolute',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
opacity: asciiOpacity,
}}
>
<div
style={{
color: 'white', // ASCII DROID in white
fontFamily: "'Geist Mono', 'SF Mono', 'Cascadia Code', 'Fira Code', monospace",
fontSize: 24,
lineHeight: 1.2,
whiteSpace: 'pre',
textAlign: 'left',
textShadow: '0 0 20px rgba(255,255,255,0.4)',
}}
>
{asciiLogo}
</div>
<div
style={{
marginTop: 40,
color: palette.accent, // AUTONOMOUS ENGINEERING in orange
fontSize: 32,
fontWeight: 300,
fontFamily: "'Geist', system-ui, sans-serif",
letterSpacing: '0.2em',
textShadow: `0 0 15px ${palette.accent}66`,
}}
>
AUTONOMOUS ENGINEERING
</div>
<DroidWordmark palette={palette} />
</div>
</AbsoluteFill>
);
Expand Down
53 changes: 53 additions & 0 deletions plugins/droid-control/remotion/src/components/DroidWordmark.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import React from 'react';
import type { Palette } from '../lib/palettes';

const DROID_ASCII = `
██████████ ██████████ ██████████ ███ ██████████
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ ██████████ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███
██████████ ███ ███ ██████████ ███ ██████████
`.trim();

export const DroidWordmark: React.FC<{
palette: Palette;
logoColor?: string;
taglineColor?: string;
}> = ({ palette, logoColor, taglineColor }) => (
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
}}
>
<div
style={{
color: logoColor ?? 'white',
fontFamily: "'Geist Mono', 'SF Mono', 'Cascadia Code', 'Fira Code', monospace",
fontSize: 24,
lineHeight: 1.2,
whiteSpace: 'pre',
textAlign: 'left',
textShadow: '0 0 20px rgba(255,255,255,0.4)',
}}
>
{DROID_ASCII}
</div>
<div
style={{
marginTop: 40,
color: taglineColor ?? palette.accent,
fontSize: 32,
fontWeight: 300,
fontFamily: "'Geist', system-ui, sans-serif",
letterSpacing: '0.2em',
textShadow: `0 0 15px ${palette.accent}66`,
}}
>
AUTONOMOUS ENGINEERING
</div>
</div>
);
4 changes: 2 additions & 2 deletions plugins/droid-control/remotion/src/compositions/Showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { ColorGradeOverlay } from '../components/ColorGradeOverlay';
import { Watermark } from '../components/Watermark';
import { ZoomEffect } from '../components/ZoomEffect';
import { SectionTransitionOverlay } from '../components/SectionTransition';
import { FanningRotorOutro } from '../components/FanningRotorOutro';
import { DroidOutro } from '../components/DroidOutro';
import { CodeAnnotationOverlay } from '../components/CodeAnnotationOverlay';

export const showcaseSchema = z.object({
Expand Down Expand Up @@ -331,7 +331,7 @@ export const ShowcaseComposition: React.FC<z.infer<typeof showcaseSchema>> = (

{/* Outro card */}
<TransitionSeries.Sequence durationInFrames={3.5 * fps}>
<FanningRotorOutro
<DroidOutro
palette={palette}
/>
</TransitionSeries.Sequence>
Expand Down
Loading