From 205814043943849e9a8418a0118988a7c033f40c Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Sat, 24 Jan 2026 13:26:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=AC=20Add=20MeetupShowcaseScene=20comp?= =?UTF-8?q?onent=20for=20Meine=20Meetups=20(Scene=204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements the meetup showcase scene with: - Featured meetup card with 3D perspective and shadow effects - Date/time display with calendar and clock icons - Upcoming meetups list (Memmingen, Friedrichshafen) - Action buttons for calendar integration - Staggered animations with spring physics - Audio cues for slide-in and badge appearances Co-Authored-By: Claude Opus 4.5 --- videos/src/PortalPresentation.tsx | 3 +- .../portal/MeetupShowcaseScene.test.tsx | 254 ++++++++ .../src/scenes/portal/MeetupShowcaseScene.tsx | 567 ++++++++++++++++++ 3 files changed, 823 insertions(+), 1 deletion(-) create mode 100644 videos/src/scenes/portal/MeetupShowcaseScene.test.tsx create mode 100644 videos/src/scenes/portal/MeetupShowcaseScene.tsx diff --git a/videos/src/PortalPresentation.tsx b/videos/src/PortalPresentation.tsx index 0d1aa13..8eae3ad 100644 --- a/videos/src/PortalPresentation.tsx +++ b/videos/src/PortalPresentation.tsx @@ -3,6 +3,7 @@ import { inconsolataFont } from "./fonts/inconsolata"; import { PortalIntroScene } from "./scenes/portal/PortalIntroScene"; import { PortalTitleScene } from "./scenes/portal/PortalTitleScene"; import { DashboardOverviewScene } from "./scenes/portal/DashboardOverviewScene"; +import { MeetupShowcaseScene } from "./scenes/portal/MeetupShowcaseScene"; /** * PortalPresentation - Main composition for the Einundzwanzig Portal presentation video @@ -154,7 +155,7 @@ export const PortalPresentation: React.FC = () => { durationInFrames={sceneFrames.meineMeetups.duration} premountFor={fps} > - + {/* Scene 5: Top Länder (12s) */} diff --git a/videos/src/scenes/portal/MeetupShowcaseScene.test.tsx b/videos/src/scenes/portal/MeetupShowcaseScene.test.tsx new file mode 100644 index 0000000..143c608 --- /dev/null +++ b/videos/src/scenes/portal/MeetupShowcaseScene.test.tsx @@ -0,0 +1,254 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"; +import { render, cleanup } from "@testing-library/react"; +import { MeetupShowcaseScene } from "./MeetupShowcaseScene"; + +/* 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 }) => ( +