style: Improve UI elements and text contrast in login and comments

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-03 19:09:58 +08:00
1 parent c3dd4aae26
commit 83639cf54d
3 files changed
+11 -12

No files matched your search

+7 -7
View File
@@ -4,12 +4,12 @@
<div class="mb-4 border-b border-gray-200">
<nav class="-mb-px flex space-x-8" aria-label="Tabs">
<a href="#tab-login" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm
text-gray-500 border-transparent hover:text-primary hover:border-primary
text-primary border-transparent hover:text-primary hover:border-primary
[#tab-login:target~&]:text-primary [#tab-login:target~&]:border-primary">
Login
</a>
<a href="#tab-create-account" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm
text-gray-500 border-transparent hover:text-primary hover:border-primary
text-primary border-transparent hover:text-primary hover:border-primary
[#tab-create-account:target~&]:text-primary [#tab-create-account:target~&]:border-primary">
Create Account
</a>
@@ -22,11 +22,11 @@
<div id="tab-login" class="block [&:not(:target)]:hidden [&:not(:target):not(:has(~:target))]:block">
<form class="space-y-6">
<div>
<label for="username" class="block text-sm font-medium text-text-muted mb-1">Username</label>
<label for="username" class="block text-sm font-medium text-primary mb-1">Username</label>
<input type="text" id="username" name="username" placeholder="Enter your username" 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>
</div>
<div>
<label for="password" class="block text-sm font-medium text-text-muted mb-1">Password</label>
<label for="password" class="block text-sm font-medium text-primary mb-1">Password</label>
<input type="password" id="password" name="password" placeholder="Enter your password" 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>
</div>
<!-- Error message with improved presentation -->
@@ -46,16 +46,16 @@
<div id="tab-create-account" class="hidden [&:target]:block">
<form class="space-y-6">
<div>
<label for="new_username" class="block text-sm font-medium text-text-muted mb-1">Username</label>
<label for="new_username" class="block text-sm font-medium text-primary mb-1">Username</label>
<input type="text" id="new_username" name="new_username" placeholder="Choose a username" 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>
</div>
<div>
<label for="new_password" class="block text-sm font-medium text-text-muted mb-1">Password</label>
<label for="new_password" class="block text-sm font-medium text-primary mb-1">Password</label>
<input type="password" id="new_password" name="new_password" placeholder="Create a password" 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>
<p class="mt-1 text-xs text-text-muted">Must be at least 8 characters long.</p>
</div>
<div>
<label for="confirm_password" class="block text-sm font-medium text-text-muted mb-1">Confirm Password</label>
<label for="confirm_password" class="block text-sm font-medium text-primary mb-1">Confirm Password</label>
<input type="password" id="confirm_password" name="confirm_password" placeholder="Confirm your password" 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>
</div>
<!-- Error message with improved presentation -->