Skip to content

Commit 7137e67

Browse files
authored
Create auth.html
1 parent 4e0e6fb commit 7137e67

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

src/auth.html

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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>Authentication Page</title>
7+
<style>
8+
body {
9+
font-family: Arial, sans-serif;
10+
margin: 0;
11+
padding: 0;
12+
background-color: #f4f4f9;
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
height: 100vh;
17+
}
18+
19+
.container {
20+
background-color: #fff;
21+
padding: 30px;
22+
border-radius: 8px;
23+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
24+
text-align: center;
25+
width: 100%;
26+
max-width: 400px;
27+
}
28+
29+
h1 {
30+
color: #333;
31+
}
32+
33+
p {
34+
font-size: 16px;
35+
color: #666;
36+
}
37+
38+
.btn {
39+
background-color: #007BFF;
40+
color: white;
41+
border: none;
42+
padding: 10px 20px;
43+
font-size: 16px;
44+
cursor: pointer;
45+
border-radius: 5px;
46+
margin-top: 20px;
47+
text-decoration: none;
48+
}
49+
50+
.btn:hover {
51+
background-color: #0056b3;
52+
}
53+
54+
.logout {
55+
background-color: #dc3545;
56+
}
57+
58+
.logout:hover {
59+
background-color: #c82333;
60+
}
61+
</style>
62+
</head>
63+
<body>
64+
<div class="container">
65+
{% if username %}
66+
<h1>Welcome, {{ username }}!</h1>
67+
<p>You are successfully authenticated.</p>
68+
<a href="/logout" class="btn logout">Logout</a>
69+
{% else %}
70+
<h1>Authentication Failed</h1>
71+
<p>Please log in to continue.</p>
72+
<a href="/" class="btn">Back to Home</a>
73+
{% endif %}
74+
</div>
75+
</body>
76+
</html>

0 commit comments

Comments
 (0)