diff --git a/admin/admin.py b/admin/admin.py index cd26815..a7c1dea 100644 --- a/admin/admin.py +++ b/admin/admin.py @@ -91,7 +91,7 @@ def add_post() -> None: def remove_post() -> None: token = get_token() id = input("[>] Post ID: ") - res = req.delete(join("admin/blog/del")+f"?id={id}", headers={ + res = req.delete(join("admin/blog/remove")+f"?id={id}", headers={ "Authorization": token }).json() diff --git a/app/src/app.html b/app/src/app.html index ab40404..56aa21c 100644 --- a/app/src/app.html +++ b/app/src/app.html @@ -3,6 +3,7 @@ + %sveltekit.head% diff --git a/app/src/lib/navbar.svelte b/app/src/lib/navbar.svelte index ae8e82c..ce5392e 100644 --- a/app/src/lib/navbar.svelte +++ b/app/src/lib/navbar.svelte @@ -11,7 +11,8 @@ home services blog - + + diff --git a/app/src/lib/service.svelte b/app/src/lib/service.svelte index 3baf414..5cf75d7 100644 --- a/app/src/lib/service.svelte +++ b/app/src/lib/service.svelte @@ -2,15 +2,15 @@ export let desc export let url - let icon = "󰅇" + let icon = "" let audio function copy() { audio.play() navigator.clipboard.writeText(url) - icon = "󰅎" + icon = "" setTimeout(()=>{ - icon = "󰅇" + icon = "" }, 500) } @@ -24,8 +24,8 @@

{desc}

- {icon} - + {@html icon} +
diff --git a/app/src/routes/+page.svelte b/app/src/routes/+page.svelte index db87fe8..ce3dce6 100644 --- a/app/src/routes/+page.svelte +++ b/app/src/routes/+page.svelte @@ -32,10 +32,22 @@ You are currently on my personal website, for all you nerds, here is some techinal details you may want to know: @@ -55,9 +67,18 @@ Here are some links if you want to get in contact with me: Or you can add me on XMPP: ngn@chat.ngn.tf
diff --git a/app/src/routes/blog/[id]/+page.svelte b/app/src/routes/blog/[id]/+page.svelte index 5208eed..bbf8345 100644 --- a/app/src/routes/blog/[id]/+page.svelte +++ b/app/src/routes/blog/[id]/+page.svelte @@ -111,9 +111,13 @@ {@html sanitized}
-

{upvote()}} class="{upvote_status}">󰜷

+

{upvote()}} class="{upvote_status}"> + +

{data.vote}

-

{downvote()}} class="{downvote_status}">󰜮

+

{downvote()}} class="{downvote_status}"> + +

@@ -144,10 +148,12 @@ main { flex-direction: column; text-align: center; text-shadow: var(--text-shadow); + gap: 3px; + margin-top: 10px; } .votes h3{ - font-size: 40px; + font-size: 27px; cursor: pointer; } diff --git a/app/src/routes/services/+page.svelte b/app/src/routes/services/+page.svelte index 95942b7..1e1984c 100644 --- a/app/src/routes/services/+page.svelte +++ b/app/src/routes/services/+page.svelte @@ -15,11 +15,11 @@
ls -l services
-

+

These are free to use FOSS services that I host on my server. If you want an account on any of these services, or if you are having issues with them, - please get in contact with me + please send an email to services@ngn.tf

{#each data.services as services_list} @@ -39,16 +39,19 @@ animation-iteration-count: infinite; } +.info a { + text-decoration: none; +} + .info { display: flex; flex-direction: row; justify-content: space-between; align-items: center; - padding: 40px; + padding: 30px; color: white; border-radius: var(--radius); font-size: 25px; - margin-bottom: 30px; } main { diff --git a/app/static/font.css b/app/static/font.css index 3cf3144..cdbadfd 100644 --- a/app/static/font.css +++ b/app/static/font.css @@ -1,8 +1,10 @@ +/* im using nerd fonts btw */ +@import "https://www.nerdfonts.com/assets/css/webfont.css"; + @font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; - /* im using nerd fonts btw */ - src: url("https://files.ngn.tf/fonts/UbuntuNF.ttf"); + src: url("/ubuntu.ttf"); } diff --git a/app/static/ubuntu.ttf b/app/static/ubuntu.ttf new file mode 100644 index 0000000..45a038b Binary files /dev/null and b/app/static/ubuntu.ttf differ