feat(ui): polished dashboard profile cards, remove manage button

This commit is contained in:
2026-07-05 19:12:27 +08:00
parent 3cb286d088
commit 419ec47b99
2 changed files with 29 additions and 26 deletions

View File

@@ -4,31 +4,30 @@
<h1>👋 欢迎,{{ user.username }}</h1>
<section class="section">
<div class="section-header">
<h2>我的 Profiles</h2>
<a href="/profiles" class="btn btn-sm">管理 Profiles</a>
</div>
{% if profiles %}
<div class="card-grid">
{% for p in profiles %}
<a href="/profiles/{{ p.id }}/postcards" class="card dashboard-card">
<h3>{{ p.nickname }}</h3>
<div class="stats-grid">
<div class="stat-item">
<span class="stat-num">{{ stats[p.id].total }}</span>
<span class="stat-label">总计</span>
<div class="dc-header">
<span class="dc-icon">📮</span>
<h3>{{ p.nickname }}</h3>
</div>
<div class="dc-stats">
<div class="dc-stat">
<span class="dc-num">{{ stats[p.id].total }}</span>
<span class="dc-label">总计</span>
</div>
<div class="stat-item">
<span class="stat-num stat-sent">{{ stats[p.id].sent }}</span>
<span class="stat-label">寄出</span>
<div class="dc-stat">
<span class="dc-num dc-sent">{{ stats[p.id].sent }}</span>
<span class="dc-label">寄出</span>
</div>
<div class="stat-item">
<span class="stat-num stat-delivered">{{ stats[p.id].delivered }}</span>
<span class="stat-label">送达</span>
<div class="dc-stat">
<span class="dc-num dc-delivered">{{ stats[p.id].delivered }}</span>
<span class="dc-label">送达</span>
</div>
<div class="stat-item">
<span class="stat-num stat-received">{{ stats[p.id].received }}</span>
<span class="stat-label">收到</span>
<div class="dc-stat">
<span class="dc-num dc-received">{{ stats[p.id].received }}</span>
<span class="dc-label">收到</span>
</div>
</div>
</a>