"use client" import { useEffect, useState } from "react" import { useHistory } from "react-router-dom" import manImage from "../assets/man.svg" // Reverted to original import export default function Welcome() { const history = useHistory() const [animationPhase, setAnimationPhase] = useState(0) useEffect(() => { const timer1 = setTimeout(() => setAnimationPhase(1), 500) const timer2 = setTimeout(() => setAnimationPhase(2), 1500) const timer3 = setTimeout(() => setAnimationPhase(3), 2500) // const timer4 = setTimeout(() => history.push("/login"), 4000) // Uncomment if you want auto-redirect return () => { clearTimeout(timer1) clearTimeout(timer2) clearTimeout(timer3) // clearTimeout(timer4) } }, [history]) return (
Восстановление через движение
Загрузка...