39 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-07-07 01:20:57 +03:00
import React from "react";
2023-07-07 01:21:07 +03:00
2023-07-07 01:20:57 +03:00
import authImg from "assets/images/partnerProfile/authCandidateFormImg.png";
2023-07-07 01:21:07 +03:00
import "./authBlock.scss";
2023-07-07 01:20:57 +03:00
2023-07-18 16:20:40 +03:00
export const AuthBlock = ({ title, description, img, resetModal }) => {
2023-07-07 01:21:07 +03:00
return (
<div className="auth__wrapper">
<div className="auth__info">
{title && <h3>{title}</h3>}
<img src={authImg} alt="img" />
<p>{description}</p>
</div>
<form className="auth__form">
2023-12-04 19:28:40 +03:00
<label htmlFor="login">Ваш e-mail</label>
<input id="login" type="text" name="username" placeholder="E-mail" />
2023-07-07 01:20:57 +03:00
2023-12-04 19:28:40 +03:00
<label htmlFor="password">Ваш пароль</label>
2023-07-07 01:21:07 +03:00
<input
id="password"
type="password"
name="password"
placeholder="Пароль"
/>
<div className="auth__form__buttons">
2023-12-04 19:28:40 +03:00
<button onClick={(e) => e.preventDefault()}>
2023-07-07 01:21:07 +03:00
Войти
</button>
2023-11-08 18:27:42 +03:00
<span onClick={() => resetModal(true)}>Восстановить пароль</span>
2023-07-07 01:20:57 +03:00
</div>
2023-07-07 01:21:07 +03:00
</form>
{img && <img src={img} alt="authImg" className="auth__img" />}
</div>
);
2023-07-07 01:20:57 +03:00
};
export default AuthBlock;