"use client" import type React from "react" import { useEffect, useState } from "react" const CourseComplete: React.FC = () => { const [animationPhase, setAnimationPhase] = useState(0) useEffect(() => { const timer1 = setTimeout(() => setAnimationPhase(1), 500) const timer2 = setTimeout(() => setAnimationPhase(2), 1000) const timer3 = setTimeout(() => setAnimationPhase(3), 1500) const timer4 = setTimeout(() => setAnimationPhase(3), 2000) return () => { clearTimeout(timer1) clearTimeout(timer2) clearTimeout(timer3) clearTimeout(timer4) } }, []) return (
{/* Men Animation */}
{/* тело */}
{/* руки */}
{/* нога 1 */}
{/* нога 2 */}
{/* голова */}
{/* мяч */}
{/* Main Content */}
{/* App Name */}
= 1 ? "opacity-100" : "opacity-0"}`} >

Реабилитация

{/* Line Loader - now appears with subtitle in phase 4, and grows from left to right */}
= 3 ? '320px' : '0px', // или начальное значение maxWidth: '320px', opacity: animationPhase >= 3 ? 1 : 0, }} >
{/* Subtitle - appears with opacity transition in phase 4 */}

= 1 ? 'opacity-100' : 'opacity-0'}`}> Восстановление через движение

) } export default CourseComplete