skillhub/web/public
FenjuFu 1c3e9be9e9
fix(web): self-host Inter and JetBrains Mono fonts (#753)
* fix(web): self-host Inter and JetBrains Mono fonts

web/index.html loaded Inter + JetBrains Mono from fonts.googleapis.com at
runtime. On networks where Google Fonts is slow or unreachable (e.g. CN),
that stylesheet blocks first paint for tens of seconds (#716).

Vendor the same woff2 (from the @fontsource distribution) under
web/public/fonts and declare them in fonts.css with latin/latin-ext
unicode-range splits and font-display: swap, then point index.html at the
local stylesheet and drop the fonts.googleapis.com / fonts.gstatic.com hosts
from the page CSP. Only Inter and JetBrains Mono were ever fetched from the
CDN, so families and weights are unchanged; no external font requests remain.

Closes #716

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>

* docs(web): record vendored font licenses

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

---------

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
Co-authored-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-08-25 13:49:08 +08:00
..
fonts fix(web): self-host Inter and JetBrains Mono fonts (#753) 2026-08-25 13:49:08 +08:00
favicon.svg feat(web): add SkillHub logo as browser favicon 2026-03-14 11:45:55 +08:00
github-logo.svg feat(auth): add GitLab OAuth2 provider support (#264) 2026-04-17 19:56:32 +08:00
gitlab-logo.svg feat(auth): add GitLab OAuth2 provider support (#264) 2026-04-17 19:56:32 +08:00
robots.txt chore(web): remove doc injection and add crawler metadata (#102) 2026-03-19 15:33:06 +08:00
runtime-config.js fix(web): stabilize auth shell startup flow 2026-03-15 15:36:30 +08:00
sitemap.xml chore(web): remove doc injection and add crawler metadata (#102) 2026-03-19 15:33:06 +08:00