Files
MIND/frontend/templates/login.html
2023-02-11 17:43:35 +01:00

44 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/css/general.css">
<link rel="stylesheet" href="/static/css/login.css">
<script src="/static/js/login.js" defer></script>
<title>Login - MIND</title>
</head>
<body>
<header>
<h1>MIND Reminders</h1>
</header>
<main>
<div class="form-container">
<form id="login-form">
<h2>Login</h2>
<noscript>Javascript is disabled. The web-ui of MIND does not work with JavaScript disabled.</noscript>
<input type="text" id="username-input" autocomplete="username" placeholder="Username" required autofocus>
<p class="error hidden" id="username-error">*Username not found</p>
<input type="password" id="password-input" autocomplete="current-password" placeholder="Password" required>
<p class="error hidden" id="password-error">*Password incorrect</p>
<button type="button" class="switch-button" id="create-account">Or create an account</button>
<button type="submit">Login</button>
</form>
</div>
<div class="form-container">
<form id="create-form">
<h2>Create</h2>
<input type="text" id="new-username-input" autocomplete="username" placeholder="Username" required>
<p class="error hidden" id="new-username-error">*Username invalid</p>
<p class="error hidden" id="taken-username-error">*Username already taken</p>
<input type="password" id="new-password-input" autocomplete="new-password" placeholder="Password" required>
<button type="button" class="switch-button" id="login-account">Or log into an account</button>
<button type="submit">Create</button>
</form>
</div>
</main>
</body>
</html>