Files
my_one_web/templates/register.html
小白 580b972d59 fix: 修复导航栏内主题按钮对齐问题
- 添加 .quick-nav .theme-toggle 样式,设置 position: static
- 让主题按钮跟随导航栏 flex 布局,与其他按钮对齐
- 删除重复的样式定义
- 更新 CSS 版本号
2026-03-12 15:08:29 +08:00

56 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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=20260312e">
</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('register') }}">
<div class="form-group">
<input type="text" name="username" placeholder="用户名至少3个字符" required>
</div>
<div class="form-group">
<input type="password" name="password" placeholder="密码至少6个字符" required>
</div>
<div class="form-group">
<input type="password" name="confirm_password" placeholder="确认密码" required>
</div>
<button type="submit" class="btn btn-primary btn-full">注册</button>
</form>
<p class="auth-link">
已有账户?<a href="{{ url_for('login') }}">立即登录</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>