From 9314c214002c4f0ae705c8711981066d357dc118 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 14 Oct 2024 17:05:02 +0200 Subject: [PATCH] include Monocraft in website --- server.spl | 1 + style.css | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server.spl b/server.spl index b83afc9..23416e5 100644 --- a/server.spl +++ b/server.spl @@ -52,6 +52,7 @@ func handle-client { | with client ; :serve-file-cached<"screenshot_seedoverlay_generating.png" "/screenshots/seedoverlay/generating.png" "image/png"> :serve-file-cached<"screenshot_seedoverlay_hut.png" "/screenshots/seedoverlay/hut.png" "image/png"> :serve-file-cached<"screenshot_seedoverlay_underground.png" "/screenshots/seedoverlay/underground.png" "image/png"> + :serve-file-cached<"Monocraft.ttf" "/Monocraft.ttf" "font/ttf"> :is-open if { 404.html client:write-head<404 "Not found">:write-html-body:finish; diff --git a/style.css b/style.css index 37742bd..11dd88e 100644 --- a/style.css +++ b/style.css @@ -1,3 +1,8 @@ +@font-face { + font-family: MonocraftOnline; + src: url(/Monocraft.ttf); +} + html { margin: 0; background-color: #502060; @@ -10,7 +15,7 @@ body { margin-top: min(10em, 30vh); margin-bottom: min(10em, 30vh); padding: 0; - font-family: Monocraft, monospace, sans-serif; + font-family: Monocraft, MonocraftOnline, monospace, sans-serif; } a { color: #00ffff;