reset and confirm modals

This commit is contained in:
Николай Полтщук 2023-07-18 16:20:55 +03:00
parent e0b289c3fd
commit fa582a8bfc
4 changed files with 106 additions and 85 deletions

View File

@ -7,13 +7,18 @@ import "./modalReset.scss";
export const ModalReset = ({ setModalReset }) => {
return (
<div className="modalReset">
<h3 className='modalReset__title'>Восстановление доступа</h3>
<div className='modalReset__input'>
<h3 className="modalReset__title">Восстановление доступа</h3>
<div className="modalReset__input">
<span>Укажите e-mail, для которого хотите восстановить пароль.</span>
<input placeholder='email'/>
<input placeholder="email" />
</div>
<button className='modalReset__submit'>Восстановить</button>
<img onClick={() => setModalReset(false)} src={close} className='modalReset__close' alt='close' />
<button className="modalReset__submit">Восстановить</button>
<img
onClick={() => setModalReset(false)}
src={close}
className="modalReset__close"
alt="close"
/>
</div>
);
};

View File

@ -7,11 +7,22 @@ import "./modalTrackerRegistration.scss";
export const ModalTrackerRegistration = ({ setModalReset }) => {
return (
<div className="modalConfirmTracker">
<h3 className='modalConfirmTracker__title'>Спасибо за регистрацию. Теперь можете войти в кабинет</h3>
<p className='modalConfirmTracker__info'>Мы отправили ссылку<br/>
для активации вашего аккаунта на почту<br/> <span>nhw44308@mail.com</span></p>
<button className='modalConfirmTracker__btn'>Перейти в почту</button>
<img onClick={() => setModalReset(false)} src={close} className='modalReset__close' alt='close' />
<h3 className="modalConfirmTracker__title">
Спасибо за регистрацию. Теперь можете войти в кабинет
</h3>
<p className="modalConfirmTracker__info">
Мы отправили ссылку
<br />
для активации вашего аккаунта на почту
<br /> <span>nhw44308@mail.com</span>
</p>
<button className="modalConfirmTracker__btn">Перейти в почту</button>
<img
onClick={() => setModalReset(false)}
src={close}
className="modalReset__close"
alt="close"
/>
</div>
);
};

View File

@ -1,11 +1,11 @@
import React, {useState} from "react";
import React, { useState } from "react";
import AuthBlock from "@components/AuthBlock/AuthBlock";
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
import { Footer } from "@components/Common/Footer/Footer";
import SideBar from "@components/SideBar/SideBar";
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
import {ModalReset} from "@components/Modal/ModalReset/ModalReset";
import { ModalReset } from "@components/Modal/ModalReset/ModalReset";
import SideBar from "@components/SideBar/SideBar";
import arrowInfo from "assets/icons/trackerIntroInfo.svg";
import trackerAuthImg from "assets/images/trackerAuthImg.png";
@ -13,7 +13,7 @@ import trackerAuthImg from "assets/images/trackerAuthImg.png";
import "./trackerAuth.scss";
export const TrackerAuth = () => {
const [modalResetOpen, setModalReset] = useState(false)
const [modalResetOpen, setModalReset] = useState(false);
return (
<div className="trackerAuth">
<AuthHeader />
@ -33,11 +33,11 @@ export const TrackerAuth = () => {
resetModal={setModalReset}
/>
</div>
{modalResetOpen &&
{modalResetOpen && (
<ModalLayout active={modalResetOpen} setActive={setModalReset}>
<ModalReset setModalReset={setModalReset} />
</ModalLayout>
}
)}
<Footer />
</div>
</div>

View File

@ -1,19 +1,19 @@
import React, {useState} from "react";
import React, { useState } from "react";
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
import { Footer } from "@components/Common/Footer/Footer";
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
import { ModalTrackerRegistration } from "@components/Modal/ModalTrackerRegistration/ModalTrackerRegistration";
import SideBar from "@components/SideBar/SideBar";
import { ModalTrackerRegistration } from "@components/Modal/ModalTrackerRegistration/ModalTrackerRegistration"
import arrowInfo from "assets/icons/trackerIntroInfo.svg";
import authImg from "assets/images/partnerProfile/authCandidateFormImg.png";
import registrationImg from "assets/images/trackerRegistrationImg.png"
import registrationImg from "assets/images/trackerRegistrationImg.png";
import "./trackerRegistration.scss";
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
export const TrackerRegistration = () => {
const [modalConfirmOpen, setModalConfirm] = useState(false)
const [modalConfirmOpen, setModalConfirm] = useState(false);
return (
<div className="trackerRegistration">
@ -28,42 +28,47 @@ export const TrackerRegistration = () => {
<img src={arrowInfo} alt="arrow" />
</span>
</h1>
<div className='trackerRegistration__form'>
<div className='trackerRegistration__form__inputs'>
<div className='trackerRegistration__inputContainer'>
<div className="trackerRegistration__form">
<div className="trackerRegistration__form__inputs">
<div className="trackerRegistration__inputContainer">
<span>Ваше имя *</span>
<input placeholder='Имя' />
<input placeholder="Имя" />
</div>
<div className='trackerRegistration__inputContainer'>
<div className="trackerRegistration__inputContainer">
<span>Придумайте пароль*</span>
<input placeholder='Пароль' />
<input placeholder="Пароль" />
</div>
<div className='trackerRegistration__inputContainer'>
<div className="trackerRegistration__inputContainer">
<span>Ваш email *</span>
<input placeholder='Email' type='email' />
<input placeholder="Email" type="email" />
</div>
<div className='trackerRegistration__inputContainer'>
<div className="trackerRegistration__inputContainer">
<span>Повторите пароль*</span>
<input placeholder='Повторите пароль' />
<input placeholder="Повторите пароль" />
</div>
</div>
<div className='trackerRegistration__form__submit'>
<div className="trackerRegistration__form__submit">
<button onClick={() => setModalConfirm(true)}>Отправить</button>
<div className='trackerRegistration__form__info'>
<img src={authImg} alt='img' />
<div className="trackerRegistration__form__info">
<img src={authImg} alt="img" />
<p>
Создавайте и редактируйте задачи и проекты вместе с другими участниками команды.
Создавайте и редактируйте задачи и проекты вместе с другими
участниками команды.
</p>
</div>
</div>
<img className='trackerRegistration__form__img' src={registrationImg} alt='img' />
<img
className="trackerRegistration__form__img"
src={registrationImg}
alt="img"
/>
</div>
</div>
{modalConfirmOpen &&
{modalConfirmOpen && (
<ModalLayout active={modalConfirmOpen} setActive={setModalConfirm}>
<ModalTrackerRegistration setModalReset={setModalConfirm} />
</ModalLayout>
}
)}
<Footer />
</div>
</div>