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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 | 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 3x 3x 3x 2x 1x 1x 1x 1x 1x 1x 1x 1x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x | import React from 'react';
import {
interpolate,
spring,
useCurrentFrame,
useVideoConfig,
Img,
} from 'remotion';
import { THEME } from '../Theme';
import { GlassWindow } from '../Components';
import { LiveTextCursor } from '../BrandMarks';
import captureModeImage from '../Assets/CaptureModeView.png';
import editorLiveTextImage from '../Assets/EditorLiveTextView.png';
import searchablePdfImage from '../Assets/SearchablePdfExportView.png';
/**
* Scene 2: Feature Walkthrough (Frames 121–300 | 2.0s – 5.0s, 180 frames total).
* Smoothly demonstrates:
* 1. Area Selection & Window Snapping (local frames 0–60)
* 2. Offline Live Text OCR text selection and clipboard copy (local frames 60–120)
* 3. Searchable PDF Export Dialog with harmonized typography (local frames 120–180)
*/
export function DesktopSceneFeatures(): React.JSX.Element {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
// Scene Entrance Spring
const sceneSpring = spring({
frame,
fps,
config: THEME.springs.hero,
});
const sceneOpacity = interpolate(sceneSpring, [0, 0.25], [0, 1]);
const sceneScale = interpolate(sceneSpring, [0, 1], [0.95, 1.0]);
// Stage Breakdown:
// Stage 1 (0 <= frame < 60): Capture Modes (Area Selection & Window Snapping)
// Stage 2 (60 <= frame < 120): Live Text OCR
// Stage 3 (120 <= frame < 180): Searchable PDF Export
const isStage1 = frame < 60;
const isStage2 = frame >= 60 && frame < 120;
const isStage3 = frame >= 120;
// Crossfade between images
const crossfadeStage2 = interpolate(frame, [56, 66], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
const crossfadeStage3 = interpolate(frame, [116, 126], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
// Dynamic Camera Movement
// Gentle pan & zoom per stage
let cameraZoom: number;
let cameraPanY: number;
let cameraPanX = 0;
if (isStage1) {
const p1 = interpolate(frame, [0, 60], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
cameraZoom = 1.0 + p1 * 0.05;
cameraPanY = -p1 * 15;
} else if (isStage2) {
const p2 = interpolate(frame, [60, 120], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
cameraZoom = 1.05 + p2 * 0.06;
cameraPanX = -p2 * 20;
cameraPanY = -15 - p2 * 10;
} else {
const p3 = interpolate(frame, [120, 180], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
cameraZoom = 1.08 - p3 * 0.04;
cameraPanX = p3 * 25;
cameraPanY = -20 + p3 * 10;
}
// Header Typography Animation per stage
const headerSpring1 = spring({
frame: frame - 4,
fps,
config: THEME.springs.snappy,
});
const headerSpring2 = spring({
frame: frame - 64,
fps,
config: THEME.springs.snappy,
});
const headerSpring3 = spring({
frame: frame - 124,
fps,
config: THEME.springs.snappy,
});
// Live Text Cursor Movement (Stage 2: frames 65 - 115)
const cursorProgress = interpolate(frame, [68, 100], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
const cursorX = interpolate(cursorProgress, [0, 1], [590, 840]);
const cursorY = interpolate(cursorProgress, [0, 1], [480, 480]);
// Clipboard Copied Pill Bounce (Stage 2: frames 92 - 120)
const pillSpring = spring({
frame: frame - 92,
fps,
config: THEME.springs.hero,
});
const pillScale = interpolate(pillSpring, [0, 1], [0.75, 1.0]);
const pillOpacity = interpolate(pillSpring, [0, 0.4], [0, 1]);
// Stage 1 Capture Card Highlight Glow
const highlightGlow1 = interpolate(frame, [15, 35, 55], [0, 1, 0.6], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
// Exit transition to Scene 3 (frames 165 - 180)
const exitProgress = interpolate(frame, [165, 180], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
});
const exitZoom = 1 + exitProgress * 0.06;
const exitFade = 1 - exitProgress;
return (
<div
style={{
position: 'absolute',
inset: 0,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
transform: `scale(${sceneScale * exitZoom})`,
opacity: sceneOpacity * exitFade,
}}
>
{/* Top Dynamic Header Pill & Feature Name */}
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginBottom: 24,
height: 82,
justifyContent: 'center',
zIndex: 10,
}}
>
{/* Stage 1 Header */}
{isStage1 && (
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
transform: `translateY(${interpolate(headerSpring1, [0, 1], [16, 0])}px)`,
opacity: interpolate(headerSpring1, [0, 0.4], [0, 1]),
}}
>
<div
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 8,
padding: '5px 14px',
backgroundColor: 'rgba(10, 132, 255, 0.14)',
border: `1.5px solid ${THEME.colors.accentBlue}`,
borderRadius: 9999,
marginBottom: 8,
}}
>
<div
style={{
width: 7,
height: 7,
borderRadius: '50%',
backgroundColor: THEME.colors.accentBlue,
boxShadow: `0 0 8px ${THEME.colors.accentBlue}`,
}}
/>
<span
style={{
fontFamily: THEME.typography.fontFamily,
fontSize: 12,
fontWeight: 650,
letterSpacing: '0.06em',
textTransform: 'uppercase',
color: THEME.colors.accentBlue,
}}
>
Precision Multi-Mode Capture
</span>
</div>
<h2
style={{
margin: 0,
fontFamily: THEME.typography.fontFamily,
fontSize: 28,
fontWeight: 650,
letterSpacing: '-0.02em',
color: THEME.colors.textPrimary,
}}
>
Area Selection • Window Snapping • Full Display
</h2>
</div>
)}
{/* Stage 2 Header */}
{isStage2 && (
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
transform: `translateY(${interpolate(headerSpring2, [0, 1], [16, 0])}px)`,
opacity: interpolate(headerSpring2, [0, 0.4], [0, 1]),
}}
>
<div
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 8,
padding: '5px 14px',
backgroundColor: 'rgba(48, 209, 88, 0.14)',
border: `1.5px solid ${THEME.colors.accentGreen}`,
borderRadius: 9999,
marginBottom: 8,
}}
>
<div
style={{
width: 7,
height: 7,
borderRadius: '50%',
backgroundColor: THEME.colors.accentGreen,
boxShadow: `0 0 8px ${THEME.colors.accentGreen}`,
}}
/>
<span
style={{
fontFamily: THEME.typography.fontFamily,
fontSize: 12,
fontWeight: 650,
letterSpacing: '0.06em',
textTransform: 'uppercase',
color: THEME.colors.accentGreen,
}}
>
Offline Live Text OCR
</span>
</div>
<h2
style={{
margin: 0,
fontFamily: THEME.typography.fontFamily,
fontSize: 28,
fontWeight: 650,
letterSpacing: '-0.02em',
color: THEME.colors.textPrimary,
}}
>
Interactive Text Selection & Instant Copy
</h2>
</div>
)}
{/* Stage 3 Header */}
{isStage3 && (
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
transform: `translateY(${interpolate(headerSpring3, [0, 1], [16, 0])}px)`,
opacity: interpolate(headerSpring3, [0, 0.4], [0, 1]),
}}
>
<div
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 8,
padding: '5px 14px',
backgroundColor: 'rgba(100, 210, 255, 0.14)',
border: `1.5px solid ${THEME.colors.accentCyan}`,
borderRadius: 9999,
marginBottom: 8,
}}
>
<div
style={{
width: 7,
height: 7,
borderRadius: '50%',
backgroundColor: THEME.colors.accentCyan,
boxShadow: `0 0 8px ${THEME.colors.accentCyan}`,
}}
/>
<span
style={{
fontFamily: THEME.typography.fontFamily,
fontSize: 12,
fontWeight: 650,
letterSpacing: '0.06em',
textTransform: 'uppercase',
color: THEME.colors.accentCyan,
}}
>
Searchable PDF Export
</span>
</div>
<h2
style={{
margin: 0,
fontFamily: THEME.typography.fontFamily,
fontSize: 28,
fontWeight: 650,
letterSpacing: '-0.02em',
color: THEME.colors.textPrimary,
}}
>
Vector Export with Embedded OCR Text Layer
</h2>
</div>
)}
</div>
{/* Main Window Frame with Stage Crossfades */}
<div
style={{
position: 'relative',
zIndex: 5,
transform: `scale(${cameraZoom}) translate(${cameraPanX}px, ${cameraPanY}px)`,
transition: 'transform 0.1s ease-out',
}}
>
<GlassWindow width={1340} height={700}>
<div
style={{
position: 'relative',
width: '100%',
height: '100%',
overflow: 'hidden',
}}
>
{/* Layer 1: Capture Mode View */}
<div
style={{
position: 'absolute',
inset: 0,
opacity: 1 - crossfadeStage2,
}}
>
<Img
src={captureModeImage}
alt='Capture Modes'
style={{
width: '100%',
height: '100%',
objectFit: 'cover',
display: 'block',
}}
/>
{/* Highlight callout on Select Area card */}
{isStage1 && (
<div
style={{
position: 'absolute',
top: '20%',
left: '21%',
width: '27%',
height: '24%',
borderRadius: 14,
border: `2px solid ${THEME.colors.accentBlue}`,
boxShadow: `0 0 24px rgba(10, 132, 255, ${highlightGlow1 * 0.6})`,
pointerEvents: 'none',
opacity: highlightGlow1,
}}
/>
)}
{/* Highlight callout on Window card */}
{isStage1 && (
<div
style={{
position: 'absolute',
top: '20%',
left: '50%',
width: '27%',
height: '24%',
borderRadius: 14,
border: `2px solid ${THEME.colors.accentBlue}`,
boxShadow: `0 0 24px rgba(10, 132, 255, ${highlightGlow1 * 0.6})`,
pointerEvents: 'none',
opacity: highlightGlow1,
}}
/>
)}
</div>
{/* Layer 2: Editor Live Text View */}
<div
style={{
position: 'absolute',
inset: 0,
opacity: crossfadeStage2 * (1 - crossfadeStage3),
}}
>
<Img
src={editorLiveTextImage}
alt='Editor Live Text OCR'
style={{
width: '100%',
height: '100%',
objectFit: 'cover',
display: 'block',
}}
/>
{/* Animated Live Text Cursor */}
{isStage2 && (
<LiveTextCursor
x={cursorX}
y={cursorY}
selecting={frame >= 80}
/>
)}
{/* Floating Pill: Copied to Clipboard */}
{isStage2 && frame >= 92 && (
<div
style={{
position: 'absolute',
top: '40%',
left: '50%',
transform: `translate(-50%, -50%) scale(${pillScale})`,
opacity: pillOpacity,
backgroundColor: '#14151E',
border: `1.5px solid ${THEME.colors.accentBlue}`,
borderRadius: 9999,
padding: '10px 22px',
display: 'flex',
alignItems: 'center',
gap: 10,
boxShadow:
'0 12px 32px rgba(0,0,0,0.7), 0 0 20px rgba(10, 132, 255, 0.4)',
zIndex: 100,
}}
>
<svg
width='18'
height='18'
viewBox='0 0 24 24'
fill='none'
stroke={THEME.colors.accentBlue}
strokeWidth='2.5'
strokeLinecap='round'
strokeLinejoin='round'
>
<polyline points='20 6 9 17 4 12' />
</svg>
<span
style={{
fontFamily: THEME.typography.fontFamily,
fontSize: 14,
fontWeight: 650,
color: THEME.colors.textPrimary,
}}
>
Copied to Clipboard
</span>
</div>
)}
</div>
{/* Layer 3: Searchable PDF Export View */}
<div
style={{
position: 'absolute',
inset: 0,
opacity: crossfadeStage3,
}}
>
<Img
src={searchablePdfImage}
alt='Searchable PDF Export'
style={{
width: '100%',
height: '100%',
objectFit: 'cover',
display: 'block',
}}
/>
</div>
</div>
</GlassWindow>
</div>
</div>
);
}
|