summaryrefslogtreecommitdiff
path: root/app/templates/auth/login.html
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-11-15 20:34:41 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-11-15 20:34:41 -0700
commit3743f7056dcdbe1a16a00418ea10ebef2669cf61 (patch)
tree298657931ead09efbcf53ccb08bfc3ee501623c1 /app/templates/auth/login.html
parent81834656747ead193334a36d8f49045cc214b53e (diff)
initial structureHEADmain
Diffstat (limited to 'app/templates/auth/login.html')
-rw-r--r--app/templates/auth/login.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html
new file mode 100644
index 0000000..aa9f7d6
--- /dev/null
+++ b/app/templates/auth/login.html
@@ -0,0 +1,61 @@
+{% extends 'base.html' %}
+
+{% block content %}
+ <!--{% block title %} Login {% endblock %}-->
+{% with messages = get_flashed_messages() %}
+ {% if messages %}
+ <div class="rounded-md bg-red-50 p-4">
+ <div class="flex">
+ <div class="flex-shrink-0">
+ <svg class="h-5 w-5 text-red-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z" clip-rule="evenodd" />
+ </svg>
+ </div>
+ <div class="ml-3">
+ <h3 class="text-sm font-medium text-red-800">{{ messages[0] }}</h3>
+ </div>
+ </div>
+</div>
+ {% endif %}
+{% endwith %}
+<div class="flex min-h-full flex-col justify-center px-6 py-12 lg:px-8">
+ <div class="sm:mx-auto sm:w-full sm:max-w-sm">
+ <img class="mx-auto h-10 w-auto" src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=600" alt="Your Company">
+ <h2 class="mt-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">Sign in to your account</h2>
+ </div>
+
+ <div class="mt-10 sm:mx-auto sm:w-full sm:max-w-sm">
+ <form class="space-y-6" action="/login" method="POST">
+ <div>
+ <label for="email" class="block text-sm font-medium leading-6 text-gray-900">Email address</label>
+ <div class="mt-2">
+ <input id="email" name="email" type="email" autocomplete="email" required class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6">
+ </div>
+ </div>
+
+ <div>
+ <div class="flex items-center justify-between">
+ <label for="password" class="block text-sm font-medium leading-6 text-gray-900">Password</label>
+ <!--
+ <div class="text-sm">
+ <a href="#" class="font-semibold text-indigo-600 hover:text-indigo-500">Forgot password?</a>
+ </div>-->
+ </div>
+ <div class="mt-2">
+ <input id="password" name="password" type="password" autocomplete="current-password" required class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6">
+ </div>
+ </div>
+ <div class="field">
+ <label class="checkbox">
+ <input type="checkbox" name="remember">
+ Remember me
+ </label>
+ </div>
+ <div>
+ <button type="submit" class="flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Sign in</button>
+ </div>
+ </form>
+ </div>
+</div>
+{% endblock %}
+