dump nerdfonts from the website to use locally
Some checks failed
Build the docker image for the frontend application / build (push) Failing after 20s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-04-07 05:58:46 +03:00
parent 66c96ae312
commit 9a72d3f95d
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D
4 changed files with 28 additions and 7 deletions

1
app/.gitignore vendored
View File

@ -8,3 +8,4 @@ node_modules
!.env.example !.env.example
vite.config.js.timestamp-* vite.config.js.timestamp-*
vite.config.ts.timestamp-* vite.config.ts.timestamp-*
nerdfonts.*

View File

@ -1,10 +1,25 @@
all: NF_CSS = static/css/nerdfonts.css
NF_WOFF = static/assets/nerdfonts.woff2
all: $(NF_CSS)
npm run build npm run build
$(NF_CSS): $(NF_WOFF)
wget "https://www.nerdfonts.com/assets/css/webfont.css" -O $@
sed 's/\.\.\/fonts\/Symbols-2048-em Nerd Font Complete\.woff2/\/assets\/nerdfonts\.woff2/g' -i $@
$(NF_WOFF):
wget "https://www.nerdfonts.com/assets/fonts/Symbols-2048-em%20Nerd%20Font%20Complete.woff2" -O $@
run: $(NF_CSS)
npm run dev
format: format:
npm run format npm run format
run: clean:
npm run dev rm -rf build
rm $(NF_CSS)
rm $(NF_WOFF)
.PHONY: format .PHONY: format run clean

View File

@ -1,6 +1,3 @@
/* im using nerd fonts btw */
@import "https://www.nerdfonts.com/assets/css/webfont.css";
@font-face { @font-face {
font-family: "Ubuntu"; font-family: "Ubuntu";
font-style: normal; font-style: normal;

View File

@ -1,4 +1,12 @@
/*
* animations.css: stuff like the cursor animation
* webfont.css: webfont dumped from https://www.nerdfonts.com/assets/css/webfont.css
* font.css: the main font (Ubuntu)
*/
@import "./animations.css"; @import "./animations.css";
@import "./nerdfonts.css";
@import "./font.css"; @import "./font.css";
:root { :root {