Commit d043f2f2 authored by shrabbit's avatar shrabbit
Browse files

perf: 字体本地化,移除全部 Google Fonts 引用

将 Cormorant Garamond / JetBrains Mono / Noto Sans SC / Noto Serif SC 全部改为本地 woff2 加载,首屏加载时间从 ~15s 降至 ~1.2s。

变更:

- 新增 app/assets/fonts/ 目录(含 NotoSansSC/NotoSerifSC 分片包 + Cormorant/JetBrains 独立 woff2)

- 新增 app/assets/styles/fonts.css 集中管理 @font-face 声明

- 改写 noto-sans-sc-woff2/SC.css:CDN URL 替换为本地相对路径,font-family 'SC' → 'Noto Sans SC'

- nuxt.config.ts 移除 Google Fonts preconnect 和 stylesheet 链接

- variables.css 字体变量保持不变(已有合理 fallback 链)
parent 110fc657
Loading
Loading
Loading
Loading
+147 KiB

File added.

No diff preview for this file type.

+109 KiB

File added.

No diff preview for this file type.

+109 KiB

File added.

No diff preview for this file type.

+117 KiB

File added.

No diff preview for this file type.

+147 KiB

File added.

No diff preview for this file type.

Loading