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

154 lines
9.6 KiB
HTML

<!doctype html>
<html lang="en" class="bg-bg-light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Account Settings - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet">
</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-4">
<div class="bg-rules-bg p-4 rounded mb-4 text-primary text-sm">
<p><strong>Notice:</strong> Keep your account information up-to-date to ensure a smooth experience.</p>
</div>
<form class="space-y-4">
<div class="flex items-center">
<label for="username" class="w-1/4 text-text-muted">Username:</label>
<input type="text" id="username" name="username" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="exampleuser" readonly>
</div>
<div class="flex items-center">
<label for="created" class="w-1/4 text-text-muted">Created:</label>
<input type="text" id="created" name="created" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="January 1, 2023" readonly>
</div>
<div class="flex items-center">
<label for="karma" class="w-1/4 text-text-muted">Karma:</label>
<input type="text" id="karma" name="karma" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="1234" readonly>
</div>
<div class="flex items-center">
<label for="about" class="w-1/4 text-text-muted">About:</label>
<textarea id="about" name="about" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" rows="4">I love sharing my desk moments and finding new things to try.</textarea>
</div>
<div class="flex items-center">
<label for="email" class="w-1/4 text-text-muted">Email:</label>
<input type="email" id="email" name="email" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="exampleuser@example.com">
</div>
<div class="flex items-center">
<label for="showdead" class="w-1/4 text-text-muted">Showdead:</label>
<select id="showdead" name="showdead" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</div>
<div class="flex items-center">
<label for="noprocrast" class="w-1/4 text-text-muted">Noprocrast:</label>
<select id="noprocrast" name="noprocrast" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</div>
<div class="flex items-center">
<label for="maxvisit" class="w-1/4 text-text-muted">Maxvisit:</label>
<input type="number" id="maxvisit" name="maxvisit" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="10">
</div>
<div class="flex items-center">
<label for="minaway" class="w-1/4 text-text-muted">Minaway:</label>
<input type="number" id="minaway" name="minaway" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="5">
</div>
<div class="flex items-center">
<label for="delay" class="w-1/4 text-text-muted">Delay:</label>
<input type="number" id="delay" name="delay" class="w-3/4 px-3 py-2 border border-gray-300 rounded bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary" value="3">
</div>
<div class="flex flex-col space-y-2">
<a href="#" class="text-primary hover:underline">Change Password</a>
<a href="#" class="text-primary hover:underline">Submissions</a>
<a href="#" class="text-primary hover:underline">Comments</a>
<a href="#" class="text-primary hover:underline">Favorite Submissions / Comments (publicly visible)</a>
</div>
<div class="flex justify-end">
<button type="submit" class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50">Update</button>
</div>
</form>
</div>
</main>
<footer class="max-w-screen-lg mx-auto bg-bg-footer py-6 px-6 text-text-muted border-t border-navbar-border">
<div class="text-center">
<p>
Seen something today? Don't let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
</p>
<div class="mt-3 text-sm">
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Guidelines</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Tips</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
</div>
<div class="mt-3 text-center">
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
</div>
</div>
</footer>
<!-- Script to toggle mobile menu -->
<script>
document.addEventListener('DOMContentLoaded', () => {
const menuButton = document.getElementById('menuButton');
const mobileMenu = document.getElementById('mobileMenu');
if (menuButton && mobileMenu) {
menuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
const expanded = menuButton.getAttribute('aria-expanded') === 'true';
menuButton.setAttribute('aria-expanded', !expanded);
});
}
});
</script>
</body>
</html>