feat: Modernize login page with line inputs, larger buttons, placeholders
This commit is contained in:
1 parent
237720fb2c
commit
16b5d1c4e6
1 file changed
+22
-21
+22
-21
@@ -1,22 +1,22 @@
|
|||||||
<div class="max-w-md mx-auto"> <!-- Added max-width and centering -->
|
<div class="max-w-md mx-auto"> <!-- Added max-width and centering -->
|
||||||
|
|
||||||
<!-- Login Section -->
|
<!-- Login Section -->
|
||||||
<form class="space-y-4 mb-8">
|
<form class="space-y-6 mb-10"> <!-- Increased spacing -->
|
||||||
<h2 class="text-xl font-semibold text-text-title mb-4">Login</h2>
|
<h2 class="text-2xl font-semibold text-text-title mb-6 text-center">Login</h2> <!-- Centered and larger heading -->
|
||||||
<div>
|
<div>
|
||||||
<label for="username" class="block text-sm font-medium text-text-title mb-1">Username:</label>
|
<label for="username" class="block text-sm font-medium text-text-muted mb-1">Username</label> <!-- Adjusted label style -->
|
||||||
<input type="text" id="username" name="username" class="w-full text-primary text-sm px-3 py-2 bg-bg-light border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" 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" required> <!-- Line input style -->
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="password" class="block text-sm font-medium text-text-title mb-1">Password:</label>
|
<label for="password" class="block text-sm font-medium text-text-muted mb-1">Password</label> <!-- Adjusted label style -->
|
||||||
<input type="password" id="password" name="password" class="w-full text-primary text-sm px-3 py-2 bg-bg-light border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" 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" required> <!-- Line input style -->
|
||||||
</div>
|
</div>
|
||||||
<!-- Placeholder for error message -->
|
<!-- Placeholder for error message -->
|
||||||
<p class="text-sm text-red-600">Bad Login</p> <!-- Example error message -->
|
<p class="text-sm text-red-500 text-center">Bad Login</p> <!-- Centered error message -->
|
||||||
<div>
|
<div class="pt-2"> <!-- Added padding top -->
|
||||||
<button type="submit" class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50">Login</button>
|
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base font-medium rounded-md shadow-sm hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out">Login</button> <!-- Larger, full-width button -->
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-4">
|
<div class="text-center mt-4"> <!-- Centered link -->
|
||||||
<a href="#" class="text-sm text-primary hover:underline">Forgot your password?</a>
|
<a href="#" class="text-sm text-primary hover:underline">Forgot your password?</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -24,24 +24,25 @@
|
|||||||
<hr class="my-8 border-gray-300">
|
<hr class="my-8 border-gray-300">
|
||||||
|
|
||||||
<!-- Create Account Section -->
|
<!-- Create Account Section -->
|
||||||
<form class="space-y-4">
|
<form class="space-y-6"> <!-- Increased spacing -->
|
||||||
<h2 class="text-xl font-semibold text-text-title mb-4">Create Account</h2>
|
<h2 class="text-2xl font-semibold text-text-title mb-6 text-center">Create Account</h2> <!-- Centered and larger heading -->
|
||||||
<div>
|
<div>
|
||||||
<label for="new_username" class="block text-sm font-medium text-text-title mb-1">Username:</label>
|
<label for="new_username" class="block text-sm font-medium text-text-muted mb-1">Username</label> <!-- Adjusted label style -->
|
||||||
<input type="text" id="new_username" name="new_username" class="w-full text-primary text-sm px-3 py-2 bg-bg-light border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" 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" required> <!-- Line input style -->
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="new_password" class="block text-sm font-medium text-text-title mb-1">Password:</label>
|
<label for="new_password" class="block text-sm font-medium text-text-muted mb-1">Password</label> <!-- Adjusted label style -->
|
||||||
<input type="password" id="new_password" name="new_password" class="w-full text-primary text-sm px-3 py-2 bg-bg-light border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" 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" required>
|
||||||
|
<p class="mt-1 text-xs text-text-muted">Must be at least 8 characters long.</p> <!-- Info text -->
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="confirm_password" class="block text-sm font-medium text-text-title mb-1">Confirm Password:</label>
|
<label for="confirm_password" class="block text-sm font-medium text-text-muted mb-1">Confirm Password</label> <!-- Adjusted label style -->
|
||||||
<input type="password" id="confirm_password" name="confirm_password" class="w-full text-primary text-sm px-3 py-2 bg-bg-light border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" 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" required> <!-- Line input style -->
|
||||||
</div>
|
</div>
|
||||||
<!-- Placeholder for error message -->
|
<!-- Placeholder for error message -->
|
||||||
<p class="text-sm text-red-600">Passwords do not match</p> <!-- Example error message -->
|
<p class="text-sm text-red-500 text-center">Passwords do not match</p> <!-- Centered error message -->
|
||||||
<div>
|
<div class="pt-2"> <!-- Added padding top -->
|
||||||
<button type="submit" class="px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50">Create Account</button>
|
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base font-medium rounded-md shadow-sm hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out">Create Account</button> <!-- Larger, full-width button -->
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user