refactor/ai-challenge2 removed from pages where the user is not logged in
This commit is contained in:
1 parent
5ec2de0631
commit
f5f1516a76
5 files changed
+98
-83
No files matched your search
+26
-22
@@ -1,41 +1,45 @@
|
||||
<%- include("./partials/fileHeader") %>
|
||||
<%- include("./partials/headerStart") %>
|
||||
|
||||
<main class="pt-24">
|
||||
<div class="flex justify-center items-center">
|
||||
<main class="pt-12 bg-slate-100 min-h-screen">
|
||||
<div class="flex justify-center items-center py-10">
|
||||
<form action="/login" method="POST">
|
||||
<div class="w-96 p-6 shadow-1g bg-white rounded-md">
|
||||
<h1 class="text-3xl block text-center font-semibold">Login</h1>
|
||||
<hr class="mt-3">
|
||||
<div class="mt-3">
|
||||
<label for="email" class="block text-base mb-2">Email</label>
|
||||
<div class="w-96 p-8 bg-white rounded-lg shadow-xl border border-slate-200">
|
||||
<h1 class="text-3xl block text-center font-semibold text-slate-700">Login</h1>
|
||||
<hr class="mt-4 mb-6 border-slate-300">
|
||||
<div class="mt-4">
|
||||
<label for="email" class="block text-base mb-2 text-slate-600">Email</label>
|
||||
<input type="text" id="email" name="email"
|
||||
class="border focus:border-gray-600 w-full rounded-md text-base px-2 py-1 focus:outline-none focus:ring-0 "
|
||||
class="border border-slate-300 focus:border-indigo-500 w-full rounded-md text-base px-3 py-2 focus:outline-none focus:ring-1 focus:ring-indigo-500 transition-colors duration-200"
|
||||
placeholder="Enter Email" />
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
<label for="password" class="block text-base mb-2">Password</label>
|
||||
<div class="mt-4">
|
||||
<label for="password" class="block text-base mb-2 text-slate-600">Password</label>
|
||||
<input type="password" id="password" name="password"
|
||||
class="border focus:border-gray-600 w-full rounded-md text-base px-2 py-1 focus:outline-none focus:ring-0 "
|
||||
class="border border-slate-300 focus:border-indigo-500 w-full rounded-md text-base px-3 py-2 focus:outline-none focus:ring-1 focus:ring-indigo-500 transition-colors duration-200"
|
||||
placeholder="Enter Password" />
|
||||
</div>
|
||||
<div class="text-red-800 font-bold" id="forgor"> <%= errMessage %></div>
|
||||
<div class="mt-3 flex justify-between items-center">
|
||||
<div>
|
||||
<input type="checkbox">
|
||||
<label>Remember me</label>
|
||||
<% if (errMessage && errMessage.length > 0) { %>
|
||||
<div class="mt-3 text-red-600 font-semibold text-sm" id="forgor"> <%= errMessage %></div>
|
||||
<% } else { %>
|
||||
<div class="mt-3 h-5" id="forgor"></div> <% /* Placeholder to maintain layout when no error */ %>
|
||||
<% } %>
|
||||
<div class="mt-4 flex justify-between items-center">
|
||||
<div class="flex items-center">
|
||||
<input type="checkbox" id="rememberMe" class="h-4 w-4 text-indigo-600 border-slate-300 rounded focus:ring-indigo-500">
|
||||
<label for="rememberMe" class="ml-2 text-sm text-slate-600">Remember me</label>
|
||||
</div>
|
||||
<div>
|
||||
<a href="/forgotPassword" class="text-indigo-600 font-semibold">Forgot Password? </a>
|
||||
<a href="/forgotPassword" class="text-sm text-indigo-600 hover:text-indigo-500 font-semibold transition-colors duration-200">Forgot Password? </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-5">
|
||||
<div class="mt-6">
|
||||
<button type="submit"
|
||||
class="border-2 border-gray-600 bg-blue-600 text-white py-1 w-full rounded-md hover:bg-transparent hover:text-indigo-700 font-semibold">Login</button>
|
||||
class="border-2 border-indigo-600 bg-indigo-600 text-white py-2 w-full rounded-md hover:bg-indigo-700 hover:border-indigo-700 font-semibold transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">Login</button>
|
||||
</div>
|
||||
<div class="mt-5 block justify-between items-center">
|
||||
<label>Don't have an account?</label>
|
||||
<a href="/signup" class="text-indigo-600 font-semibold">Register</a>
|
||||
<div class="mt-6 text-center">
|
||||
<span class="text-sm text-slate-600">Don't have an account?</span>
|
||||
<a href="/signup" class="text-sm text-indigo-600 hover:text-indigo-500 font-semibold ml-1 transition-colors duration-200">Register</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user