Create templates/login.html
Browse files- templates/login.html +42 -0
templates/login.html
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="zh-CN">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>登录 - 订阅转换星空工坊</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
8 |
+
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&display=swap" rel="stylesheet">
|
9 |
+
</head>
|
10 |
+
<body>
|
11 |
+
<div class="login-container">
|
12 |
+
<div class="stars"></div>
|
13 |
+
<div class="twinkling"></div>
|
14 |
+
<div class="login-card">
|
15 |
+
<h1>✨ 订阅转换 ✨</h1>
|
16 |
+
<h3>请登录以使用服务</h3>
|
17 |
+
|
18 |
+
{% with messages = get_flashed_messages() %}
|
19 |
+
{% if messages %}
|
20 |
+
<div class="alert alert-error">
|
21 |
+
{% for message in messages %}
|
22 |
+
{{ message }}
|
23 |
+
{% endfor %}
|
24 |
+
</div>
|
25 |
+
{% endif %}
|
26 |
+
{% endwith %}
|
27 |
+
|
28 |
+
<form method="POST" action="{{ url_for('login') }}">
|
29 |
+
<div class="form-group">
|
30 |
+
<label for="username">用户名</label>
|
31 |
+
<input type="text" id="username" name="username" required>
|
32 |
+
</div>
|
33 |
+
<div class="form-group">
|
34 |
+
<label for="password">密码</label>
|
35 |
+
<input type="password" id="password" name="password" required>
|
36 |
+
</div>
|
37 |
+
<button type="submit" class="btn-login">登录</button>
|
38 |
+
</form>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
</body>
|
42 |
+
</html>
|