docs: Add validation message and adjust button text size

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-04 20:46:44 +08:00
1 parent 3e86e5aeb3
commit d168b1398f
1 file changed
+2 -1
+2 -1
View File
@@ -39,6 +39,7 @@
<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" 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 -->
<!--
@@ -47,7 +48,7 @@
</div>
-->
<div class="pt-2">
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-sm 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>
<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">