feat: 添加 PWA 支持和 SEO 优化

添加 PWA manifest 文件、favicon、结构化数据、sitemap 和 robots.txt。
优化根布局和组件的国际化支持,包括服务端语言检测和防止水合闪烁。
This commit is contained in:
2026-01-31 20:26:55 +08:00
parent b29de1dd80
commit a44a3f6a0d
13 changed files with 748 additions and 94 deletions

12
public/icon.svg Normal file
View File

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" fill="none">
<rect width="128" height="128" rx="28" fill="#3b82f6"/>
<rect x="16" y="16" width="40" height="40" rx="8" fill="white" opacity="0.9"/>
<rect x="72" y="16" width="40" height="40" rx="8" fill="white" opacity="0.7"/>
<rect x="16" y="72" width="40" height="40" rx="8" fill="white" opacity="0.7"/>
<rect x="72" y="72" width="40" height="40" rx="8" fill="white" opacity="0.5"/>
<path d="M30 32 L42 32 L42 42 L30 42 Z" fill="#3b82f6"/>
<circle cx="92" cy="36" r="6" fill="#3b82f6"/>
<rect x="32" y="82" width="16" height="16" rx="4" fill="#3b82f6"/>
<path d="M85 78 L99 78 L99 86 L85 86 Z" fill="#3b82f6"/>
<path d="M85 90 L99 90 L99 98 L85 98 Z" fill="#3b82f6"/>
</svg>

After

Width:  |  Height:  |  Size: 759 B