Files

65 lines
4.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="flex items-center justify-center overflow-hidden">
<div class="w-full max-w-lg mx-auto rounded-lg p-6 bg-bg-footer">
<!-- User Header -->
<div class="mb-6 pb-4 border-b border-gray-200">
<h1 class="text-3xl font-bold text-text-title mb-1">Share a Desk Moment</h1>
<p class="text-sm text-text-muted">
Something funny, frustrating, or worth a nod—keep it short.
</p>
</div>
<form class="space-y-6">
<div>
<label for="submit_title" class="block text-sm font-medium text-primary mb-1">Title</label>
<input type="text" id="submit_title" name="title" placeholder="Enter your post title" class="w-full text-primary text-sm px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs" required>
</div>
<div>
<label class="block text-sm font-medium text-primary mb-2">Type</label>
<div class="flex flex-col space-y-4 md:flex-row md:space-y-0 md:space-x-4">
<!-- Frustration Option -->
<label class="w-full flex items-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary has-[:checked]:border-primary has-[:checked]:bg-primary/10 transition-colors duration-150 ease-in-out">
<input type="radio" name="post_type" value="frustration" class="sr-only" required> <!-- Hidden radio button -->
<img src="/assets/images/icon_frustrated.png" alt="Frustration Icon" class="w-6 h-6 object-contain">
<span class="text-sm font-action font-medium text-primary">Frustration</span>
</label>
<!-- Win Option -->
<label class="w-full flex items-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary has-[:checked]:border-primary has-[:checked]:bg-primary/10 transition-colors duration-150 ease-in-out">
<input type="radio" name="post_type" value="win" class="sr-only" required> <!-- Hidden radio button -->
<img src="/assets/images/icon_win.png" alt="Win Icon" class="w-6 h-6 object-contain">
<span class="text-sm font-action font-medium text-primary">Win</span>
</label>
<!-- Weird Option -->
<label class="w-full flex items-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary has-[:checked]:border-primary has-[:checked]:bg-primary/10 transition-colors duration-150 ease-in-out">
<input type="radio" name="post_type" value="weird" class="sr-only" required> <!-- Hidden radio button -->
<img src="/assets/images/icon_weird.png" alt="Weird Icon" class="w-6 h-6 object-contain">
<span class="text-sm font-action font-medium text-primary">Weird</span>
</label>
<!-- Add more types here following the same pattern -->
</div>
</div>
<div>
<label for="submit_body" class="block text-sm font-medium text-primary mb-1">Body</label>
<textarea id="submit_body"
name="body"
rows="5"
placeholder="Enter the post content"
class="w-full text-primary text-sm px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs resize-none overflow-hidden"
oninput="this.style.height = 'auto'; this.style.height = this.scrollHeight + 'px';"
required></textarea>
<p class="mt-1 text-xs text-text-muted">Must be at least 8 characters long.</p>
</div>
<!-- Optional: Add an error message placeholder if needed -->
<!--
<div class="bg-red-50 border border-red-200 rounded-md p-3 hidden">
<p class="text-sm text-red-500 text-center">Submission Error</p>
</div>
-->
<div class="pt-2">
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base font-medium rounded-md hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out font-monda font-action">Submit Post</button>
</div>
</form>
<div class="text-center mt-4">
<p class="text-sm text-primary text-center">Hmm... that one doesn’t quite fit. Try rewording it to keep it brief and on-topic.</p>
</div>
</div>
</div>