|
| 1 | +import React from 'react'; |
| 2 | +import { |
| 3 | + AbsoluteFill, |
| 4 | + Easing, |
| 5 | + Sequence, |
| 6 | + interpolate, |
| 7 | + spring, |
| 8 | + useCurrentFrame, |
| 9 | + useVideoConfig, |
| 10 | +} from 'remotion'; |
| 11 | + |
| 12 | +type SceneCardProps = { |
| 13 | + title: string; |
| 14 | + subtitle: string; |
| 15 | + bullets: string[]; |
| 16 | + accent: string; |
| 17 | +}; |
| 18 | + |
| 19 | +const container: React.CSSProperties = { |
| 20 | + background: |
| 21 | + 'radial-gradient(circle at 10% 15%, rgba(34, 197, 94, 0.28), rgba(10, 20, 34, 0.95) 45%), linear-gradient(135deg, #0f172a, #020617)', |
| 22 | + color: '#e2e8f0', |
| 23 | + fontFamily: 'Inter, ui-sans-serif, system-ui', |
| 24 | +}; |
| 25 | + |
| 26 | +const SceneCard: React.FC<SceneCardProps> = ({title, subtitle, bullets, accent}) => { |
| 27 | + const frame = useCurrentFrame(); |
| 28 | + const {fps} = useVideoConfig(); |
| 29 | + |
| 30 | + const rise = spring({ |
| 31 | + fps, |
| 32 | + frame, |
| 33 | + config: { |
| 34 | + damping: 18, |
| 35 | + stiffness: 120, |
| 36 | + mass: 0.9, |
| 37 | + }, |
| 38 | + }); |
| 39 | + |
| 40 | + const fade = interpolate(frame, [0, 25], [0, 1], { |
| 41 | + extrapolateLeft: 'clamp', |
| 42 | + extrapolateRight: 'clamp', |
| 43 | + easing: Easing.out(Easing.cubic), |
| 44 | + }); |
| 45 | + |
| 46 | + return ( |
| 47 | + <AbsoluteFill style={{...container, padding: 120}}> |
| 48 | + <div |
| 49 | + style={{ |
| 50 | + transform: `translateY(${interpolate(rise, [0, 1], [30, 0])}px)`, |
| 51 | + opacity: fade, |
| 52 | + border: `1px solid ${accent}`, |
| 53 | + borderRadius: 28, |
| 54 | + background: 'rgba(15, 23, 42, 0.6)', |
| 55 | + backdropFilter: 'blur(6px)', |
| 56 | + padding: '56px 64px', |
| 57 | + boxShadow: `0 20px 55px ${accent}40`, |
| 58 | + }} |
| 59 | + > |
| 60 | + <p |
| 61 | + style={{ |
| 62 | + color: accent, |
| 63 | + textTransform: 'uppercase', |
| 64 | + letterSpacing: '0.18em', |
| 65 | + fontWeight: 700, |
| 66 | + margin: 0, |
| 67 | + }} |
| 68 | + > |
| 69 | + Enterprise tech explainer |
| 70 | + </p> |
| 71 | + <h1 style={{fontSize: 72, margin: '20px 0 14px', lineHeight: 1.1}}>{title}</h1> |
| 72 | + <p style={{fontSize: 34, lineHeight: 1.4, marginTop: 0, color: '#cbd5e1'}}>{subtitle}</p> |
| 73 | + <ul style={{marginTop: 28, display: 'grid', rowGap: 18, fontSize: 30, paddingLeft: 28}}> |
| 74 | + {bullets.map((bullet) => ( |
| 75 | + <li key={bullet}>{bullet}</li> |
| 76 | + ))} |
| 77 | + </ul> |
| 78 | + </div> |
| 79 | + </AbsoluteFill> |
| 80 | + ); |
| 81 | +}; |
| 82 | + |
| 83 | +export const ShadowMapTechExplainer: React.FC = () => { |
| 84 | + return ( |
| 85 | + <AbsoluteFill> |
| 86 | + <Sequence from={0} durationInFrames={220}> |
| 87 | + <SceneCard |
| 88 | + title="ShadowMap in 30 seconds" |
| 89 | + subtitle="Start with first principles: map assets, verify risk, then act with proof." |
| 90 | + accent="#22d3ee" |
| 91 | + bullets={[ |
| 92 | + 'Observe all exposed internet-facing assets.', |
| 93 | + 'Separate signal from noise using reproducible checks.', |
| 94 | + 'Deliver executive-grade evidence with confidence.', |
| 95 | + ]} |
| 96 | + /> |
| 97 | + </Sequence> |
| 98 | + <Sequence from={220} durationInFrames={230}> |
| 99 | + <SceneCard |
| 100 | + title="How the engine works" |
| 101 | + subtitle="Motion mirrors the pipeline: discovery → enrichment → reporting." |
| 102 | + accent="#38bdf8" |
| 103 | + bullets={[ |
| 104 | + 'Discovery: enumerate subdomains and exposed services.', |
| 105 | + 'Enrichment: fingerprint technologies and security posture.', |
| 106 | + 'Reporting: summarize risk for analysts and leadership.', |
| 107 | + ]} |
| 108 | + /> |
| 109 | + </Sequence> |
| 110 | + <Sequence from={450} durationInFrames={230}> |
| 111 | + <SceneCard |
| 112 | + title="Enterprise operating model" |
| 113 | + subtitle="Treat security as a system, not a one-off scan." |
| 114 | + accent="#14b8a6" |
| 115 | + bullets={[ |
| 116 | + 'Automate scans in CI for consistent coverage.', |
| 117 | + 'Attach SBOM and provenance for auditability.', |
| 118 | + 'Track trends over time to prioritize remediation.', |
| 119 | + ]} |
| 120 | + /> |
| 121 | + </Sequence> |
| 122 | + <Sequence from={680} durationInFrames={220}> |
| 123 | + <SceneCard |
| 124 | + title="Call to action" |
| 125 | + subtitle="Render, narrate, and ship to stakeholders in a single flow." |
| 126 | + accent="#2dd4bf" |
| 127 | + bullets={[ |
| 128 | + 'Open Remotion Studio for timing + typography polish.', |
| 129 | + 'Record voiceover aligned with each decision point.', |
| 130 | + 'Render mp4 and distribute in internal comms channels.', |
| 131 | + ]} |
| 132 | + /> |
| 133 | + </Sequence> |
| 134 | + </AbsoluteFill> |
| 135 | + ); |
| 136 | +}; |
0 commit comments