Added more frontend and some more login logic
This commit is contained in:
41
frontend/htmx/register.html
Normal file
41
frontend/htmx/register.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Register | MiauInv</title>
|
||||
<script src="/assets/js/auth.js"></script>
|
||||
<link rel="stylesheet" href="/assets/css/theme.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<main class="card">
|
||||
<div class="header">
|
||||
<h1>Create Account</h1>
|
||||
<p class="subtitle">Register to continue</p>
|
||||
</div>
|
||||
|
||||
<form id="register-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="new-password" required>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Register</button>
|
||||
</form>
|
||||
|
||||
<div id="message" class="message"></div>
|
||||
|
||||
<p class="footer-text">
|
||||
Already have an account? <a href="/login">Sign in here</a>
|
||||
</p>
|
||||
</main>
|
||||
|
||||
<script src="/assets/js/register.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user