Yaswanth56 commited on
Commit
bd66aea
·
verified ·
1 Parent(s): 632ed93

Update templates/login.html

Browse files
Files changed (1) hide show
  1. templates/login.html +35 -9
templates/login.html CHANGED
@@ -1,19 +1,45 @@
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
- <title>Login</title>
5
- <link rel="stylesheet" href="/static/styles.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  </head>
7
  <body>
8
- <div class="form-container">
9
- <h1>Login</h1>
10
- <form action="/auth" method="POST">
11
- <label for="email">Email:</label>
12
- <input type="email" name="email" id="email" required>
13
- <label for="password">Password:</label>
14
- <input type="password" name="password" id="password" required>
15
  <button type="submit">Login</button>
16
  </form>
 
17
  </div>
18
  </body>
19
  </html>
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
+ <meta charset="UTF-8">
5
+ <title>Login Page</title>
6
+ <style>
7
+ body {
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ height: 100vh;
12
+ background-color: #f7f7f7;
13
+ }
14
+ .login-form {
15
+ padding: 20px;
16
+ border: 1px solid #ccc;
17
+ background-color: white;
18
+ text-align: center;
19
+ }
20
+ .login-form input {
21
+ margin-bottom: 10px;
22
+ padding: 10px;
23
+ width: 100%;
24
+ }
25
+ .login-form button {
26
+ padding: 10px 20px;
27
+ background-color: orange;
28
+ color: white;
29
+ border: none;
30
+ cursor: pointer;
31
+ }
32
+ </style>
33
  </head>
34
  <body>
35
+ <div class="login-form">
36
+ <h2>Login Page</h2>
37
+ <form method="POST" action="/login">
38
+ <input type="email" name="email" placeholder="Enter your email" required>
39
+ <input type="password" name="password" placeholder="Enter your password" required>
 
 
40
  <button type="submit">Login</button>
41
  </form>
42
+ <p>{{ error }}</p>
43
  </div>
44
  </body>
45
  </html>