feat: 实现用户登录功能(Issue #1) #2

Merged
beppeb merged 5 commits from feature/login-page into main 2025-07-16 03:32:20 +00:00
2 changed files with 95 additions and 0 deletions
Showing only changes of commit 5941191ed6 - Show all commits

37
login.html Normal file
View File

@@ -0,0 +1,37 @@
<!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="css/styles.css">
</head>
<body class="login-page">
<div class="login-container">
<div class="login-box">
<h1>用户登录</h1>
<form id="loginForm">
<div class="form-group">
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名" required>
<span class="error-message" id="username-error"></span>
</div>
<div class="form-group">
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码" required>
<span class="error-message" id="password-error"></span>
</div>
<div class="form-group">
<button type="submit" class="btn-login">登录</button>
</div>
<div class="form-message" id="form-message"></div>
</form>
</div>
</div>
<script src="js/login.js"></script>
</body>
</html>