43 lines
1.2 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">
<label htmlFor="login">Ваш email *</label>
<input id="login" type="text" name="username" placeholder="Email" />
2023-07-07 01:20:57 +03:00
2023-07-07 01:21:07 +03:00
<label htmlFor="password">Ваш пароль*</label>
<input
id="password"
type="password"
name="password"
placeholder="Пароль"
/>
<div className="auth__form__buttons">
<button
onClick={(e) => {
e.preventDefault();
}}
>
Войти
</button>
2023-07-18 16:20:40 +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;