Files

57 lines
2.5 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>个人主页 - Echo Tavern</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" />
</head>
<body class="user-profile-page"
data-user='{{ user | tojson | safe if user else "null" }}'
data-theme="{{ user.theme if user else 'dopamine' }}"
data-profile-username="{{ profile_username }}">
<header class="lobby-topbar">
<div class="brand-block">
<h1>个人主页</h1>
<p id="profile-subtitle">加载中...</p>
</div>
<div class="top-actions">
{% if user %}
<a class="link-btn" href="{{ url_for('user_profile_page', username=user.username) }}">我的主页</a>
<a class="link-btn" href="{{ url_for('user_achievements_page', username=user.username) }}">我的成就</a>
<a class="link-btn" href="{{ url_for('wallet_page') }}">积分中心</a>
<a class="link-btn" href="{{ url_for('store_page') }}">积分商城</a>
<a class="link-btn" href="{{ url_for('season_page') }}">赛季中心</a>
{% endif %}
<a class="link-btn" href="{{ url_for('rooms_page') }}">联机大厅</a>
<a class="link-btn" href="{{ url_for('leaderboard_page') }}">返回排行</a>
<a class="link-btn" href="{{ url_for('index') }}">返回大厅</a>
</div>
</header>
<main class="plaza-grid">
<section class="card">
<h2>用户信息</h2>
<div id="profile-hero" class="profile-hero"></div>
<div id="profile-meta" class="status-grid" style="margin-top: 0.8rem;"></div>
<h2 style="margin-top: 1rem;">成就展柜</h2>
<p id="achievement-summary" class="helper-text">加载中...</p>
<a id="achievement-detail-link" class="link-btn" href="#" style="margin-top: 0.6rem;">查看完整成就页</a>
<ul id="achievements-list" class="compact-list"></ul>
</section>
<section class="card">
<h2>邀请互动</h2>
<div id="invite-panel"></div>
<h2 style="margin-top: 1rem;">最近参与房间</h2>
<ul id="recent-rooms" class="compact-list"></ul>
</section>
</main>
<section id="status" class="status-banner"></section>
<script src="{{ url_for('static', filename='js/theme.js') }}"></script>
<script src="{{ url_for('static', filename='js/invite_notify.js') }}"></script>
<script src="{{ url_for('static', filename='js/user_profile.js') }}"></script>
</body>
</html>