Karan Adhikari
Revert "Revamp frontend templates and admin dashboard UI; improve admin JS ro…" (#38)
b8fe50f unverified Download Backend/fastapi/templates/base.html from DevDoCode/stremio: direct link, hf CLI and curl.
- Browser
- Download file 5.56 kB
-
https://huggingface.co/spaces/DevDoCode/stremio/resolve/bedc5b14ea64dfb703349936c2d0860acb2d32bf/Backend/fastapi/templates/base.html
- Command line
-
hf download hf://spaces/DevDoCode/stremio@bedc5b14ea64dfb703349936c2d0860acb2d32bf/Backend/fastapi/templates/base.html
-
curl -L -o base.html https://huggingface.co/spaces/DevDoCode/stremio/resolve/bedc5b14ea64dfb703349936c2d0860acb2d32bf/Backend/fastapi/templates/base.html
5.56 kB
| <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>{% block title %}Telegram Stremio{% endblock %}</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"/> | |
| <script> | |
| </script> | |
| <style> | |
| body { | |
| background-color: {{ theme.colors.background }}; | |
| color: {{ theme.colors.text }}; | |
| } | |
| .theme-card { | |
| background-color: {{ theme.colors.card }}; | |
| color: {{ theme.colors.text }}; | |
| } | |
| .theme-primary { | |
| background-color: {{ theme.colors.primary }}; | |
| } | |
| .theme-secondary { | |
| background-color: {{ theme.colors.secondary }}; | |
| } | |
| .theme-accent { | |
| background-color: {{ theme.colors.accent }}; | |
| } | |
| .theme-text-secondary { | |
| color: {{ theme.colors.text_secondary }}; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen flex flex-col"> | |
| <!-- Navigation --> | |
| <nav class="theme-card shadow-lg border-b text-text"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between items-center h-16"> | |
| <div class="flex items-center space-x-4"> | |
| <h1 class="text-2xl font-bold text-primary">Telegram Stremio</h1> | |
| {% if current_user %} | |
| <div class="hidden md:flex space-x-4"> | |
| <a href="/" | |
| class="text-text hover:text-primary px-3 py-2 rounded-md transition-colors">Dashboard</a> | |
| <a href="/media/manage" | |
| class="text-text hover:text-primary px-3 py-2 rounded-md transition-colors">Media</a> | |
| <a href="/admin/dashboard" | |
| class="text-text hover:text-primary px-3 py-2 rounded-md transition-colors">Admin</a> | |
| <a href="/admin/subscriptions" | |
| class="text-text hover:text-primary px-3 py-2 rounded-md transition-colors">Sub Manage</a> | |
| <a href="/admin/access" | |
| class="text-text hover:text-primary px-3 py-2 rounded-md transition-colors">Access</a> | |
| </div> | |
| {% endif %} | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <!-- Theme Selector --> | |
| <div class="relative"> | |
| <form method="post" action="/set-theme" id="theme-form"> | |
| <select name="theme" onchange="document.getElementById('theme-form').submit()" | |
| class="theme-card border border-gray-300 rounded-md px-3 py-2 text-sm"> | |
| {% for theme_key, theme_data in themes.items() %} | |
| <option value="{{ theme_key }}" {% if current_theme==theme_key %}selected{% endif %}> | |
| {{ theme_data.name }} | |
| </option> | |
| {% endfor %} | |
| </select> | |
| </form> | |
| </div> | |
| {% if current_user %} | |
| <div class="flex items-center space-x-4"> | |
| <span class="text-sm theme-text-secondary">{{ current_user }}</span> | |
| <a href="/logout" | |
| class="bg-red-600 text-white px-4 py-2 rounded-md hover:bg-red-700 transition-colors">Logout</a> | |
| </div> | |
| {% else %} | |
| <a href="/login" | |
| class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md transition-colors">Login</a> | |
| {% endif %} | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Content --> | |
| <main class="flex-1"> | |
| {% block content %}{% endblock %} | |
| </main> | |
| <!-- Footer --> | |
| <footer class="theme-card border-t mt-auto text-text"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6"> | |
| <div class="flex justify-between items-center"> | |
| <p class="theme-text-secondary text-sm">© 2025 Telegram Stremio. All rights reserved.</p> | |
| <div class="flex space-x-4"> | |
| <a href="/status" | |
| class="theme-text-secondary hover:text-primary text-sm transition-colors">Status</a> | |
| <a href="/stremio" class="theme-text-secondary hover:text-primary text-sm transition-colors">Stremio | |
| Guide</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| </body> | |
| </html> |