reset and confirm modals
This commit is contained in:
parent
e0b289c3fd
commit
fa582a8bfc
@ -7,13 +7,18 @@ import "./modalReset.scss";
|
|||||||
export const ModalReset = ({ setModalReset }) => {
|
export const ModalReset = ({ setModalReset }) => {
|
||||||
return (
|
return (
|
||||||
<div className="modalReset">
|
<div className="modalReset">
|
||||||
<h3 className='modalReset__title'>Восстановление доступа</h3>
|
<h3 className="modalReset__title">Восстановление доступа</h3>
|
||||||
<div className='modalReset__input'>
|
<div className="modalReset__input">
|
||||||
<span>Укажите e-mail, для которого хотите восстановить пароль.</span>
|
<span>Укажите e-mail, для которого хотите восстановить пароль.</span>
|
||||||
<input placeholder='email'/>
|
<input placeholder="email" />
|
||||||
</div>
|
</div>
|
||||||
<button className='modalReset__submit'>Восстановить</button>
|
<button className="modalReset__submit">Восстановить</button>
|
||||||
<img onClick={() => setModalReset(false)} src={close} className='modalReset__close' alt='close' />
|
<img
|
||||||
|
onClick={() => setModalReset(false)}
|
||||||
|
src={close}
|
||||||
|
className="modalReset__close"
|
||||||
|
alt="close"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -7,11 +7,22 @@ import "./modalTrackerRegistration.scss";
|
|||||||
export const ModalTrackerRegistration = ({ setModalReset }) => {
|
export const ModalTrackerRegistration = ({ setModalReset }) => {
|
||||||
return (
|
return (
|
||||||
<div className="modalConfirmTracker">
|
<div className="modalConfirmTracker">
|
||||||
<h3 className='modalConfirmTracker__title'>Спасибо за регистрацию. Теперь можете войти в кабинет</h3>
|
<h3 className="modalConfirmTracker__title">
|
||||||
<p className='modalConfirmTracker__info'>Мы отправили ссылку<br/>
|
Спасибо за регистрацию. Теперь можете войти в кабинет
|
||||||
для активации вашего аккаунта на почту<br/> <span>nhw44308@mail.com</span></p>
|
</h3>
|
||||||
<button className='modalConfirmTracker__btn'>Перейти в почту</button>
|
<p className="modalConfirmTracker__info">
|
||||||
<img onClick={() => setModalReset(false)} src={close} className='modalReset__close' alt='close' />
|
Мы отправили ссылку
|
||||||
|
<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>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import React, {useState} from "react";
|
import React, { useState } from "react";
|
||||||
|
|
||||||
import AuthBlock from "@components/AuthBlock/AuthBlock";
|
import AuthBlock from "@components/AuthBlock/AuthBlock";
|
||||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||||
import { Footer } from "@components/Common/Footer/Footer";
|
import { Footer } from "@components/Common/Footer/Footer";
|
||||||
import SideBar from "@components/SideBar/SideBar";
|
|
||||||
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
|
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 arrowInfo from "assets/icons/trackerIntroInfo.svg";
|
||||||
import trackerAuthImg from "assets/images/trackerAuthImg.png";
|
import trackerAuthImg from "assets/images/trackerAuthImg.png";
|
||||||
@ -13,7 +13,7 @@ import trackerAuthImg from "assets/images/trackerAuthImg.png";
|
|||||||
import "./trackerAuth.scss";
|
import "./trackerAuth.scss";
|
||||||
|
|
||||||
export const TrackerAuth = () => {
|
export const TrackerAuth = () => {
|
||||||
const [modalResetOpen, setModalReset] = useState(false)
|
const [modalResetOpen, setModalReset] = useState(false);
|
||||||
return (
|
return (
|
||||||
<div className="trackerAuth">
|
<div className="trackerAuth">
|
||||||
<AuthHeader />
|
<AuthHeader />
|
||||||
@ -33,11 +33,11 @@ export const TrackerAuth = () => {
|
|||||||
resetModal={setModalReset}
|
resetModal={setModalReset}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{modalResetOpen &&
|
{modalResetOpen && (
|
||||||
<ModalLayout active={modalResetOpen} setActive={setModalReset}>
|
<ModalLayout active={modalResetOpen} setActive={setModalReset}>
|
||||||
<ModalReset setModalReset={setModalReset} />
|
<ModalReset setModalReset={setModalReset} />
|
||||||
</ModalLayout>
|
</ModalLayout>
|
||||||
}
|
)}
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
import React, {useState} from "react";
|
import React, { useState } from "react";
|
||||||
|
|
||||||
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
|
||||||
import { Footer } from "@components/Common/Footer/Footer";
|
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 SideBar from "@components/SideBar/SideBar";
|
||||||
import { ModalTrackerRegistration } from "@components/Modal/ModalTrackerRegistration/ModalTrackerRegistration"
|
|
||||||
|
|
||||||
import arrowInfo from "assets/icons/trackerIntroInfo.svg";
|
import arrowInfo from "assets/icons/trackerIntroInfo.svg";
|
||||||
import authImg from "assets/images/partnerProfile/authCandidateFormImg.png";
|
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 "./trackerRegistration.scss";
|
||||||
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
|
|
||||||
|
|
||||||
export const TrackerRegistration = () => {
|
export const TrackerRegistration = () => {
|
||||||
const [modalConfirmOpen, setModalConfirm] = useState(false)
|
const [modalConfirmOpen, setModalConfirm] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="trackerRegistration">
|
<div className="trackerRegistration">
|
||||||
@ -28,42 +28,47 @@ export const TrackerRegistration = () => {
|
|||||||
<img src={arrowInfo} alt="arrow" />
|
<img src={arrowInfo} alt="arrow" />
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
<div className='trackerRegistration__form'>
|
<div className="trackerRegistration__form">
|
||||||
<div className='trackerRegistration__form__inputs'>
|
<div className="trackerRegistration__form__inputs">
|
||||||
<div className='trackerRegistration__inputContainer'>
|
<div className="trackerRegistration__inputContainer">
|
||||||
<span>Ваше имя *</span>
|
<span>Ваше имя *</span>
|
||||||
<input placeholder='Имя' />
|
<input placeholder="Имя" />
|
||||||
</div>
|
</div>
|
||||||
<div className='trackerRegistration__inputContainer'>
|
<div className="trackerRegistration__inputContainer">
|
||||||
<span>Придумайте пароль*</span>
|
<span>Придумайте пароль*</span>
|
||||||
<input placeholder='Пароль' />
|
<input placeholder="Пароль" />
|
||||||
</div>
|
</div>
|
||||||
<div className='trackerRegistration__inputContainer'>
|
<div className="trackerRegistration__inputContainer">
|
||||||
<span>Ваш email *</span>
|
<span>Ваш email *</span>
|
||||||
<input placeholder='Email' type='email' />
|
<input placeholder="Email" type="email" />
|
||||||
</div>
|
</div>
|
||||||
<div className='trackerRegistration__inputContainer'>
|
<div className="trackerRegistration__inputContainer">
|
||||||
<span>Повторите пароль*</span>
|
<span>Повторите пароль*</span>
|
||||||
<input placeholder='Повторите пароль' />
|
<input placeholder="Повторите пароль" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='trackerRegistration__form__submit'>
|
<div className="trackerRegistration__form__submit">
|
||||||
<button onClick={() => setModalConfirm(true)}>Отправить</button>
|
<button onClick={() => setModalConfirm(true)}>Отправить</button>
|
||||||
<div className='trackerRegistration__form__info'>
|
<div className="trackerRegistration__form__info">
|
||||||
<img src={authImg} alt='img' />
|
<img src={authImg} alt="img" />
|
||||||
<p>
|
<p>
|
||||||
Создавайте и редактируйте задачи и проекты вместе с другими участниками команды.
|
Создавайте и редактируйте задачи и проекты вместе с другими
|
||||||
|
участниками команды.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img className='trackerRegistration__form__img' src={registrationImg} alt='img' />
|
<img
|
||||||
|
className="trackerRegistration__form__img"
|
||||||
|
src={registrationImg}
|
||||||
|
alt="img"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{modalConfirmOpen &&
|
{modalConfirmOpen && (
|
||||||
<ModalLayout active={modalConfirmOpen} setActive={setModalConfirm}>
|
<ModalLayout active={modalConfirmOpen} setActive={setModalConfirm}>
|
||||||
<ModalTrackerRegistration setModalReset={setModalConfirm} />
|
<ModalTrackerRegistration setModalReset={setModalConfirm} />
|
||||||
</ModalLayout>
|
</ModalLayout>
|
||||||
}
|
)}
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user