import {interpolate, useCurrentFrame} from 'remotion'; import {Backdrop} from '../components/Backdrop'; import {DemoSurface} from '../components/DemoSurface'; import {HighlightBox} from '../components/HighlightBox'; import {KineticHeadline} from '../components/KineticHeadline'; import {SignalBadge} from '../components/SignalBadge'; import {routeScreens, timeHeadline, timeOverviewStats} from '../data/trailerData'; import {formatMetricValue, formatStopwatch} from '../lib/format'; import {easedProgress} from '../lib/motion'; import {trackeepTheme} from '../theme/trackeep'; const SCALE = 1520 / 1280; const s = (value: number) => value * SCALE; export const TimeTrackingScene = () => { const frame = useCurrentFrame(); const timerProgress = easedProgress(frame, 8, 40); const entriesProgress = easedProgress(frame, 16, 28); const billableProgress = easedProgress(frame, 24, 30); const timerBox = easedProgress(frame, 10, 18); const overviewBox = easedProgress(frame, 30, 18); const entriesBox = easedProgress(frame, 50, 18); const buttonProgress = easedProgress(frame, 24, 14); const pulse = 1 + Math.sin(frame / 4) * 0.03; return (
); };