frontend part

This commit is contained in:
2026-09-22 15:21:18 +03:00
parent 8d31078e3d
commit 608e7ce0f0
18 changed files with 1545 additions and 0 deletions
@@ -0,0 +1,38 @@
import { useState, type ReactElement } from "react";
import { Link } from "react-router-dom";
import "./AuthComponent.css";
export function Auth():ReactElement {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [rememberMe, setRememberMe] = useState(false);
return (
<form>
<input
type="email"
value={email}
onChange={(e) => setEmail(e.target.value)}
placeholder="Email"
required
/>
<input
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
placeholder="Password"
required
/>
<label>
<input
type="checkbox"
checked={rememberMe}
onChange={(e) => setRememberMe(e.target.checked)}
/>
Запомнить меня
</label>
<Link to="/forgot-password">Забыли пароль?</Link>
<button type="submit">Войти</button>
</form>
);
}