style: Reduce text size in submit form for better UI

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-03 18:24:06 +08:00
1 parent aa084d4b07
commit c34e66ab10
1 file changed
+4 -4
+4 -4
View File
@@ -3,15 +3,15 @@
<form class="space-y-6">
<div>
<label for="submit_title" class="block text-sm font-medium text-text-muted mb-1">Title</label>
<input type="text" id="submit_title" name="title" placeholder="Enter your post title" class="w-full text-primary text-base 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>
<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 for="submit_body" class="block text-sm font-medium text-text-muted mb-1">Body</label>
<textarea id="submit_body" name="body" rows="5" placeholder="Enter the post content" class="w-full text-primary text-base 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>
<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>
</div>
<div>
<label for="submit_category" class="block text-sm font-medium text-text-muted mb-1">Category</label>
<select id="submit_category" name="category" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out">
<select id="submit_category" name="category" 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">
<option value="ask">Ask</option>
<option value="show">Show</option>
</select>
@@ -23,7 +23,7 @@
</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>
<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>
</div>
</form>
</div>