Files
project-behind-the-desk/_includes/login.liquid
T

49 lines
3.0 KiB
Plaintext

<div class="max-w-md mx-auto"> <!-- Added max-width and centering -->
<!-- Login Section -->
<form class="space-y-4 mb-8">
<h2 class="text-xl font-semibold text-text-title mb-4">Login</h2>
<div>
<label for="username" class="block text-sm font-medium text-text-title mb-1">Username:</label>
<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>
</div>
<div>
<label for="password" class="block text-sm font-medium text-text-title mb-1">Password:</label>
<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>
</div>
<!-- Placeholder for error message -->
<p class="text-sm text-red-600">Bad Login</p> <!-- Example error message -->
<div>
<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>
</div>
<div class="mt-4">
<a href="#" class="text-sm text-primary hover:underline">Forgot your password?</a>
</div>
</form>
<hr class="my-8 border-gray-300">
<!-- Create Account Section -->
<form class="space-y-4">
<h2 class="text-xl font-semibold text-text-title mb-4">Create Account</h2>
<div>
<label for="new_username" class="block text-sm font-medium text-text-title mb-1">Username:</label>
<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>
</div>
<div>
<label for="new_password" class="block text-sm font-medium text-text-title mb-1">Password:</label>
<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>
</div>
<div>
<label for="confirm_password" class="block text-sm font-medium text-text-title mb-1">Confirm Password:</label>
<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>
</div>
<!-- Placeholder for error message -->
<p class="text-sm text-red-600">Passwords do not match</p> <!-- Example error message -->
<div>
<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>
</div>
</form>
</div>