NitinBot002 commited on
Commit
5632042
·
verified ·
1 Parent(s): bc131a3

Update templates/login.html

Browse files
Files changed (1) hide show
  1. templates/login.html +25 -39
templates/login.html CHANGED
@@ -1,42 +1,28 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Login - Uploader</title>
7
- <style>
8
- body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; align-items: center; justify-content: center; height: 100vh; background-color: #f4f7f6; margin: 0; }
9
- .login-container { width: 320px; background-color: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
10
- h1 { text-align: center; color: #333; margin-bottom: 20px; }
11
- .form-group { margin-bottom: 20px; }
12
- label { display: block; margin-bottom: 5px; font-weight: 500; }
13
- input[type="text"], input[type="password"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
14
- .btn-login { width: 100%; padding: 12px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; }
15
- .btn-login:hover { background-color: #0056b3; }
16
- .flash-danger { padding: 10px; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 4px; margin-bottom: 15px; text-align: center;}
17
- </style>
18
- </head>
19
- <body>
20
- <div class="login-container">
21
- <h1>Admin Login</h1>
22
- {% with messages = get_flashed_messages(with_categories=true) %}
23
- {% if messages %}
24
- {% for category, message in messages %}
25
- <div class="flash-{{ category }}">{{ message }}</div>
26
- {% endfor %}
27
- {% endif %}
28
- {% endwith %}
29
- <form method="post">
30
- <div class="form-group">
31
- <label for="username">Username</label>
32
- <input type="text" id="username" name="username" required>
33
  </div>
34
- <div class="form-group">
35
- <label for="password">Password</label>
36
- <input type="password" id="password" name="password" required>
 
 
 
 
 
 
 
 
 
37
  </div>
38
- <button type="submit" class="btn-login">Login</button>
39
- </form>
40
  </div>
41
- </body>
42
- </html>
 
1
+ {% extends "base.html" %}
2
+
3
+ {% block title %}Login - Telegram to YouTube Uploader{% endblock %}
4
+
5
+ {% block content %}
6
+ <div class="row justify-content-center">
7
+ <div class="col-md-6">
8
+ <div class="card">
9
+ <div class="card-header">
10
+ <h3 class="text-center">Login</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </div>
12
+ <div class="card-body">
13
+ <form method="POST">
14
+ <div class="mb-3">
15
+ <label for="username" class="form-label">Username</label>
16
+ <input type="text" class="form-control" id="username" name="username" required>
17
+ </div>
18
+ <div class="mb-3">
19
+ <label for="password" class="form-label">Password</label>
20
+ <input type="password" class="form-control" id="password" name="password" required>
21
+ </div>
22
+ <button type="submit" class="btn btn-primary w-100">Login</button>
23
+ </form>
24
  </div>
25
+ </div>
 
26
  </div>
27
+ </div>
28
+ {% endblock %}