poem_front/admin/login.html
Shu Guang 8d68332cea feat(admin): 新增管理员登录及后台管理页面
添加管理员登录页面、后台管理首页及相关JavaScript逻辑,支持管理员登录、用户管理、诗词管理等功能。登录后,管理员可以查看和操作用户、诗词及管理员信息。
2025-05-24 17:30:06 +08:00

48 lines
1.7 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>
<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css" rel="stylesheet">
<style>
.login-container {
max-width: 400px;
margin: 100px auto;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
border-radius: 5px;
}
.alert {
display: none;
}
</style>
</head>
<body>
<div class="container">
<div class="login-container">
<h2 class="text-center mb-4">管理员登录</h2>
<div class="alert alert-danger" id="errorAlert" role="alert"></div>
<form id="loginForm">
<div class="mb-3">
<label class="form-label">用户名</label>
<input type="text" class="form-control" id="username" required>
</div>
<div class="mb-3">
<label class="form-label">密码</label>
<input type="password" class="form-control" id="password" required>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary" id="loginBtn">
<span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>
登录
</button>
</div>
</form>
</div>
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="js/login.js"></script>
</body>
</html>