Change header font
authorLanius Trolling <lanius@laniustrolling.dev>
Thu, 21 Jul 2022 15:23:04 +0000 (11:23 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Thu, 21 Jul 2022 15:23:04 +0000 (11:23 -0400)
src/main/kotlin/info/mechyrdia/lore/view_tpl.kt
src/main/resources/static/style.css

index 5c152290513bc1a365e0a008f03ed6fd0d88ee6a..b0dc6b9f31ce2bc19786652c219522e231f6cee6 100644 (file)
@@ -3,7 +3,7 @@ package info.mechyrdia.lore
 import io.ktor.application.*
 import kotlinx.html.*
 
-fun ApplicationCall.page(pageTitle: String? = null, navBar: List<NavItem>? = null, sidebar: Sidebar? = null, content: SECTIONS.() -> Unit): HTML.() -> Unit {
+fun ApplicationCall.page(pageTitle: String, navBar: List<NavItem>? = null, sidebar: Sidebar? = null, content: SECTIONS.() -> Unit): HTML.() -> Unit {
        val theme = request.cookies["factbook-theme"]
        
        return {
@@ -24,12 +24,12 @@ fun ApplicationCall.page(pageTitle: String? = null, navBar: List<NavItem>? = nul
                        
                        link(rel = "preconnect", href = "https://fonts.googleapis.com")
                        link(rel = "preconnect", href = "https://fonts.gstatic.com") { attributes["crossorigin"] = "anonymous" }
-                       link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Jetbrains+Mono:wght@400;600;800&display=swap")
+                       link(rel = "stylesheet", href = "https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Oxanium:wght@400;600;700;800&display=swap")
                        
                        link(rel = "stylesheet", href = "/static/style.css")
                        
                        title {
-                               +(pageTitle ?: "Mechyrdiaverse Lorebase")
+                               +pageTitle
                        }
                }
                body {
index 1986f534d62a222a73238d2416565fae5eafe94e..09e1f781ca6c33cd9506165a364670fe40690d66 100644 (file)
@@ -267,7 +267,7 @@ div#bg {
 }
 
 h1, h2, h3, h4, h5, h6 {
-       font-family: 'JetBrains Mono', monospace;
+       font-family: Oxanium, monospace;
        margin: 0.5em 0;
 }
 
@@ -540,7 +540,7 @@ th {
        text-align: center;
        vertical-align: center;
 
-       font-family: 'JetBrains Mono', monospace;
+       font-family: Oxanium, monospace;
        font-size: 1.0em;
        font-variant: small-caps;
        font-weight: 700;