Files
project-behind-the-desk/login.html
T

129 lines
6.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/src/styles.css" rel="stylesheet">
<title>Login / Signup - Behind the Desk</title>
</head>
<body class="font-sans text-text-default pt-navbar-height">
<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">
<div class="max-w-screen-lg mx-auto px-4">
<div class="flex justify-between">
<div class="flex">
<a class="py-2 px-3 font-bold text-primary" href="/">
Behind the Desk
</a>
<div class="hidden md:flex">
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
<a class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
</div>
</div>
<div class="flex items-center">
<div class="py-2 px-3">
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
</div>
</div>
<!-- Mobile menu button -->
<div class="md:hidden flex items-center">
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="hidden md:hidden">
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">ask</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">show</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">submit</a>
</div>
</div>
</nav>
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
<div class="px-4 mt-8">
<!-- Login Form -->
<div class="mb-8">
<h2 class="text-lg mb-4 text-primary">Login</h2>
<form action="/login" method="post">
<table>
<tr>
<td><label class="block text-sm font-medium mb-1" for="login-username">username:</label></td>
<td><input class="px-3 py-1 border border-gray-300 rounded" type="text" id="login-username" name="username" required></td>
</tr>
<tr>
<td><label class="block text-sm font-medium mb-1" for="login-password">password:</label></td>
<td><input class="px-3 py-1 border border-gray-300 rounded" type="password" id="login-password" name="password" required></td>
</tr>
<tr>
<td colspan="2"><div class="recaptcha-placeholder">[reCAPTCHA placeholder]</div></td>
</tr>
<tr>
<td colspan="2"><button class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Login</button></td>
</tr>
</table>
</form>
<p class="text-sm text-primary mt-2">Bad Login</p>
<p class="text-sm text-text-muted mt-2"><a href="#" class="text-primary hover:underline">Forgot your password?</a></p>
</div>
<hr class="my-8">
<!-- Signup Form -->
<div class="mb-8">
<h2 class="text-lg mb-4 text-primary">Create Account</h2>
<form action="/signup" method="post">
<table>
<tr>
<td><label class="block text-sm font-medium mb-1" for="signup-username">username:</label></td>
<td><input class="px-3 py-1 border border-gray-300 rounded" type="text" id="signup-username" name="username" required></td>
</tr>
<tr>
<td><label class="block text-sm font-medium mb-1" for="signup-password">password:</label></td>
<td><input class="px-3 py-1 border border-gray-300 rounded" type="password" id="signup-password" name="password" required></td>
</tr>
<tr>
<td><label class="block text-sm font-medium mb-1" for="signup-password-confirm">confirm password:</label></td>
<td><input class="px-3 py-1 border border-gray-300 rounded" type="password" id="signup-password-confirm" name="password-confirm" required></td>
</tr>
<tr>
<td colspan="2"><div class="recaptcha-placeholder">[reCAPTCHA placeholder]</div></td>
</tr>
<tr>
<td colspan="2"><button class="px-2 py-1 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Create Account</button></td>
</tr>
</table>
</form>
<p class="text-sm text-primary mt-2">Passwords do not match</p>
</div>
</div> <!-- End container -->
</main>
<!-- Simple script to toggle mobile menu -->
<script>
document.addEventListener('DOMContentLoaded', () => {
const menuButton = document.getElementById('menuButton');
const mobileMenu = document.getElementById('mobileMenu');
menuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
const expanded = menuButton.getAttribute('aria-expanded') === 'true';
menuButton.setAttribute('aria-expanded', !expanded);
});
});
</script>
</body>
</html>