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"> <div class="mb-4 border-b border-gray-200">
<nav class="-mb-px flex space-x-8" aria-label="Tabs"> <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 <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"> [#tab-login:target~&]:text-primary [#tab-login:target~&]:border-primary">
Login Login
</a> </a>
<a href="#tab-create-account" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm <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"> [#tab-create-account:target~&]:text-primary [#tab-create-account:target~&]:border-primary">
Create Account Create Account
</a> </a>
@@ -22,11 +22,11 @@
<div id="tab-login" class="block [&:not(:target)]:hidden [&:not(:target):not(:has(~:target))]:block"> <div id="tab-login" class="block [&:not(:target)]:hidden [&:not(:target):not(:has(~:target))]:block">
<form class="space-y-6"> <form class="space-y-6">
<div> <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> <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>
<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> <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> </div>
<!-- Error message with improved presentation --> <!-- Error message with improved presentation -->
@@ -46,16 +46,16 @@
<div id="tab-create-account" class="hidden [&:target]:block"> <div id="tab-create-account" class="hidden [&:target]:block">
<form class="space-y-6"> <form class="space-y-6">
<div> <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> <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>
<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> <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> <p class="mt-1 text-xs text-text-muted">Must be at least 8 characters long.</p>
</div> </div>
<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> <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> </div>
<!-- Error message with improved presentation --> <!-- Error message with improved presentation -->
+2 -2
View File
@@ -8,7 +8,7 @@
</div> </div>
<div id="mobile-comment-thread-content"> <div id="mobile-comment-thread-content">
<div class="border-b border-gray-200 pb-3 mb-3"> <div class="border-b border-gray-200 pb-3 mb-3">
<p class="text-sm mb-2">{{ page.content }}</p> <p class="text-sm">{{ page.content }}</p>
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2"> <div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2">
<div class="flex items-start space-x-2 mb-2 md:mb-0"> <div class="flex items-start space-x-2 mb-2 md:mb-0">
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover"> <span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover">
@@ -33,7 +33,7 @@
{% for comment in nested_comments %} {% for comment in nested_comments %}
<div class="mb-3 pb-3 border-b border-gray-200"> <div class="mb-3 pb-3 border-b border-gray-200">
<p class="text-sm mb-2">{{ comment.content }}</p> <p class="text-sm">{{ comment.content }}</p>
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2"> <div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2">
<div class="flex items-start space-x-2 mb-2 md:mb-0"> <div class="flex items-start space-x-2 mb-2 md:mb-0">
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover"> <span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover">
+2 -3
View File
@@ -59,7 +59,6 @@
</div> </div>
<!-- More Link --> <!-- More Link -->
<div class="mt-4 flex"> <div class="pt-2">
<div class="flex items-start mr-2" style="width: 24px;"></div> <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">More</button>
<a href="#" class="text-primary hover:underline bg-primary-dark text-white px-4 py-2">More</a>
</div> </div>