Added more frontend and some more login logic
This commit is contained in:
43
frontend/htmx/login.html
Normal file
43
frontend/htmx/login.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Sign In | MiauInv</title>
|
||||
|
||||
<script src="/assets/js/auth.js" defer></script>
|
||||
<script src="/assets/js/login.js" defer></script>
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/theme.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<main class="card">
|
||||
<div class="header">
|
||||
<h1>Welcome back</h1>
|
||||
<p class="subtitle">Sign in to your account</p>
|
||||
</div>
|
||||
|
||||
<form id="login-form">
|
||||
<div class="form-group">
|
||||
<label for="username" class="sr-only">Username</label>
|
||||
<input type="text" id="username" placeholder="Username" autocomplete="username" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password" class="sr-only">Password</label>
|
||||
<input type="password" id="password" placeholder="Password" autocomplete="current-password" required>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Sign In</button>
|
||||
</form>
|
||||
|
||||
<div id="error" class="message error"></div>
|
||||
|
||||
<p class="footer-text">
|
||||
Don't have an account yet? <a href="/register">Create account</a>
|
||||
</p>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user