import React, {useEffect, useState, useRef} from "react"; import { Link } from "react-router-dom"; import logo from "../../assets/img/big-logo.svg"; import firstPic from '../../assets/img/undraw_professor_-8-lrt.svg'; import secondPic from '../../assets/img/undraw_quiz_nlyh.svg'; import thirdPic from '../../assets/img/undraw_certificate_re_yadi.svg'; import { Slide } from 'react-slideshow-image'; import './index.css'; const LoginSignUp = ({ activeLogin }) => { const [index, setIndex] = useState(0); const timeoutRef = useRef(null); function resetTimeout() { if (timeoutRef.current) { clearTimeout(timeoutRef.current); } } useEffect(() => { resetTimeout(); timeoutRef.current = setTimeout( () => setIndex((prevIndex) => prevIndex === slideContents.length - 1 ? 0 : prevIndex + 1 ), delay ); return () => { resetTimeout(); }; }, [index]); const slideContents = [ { id:0, image: firstPic, title: 'یک معلم دیوانه در کمین شما نشسته است مراقب باشید' , description: 'معلمی که دانش آموزانش رو شب ها شکار می کند و این متن شاید باعث تعجب شما شده باشد که آیا طراح دیوانه شده است یا خیر ؟ ', }, { id:1, image: secondPic, title: 'یک آزمون سخت و افتضاح در راه هست!' , description: 'لورم ایپسوم نمیخواستم استفاده کنم برای همین این متنای عجیب رو مینویسم ببینم چجوری میشه تهش بالاخره اونا هم قراره یه متن عجیب بنویسن ', }, { id:1, image: thirdPic, title: 'یک اسلاید عجیب غریب دیگر در راه هست' , description: 'معلمی که دانش آموزانش رو شب ها شکار می کند و این متن شاید باعث تعجب شما شده باشد که آیا طراح دیوانه شده است یا خیر ؟ ', }, ]; const delay = 2500; return (
{/* form */}

ورود یا ثبت نام

سامانه ثبت نام مدارس موسسه علمی اندیشمند

کاربر گرامی لطفا یکی از دو گزینه زیر را انتخاب نمایید.
در صورتی که عضو نیستید روی دکمه ثبت نام بزنید

ورود ثبت نام

ثبت نام شما در سامانه به منزله قبول شرایط و قوانین استفاده میباشد

1401 - 1400

{/* Slider */}
{slideContents.map((item, index) => (

{item.title}

{item.description}

))}
{slideContents.map((_, idx) => (
{ setIndex(idx); }} >
))}
); }; export default LoginSignUp;