darkfire514 commited on
Commit
38370dd
·
verified ·
1 Parent(s): a517e18

Delete templates

Browse files
Files changed (1) hide show
  1. templates/login.html +0 -84
templates/login.html DELETED
@@ -1,84 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Login - Linux VPS</title>
5
- <style>
6
- * { box-sizing: border-box; }
7
- body {
8
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- min-height: 100vh;
13
- margin: 0;
14
- background-color: #f6f8fa;
15
- }
16
- .login-box {
17
- background: white;
18
- padding: 2.5rem;
19
- border-radius: 8px;
20
- box-shadow: 0 4px 12px rgba(0,0,0,0.1);
21
- text-align: center;
22
- width: 100%;
23
- max-width: 350px;
24
- }
25
- h1 {
26
- font-size: 1.5rem;
27
- margin-top: 0;
28
- margin-bottom: 2rem;
29
- color: #24292f;
30
- }
31
- .btn {
32
- display: block;
33
- width: 100%;
34
- padding: 12px;
35
- margin-bottom: 12px;
36
- border: none;
37
- border-radius: 6px;
38
- cursor: pointer;
39
- font-weight: 600;
40
- text-decoration: none;
41
- font-size: 14px;
42
- transition: opacity 0.2s;
43
- }
44
- .btn-github { background-color: #24292f; color: white; }
45
- .btn-google { background-color: #4285f4; color: white; }
46
- .btn:hover { opacity: 0.9; }
47
- .error {
48
- color: #cf222e;
49
- margin-top: 1rem;
50
- padding: 0.5rem;
51
- background-color: #ffebe9;
52
- border-radius: 6px;
53
- border: 1px solid #ff818266;
54
- font-size: 13px;
55
- }
56
- </style>
57
- </head>
58
- <body>
59
- <div class="login-box">
60
- <h1>VPS Login</h1>
61
- {% if github_enabled %}
62
- <a href="/auth/login/github" class="btn btn-github">Login with GitHub</a>
63
- {% endif %}
64
- {% if google_enabled %}
65
- <a href="/auth/login/google" class="btn btn-google">Login with Google</a>
66
- {% endif %}
67
-
68
- {% if not github_enabled and not google_enabled %}
69
- <p class="error">Auth providers not configured.</p>
70
- {% endif %}
71
-
72
- <div id="error-msg" class="error" style="display: none;"></div>
73
- </div>
74
- <script>
75
- const urlParams = new URLSearchParams(window.location.search);
76
- const error = urlParams.get('error');
77
- if (error) {
78
- const el = document.getElementById('error-msg');
79
- el.style.display = 'block';
80
- el.innerText = 'Login failed: ' + error;
81
- }
82
- </script>
83
- </body>
84
- </html>