面板
This commit is contained in:
73
templates/login.html
Normal file
73
templates/login.html
Normal file
@@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>sub-provider login</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-family: "Segoe UI", "PingFang SC", sans-serif;
|
||||
background:
|
||||
radial-gradient(circle at top left, #f7d9c5, transparent 28%),
|
||||
radial-gradient(circle at bottom right, #dce8da, transparent 22%),
|
||||
#f3efe6;
|
||||
color: #1f2a2e;
|
||||
}
|
||||
.card {
|
||||
width: min(420px, calc(100vw - 32px));
|
||||
background: rgba(255,253,248,0.95);
|
||||
border: 1px solid #d7ccbb;
|
||||
border-radius: 24px;
|
||||
padding: 28px;
|
||||
box-shadow: 0 20px 40px rgba(31,42,46,0.08);
|
||||
}
|
||||
h1 { margin-top: 0; }
|
||||
label { display:block; margin-bottom: 6px; color:#66757f; font-size: 13px; }
|
||||
input {
|
||||
width:100%;
|
||||
padding: 12px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #d7ccbb;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
button {
|
||||
margin-top: 16px;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 12px 16px;
|
||||
background: #b8542a;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.muted { color:#66757f; }
|
||||
.flash {
|
||||
padding: 12px 14px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid #ddb0a7;
|
||||
background: #f7dfdb;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<h1>Admin Login</h1>
|
||||
<p class="muted">输入 `.env` 中配置的 `ADMIN_TOKEN`。</p>
|
||||
{% if flash %}
|
||||
<div class="flash">{{ flash.message }}</div>
|
||||
{% endif %}
|
||||
<form method="post" action="/admin/login">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
<label>Token</label>
|
||||
<input type="password" name="token" autofocus>
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user