From 14feff1f92149d18767e58db16f0d2eebc88b757 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 27 Feb 2023 17:25:06 +0100 Subject: embed fonts --- client-web/.gitignore | 1 + client-web/makefile | 5 ++++- client-web/public/assets/style/master.css | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'client-web') diff --git a/client-web/.gitignore b/client-web/.gitignore index 55fe618..99be205 100644 --- a/client-web/.gitignore +++ b/client-web/.gitignore @@ -1,2 +1,3 @@ /public/assets/bundle.js /public/assets/sw.js +/public/assets/font diff --git a/client-web/makefile b/client-web/makefile index e81a09d..2623c6e 100644 --- a/client-web/makefile +++ b/client-web/makefile @@ -1,5 +1,5 @@ .PHONY: all watch -all: public/assets/bundle.js public/assets/sw.js +all: public/assets/bundle.js public/assets/sw.js public/assets/font/include.css watch: deno bundle --no-check --watch source/index.ts public/assets/bundle.js & deno bundle --no-check --watch source/sw/worker.ts public/assets/sw.js @@ -7,3 +7,6 @@ public/assets/bundle.js: $(shell find source -type f -name '*.ts') deno bundle --no-check --unstable source/index.ts > $@ public/assets/sw.js: $(shell find source/sw -type f -name '*.ts') deno bundle --no-check --unstable source/sw/worker.ts > $@ +public/assets/font/include.css: + mkdir -p public/assets/font + curl 'https://s.metamuffin.org/static/font-ubuntu.tar' | tar -xC public/assets/font diff --git a/client-web/public/assets/style/master.css b/client-web/public/assets/style/master.css index c6527b8..13f8f2f 100644 --- a/client-web/public/assets/style/master.css +++ b/client-web/public/assets/style/master.css @@ -3,7 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2022 metamuffin */ -@import url("https://s.metamuffin.org/static/font-ubuntu/include.css"); +@import url("../font/include.css"); @import url("./logger.css"); @import url("./chat.css"); @import url("./room.css"); -- cgit v1.2.3-70-g09d2