Upload templates/login.html with huggingface_hub
Browse files- templates/login.html +45 -0
templates/login.html
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-TW">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>PRA Analysis - Login</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
+
<style>
|
| 9 |
+
body { background: #f5f7fa; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
|
| 10 |
+
.login-card { width: 380px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.1); padding: 2.5rem; }
|
| 11 |
+
.login-title { text-align: center; margin-bottom: 1.5rem; }
|
| 12 |
+
.login-title h2 { margin-bottom: .3rem; }
|
| 13 |
+
</style>
|
| 14 |
+
</head>
|
| 15 |
+
<body>
|
| 16 |
+
<div class="login-card">
|
| 17 |
+
<div class="login-title">
|
| 18 |
+
<h2>PRA Analysis</h2>
|
| 19 |
+
<p class="text-muted small">LABScreen PRA Class I / II</p>
|
| 20 |
+
</div>
|
| 21 |
+
|
| 22 |
+
{% if error %}
|
| 23 |
+
<div class="alert alert-danger py-2 small">{{ error }}</div>
|
| 24 |
+
{% endif %}
|
| 25 |
+
{% if success %}
|
| 26 |
+
<div class="alert alert-success py-2 small">{{ success }}</div>
|
| 27 |
+
{% endif %}
|
| 28 |
+
|
| 29 |
+
<form method="post" action="/login">
|
| 30 |
+
<div class="mb-3">
|
| 31 |
+
<label class="form-label small">帳號</label>
|
| 32 |
+
<input type="text" class="form-control" name="username" autofocus required>
|
| 33 |
+
</div>
|
| 34 |
+
<div class="mb-3">
|
| 35 |
+
<label class="form-label small">密碼</label>
|
| 36 |
+
<input type="password" class="form-control" name="password" required>
|
| 37 |
+
</div>
|
| 38 |
+
<button type="submit" class="btn btn-primary w-100">登入</button>
|
| 39 |
+
<div class="text-center mt-3">
|
| 40 |
+
<a href="/register" class="small">註冊新帳號</a>
|
| 41 |
+
</div>
|
| 42 |
+
</form>
|
| 43 |
+
</div>
|
| 44 |
+
</body>
|
| 45 |
+
</html>
|