All files / src/remotion/DesktopPromo DesktopSceneOutro.tsx

100% Statements 25/25
100% Branches 0/0
100% Functions 1/1
100% Lines 25/25

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230                                3x 3x     3x         3x 3x 3x     3x         3x 3x     3x         3x 3x   3x         3x 3x   3x         3x 3x     3x         3x 3x 3x     3x         3x   3x                                                                                                                                                                                                                                                                                                        
import React from 'react';
import { interpolate, spring, useCurrentFrame, useVideoConfig } from 'remotion';
import { THEME } from '../Theme';
import {
  GitHubBadge,
  ChromeWebStoreBadge,
  DaguerreAppIcon,
} from '../BrandMarks';
 
/**
 * Scene 4: Outro & Call to Action (Frames 451–600 | 7.5s – 10.0s, 150 frames total).
 * Bold closing lockup featuring the centered authentic Daguerre squircle app icon,
 * kinetic punchline ("Fast. Private. Transparent."), and dual official launch badges
 * (GitHub + Chrome Web Store).
 */
export function DesktopSceneOutro(): React.JSX.Element {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();
 
  // Entrance spring for app icon
  const iconSpring = spring({
    frame,
    fps,
    config: THEME.springs.hero,
  });
  const iconScale = interpolate(iconSpring, [0, 1], [0.8, 1.0]);
  const iconY = interpolate(iconSpring, [0, 1], [40, 0]);
  const iconOpacity = interpolate(iconSpring, [0, 0.35], [0, 1]);
 
  // Title spring (+10 frames)
  const titleSpring = spring({
    frame: frame - 10,
    fps,
    config: THEME.springs.snappy,
  });
  const titleY = interpolate(titleSpring, [0, 1], [24, 0]);
  const titleOpacity = interpolate(titleSpring, [0, 0.4], [0, 1]);
 
  // Kinetic Punchline Stagger: "Fast." "Private." "Transparent."
  const word1Spring = spring({
    frame: frame - 28,
    fps,
    config: THEME.springs.snappy,
  });
  const word1Y = interpolate(word1Spring, [0, 1], [18, 0]);
  const word1Opacity = interpolate(word1Spring, [0, 0.4], [0, 1]);
 
  const word2Spring = spring({
    frame: frame - 40,
    fps,
    config: THEME.springs.snappy,
  });
  const word2Y = interpolate(word2Spring, [0, 1], [18, 0]);
  const word2Opacity = interpolate(word2Spring, [0, 0.4], [0, 1]);
 
  const word3Spring = spring({
    frame: frame - 52,
    fps,
    config: THEME.springs.snappy,
  });
  const word3Y = interpolate(word3Spring, [0, 1], [18, 0]);
  const word3Opacity = interpolate(word3Spring, [0, 0.4], [0, 1]);
 
  // Dual Badges Spring (+60 frames)
  const badgesSpring = spring({
    frame: frame - 60,
    fps,
    config: THEME.springs.tactile,
  });
  const badgesY = interpolate(badgesSpring, [0, 1], [30, 0]);
  const badgesScale = interpolate(badgesSpring, [0, 1], [0.92, 1.0]);
  const badgesOpacity = interpolate(badgesSpring, [0, 0.4], [0, 1]);
 
  // Subtitle Spring (+72 frames)
  const ctaSpring = spring({
    frame: frame - 72,
    fps,
    config: THEME.springs.soft,
  });
  const ctaOpacity = interpolate(ctaSpring, [0, 0.5], [0, 1]);
 
  return (
    <div
      style={{
        position: 'absolute',
        inset: 0,
        display: 'flex',
        flexDirection: 'column',
        alignItems: 'center',
        justifyContent: 'center',
        zIndex: 10,
      }}
    >
      {/* Central Authentic App Icon */}
      <div
        style={{
          transform: `translateY(${iconY}px) scale(${iconScale})`,
          opacity: iconOpacity,
          marginBottom: 20,
        }}
      >
        <DaguerreAppIcon size={130} glow={true} />
      </div>
 
      {/* Main Title & Version Lockup */}
      <div
        style={{
          display: 'flex',
          alignItems: 'center',
          gap: 14,
          transform: `translateY(${titleY}px)`,
          opacity: titleOpacity,
          marginBottom: 16,
        }}
      >
        <h1
          style={{
            margin: 0,
            fontFamily: THEME.typography.fontFamily,
            fontSize: 54,
            fontWeight: 700,
            letterSpacing: '-0.03em',
            color: THEME.colors.textPrimary,
            textShadow: THEME.shadows.textHero,
            lineHeight: 1,
          }}
        >
          Daguerre
        </h1>
        <span
          style={{
            padding: '3px 10px',
            backgroundColor: '#1E202B',
            border: `1px solid ${THEME.colors.borderHighlight}`,
            borderRadius: 7,
            fontSize: 13,
            fontFamily: THEME.typography.fontFamily,
            fontWeight: 600,
            color: THEME.colors.accentBlue,
            letterSpacing: '0.02em',
          }}
        >
          v1.0.6
        </span>
      </div>
 
      {/* Kinetic Punchline: Fast. Private. Transparent. */}
      <div
        style={{
          display: 'flex',
          alignItems: 'center',
          gap: 14,
          marginBottom: 36,
        }}
      >
        <span
          style={{
            fontFamily: THEME.typography.fontFamily,
            fontSize: 26,
            fontWeight: 650,
            letterSpacing: '-0.02em',
            color: THEME.colors.textPrimary,
            transform: `translateY(${word1Y}px)`,
            opacity: word1Opacity,
          }}
        >
          Fast.
        </span>
        <span
          style={{
            fontFamily: THEME.typography.fontFamily,
            fontSize: 26,
            fontWeight: 650,
            letterSpacing: '-0.02em',
            color: THEME.colors.accentBlue,
            transform: `translateY(${word2Y}px)`,
            opacity: word2Opacity,
          }}
        >
          Private.
        </span>
        <span
          style={{
            fontFamily: THEME.typography.fontFamily,
            fontSize: 26,
            fontWeight: 650,
            letterSpacing: '-0.02em',
            color: THEME.colors.textPrimary,
            transform: `translateY(${word3Y}px)`,
            opacity: word3Opacity,
          }}
        >
          Transparent.
        </span>
      </div>
 
      {/* Official GitHub & Chrome Web Store Badges */}
      <div
        style={{
          display: 'flex',
          alignItems: 'center',
          gap: 22,
          transform: `translateY(${badgesY}px) scale(${badgesScale})`,
          opacity: badgesOpacity,
          marginBottom: 24,
        }}
      >
        <GitHubBadge scale={1.05} />
        <ChromeWebStoreBadge scale={1.05} />
      </div>
 
      {/* Closing CTA */}
      <p
        style={{
          margin: 0,
          fontFamily: THEME.typography.subheadlineFontFamily,
          fontSize: 14,
          fontWeight: 500,
          letterSpacing: '0.04em',
          textTransform: 'uppercase',
          color: THEME.colors.textTertiary,
          opacity: ctaOpacity,
        }}
      >
        Available Free for Desktop & Browser
      </p>
    </div>
  );
}