From 4332994c2024e05e3610978c1643a973d8285cc5 Mon Sep 17 00:00:00 2001 From: dez Date: Tue, 9 Apr 2024 11:10:35 +0200 Subject: [PATCH] fix fonts loading --- main.go | 4 ++-- static/css/style.css | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index af09d82..0fdcf8b 100644 --- a/main.go +++ b/main.go @@ -108,9 +108,9 @@ func handleSearch(w http.ResponseWriter, r *http.Request) { switch searchType { case "text": - handleTextSearch(w, query, safe, lang) // Handles fetching and rendering text search results + handleTextSearch(w, query, safe, lang) case "image": - handleImageSearch(w, query, safe, lang, page) // Adjusted: Pass *http.Request to match the function signature + handleImageSearch(w, query, safe, lang, page) default: http.ServeFile(w, r, "static/search.html") } diff --git a/static/css/style.css b/static/css/style.css index ee261a3..2291126 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -4,9 +4,9 @@ font-style: normal; font-weight: 300; src: local(''), - url('/fonts/inter-v12-latin-300.woff2') format('woff2'), + url('/static/fonts/inter-v12-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ - url('/fonts/inter-v12-latin-300.woff') format('woff'); + url('/static/fonts/inter-v12-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } @@ -16,9 +16,9 @@ font-style: normal; font-weight: 400; src: local(''), - url('/fonts/inter-v12-latin-regular.woff2') format('woff2'), + url('/static/fonts/inter-v12-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ - url('/fonts/inter-v12-latin-regular.woff') format('woff'); + url('/static/fonts/inter-v12-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } @@ -28,9 +28,9 @@ font-style: normal; font-weight: 700; src: local(''), - url('/fonts/inter-v12-latin-700.woff2') format('woff2'), + url('/static/fonts/inter-v12-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ - url('/fonts/inter-v12-latin-700.woff') format('woff'); + url('/static/fonts/inter-v12-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } @@ -41,7 +41,7 @@ font-family: 'Material Icons Round'; font-style: normal; font-weight: 400; - src: url('/fonts/material-icons-round-v108-latin-regular.woff2') format('woff2'); + src: url('/static/fonts/material-icons-round-v108-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ }