Spaces:
Paused

stremio / Backend /fastapi /templates /login.html
Karan Adhikari
Revert "Revamp frontend templates and admin dashboard UI; improve admin JS ro…" (#38)
b8fe50f unverified
Raw History Blame
2.01 kB
{% extends "base.html" %}
{% block title %}Login - Telegram Stremio{% endblock %}
{% block content %}
<div class="min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-md w-full space-y-8">
<div class="text-center">
<h2 class="text-3xl font-bold">Admin Login</h2>
<p class="mt-2 theme-text-secondary">Sign in to access the admin panel</p>
</div>
{% if error %}
<div class="bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-md">
{{ error }}
</div>
{% endif %}
<form method="post" class="theme-card p-8 rounded-lg shadow-lg space-y-6">
<div>
<label for="username" class="block text-sm font-medium mb-2">Username</label>
<input type="text" id="username" name="username" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
</div>
<div>
<label for="password" class="block text-sm font-medium mb-2">Password</label>
<input type="password" id="password" name="password" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
</div>
<button type="submit"
class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition-colors font-medium shadow-sm">
Sign In
</button>
</form>
<div class="text-center">
<p class="theme-text-secondary text-sm">
Public pages:
<a href="/status" class="text-primary hover:underline">System Status</a> |
<a href="/stremio" class="text-primary hover:underline">Stremio Guide</a>
</p>
</div>
</div>
</div>
{% endblock %}