summaryrefslogtreecommitdiff
path: root/front/src/Authentication/LoginPage.tsx
diff options
context:
space:
mode:
authorphyscik <mynameisgennadiy@vk.com>2026-05-05 11:39:54 +0500
committerphyscik <mynameisgennadiy@vk.com>2026-05-05 11:39:54 +0500
commit164b76fad806b078aad8c537ba9bdcfbfc757dca (patch)
tree9e3d38765c307a88792c8e98c22a4d4673a03e40 /front/src/Authentication/LoginPage.tsx
parentb82265994c5f72c40f68c6b3a4960869b6a67951 (diff)
css changes + error handling
Diffstat (limited to 'front/src/Authentication/LoginPage.tsx')
-rw-r--r--front/src/Authentication/LoginPage.tsx18
1 files changed, 10 insertions, 8 deletions
diff --git a/front/src/Authentication/LoginPage.tsx b/front/src/Authentication/LoginPage.tsx
index e673418..7a555fe 100644
--- a/front/src/Authentication/LoginPage.tsx
+++ b/front/src/Authentication/LoginPage.tsx
@@ -28,20 +28,22 @@ function LoginPage() {
return (
<div>
- <h2> { GetLocalizedString("Username", lang) } </h2>
- <input onChange={ev => setUsername(ev.target.value)} />
- <h2> { GetLocalizedString("Password", lang) } </h2>
- <input onChange={ev => setPassw(ev.target.value)} />
- <button onClick={() => {
+ <p> { GetLocalizedString("*acc-prompt*", lang) } <a href="/register"> { GetLocalizedString("Click here", lang) }. </a> </p>
+ <div className="prompt">
+ <h2> { GetLocalizedString("Username", lang) } </h2>
+ <input onChange={ev => setUsername(ev.target.value)} />
+ </div>
+ <div className="prompt">
+ <h2> { GetLocalizedString("Password", lang) } </h2>
+ <input onChange={ev => setPassw(ev.target.value)} />
+ </div>
+ <button className="authButton" onClick={() => {
Login(username, passw, (data) => {
SetAuthState(data);
navigate("/");
window.location.reload();
});
}}> { GetLocalizedString("Log in", lang) } </button>
-
-
- <p> Don't have an account? <a href="/register"> Click here. </a> </p>
</div>
);
}