Skip to content

Commit 7fc8d73

Browse files
authored
Merge pull request #3 from ishant9805/main
Added a login page
2 parents f7a4c2d + be10c39 commit 7fc8d73

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

Diff for: app.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
@app.route('/home')
66
@app.route('/')
77
def home():
8-
return render_template('home.html')
8+
return render_template('home.html')
9+
10+
@app.route('/login')
11+
def login():
12+
return render_template('login.html')

Diff for: templates/index.html

Whitespace-only changes.

Diff for: templates/login.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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</title>
7+
</head>
8+
<body>
9+
<h1>Login</h1>
10+
<form action="/login" method="post">
11+
<input type="email" name="email" id="mail" placeholder="Enter email">
12+
<input type="password" name="password" id="pass" placeholder="Enter password">
13+
<input type="button" value="Submit">
14+
</form>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)