From 5fe779b1dc1ae732152859882c0508270d6c633f Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Sat, 24 Jan 2026 13:45:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=AC=20Add=20PortalOutroScene=20compone?= =?UTF-8?q?nt=20for=20Outro=20(Scene=209)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Implement 12-second outro scene with wallpaper background - Add horizontal EINUNDZWANZIG logo with glow pulse effect - Include BitcoinEffect particles throughout the scene - Add "EINUNDZWANZIG" title and subtitle animations - Include final-chime audio effect at logo appearance - Add final 2-second fade out for smooth ending - Include comprehensive test suite with 21 tests Co-Authored-By: Claude Opus 4.5 --- .../scenes/portal/PortalOutroScene.test.tsx | 262 ++++++++++++++++++ videos/src/scenes/portal/PortalOutroScene.tsx | 218 +++++++++++++++ 2 files changed, 480 insertions(+) create mode 100644 videos/src/scenes/portal/PortalOutroScene.test.tsx create mode 100644 videos/src/scenes/portal/PortalOutroScene.tsx diff --git a/videos/src/scenes/portal/PortalOutroScene.test.tsx b/videos/src/scenes/portal/PortalOutroScene.test.tsx new file mode 100644 index 0000000..b30a8e4 --- /dev/null +++ b/videos/src/scenes/portal/PortalOutroScene.test.tsx @@ -0,0 +1,262 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"; +import { render, cleanup } from "@testing-library/react"; +import { PortalOutroScene } from "./PortalOutroScene"; + +/* eslint-disable @remotion/warn-native-media-tag */ +// Mock Remotion hooks +vi.mock("remotion", () => ({ + useCurrentFrame: vi.fn(() => 90), + 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 }) => ( +