feat: Modernize login.liquid with tabs and updated styling
This commit is contained in:
1 parent
16b5d1c4e6
commit
6cf6f419e5
1 file changed
+35
-13
+35
-13
@@ -1,11 +1,31 @@
|
||||
<div class="max-w-md mx-auto"> <!-- Added max-width and centering -->
|
||||
<div> <!-- Removed max-w-md mx-auto -->
|
||||
|
||||
<!-- Login Section -->
|
||||
<form class="space-y-6 mb-10"> <!-- Increased spacing -->
|
||||
<h2 class="text-2xl font-semibold text-text-title mb-6 text-center">Login</h2> <!-- Centered and larger heading -->
|
||||
<!-- Tabs Navigation -->
|
||||
<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="group whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm
|
||||
border-primary text-primary [&:not(:target):not(:has(~:target))]:border-primary [&:not(:target):not(:has(~:target))]:text-primary
|
||||
[&:target]:border-primary [&:target]:text-primary
|
||||
[&:not(:target)]:border-transparent [&:not(:target)]:text-gray-500 [&:not(:target)]:hover:text-gray-700 [&:not(:target)]:hover:border-gray-300">
|
||||
Login
|
||||
</a>
|
||||
<a href="#tab-create-account" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm
|
||||
[&:target]:border-primary [&:target]:text-primary
|
||||
[&:not(:target)]:border-transparent [&:not(:target)]:text-gray-500 [&:not(:target)]:hover:text-gray-700 [&:not(:target)]:hover:border-gray-300">
|
||||
Create Account
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<!-- Tab Content Panes -->
|
||||
<div>
|
||||
<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" 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 -->
|
||||
<!-- Login Pane -->
|
||||
<div id="tab-login" class="block [&:not(:target)]:hidden [&:not(:target):not(:has(~:target))]:block">
|
||||
<form class="space-y-6"> <!-- Removed mb-10 -->
|
||||
<!-- Removed h2 heading -->
|
||||
<div>
|
||||
<label for="username" class="block text-sm font-medium text-text-muted 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" required>
|
||||
</div>
|
||||
<div>
|
||||
<label for="password" class="block text-sm font-medium text-text-muted mb-1">Password</label> <!-- Adjusted label style -->
|
||||
@@ -20,15 +40,15 @@
|
||||
<a href="#" class="text-sm text-primary hover:underline">Forgot your password?</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<hr class="my-8 border-gray-300">
|
||||
|
||||
<!-- Create Account Section -->
|
||||
<form class="space-y-6"> <!-- Increased spacing -->
|
||||
<h2 class="text-2xl font-semibold text-text-title mb-6 text-center">Create Account</h2> <!-- Centered and larger heading -->
|
||||
<!-- Create Account Pane -->
|
||||
<div id="tab-create-account" class="hidden [&:target]:block">
|
||||
<form class="space-y-6">
|
||||
<!-- Removed h2 heading -->
|
||||
<div>
|
||||
<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" 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 -->
|
||||
<label for="new_username" class="block text-sm font-medium text-text-muted 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" required>
|
||||
</div>
|
||||
<div>
|
||||
<label for="new_password" class="block text-sm font-medium text-text-muted mb-1">Password</label> <!-- Adjusted label style -->
|
||||
@@ -45,5 +65,7 @@
|
||||
<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>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in new issue
Block a user