perf: self-host heading fonts

This commit is contained in:
chrnx committed 2026-08-02 17:37:56 -05:00
1 parent 4b91f67e15
commit af22bf7f77
7 files changed
+122 -6

No files matched your search

@@ -78,6 +78,5 @@ const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandl
display: block;
margin-top: 0.5rem;
font-size: 0.8rem;
opacity: 0.75;
}
</style>
+1 -1
View File
@@ -30,7 +30,7 @@ class MeController {
</div>
<div class="see-it__code">
<Code code={snippet} lang="ts" theme="github-dark" />
<Code code={snippet} lang="ts" theme="github-dark-high-contrast" />
</div>
<p class="see-it__caption">Declare what you need. The framework figures out the order.</p>
+7 -3
View File
@@ -80,9 +80,13 @@ const serializedStructuredData = structuredData
<link rel="alternate" type="application/rss+xml" title="Green Tea. Blog" href="/rss.xml" />
<!-- Fonts -->
<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=Zen+Maru+Gothic:wght@500;700&display=swap" rel="stylesheet" />
<link
rel="preload"
href="/fonts/zen-maru-gothic-latin-700.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<meta name="generator" content={Astro.generator} />
</head>
+21 -1
View File
@@ -1,5 +1,25 @@
/* Green Tea. — marketing site global styles */
@import './brand.css';
@font-face {
font-family: 'Zen Maru Gothic';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/fonts/zen-maru-gothic-latin-500.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Zen Maru Gothic';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/zen-maru-gothic-latin-700.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
:root {
--base: #0d1117;