80 lines
3.3 KiB
HTML
80 lines
3.3 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>Submit - 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="/">
|
|
Submit
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<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">Title:</td>
|
|
<td><input type="text" name="title" 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"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Body:</td>
|
|
<td><textarea name="body" rows="5" 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"></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Category:</td>
|
|
<td>
|
|
<select name="category" 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">
|
|
<option value="ask">Ask</option>
|
|
<option value="show">Show</option>
|
|
</select>
|
|
</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">Submit</button></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</main>
|
|
|
|
<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>
|