feat: 浏览量统计、浏览记录追踪、UI色彩优化

- 新增 Post.viewCount 字段,文章详情/列表/精选卡片显示浏览量
- 新增 PageView 模型记录访客IP(脱敏)、设备类型、来源
- 后台新增浏览记录独立页面及侧边栏菜单
- 仪表盘新增访问概览:页面访问/今日/独立IP/设备分布
- 整体色彩体系优化:降低黑白对比度、统一暖色调
- UI细节修复:focus-visible、Footer空列、mobile hover、transition-all等10+项
This commit is contained in:
胡旭
2026-06-30 09:09:46 +08:00
parent 58c27f96bf
commit fae61f924e
29 changed files with 789 additions and 84 deletions
+55
View File
@@ -0,0 +1,55 @@
<svg viewBox="0 0 480 80" xmlns="http://www.w3.org/2000/svg">
<defs>
<style>
.logo-text {
font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
}
.logo-sub {
font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
}
</style>
</defs>
<!-- 印章图标 (缩放到 64×64, 垂直居中) -->
<g transform="translate(0, 8) scale(0.32)">
<!-- 印章底色 -->
<rect width="200" height="200" rx="12" ry="12" fill="#F7F4EB"/>
<!-- 外框 -->
<path
d="M 16,14 C 50,11 140,11 184,14 C 187,50 187,140 184,186 C 140,189 50,189 16,186 C 13,140 13,50 16,14 Z"
fill="none" stroke="#A63D2F" stroke-width="7.5" stroke-linecap="round" stroke-linejoin="round"
/>
<!-- 内框 -->
<path
d="M 33,31 C 60,29 140,29 167,31 C 169,60 169,140 167,169 C 140,171 60,171 33,169 C 31,140 31,60 33,31 Z"
fill="none" stroke="#A63D2F" stroke-width="2.2" stroke-linecap="round"
/>
<!-- 「随」字 -->
<text
x="100" y="118"
text-anchor="middle" dominant-baseline="central"
font-family="'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif"
font-size="100" font-weight="900" fill="#A63D2F" letter-spacing="0.02em"
></text>
</g>
<!-- 博客名称 -->
<text
x="90" y="38"
class="logo-text"
font-size="28" font-weight="600" fill="#1E1B18"
letter-spacing="0.12em"
></text>
<!-- 域名 / 副标题 -->
<text
x="90" y="60"
class="logo-sub"
font-size="13" font-weight="400" fill="#6B655E"
letter-spacing="0.18em"
font-style="italic"
>asui.xyz</text>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB