reset and confirm modals
This commit is contained in:
@ -4,7 +4,7 @@ import authImg from "assets/images/partnerProfile/authCandidateFormImg.png";
|
||||
|
||||
import "./authBlock.scss";
|
||||
|
||||
export const AuthBlock = ({ title, description, img }) => {
|
||||
export const AuthBlock = ({ title, description, img, resetModal }) => {
|
||||
return (
|
||||
<div className="auth__wrapper">
|
||||
<div className="auth__info">
|
||||
@ -31,7 +31,7 @@ export const AuthBlock = ({ title, description, img }) => {
|
||||
>
|
||||
Войти
|
||||
</button>
|
||||
<span>Вспомнить пароль</span>
|
||||
<span onClick={() => resetModal(true)}>Вспомнить пароль</span>
|
||||
</div>
|
||||
</form>
|
||||
{img && <img src={img} alt="authImg" className="auth__img" />}
|
||||
|
@ -103,7 +103,7 @@
|
||||
|
||||
&__img {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
right: 48px;
|
||||
top: -90px;
|
||||
}
|
||||
}
|
||||
|
19
src/components/Modal/ModalReset/ModalReset.js
Normal file
19
src/components/Modal/ModalReset/ModalReset.js
Normal file
@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
|
||||
import close from "assets/icons/closeProjectPersons.svg";
|
||||
|
||||
import "./modalReset.scss";
|
||||
|
||||
export const ModalReset = ({ setModalReset }) => {
|
||||
return (
|
||||
<div className="modalReset">
|
||||
<h3 className='modalReset__title'>Восстановление доступа</h3>
|
||||
<div className='modalReset__input'>
|
||||
<span>Укажите e-mail, для которого хотите восстановить пароль.</span>
|
||||
<input placeholder='email'/>
|
||||
</div>
|
||||
<button className='modalReset__submit'>Восстановить</button>
|
||||
<img onClick={() => setModalReset(false)} src={close} className='modalReset__close' alt='close' />
|
||||
</div>
|
||||
);
|
||||
};
|
59
src/components/Modal/ModalReset/modalReset.scss
Normal file
59
src/components/Modal/ModalReset/modalReset.scss
Normal file
@ -0,0 +1,59 @@
|
||||
.modalReset {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 20px;
|
||||
background: linear-gradient(180deg, #FFF 0%, #EBEBEB 100%);
|
||||
padding: 23px 110px 8px 36px;
|
||||
row-gap: 29px;
|
||||
position: relative;
|
||||
|
||||
&__title {
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
color: #263238;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&__input {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
row-gap: 15px;
|
||||
|
||||
span {
|
||||
font-size: 15px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
input {
|
||||
padding: 8px 12px;
|
||||
font-size: 15px;
|
||||
border-radius: 8px;
|
||||
background-color: #EFF2F7;
|
||||
outline: none;
|
||||
border: none;
|
||||
max-width: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
&__submit {
|
||||
border-radius: 44px;
|
||||
background: #52B709;
|
||||
padding: 9px 46px;
|
||||
color: #FFF;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 32px;
|
||||
border: none;
|
||||
max-width: 200px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&__close {
|
||||
position: absolute;
|
||||
top: 28px;
|
||||
right: 28px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
import React from "react";
|
||||
|
||||
import close from "assets/icons/closeProjectPersons.svg";
|
||||
|
||||
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' />
|
||||
</div>
|
||||
);
|
||||
};
|
@ -0,0 +1,39 @@
|
||||
.modalConfirmTracker {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 40px 40px 10px;
|
||||
|
||||
&__title {
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
max-width: 360px;
|
||||
margin-bottom: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__info {
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
max-width: 320px;
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
|
||||
span {
|
||||
font-weight: 700;
|
||||
line-height: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
&__btn {
|
||||
border-radius: 44px;
|
||||
background: #52B709;
|
||||
outline: none;
|
||||
border: none;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 32px;
|
||||
color: #FFF;
|
||||
padding: 9px 37px;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user