Merge branch 'master' of https://gitea.portpunch.lol/kerbymart/project-behind-the-desk
# Conflicts: # submit.html
This commit is contained in:
commit
68798dcd05
1 file changed
+35
-19
+35
-19
@@ -52,31 +52,45 @@
|
||||
</nav>
|
||||
|
||||
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
|
||||
<div class="px-4 mt-8">
|
||||
<div class="mb-8">
|
||||
<h2 class="text-lg mb-4 text-primary">Submit a Post</h2>
|
||||
<form>
|
||||
<div class="mb-4">
|
||||
<label class="block text-sm font-medium mb-1" for="submit-title">Title:</label>
|
||||
<input class="w-full px-3 py-2 border border-gray-300 rounded" type="text" id="submit-title" name="title" required>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label class="block text-sm font-medium mb-1" for="submit-body">Body:</label>
|
||||
<textarea class="w-full px-3 py-2 border border-gray-300 rounded" id="submit-body" name="body" required></textarea>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label class="block text-sm font-medium mb-1" for="submit-category">Category:</label>
|
||||
<select class="w-full px-3 py-2 border border-gray-300 rounded" id="submit-category" name="category" required>
|
||||
<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>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<button class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark" type="submit">Submit</button>
|
||||
</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>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
@@ -84,11 +98,13 @@
|
||||
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>
|
||||
|
||||
Reference in new issue
Block a user