feat: self-host all external assets + larger base font
- Vendor Google Fonts: 23 woff2 + localized fonts.css under public/fonts/, referenced via /fonts/fonts.css. Drop the googleapis/gstatic preconnects and the (now unused) Font Awesome CDN link. No runtime external resource requests remain. - Dockerfile copies public/fonts into the nginx image. - html base font-size 16 -> 17px (all rem UI text scales up slightly). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,19 +6,10 @@
|
||||
<meta name="color-scheme" content="dark">
|
||||
<title>Hangman Lab</title>
|
||||
<link rel="icon" type="image/svg+xml" href="./icons/hangman-lab-logo.svg?v=hl-20260517">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Major+Mono+Display&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link rel="stylesheet" href="/fonts/fonts.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<link
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user