Files
my_one_web/templates/login.html
小白 d2f12aca17 feat: 欢迎页面添加记忆面板导航按钮
- 新增 🧠 记忆 按钮,链接到 Memory Viewer 面板
- 地址: http://1.14.58.157:18798
- 更新 CSS 版本号
2026-03-12 19:15:54 +08:00

53 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录 - 云下飞</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312f">
</head>
<body>
<!-- 快捷导航栏 -->
<div class="quick-nav">
<button class="theme-toggle" aria-label="切换主题">🌙</button>
</div>
<div class="container auth-container">
<div class="avatar">
<span>🔐</span>
</div>
<h1>用户登录</h1>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="flash-{{ category }}">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<form method="POST" action="{{ url_for('login') }}">
<div class="form-group">
<input type="text" name="username" placeholder="用户名" required>
</div>
<div class="form-group">
<input type="password" name="password" placeholder="密码" required>
</div>
<button type="submit" class="btn btn-primary btn-full">登录</button>
</form>
<p class="auth-link">
还没有账户?<a href="{{ url_for('register') }}">立即注册</a>
</p>
<p class="auth-link">
<a href="{{ url_for('index') }}">返回首页</a>
</p>
<div class="footer">
Powered by <span>Flask</span> & <span>OpenClaw</span>
</div>
</div>
<script src="{{ url_for('static', filename='js/theme.js') }}"></script>
</body>
</html>