'use client'; import React, { useState, useEffect } from 'react'; import { SonicLogo } from './SonicLogo'; import { sounds } from '@/src/lib/soundEffects'; interface SonicSplashIntroProps { onComplete: () => void; } export function SonicSplashIntro({ onComplete }: SonicSplashIntroProps) { const [isFadingOut, setIsFadingOut] = useState(false); useEffect(() => { // Play boot sound chime on load sounds.playBootSound(); // After full animation cycle plays (S draws in, then speed lines oscillate), fade out smoothly const timerFade = setTimeout(() => { setIsFadingOut(true); }, 3200); // Complete handoff to active AI const timerDone = setTimeout(() => { onComplete(); }, 3750); return () => { clearTimeout(timerFade); clearTimeout(timerDone); }; }, [onComplete]); return (
{/* Ambient subtle glow */}
{/* Centered Minimalist Logo & Brand */}

SONIC

); }