feat: Create forgot password page and link from login page
This commit is contained in:
1 parent
83639cf54d
commit
f9ea261933
3 files changed
+37
-1
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<div class="flex items-center justify-center overflow-hidden">
|
||||
<div class="w-full max-w-md mx-auto rounded-lg p-6 bg-bg-footer">
|
||||
<h2 class="text-xl font-semibold text-center text-primary mb-6">Forgot Your Password?</h2>
|
||||
<p class="text-center text-sm text-text-muted mb-6">
|
||||
Enter the email address associated with your account, and we'll send you a link to reset your password.
|
||||
</p>
|
||||
<form class="space-y-6">
|
||||
<div>
|
||||
<label for="email" class="block text-sm font-medium text-primary mb-1">Email Address</label>
|
||||
<input type="email" id="email" name="email" placeholder="Enter your email address" 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>
|
||||
<!-- Optional: Add success/error message placeholders -->
|
||||
<!--
|
||||
<div class="bg-green-50 border border-green-200 rounded-md p-3 hidden">
|
||||
<p class="text-sm text-green-600 text-center">Password reset link sent!</p>
|
||||
</div>
|
||||
<div class="bg-red-50 border border-red-200 rounded-md p-3 hidden">
|
||||
<p class="text-sm text-red-500 text-center">Email not found.</p>
|
||||
</div>
|
||||
-->
|
||||
<div class="pt-2">
|
||||
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base 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">Send Reset Link</button>
|
||||
</div>
|
||||
<div class="text-center mt-4">
|
||||
<a href="/login/" class="text-sm text-primary hover:underline">Back to Login</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -37,7 +37,7 @@
|
||||
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base 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">Login</button>
|
||||
</div>
|
||||
<div class="text-center mt-4">
|
||||
<a href="#" class="text-sm text-primary hover:underline">Forgot your password?</a>
|
||||
<a href="/forgot-password/" class="text-sm text-primary hover:underline">Forgot your password?</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user