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

50 lines
1.8 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>欢迎回来 - {{ username }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312e">
</head>
<body>
<!-- 快捷导航栏 - 登录后显示 -->
<div class="quick-nav">
<a href="http://1.14.58.157:6806" target="_blank" class="nav-btn" title="思源笔记">📝 思源</a>
<a href="http://1.14.58.157:3000" target="_blank" class="nav-btn" title="Gitea">📦 Gitea</a>
<a href="http://1.14.58.157:8080" target="_blank" class="nav-btn" title="NocoDB">📊 NocoDB</a>
<button class="theme-toggle" aria-label="切换主题">🌙</button>
</div>
<div class="container">
<div class="avatar">
<span class="sparkle">🎉</span>
</div>
<h1>欢迎回来,{{ username }}</h1>
<p class="welcome">Welcome Back!</p>
<p class="message">
您已成功登录<br>
这是您的专属空间<br>
小白一直陪伴着您 🐶
</p>
<div class="auth-buttons">
<a href="{{ url_for('logout') }}" class="btn btn-danger">退出登录</a>
</div>
<div class="footer">
Powered by <span>Flask</span> & <span>OpenClaw</span>
</div>
</div>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flash-messages">
{% for category, message in messages %}
<div class="flash-{{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
<script src="{{ url_for('static', filename='js/theme.js') }}"></script>
</body>
</html>