import React from "react";
import { useCurrentFrame, interpolate, spring } from "remotion";
import { palette } from "./contract";
const RelayLogo: React.FC<{ size?: number; glow?: boolean }> = ({
size = 44,
glow = false,
}) => {
return (
{/* Ambient background light */}
{/* Background architectural grid pattern */}
{/* ==================== SCENE 1: INTRO ==================== */}
{frame < 92 && (
{/* Category pill */}
Next-Gen Team Planning
{/* Brand Logo & Name */}
Relay
{/* Subtitle / Core Hook */}
Make room for focused work
)}
{/* ==================== SCENE 2: PRODUCT INTERFACE ==================== */}
{frame >= 80 && frame <= 275 && (
{/* Top Interface Bar */}
{/* App Branding */}
Relay
/
Core Engineering Sprint 42
{/* Feature Tabs (The 3 Requirements) */}
{/* Step 1 */}
Plan together
{/* Step 2 */}
Protect focus time
{/* Step 3 */}
See progress
{/* Team Presence Avatars */}
{["Elena", "Marcus", "Tara"].map((name, i) => (
0 ? -8 : 0,
}}
>
{name[0]}
))}
6 active
{/* Main Working Canvas */}
{/* ================= VIEW 1: PLAN TOGETHER (90 - 150) ================= */}
{isPhase1 && (
Collaborative Workspace
Plan together across teams in real-time
Live Sync · 12ms latency
{/* Kanban 3-Column Plan Board */}
{/* Column 1: Backlog */}
PROPOSED FOCUS · 2
Sync Engine Latency Audit
Performance
4h estimate
{/* Column 2: In Sprint (Target for dynamic card) */}
THIS SPRINT · COMMITTED
{/* Moving Card animated across columns */}
High Impact
Assigned to Marcus
Unified Workspace Collaboration
Aligned with Product Roadmap
{/* Column 3: Ready to Focus */}
PROTECTED QUEUE · 1
Database Sharding Architecture
Scheduled for Thursday block
)}
{/* ================= VIEW 2: PROTECT FOCUS TIME (150 - 210) ================= */}
{isPhase2 && (
Calendar Defense
Protect focus time automatically across schedules
Shield Active · 0 Meeting Collisions
{/* Week Schedule Visual Grid */}
{/* Days of week header */}
TIME
MON
TUE (SHIELDED)
WED (SHIELDED)
THU (SHIELDED)
FRI
{/* 09:00 AM Row (Standup condensed) */}
09:00 AM
Team Kickoff
15m Sync
15m Sync
15m Sync
Demo Prep
{/* 10:00 AM - 02:00 PM Massive Protected Focus Block */}
10:00 AM
↓
02:00 PM
{/* Monday Open slot */}
Open Schedule
{/* Tue-Thu Protected Focus Zone */}
PROTECTED FOCUS BLOCK
4.0 Hours Uninterrupted
Deep Engineering & Architecture Focus
Auto-declines ad-hoc meetings · Slack DND synchronized
for 8 team members
{/* Friday Open slot */}
Design Review
)}
{/* ================= VIEW 3: SEE PROGRESS (210 - 270) ================= */}
{isPhase3 && (
Performance Analytics
See progress in real time as goals finish faster
Sprint on Track · +28% Focus Efficiency
{/* 3 Metric Insight Panels */}
{/* Metric 1: Focus Goal Completion */}
WEEKLY FOCUS TARGET
{focusPercent}%
37.6 hrs of deep focused work logged
{/* Glowing Progress Track */}
{/* Metric 2: Velocity Bar Chart */}
TEAM VELOCITY BOOST
+24%
Faster sprint execution vs baseline
{/* 4 Animated Bars */}
{[bar1, bar2, bar3, bar4].map((heightVal, idx) => (
))}
{/* Metric 3: Live Deliverables list */}
COMPLETED OBJECTIVES
{[
"Core Sync Protocol",
"Focus Guard System",
"Sprint 42 Deliverables",
].map((item, idx) => (
✓
{item}
))}
)}
)}
{/* ==================== SCENE 3: OUTRO (270 - 360) ==================== */}
{/* Text reaches final state by frame 292, completely stable through 359 (>= 2 full seconds) */}
{frame >= 268 && (
{/* Top Logo Badge */}
Relay
{/* Mandatory Outro Headline */}
Start your next week with Relay
{/* 3 Pillar Summary badges */}
{[
{ label: "Plan together", color: palette.secondary },
{ label: "Protect focus time", color: palette.accent },
{ label: "See progress", color: palette.foreground },
].map((pillar) => (
{pillar.label}
))}
{/* Call to action button pill */}
Get started — relay.app
)}
);
};