Skip to content

Commit 99482bf

Browse files
committed
wip: fix font not loading properly
1 parent f220c5c commit 99482bf

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Sources/Pages/HomePage.swift

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ extension HomePage {
228228

229229
"@font-face" => {
230230
AnyProperty("font-family", "\"CommitMono\"")
231-
AnyProperty("font-src", "url(\"https://github.com/eigilnikolajsen/commit-mono/raw/ecd81cdbd7f7eb2acaaa2f2f7e1a585676f9beff/src/fonts/fontlab/CommitMonoV143-VF.woff2\")")
231+
AnyProperty("src", "url(\"https://raw.githubusercontent.com/eigilnikolajsen/commit-mono/ecd81cdbd7f7eb2acaaa2f2f7e1a585676f9beff/src/fonts/fontlab/CommitMonoV143-VF.woff2\")")
232232
AnyProperty("font-style", "normal")
233233
AnyProperty("font-weight", "400")
234234
AnyProperty("font-display", "swap")
@@ -267,8 +267,8 @@ extension HomePage {
267267
Class("file-name") => {
268268
Color("#777")
269269
AnyProperty("text-align", "end")
270-
AnyProperty("font-size", "0.85em")
271-
AnyProperty("font-weight", "600")
270+
AnyProperty("font-size", "0.75em")
271+
AnyProperty("font-weight", "500")
272272
AnyProperty("font-family", "\"CommitMono\", monospace")
273273
AnyProperty("padding", "0.5rem 1.5rem 0.5rem 1.5rem")
274274
}
@@ -289,6 +289,8 @@ extension HomePage {
289289

290290
Element(.code) => {
291291
AnyProperty("font-family", "\"CommitMono\", monospace")
292+
AnyProperty("font-feature-settings", "\"ss03\", \"ss04\", \"ss05\"")
293+
AnyProperty("line-height", "1")
292294
}
293295
}
294296

@@ -297,12 +299,15 @@ extension HomePage {
297299

298300
Class("hero") => {
299301
AnyProperty("padding-bottom", "1.5rem")
302+
AnyProperty("font-size", "0.9em")
300303
}
301304

302-
Class("hero-title") => {
303-
AnyProperty("all", "revert")
304-
AnyProperty("display", "inline")
305-
}
305+
// ".hero-title, .hero-subtitle, .hero-location" => {
306+
// // AnyProperty("all", "revert")
307+
// AnyProperty("display", "inline")
308+
// AnyProperty("font-family", "system-ui, 'Seggoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'")
309+
// }
310+
306311

307312
Class("hero-location") => {
308313
Color(.hex("#D0D0D0"))

0 commit comments

Comments
 (0)