mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🎬 Add CallToActionScene component for Call to Action (Scene 8)
Implements Scene 8 of the Portal Presentation video: - Dashboard blur and zoom out animation - Glassmorphism overlay with spring entrance - "Werde Teil der Community" title with bounce animation - URL typing animation: portal.einundzwanzig.space - Orange pulsing glow effect on URL after typing completes - EINUNDZWANZIG logo with animated glow - Audio: success-fanfare, typing, url-emphasis, logo-reveal Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import { DashboardOverviewScene } from "./scenes/portal/DashboardOverviewScene";
|
|||||||
import { MeetupShowcaseScene } from "./scenes/portal/MeetupShowcaseScene";
|
import { MeetupShowcaseScene } from "./scenes/portal/MeetupShowcaseScene";
|
||||||
import { TopMeetupsScene } from "./scenes/portal/TopMeetupsScene";
|
import { TopMeetupsScene } from "./scenes/portal/TopMeetupsScene";
|
||||||
import { ActivityFeedScene } from "./scenes/portal/ActivityFeedScene";
|
import { ActivityFeedScene } from "./scenes/portal/ActivityFeedScene";
|
||||||
|
import { CallToActionScene } from "./scenes/portal/CallToActionScene";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PortalPresentation - Main composition for the Einundzwanzig Portal presentation video
|
* PortalPresentation - Main composition for the Einundzwanzig Portal presentation video
|
||||||
@@ -193,7 +194,7 @@ export const PortalPresentation: React.FC = () => {
|
|||||||
durationInFrames={sceneFrames.callToAction.duration}
|
durationInFrames={sceneFrames.callToAction.duration}
|
||||||
premountFor={fps}
|
premountFor={fps}
|
||||||
>
|
>
|
||||||
<PlaceholderScene name="Call to Action" sceneNumber={8} />
|
<CallToActionScene />
|
||||||
</Sequence>
|
</Sequence>
|
||||||
|
|
||||||
{/* Scene 9: Outro (12s) */}
|
{/* Scene 9: Outro (12s) */}
|
||||||
|
|||||||
236
videos/src/scenes/portal/CallToActionScene.test.tsx
Normal file
236
videos/src/scenes/portal/CallToActionScene.test.tsx
Normal file
@@ -0,0 +1,236 @@
|
|||||||
|
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
||||||
|
import { render, cleanup } from "@testing-library/react";
|
||||||
|
import { CallToActionScene } from "./CallToActionScene";
|
||||||
|
|
||||||
|
/* eslint-disable @remotion/warn-native-media-tag */
|
||||||
|
// Mock Remotion hooks
|
||||||
|
vi.mock("remotion", () => ({
|
||||||
|
useCurrentFrame: vi.fn(() => 120),
|
||||||
|
useVideoConfig: vi.fn(() => ({ fps: 30, width: 1920, height: 1080 })),
|
||||||
|
interpolate: vi.fn((value, inputRange, outputRange) => {
|
||||||
|
const [inMin, inMax] = inputRange;
|
||||||
|
const [outMin, outMax] = outputRange;
|
||||||
|
let progress = (value - inMin) / (inMax - inMin);
|
||||||
|
progress = Math.max(0, Math.min(1, progress));
|
||||||
|
return outMin + progress * (outMax - outMin);
|
||||||
|
}),
|
||||||
|
spring: vi.fn(() => 1),
|
||||||
|
AbsoluteFill: vi.fn(({ children, className, style }) => (
|
||||||
|
<div data-testid="absolute-fill" className={className} style={style}>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
)),
|
||||||
|
Img: vi.fn(({ src, className, style }) => (
|
||||||
|
<img data-testid="remotion-img" src={src} className={className} style={style} />
|
||||||
|
)),
|
||||||
|
staticFile: vi.fn((path: string) => `/static/${path}`),
|
||||||
|
Sequence: vi.fn(({ children, from, durationInFrames }) => (
|
||||||
|
<div data-testid="sequence" data-from={from} data-duration={durationInFrames}>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
)),
|
||||||
|
Easing: {
|
||||||
|
out: vi.fn((fn) => fn),
|
||||||
|
cubic: vi.fn((t: number) => t),
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
// Mock @remotion/media
|
||||||
|
vi.mock("@remotion/media", () => ({
|
||||||
|
Audio: vi.fn(({ src, volume }) => (
|
||||||
|
<audio data-testid="audio" src={src} data-volume={volume} />
|
||||||
|
)),
|
||||||
|
}));
|
||||||
|
/* eslint-enable @remotion/warn-native-media-tag */
|
||||||
|
|
||||||
|
describe("CallToActionScene", () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
vi.clearAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
cleanup();
|
||||||
|
vi.resetAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders without errors", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
expect(container).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the AbsoluteFill container with correct classes", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const absoluteFill = container.querySelector('[data-testid="absolute-fill"]');
|
||||||
|
expect(absoluteFill).toBeInTheDocument();
|
||||||
|
expect(absoluteFill).toHaveClass("bg-zinc-900");
|
||||||
|
expect(absoluteFill).toHaveClass("overflow-hidden");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the wallpaper background image", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const images = container.querySelectorAll('[data-testid="remotion-img"]');
|
||||||
|
const wallpaper = Array.from(images).find((img) =>
|
||||||
|
img.getAttribute("src")?.includes("einundzwanzig-wallpaper.png")
|
||||||
|
);
|
||||||
|
expect(wallpaper).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the main title 'Werde Teil der Community'", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const title = container.querySelector("h1");
|
||||||
|
expect(title).toBeInTheDocument();
|
||||||
|
expect(title).toHaveTextContent("Werde Teil der Community");
|
||||||
|
expect(title).toHaveClass("text-5xl");
|
||||||
|
expect(title).toHaveClass("font-bold");
|
||||||
|
expect(title).toHaveClass("text-white");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the EINUNDZWANZIG logo", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const images = container.querySelectorAll('[data-testid="remotion-img"]');
|
||||||
|
const logo = Array.from(images).find((img) =>
|
||||||
|
img.getAttribute("src")?.includes("einundzwanzig-square-inverted.svg")
|
||||||
|
);
|
||||||
|
expect(logo).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the portal URL", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
// At frame 120, URL should be partially or fully typed
|
||||||
|
const urlContainer = container.querySelector(".font-mono");
|
||||||
|
expect(urlContainer).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the subtitle text", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
expect(container.textContent).toContain("Die deutschsprachige Bitcoin-Community wartet auf dich");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders audio sequences for sound effects", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const sequences = container.querySelectorAll('[data-testid="sequence"]');
|
||||||
|
// success-fanfare, typing, url-emphasis, logo-reveal = 4 sequences
|
||||||
|
expect(sequences.length).toBe(4);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("includes success-fanfare audio", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const audioElements = container.querySelectorAll('[data-testid="audio"]');
|
||||||
|
const fanfareAudio = Array.from(audioElements).find((audio) =>
|
||||||
|
audio.getAttribute("src")?.includes("success-fanfare.mp3")
|
||||||
|
);
|
||||||
|
expect(fanfareAudio).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("includes typing audio for URL animation", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const audioElements = container.querySelectorAll('[data-testid="audio"]');
|
||||||
|
const typingAudio = Array.from(audioElements).find((audio) =>
|
||||||
|
audio.getAttribute("src")?.includes("typing.mp3")
|
||||||
|
);
|
||||||
|
expect(typingAudio).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("includes url-emphasis audio", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const audioElements = container.querySelectorAll('[data-testid="audio"]');
|
||||||
|
const urlEmphasisAudio = Array.from(audioElements).find((audio) =>
|
||||||
|
audio.getAttribute("src")?.includes("url-emphasis.mp3")
|
||||||
|
);
|
||||||
|
expect(urlEmphasisAudio).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("includes logo-reveal audio", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const audioElements = container.querySelectorAll('[data-testid="audio"]');
|
||||||
|
const logoRevealAudio = Array.from(audioElements).find((audio) =>
|
||||||
|
audio.getAttribute("src")?.includes("logo-reveal.mp3")
|
||||||
|
);
|
||||||
|
expect(logoRevealAudio).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders vignette overlay with pointer-events-none", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const vignettes = container.querySelectorAll(".pointer-events-none");
|
||||||
|
expect(vignettes.length).toBeGreaterThan(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders glassmorphism overlay container", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
// Check for the rounded card with glassmorphism styling
|
||||||
|
const glassCard = container.querySelector(".rounded-3xl");
|
||||||
|
expect(glassCard).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders gradient overlay for background effect", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const gradientElements = container.querySelectorAll('[style*="radial-gradient"]');
|
||||||
|
expect(gradientElements.length).toBeGreaterThan(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the URL container with correct styling classes", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const urlContainer = container.querySelector(".rounded-xl.inline-block");
|
||||||
|
expect(urlContainer).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("applies blur filter to background", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const blurredElements = container.querySelectorAll('[style*="blur"]');
|
||||||
|
expect(blurredElements.length).toBeGreaterThan(0);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("CallToActionScene URL display", () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
vi.clearAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
cleanup();
|
||||||
|
vi.resetAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders URL container with font-mono class", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const urlContainer = container.querySelector(".font-mono");
|
||||||
|
expect(urlContainer).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("URL container is positioned within the glassmorphism card", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const glassCard = container.querySelector(".rounded-3xl");
|
||||||
|
expect(glassCard).toBeInTheDocument();
|
||||||
|
const urlContainer = glassCard?.querySelector(".font-mono");
|
||||||
|
expect(urlContainer).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders the correct portal URL text", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
// At frame 120 (default mock), URL should contain portal.einundzwanzig.space
|
||||||
|
expect(container.textContent).toContain("portal.einundzwanzig.space");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe("CallToActionScene logo glow animation", () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
vi.clearAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
cleanup();
|
||||||
|
vi.resetAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders logo with drop-shadow glow effect", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const glowElements = container.querySelectorAll('[style*="drop-shadow"]');
|
||||||
|
expect(glowElements.length).toBeGreaterThan(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("renders glow ring around the logo", () => {
|
||||||
|
const { container } = render(<CallToActionScene />);
|
||||||
|
const glowRings = container.querySelectorAll(".rounded-full");
|
||||||
|
expect(glowRings.length).toBeGreaterThan(0);
|
||||||
|
});
|
||||||
|
});
|
||||||
309
videos/src/scenes/portal/CallToActionScene.tsx
Normal file
309
videos/src/scenes/portal/CallToActionScene.tsx
Normal file
@@ -0,0 +1,309 @@
|
|||||||
|
import {
|
||||||
|
AbsoluteFill,
|
||||||
|
useCurrentFrame,
|
||||||
|
useVideoConfig,
|
||||||
|
interpolate,
|
||||||
|
spring,
|
||||||
|
Img,
|
||||||
|
staticFile,
|
||||||
|
Sequence,
|
||||||
|
} from "remotion";
|
||||||
|
import { Audio } from "@remotion/media";
|
||||||
|
|
||||||
|
// Spring configurations
|
||||||
|
const SMOOTH = { damping: 200 };
|
||||||
|
const SNAPPY = { damping: 15, stiffness: 80 };
|
||||||
|
const BOUNCY = { damping: 12 };
|
||||||
|
|
||||||
|
// URL to display
|
||||||
|
const PORTAL_URL = "portal.einundzwanzig.space";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CallToActionScene - Scene 8: Call to Action (12 seconds / 360 frames @ 30fps)
|
||||||
|
*
|
||||||
|
* Animation sequence:
|
||||||
|
* 1. Dashboard blur + slight zoom out effect
|
||||||
|
* 2. Glassmorphism overlay fades in
|
||||||
|
* 3. "Werde Teil der Community" - spring entrance
|
||||||
|
* 4. URL types out: `portal.einundzwanzig.space`
|
||||||
|
* 5. URL pulses with orange glow
|
||||||
|
* 6. EINUNDZWANZIG Logo appears center with glow
|
||||||
|
* 7. Audio: success-fanfare
|
||||||
|
*/
|
||||||
|
export const CallToActionScene: React.FC = () => {
|
||||||
|
const frame = useCurrentFrame();
|
||||||
|
const { fps } = useVideoConfig();
|
||||||
|
|
||||||
|
// Background blur and zoom out animation (0-60 frames)
|
||||||
|
const blurSpring = spring({
|
||||||
|
frame,
|
||||||
|
fps,
|
||||||
|
config: SMOOTH,
|
||||||
|
});
|
||||||
|
|
||||||
|
const backgroundBlur = interpolate(blurSpring, [0, 1], [0, 8]);
|
||||||
|
const backgroundScale = interpolate(blurSpring, [0, 1], [1, 0.95]);
|
||||||
|
const backgroundOpacity = interpolate(blurSpring, [0, 1], [0.3, 0.15]);
|
||||||
|
|
||||||
|
// Glassmorphism overlay entrance (delayed 15 frames)
|
||||||
|
const overlayDelay = 15;
|
||||||
|
const overlaySpring = spring({
|
||||||
|
frame: frame - overlayDelay,
|
||||||
|
fps,
|
||||||
|
config: SNAPPY,
|
||||||
|
});
|
||||||
|
const overlayOpacity = interpolate(overlaySpring, [0, 1], [0, 1]);
|
||||||
|
|
||||||
|
// Title entrance (delayed 30 frames)
|
||||||
|
const titleDelay = Math.floor(1 * fps);
|
||||||
|
const titleSpring = spring({
|
||||||
|
frame: frame - titleDelay,
|
||||||
|
fps,
|
||||||
|
config: BOUNCY,
|
||||||
|
});
|
||||||
|
const titleOpacity = interpolate(titleSpring, [0, 1], [0, 1]);
|
||||||
|
const titleY = interpolate(titleSpring, [0, 1], [50, 0]);
|
||||||
|
const titleScale = interpolate(titleSpring, [0, 1], [0.8, 1]);
|
||||||
|
|
||||||
|
// Logo entrance (delayed 45 frames)
|
||||||
|
const logoDelay = Math.floor(1.5 * fps);
|
||||||
|
const logoSpring = spring({
|
||||||
|
frame: frame - logoDelay,
|
||||||
|
fps,
|
||||||
|
config: BOUNCY,
|
||||||
|
});
|
||||||
|
const logoOpacity = interpolate(logoSpring, [0, 1], [0, 1]);
|
||||||
|
const logoScale = interpolate(logoSpring, [0, 1], [0.5, 1]);
|
||||||
|
|
||||||
|
// Logo glow pulse
|
||||||
|
const glowIntensity = interpolate(
|
||||||
|
Math.sin((frame - logoDelay) * 0.08),
|
||||||
|
[-1, 1],
|
||||||
|
[0.4, 1]
|
||||||
|
);
|
||||||
|
|
||||||
|
// URL typing animation (delayed 2.5 seconds)
|
||||||
|
const urlDelay = Math.floor(2.5 * fps);
|
||||||
|
const urlTypingProgress = Math.max(
|
||||||
|
0,
|
||||||
|
Math.min(1, (frame - urlDelay) / (1.5 * fps))
|
||||||
|
);
|
||||||
|
const displayedUrlLength = Math.floor(urlTypingProgress * PORTAL_URL.length);
|
||||||
|
const displayedUrl = PORTAL_URL.slice(0, displayedUrlLength);
|
||||||
|
const showCursor = frame >= urlDelay && urlTypingProgress < 1;
|
||||||
|
|
||||||
|
// URL container entrance
|
||||||
|
const urlContainerSpring = spring({
|
||||||
|
frame: frame - Math.floor(2.3 * fps),
|
||||||
|
fps,
|
||||||
|
config: SNAPPY,
|
||||||
|
});
|
||||||
|
const urlContainerOpacity = interpolate(urlContainerSpring, [0, 1], [0, 1]);
|
||||||
|
const urlContainerY = interpolate(urlContainerSpring, [0, 1], [30, 0]);
|
||||||
|
|
||||||
|
// URL pulse after typing complete
|
||||||
|
const urlPulseActive = frame > urlDelay + 1.5 * fps;
|
||||||
|
const urlPulseIntensity = urlPulseActive
|
||||||
|
? interpolate(Math.sin((frame - urlDelay - 1.5 * fps) * 0.1), [-1, 1], [0.6, 1])
|
||||||
|
: 0;
|
||||||
|
|
||||||
|
// Subtitle entrance
|
||||||
|
const subtitleDelay = Math.floor(3.5 * fps);
|
||||||
|
const subtitleSpring = spring({
|
||||||
|
frame: frame - subtitleDelay,
|
||||||
|
fps,
|
||||||
|
config: SNAPPY,
|
||||||
|
});
|
||||||
|
const subtitleOpacity = interpolate(subtitleSpring, [0, 1], [0, 1]);
|
||||||
|
const subtitleY = interpolate(subtitleSpring, [0, 1], [20, 0]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<AbsoluteFill className="bg-zinc-900 overflow-hidden">
|
||||||
|
{/* Audio: success-fanfare */}
|
||||||
|
<Sequence from={titleDelay} durationInFrames={Math.floor(4 * fps)}>
|
||||||
|
<Audio src={staticFile("sfx/success-fanfare.mp3")} volume={0.6} />
|
||||||
|
</Sequence>
|
||||||
|
|
||||||
|
{/* Audio: typing for URL */}
|
||||||
|
<Sequence from={urlDelay} durationInFrames={Math.floor(1.5 * fps)}>
|
||||||
|
<Audio src={staticFile("sfx/typing.mp3")} volume={0.3} />
|
||||||
|
</Sequence>
|
||||||
|
|
||||||
|
{/* Audio: url-emphasis when typing complete */}
|
||||||
|
<Sequence
|
||||||
|
from={urlDelay + Math.floor(1.6 * fps)}
|
||||||
|
durationInFrames={Math.floor(1 * fps)}
|
||||||
|
>
|
||||||
|
<Audio src={staticFile("sfx/url-emphasis.mp3")} volume={0.5} />
|
||||||
|
</Sequence>
|
||||||
|
|
||||||
|
{/* Audio: logo reveal */}
|
||||||
|
<Sequence from={logoDelay} durationInFrames={Math.floor(1 * fps)}>
|
||||||
|
<Audio src={staticFile("sfx/logo-reveal.mp3")} volume={0.4} />
|
||||||
|
</Sequence>
|
||||||
|
|
||||||
|
{/* Blurred Wallpaper Background */}
|
||||||
|
<div
|
||||||
|
className="absolute inset-0"
|
||||||
|
style={{
|
||||||
|
filter: `blur(${backgroundBlur}px)`,
|
||||||
|
transform: `scale(${backgroundScale})`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Img
|
||||||
|
src={staticFile("einundzwanzig-wallpaper.png")}
|
||||||
|
className="absolute inset-0 w-full h-full object-cover"
|
||||||
|
style={{ opacity: backgroundOpacity }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Dark gradient overlay */}
|
||||||
|
<div
|
||||||
|
className="absolute inset-0"
|
||||||
|
style={{
|
||||||
|
background:
|
||||||
|
"radial-gradient(circle at 50% 50%, rgba(24, 24, 27, 0.7) 0%, rgba(24, 24, 27, 0.95) 100%)",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* Glassmorphism Overlay */}
|
||||||
|
<div
|
||||||
|
className="absolute inset-0 flex items-center justify-center"
|
||||||
|
style={{
|
||||||
|
opacity: overlayOpacity,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="relative w-full max-w-2xl mx-8 rounded-3xl p-12 text-center"
|
||||||
|
style={{
|
||||||
|
backgroundColor: "rgba(39, 39, 42, 0.4)",
|
||||||
|
backdropFilter: "blur(20px)",
|
||||||
|
border: "1px solid rgba(247, 147, 26, 0.2)",
|
||||||
|
boxShadow: `
|
||||||
|
0 0 ${60 * glowIntensity}px rgba(247, 147, 26, 0.15),
|
||||||
|
0 25px 50px -12px rgba(0, 0, 0, 0.5),
|
||||||
|
inset 0 0 60px rgba(247, 147, 26, 0.05)
|
||||||
|
`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{/* Title */}
|
||||||
|
<h1
|
||||||
|
className="text-5xl font-bold text-white mb-8"
|
||||||
|
style={{
|
||||||
|
opacity: titleOpacity,
|
||||||
|
transform: `translateY(${titleY}px) scale(${titleScale})`,
|
||||||
|
textShadow: "0 2px 20px rgba(0, 0, 0, 0.5)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Werde Teil der Community
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
{/* EINUNDZWANZIG Logo */}
|
||||||
|
<div
|
||||||
|
className="flex justify-center mb-10"
|
||||||
|
style={{
|
||||||
|
opacity: logoOpacity,
|
||||||
|
transform: `scale(${logoScale})`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="relative"
|
||||||
|
style={{
|
||||||
|
filter: `drop-shadow(0 0 ${30 * glowIntensity}px rgba(247, 147, 26, 0.6))`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Img
|
||||||
|
src={staticFile("einundzwanzig-square-inverted.svg")}
|
||||||
|
style={{
|
||||||
|
width: 120,
|
||||||
|
height: 120,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
{/* Glow ring */}
|
||||||
|
<div
|
||||||
|
className="absolute inset-0 rounded-full"
|
||||||
|
style={{
|
||||||
|
background: `radial-gradient(circle, rgba(247, 147, 26, ${0.3 * glowIntensity}) 0%, transparent 70%)`,
|
||||||
|
transform: "scale(1.5)",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* URL Container */}
|
||||||
|
<div
|
||||||
|
className="mb-6"
|
||||||
|
style={{
|
||||||
|
opacity: urlContainerOpacity,
|
||||||
|
transform: `translateY(${urlContainerY}px)`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="inline-block px-8 py-4 rounded-xl"
|
||||||
|
style={{
|
||||||
|
backgroundColor: "rgba(24, 24, 27, 0.8)",
|
||||||
|
border: urlPulseActive
|
||||||
|
? `2px solid rgba(247, 147, 26, ${0.5 + urlPulseIntensity * 0.5})`
|
||||||
|
: "2px solid rgba(63, 63, 70, 0.5)",
|
||||||
|
boxShadow: urlPulseActive
|
||||||
|
? `0 0 ${30 * urlPulseIntensity}px rgba(247, 147, 26, 0.4), inset 0 0 ${20 * urlPulseIntensity}px rgba(247, 147, 26, 0.1)`
|
||||||
|
: "none",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
className="text-3xl font-mono font-bold"
|
||||||
|
style={{
|
||||||
|
color: urlPulseActive ? "#f7931a" : "#a1a1aa",
|
||||||
|
textShadow: urlPulseActive
|
||||||
|
? `0 0 ${15 * urlPulseIntensity}px rgba(247, 147, 26, 0.6)`
|
||||||
|
: "none",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{displayedUrl}
|
||||||
|
{showCursor && (
|
||||||
|
<span
|
||||||
|
className="inline-block ml-1"
|
||||||
|
style={{
|
||||||
|
width: 3,
|
||||||
|
height: "1em",
|
||||||
|
backgroundColor: "#f7931a",
|
||||||
|
animation: "none",
|
||||||
|
opacity: Math.floor(frame * 0.15) % 2 === 0 ? 1 : 0,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Subtitle */}
|
||||||
|
<p
|
||||||
|
className="text-xl text-zinc-400"
|
||||||
|
style={{
|
||||||
|
opacity: subtitleOpacity,
|
||||||
|
transform: `translateY(${subtitleY}px)`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Die deutschsprachige Bitcoin-Community wartet auf dich
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Ambient glow effects */}
|
||||||
|
<div
|
||||||
|
className="absolute inset-0 pointer-events-none"
|
||||||
|
style={{
|
||||||
|
background: `radial-gradient(ellipse at 50% 30%, rgba(247, 147, 26, ${0.08 * glowIntensity}) 0%, transparent 50%)`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* Vignette overlay */}
|
||||||
|
<div
|
||||||
|
className="absolute inset-0 pointer-events-none"
|
||||||
|
style={{
|
||||||
|
boxShadow: "inset 0 0 200px 80px rgba(0, 0, 0, 0.7)",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</AbsoluteFill>
|
||||||
|
);
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user