"use client" import type React from "react" import { useEffect, useState } from "react" // import { useIonRouter } from '@ionic/react'; const CourseComplete: React.FC = () => { const [animationPhase, setAnimationPhase] = useState(0) useEffect(() => { const timer1 = setTimeout(() => setAnimationPhase(1), 500) const timer2 = setTimeout(() => setAnimationPhase(2), 1500) const timer3 = setTimeout(() => setAnimationPhase(3), 2000) const timer4 = setTimeout(() => setAnimationPhase(4), 2500) return () => { clearTimeout(timer1) clearTimeout(timer2) clearTimeout(timer3) clearTimeout(timer4) } }, []) // const router = useIonRouter() // useEffect(() => { // const timer = setTimeout(() => { // router.push("/home", "forward") // }, 3500) // Задержка 3 секунды // return () => clearTimeout(timer) // }, [router]) return (
{/* Men Animation */}
{/* тело */}
= 1 ? "opacity-100 scale-100 top-[24%]" : "opacity-0 scale-0 top-[10%]"} `}>
{/* руки */}
= 1 ? "opacity-100 scale-100 top-[14%]" : "opacity-0 scale-0 top-[7%]"} ${animationPhase >= 3 ? "opacity-100 rotate-20" : "opacity-100 rotate-0"}`} >
{/* нога 1 */}
= 1 ? "opacity-100 scale-100 top-[34%] left-[37%]" : "opacity-0 scale-0 top-[15%] left-[47%]"} ${animationPhase >= 3 ? "top-[0%] right-[47%] " : "top-[15%] right-[47%] "}`}>
{/* нога 2 */}
= 1 ? "opacity-100 scale-100 top-[34%] right-[37%] " : "opacity-0 scale-0 top-[15%] right-[47%] "} `}>
{/* голова */}
= 1 ? "opacity-100 scale-100 top-[14%] left-[41%] " : "opacity-0 scale-0 top-[20%] right-[40%] "} `}>
{/* мяч */}
= 2 ? "opacity-100 scale-100 top-[14%] left-[22%] " : "opacity-0 scale-0 -top-[20%] right-[40%] "} ${animationPhase >= 3 ? "scale-[90%]" : "scale-100"} {/* ${animationPhase >= 4 ? "scale-[3000%]" : "scale-100"} */} ` } >
{/* Main Content */}
= 1 ? "opacity-100" : "opacity-0"}`} >

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

= 2 ? '320px' : '0px', maxWidth: '320px', opacity: animationPhase >= 2 ? 1 : 0, }} >

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

) } export default CourseComplete