ministerchief commited on
Commit
7120e03
·
verified ·
1 Parent(s): bef782c

Create login.html

Browse files
Files changed (1) hide show
  1. templates/login.html +74 -0
templates/login.html ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <title>Secure Asset Login</title>
6
+
7
+ <style>
8
+
9
+ body{
10
+ font-family:Poppins;
11
+ background:linear-gradient(135deg,#667eea,#764ba2);
12
+ height:100vh;
13
+ display:flex;
14
+ justify-content:center;
15
+ align-items:center;
16
+ }
17
+
18
+ .login-box{
19
+ background:white;
20
+ padding:40px;
21
+ border-radius:20px;
22
+ width:320px;
23
+ text-align:center;
24
+ box-shadow:0 10px 40px rgba(0,0,0,0.3);
25
+ }
26
+
27
+ input{
28
+ width:100%;
29
+ padding:12px;
30
+ margin:10px 0;
31
+ border-radius:8px;
32
+ border:1px solid #ddd;
33
+ }
34
+
35
+ button{
36
+ width:100%;
37
+ padding:12px;
38
+ border:none;
39
+ background:#667eea;
40
+ color:white;
41
+ border-radius:8px;
42
+ font-size:16px;
43
+ cursor:pointer;
44
+ }
45
+
46
+ </style>
47
+ </head>
48
+
49
+ <body>
50
+
51
+ <div class="login-box">
52
+
53
+ <h2>🔐 Asset Access</h2>
54
+
55
+ {% if error %}
56
+ <p style="color:red">{{error}}</p>
57
+ {% endif %}
58
+
59
+ <form method="POST">
60
+
61
+ <input type="hidden" name="asset_id" value="{{asset_id}}">
62
+
63
+ <input type="text" name="username" placeholder="Username" required>
64
+
65
+ <input type="password" name="password" placeholder="Password" required>
66
+
67
+ <button type="submit">Login</button>
68
+
69
+ </form>
70
+
71
+ </div>
72
+
73
+ </body>
74
+ </html>