From 04ccf917f02028dce8a39aff6a7541efbb64e63d Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Sat, 24 Jan 2026 13:12:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=AC=20Add=20PortalIntroScene=20compone?= =?UTF-8?q?nt=20for=20Logo=20Reveal=20(Scene=201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement the first scene of the Portal presentation video (6 seconds): - AnimatedLogo scales from 0 to 100% with spring animation - Wallpaper background with zoom effect (1.2 → 1.0 scale) - Bitcoin particle effects in the background - Pulsing glow effect around the logo - Audio integration: logo-whoosh at start, logo-reveal when logo appears - Title "EINUNDZWANZIG" and subtitle "Das Portal" with staggered entrance - Vignette overlay for cinematic depth Co-Authored-By: Claude Opus 4.5 --- videos/src/PortalPresentation.tsx | 3 +- .../scenes/portal/PortalIntroScene.test.tsx | 168 +++++++++++++++ videos/src/scenes/portal/PortalIntroScene.tsx | 191 ++++++++++++++++++ 3 files changed, 361 insertions(+), 1 deletion(-) create mode 100644 videos/src/scenes/portal/PortalIntroScene.test.tsx create mode 100644 videos/src/scenes/portal/PortalIntroScene.tsx diff --git a/videos/src/PortalPresentation.tsx b/videos/src/PortalPresentation.tsx index 39763cf..948d3f8 100644 --- a/videos/src/PortalPresentation.tsx +++ b/videos/src/PortalPresentation.tsx @@ -1,5 +1,6 @@ import { AbsoluteFill, Sequence, useVideoConfig, Img, staticFile } from "remotion"; import { inconsolataFont } from "./fonts/inconsolata"; +import { PortalIntroScene } from "./scenes/portal/PortalIntroScene"; /** * PortalPresentation - Main composition for the Einundzwanzig Portal presentation video @@ -124,7 +125,7 @@ export const PortalPresentation: React.FC = () => { durationInFrames={sceneFrames.logoReveal.duration} premountFor={fps} > - + {/* Scene 2: Portal Title (4s) */} diff --git a/videos/src/scenes/portal/PortalIntroScene.test.tsx b/videos/src/scenes/portal/PortalIntroScene.test.tsx new file mode 100644 index 0000000..03dcc20 --- /dev/null +++ b/videos/src/scenes/portal/PortalIntroScene.test.tsx @@ -0,0 +1,168 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"; +import { render, cleanup } from "@testing-library/react"; +import { PortalIntroScene } from "./PortalIntroScene"; + +/* eslint-disable @remotion/warn-native-media-tag */ +// Mock Remotion hooks +vi.mock("remotion", () => ({ + useCurrentFrame: vi.fn(() => 60), + useVideoConfig: vi.fn(() => ({ fps: 30, width: 1920, height: 1080 })), + interpolate: vi.fn((value, inputRange, outputRange, options) => { + const [inMin, inMax] = inputRange; + const [outMin, outMax] = outputRange; + let progress = (value - inMin) / (inMax - inMin); + if (options?.extrapolateLeft === "clamp") { + progress = Math.max(0, progress); + } + if (options?.extrapolateRight === "clamp") { + progress = Math.min(1, progress); + } + return outMin + progress * (outMax - outMin); + }), + spring: vi.fn(() => 1), + AbsoluteFill: vi.fn(({ children, className, style }) => ( +
+ {children} +
+ )), + Img: vi.fn(({ src, className, style }) => ( + + )), + staticFile: vi.fn((path: string) => `/static/${path}`), + Sequence: vi.fn(({ children, from, durationInFrames }) => ( +
+ {children} +
+ )), + Easing: { + out: vi.fn((fn) => fn), + cubic: vi.fn((t: number) => t), + }, +})); + +// Mock @remotion/media +vi.mock("@remotion/media", () => ({ + Audio: vi.fn(({ src, volume }) => ( +