# Conflicts:
#	submit.html
This commit is contained in:
Your Name committed 2025-04-28 19:14:20 +08:00
commit 68798dcd05
1 file changed
+35 -19
+35 -19
View File
@@ -52,31 +52,45 @@
</nav> </nav>
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer"> <main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
<div class="px-4 mt-8"> <div class="px-4 mt-4">
<div class="mb-8"> <form class="space-y-4">
<h2 class="text-lg mb-4 text-primary">Submit a Post</h2> <div class="w-full overflow-x-auto">
<form> <table class="w-full" border="0" cellpadding="0" cellspacing="0">
<div class="mb-4"> <tbody>
<label class="block text-sm font-medium mb-1" for="submit-title">Title:</label> <tr>
<input class="w-full px-3 py-2 border border-gray-300 rounded" type="text" id="submit-title" name="title" required> <td>
</div> <table class="w-full min-w-[300px] table-auto" border="0">
<div class="mb-4"> <tbody>
<label class="block text-sm font-medium mb-1" for="submit-body">Body:</label> <tr>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded" id="submit-body" name="body" required></textarea> <td class="py-2 align-top w-24 sm:w-32 text-primary text-sm font-medium">Title:</td>
</div> <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>
<div class="mb-4"> </tr>
<label class="block text-sm font-medium mb-1" for="submit-category">Category:</label> <tr>
<select class="w-full px-3 py-2 border border-gray-300 rounded" id="submit-category" name="category" required> <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="ask">Ask</option>
<option value="show">Show</option> <option value="show">Show</option>
</select> </select>
</div> </td>
<div class="mb-4"> </tr>
<button class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Submit</button> <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> </div>
</form> </form>
</div> </div>
</div>
</main> </main>
<script> <script>
@@ -84,11 +98,13 @@
const menuButton = document.getElementById('menuButton'); const menuButton = document.getElementById('menuButton');
const mobileMenu = document.getElementById('mobileMenu'); const mobileMenu = document.getElementById('mobileMenu');
if (menuButton && mobileMenu) {
menuButton.addEventListener('click', () => { menuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden'); mobileMenu.classList.toggle('hidden');
const expanded = menuButton.getAttribute('aria-expanded') === 'true'; const expanded = menuButton.getAttribute('aria-expanded') === 'true';
menuButton.setAttribute('aria-expanded', !expanded); menuButton.setAttribute('aria-expanded', !expanded);
}); });
}
}); });
</script> </script>
</body> </body>