mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-12 23:30:44 +08:00
🎨 改进登录页面样式
This commit is contained in:
parent
b184e56eac
commit
0a9f62e42c
@ -1,33 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>登录</title>
|
||||
<!-- 引入 Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="./static/css/bootstrap-icons.min.css">
|
||||
<style>
|
||||
body {
|
||||
background: linear-gradient(135deg, #c4d7ff 0%, #7996ff 100%);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
max-width: 400px;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
padding: 1rem 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.login-body {
|
||||
background: #fff;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.btn {
|
||||
border-radius: 20px;
|
||||
padding: 10px 20px;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container mt-5">
|
||||
<h1 class="mb-4">登录</h1>
|
||||
{% if message %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
[[ message ]]
|
||||
<div class="container">
|
||||
<div class="login-card">
|
||||
<div class="login-header">
|
||||
<h1 class="mb-3">登录</h1>
|
||||
<p class="text-muted">欢迎回来,请登录您的账户</p>
|
||||
</div>
|
||||
<div class="login-body">
|
||||
{% if message %}
|
||||
<div class="alert alert-danger text-center" role="alert">
|
||||
[[ message ]]
|
||||
</div>
|
||||
{% endif %}
|
||||
<form action="/login" method="POST">
|
||||
<div class="form-group mb-3">
|
||||
<label for="username" class="form-label">用户名</label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="bi bi-person-fill"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control" id="username" name="username" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label for="password" class="form-label">密码</label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="bi bi-lock-fill"></i></span>
|
||||
</div>
|
||||
<input type="password" class="form-control" id="password" name="password" required>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">登录</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<form action="/login" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="username">用户名</label>
|
||||
<input type="text" class="form-control" id="username" name="username" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">密码</label>
|
||||
<input type="password" class="form-control" id="password" name="password" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">登录</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user