aboutsummaryrefslogtreecommitdiff
path: root/templates/auth/login.django
diff options
context:
space:
mode:
Diffstat (limited to 'templates/auth/login.django')
-rw-r--r--templates/auth/login.django45
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/auth/login.django b/templates/auth/login.django
new file mode 100644
index 0000000..3981abd
--- /dev/null
+++ b/templates/auth/login.django
@@ -0,0 +1,45 @@
+{% extends "layouts/base.django" %}
+
+{% block content %}
+<div class="min-h-screen flex items-center justify-center bg-gray-950">
+ <div class="w-full max-w-sm space-y-8">
+ <div class="text-center">
+ <h1 class="text-4xl font-bold text-white tracking-tight">Dove</h1>
+ <p class="mt-2 text-sm text-gray-400">Local SMTP server for peaceful email testing</p>
+ </div>
+
+ {% if ErrorMessage %}
+ <div class="rounded-lg bg-red-500/10 border border-red-500/20 px-4 py-3 text-sm text-red-400">
+ {{ ErrorMessage }}
+ </div>
+ {% endif %}
+
+ <form method="POST" action="/auth/login" class="space-y-5">
+ <div>
+ <input
+ type="text"
+ name="username"
+ placeholder="Username"
+ required
+ class="w-full rounded-lg border border-gray-700 bg-gray-900 px-4 py-3 text-sm text-white placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 transition"
+ >
+ </div>
+ <div>
+ <input
+ type="password"
+ name="password"
+ placeholder="Password"
+ required
+ class="w-full rounded-lg border border-gray-700 bg-gray-900 px-4 py-3 text-sm text-white placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 transition"
+ >
+ </div>
+ <button
+ type="submit"
+ class="w-full rounded-lg bg-blue-600 px-4 py-3 text-sm font-medium text-white hover:bg-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-gray-950 transition"
+ >
+ Sign in
+ </button>
+ </form>
+ </div>
+</div>
+{% endblock %}