122 lines
3.6 KiB
HTML
122 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>登录页面</title>
|
|
<style>
|
|
body {
|
|
font-family: 'Helvetica Neue', Arial, sans-serif;
|
|
background-color: #f0f2f5;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
}
|
|
.container {
|
|
background-color: #ffffff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
|
padding: 40px;
|
|
width: 100%;
|
|
max-width: 480px;
|
|
text-align: center;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
.container:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
.image-container {
|
|
margin-bottom: 30px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.image-container img {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
.image-container:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
font-size: 28px;
|
|
margin-bottom: 30px;
|
|
font-weight: 600;
|
|
}
|
|
.form-field {
|
|
margin-bottom: 25px;
|
|
text-align: left;
|
|
}
|
|
label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
input[type="text"], input[type="password"] {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
input[type="text"]:focus, input[type="password"]:focus {
|
|
outline: none;
|
|
border-color: #1890ff;
|
|
}
|
|
button[type="submit"], button[type="button"] {
|
|
background-color: #1890ff;
|
|
color: white;
|
|
border: none;
|
|
padding: 14px 20px;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
transition: background-color 0.3s ease, transform 0.3s ease;
|
|
margin-top: 25px;
|
|
font-weight: 500;
|
|
}
|
|
button[type="submit"]:hover, button[type="button"]:hover {
|
|
background-color: #40a9ff;
|
|
transform: translateY(-2px);
|
|
}
|
|
.error {
|
|
color: red;
|
|
margin-bottom: 15px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="image-container">
|
|
<img src="../static/dogking.jpg" alt="Dog King">
|
|
</div>
|
|
<h1>登录</h1>
|
|
{% if error %}
|
|
<div class="error">{{ error }}</div>
|
|
{% endif %}
|
|
<form action="{{ url_for('login') }}" method="post">
|
|
<div class="form-field">
|
|
<label for="student_id">学号:</label>
|
|
<input type="text" id="student_id" name="student_id" required>
|
|
</div>
|
|
<div class="form-field">
|
|
<label for="password">密码:</label>
|
|
<input type="password" id="password" name="password" required>
|
|
</div>
|
|
<button type="submit">登录</button>
|
|
<button type="button" onclick="location.href='{{ url_for('reset_password') }}'">重置密码</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|