上传文件至「templates」
This commit is contained in:
1 parent
634bf7a4d5
commit
d4926b4fdd
2 files changed
+143
No files matched your search
@@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>登录 - 后台管理系统</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||
<style>
|
||||
.login-container {
|
||||
height: 100vh; display: flex; align-items: center; justify-content: center;
|
||||
background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1f 100%);
|
||||
}
|
||||
.login-card { width: 100%; max-width: 400px; }
|
||||
input {
|
||||
width: 100%; padding: 12px; margin: 10px 0;
|
||||
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: 8px; color: white; box-sizing: border-box;
|
||||
}
|
||||
.btn-login {
|
||||
width: 100%; padding: 12px; background: #fff; color: #000;
|
||||
border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.alert { color: #ff4444; font-size: 14px; margin-bottom: 10px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login-container">
|
||||
<div class="login-card hero-content">
|
||||
<h2>管理员登录</h2>
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="alert">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
<form method="POST">
|
||||
<input type="text" name="username" placeholder="用户名" required>
|
||||
<input type="password" name="password" placeholder="密码" required>
|
||||
<button type="submit" class="btn-login">登录系统</button>
|
||||
</form>
|
||||
<p style="margin-top: 20px; font-size: 12px; opacity: 0.5;">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user