auth/loginpage.html
2024-03-14 22:32:02 +08:00

78 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
font-size: 14px; /* 增加字号至14像素 */
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
label {
display: block;
margin-top: 10px;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
font-size: 14px; /* 增加字号至14像素 */
}
input[type="submit"] {
width: 100%;
padding: 10px;
margin-top: 20px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #45a049;
}
/* 响应式设计和媒体查询 */
@media only screen and (max-width: 600px) {
.container {
max-width: 100%;
padding: 10px;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Login</h1>
<form action="{{ home_url|safe }}/login" method="POST">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="otp" required>
<input type="submit" value="Submit">
</form>
<p>Or:</p>
<a href="{{ home_url|safe }}/register">Continue with Passkey</a>
</div>
</body>
</html>