feat: Add login page with form and layout

This commit is contained in:
Your Name (aider) committed 2025-04-28 17:01:13 +00:00
1 parent a34477facb
commit 136328a68f
2 files changed
+69 -90

No files matched your search

+63 -90
View File
@@ -1,92 +1,67 @@
<!doctype html> <form class="space-y-4">
<html lang="en" class="bg-bg-light"> <div class="w-full overflow-x-auto">
<head> <table class="w-full" border="0" cellpadding="0" cellspacing="0">
<meta charset="UTF-8" /> <tbody>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <tr>
<title>Login - Behind the Desk</title> <td>
<link href="/assets/css/styles.css" rel="stylesheet"> <table class="w-full min-w-[300px] table-auto" border="0">
</head> <tbody>
<body class="font-sans text-text-default pt-navbar-height"> <tr>
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Username:</td>
<div class="max-w-screen-lg mx-auto px-4"> <td><input type="text" name="username" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
<div class="flex justify-between"> </tr>
<div class="flex"> <tr>
<a class="py-2 px-3 font-bold text-primary" href="/"> <td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Password:</td>
Login <td><input type="password" name="password" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</a> </tr>
</div> <tr>
</div> <td class="py-2"></td>
<td>
<font size="2" class="text-primary text-sm">Bad Login</font>
</td>
</tr>
<tr>
<td class="py-2 w-24 sm:w-32"></td>
<td><button type="submit" class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark">Login</button></td>
</tr>
</tbody>
</table>
<div class="mt-4">
<p class="text-primary text-sm"><a href="#" class="text-primary hover:underline">Forgot your password?</a></p>
</div>
<hr class="my-4 border-gray-300">
<table class="w-full min-w-[300px] table-auto" border="0">
<tbody>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Username:</td>
<td><input type="text" name="new_username" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Password:</td>
<td><input type="password" name="new_password" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Confirm Password:</td>
<td><input type="password" name="confirm_password" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2"></td>
<td>
<font size="2" class="text-primary text-sm">Passwords do not match</font>
</td>
</tr>
<tr>
<td class="py-2 w-24 sm:w-32"></td>
<td><button type="submit" class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark">Create Account</button></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div> </div>
</nav> </form>
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
<div class="px-4 mt-4">
<form class="space-y-4">
<div class="w-full overflow-x-auto">
<table class="w-full" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<table class="w-full min-w-[300px] table-auto" border="0">
<tbody>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Username:</td>
<td><input type="text" name="username" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Password:</td>
<td><input type="password" name="password" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2"></td>
<td>
<font size="2" class="text-primary text-sm">Bad Login</font>
</td>
</tr>
<tr>
<td class="py-2 w-24 sm:w-32"></td>
<td><button type="submit" class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark">Login</button></td>
</tr>
</tbody>
</table>
<div class="mt-4">
<p class="text-primary text-sm"><a href="#" class="text-primary hover:underline">Forgot your password?</a></p>
</div>
<hr class="my-4 border-gray-300">
<table class="w-full min-w-[300px] table-auto" border="0">
<tbody>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Username:</td>
<td><input type="text" name="new_username" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Password:</td>
<td><input type="password" name="new_password" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Confirm Password:</td>
<td><input type="password" name="confirm_password" class="w-full max-w-full sm:w-[350px] md:w-[450px] text-primary text-sm px-3 py-1 border border-gray-300 rounded" required></td>
</tr>
<tr>
<td class="py-2"></td>
<td>
<font size="2" class="text-primary text-sm">Passwords do not match</font>
</td>
</tr>
<tr>
<td class="py-2 w-24 sm:w-32"></td>
<td><button type="submit" class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark">Create Account</button></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</main>
<!-- Script to toggle mobile menu --> <!-- Script to toggle mobile menu -->
<script> <script>
@@ -103,5 +78,3 @@
} }
}); });
</script> </script>
</body>
</html>
+6
View File
@@ -0,0 +1,6 @@
---
layout: simple
title: Login
---
{% include login.html %}