Add front-end login demo #4

Open
beppeb wants to merge 4 commits from dev1 into main
2 changed files with 74 additions and 0 deletions
Showing only changes of commit 6468fe661a - Show all commits

34
login.html Normal file
View File

@@ -0,0 +1,34 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>登录 - Demo</title>
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
<main class="container">
<form id="loginForm" class="card">
<h2>用户登录</h2>
<div class="form-group">
<label for="username">用户名</label>
<input id="username" name="username" type="text" placeholder="请输入用户名" required>
</div>
<div class="form-group">
<label for="password">密码</label>
<input id="password" name="password" type="password" placeholder="请输入密码" required>
</div>
<div class="form-group row">
<label><input id="remember" type="checkbox"> 记住我</label>
</div>
<div class="form-group">
<div id="error" class="error" aria-live="polite"></div>
</div>
<div class="form-group">
<button type="submit">登录</button>
</div>
</form>
</main>
<script src="/static/js/login.js"></script>
</body>
</html>