diff --git a/res/static/img/header.webp b/res/static/img/header.webp
new file mode 100644
index 0000000..c0eda4f
Binary files /dev/null and b/res/static/img/header.webp differ
diff --git a/res/static/img/northernlights.webp b/res/static/img/northernlights.webp
new file mode 100644
index 0000000..2e56ac8
Binary files /dev/null and b/res/static/img/northernlights.webp differ
diff --git a/res/static/img/nova.xcf b/res/static/img/nova.xcf
new file mode 100644
index 0000000..75a50e6
Binary files /dev/null and b/res/static/img/nova.xcf differ
diff --git a/res/static/img/nova_1024.png b/res/static/img/nova_1024.png
new file mode 100644
index 0000000..95cdc67
Binary files /dev/null and b/res/static/img/nova_1024.png differ
diff --git a/res/static/img/nova_128.png b/res/static/img/nova_128.png
new file mode 100644
index 0000000..4438b39
Binary files /dev/null and b/res/static/img/nova_128.png differ
diff --git a/res/static/img/nova_256.png b/res/static/img/nova_256.png
new file mode 100644
index 0000000..58edcb8
Binary files /dev/null and b/res/static/img/nova_256.png differ
diff --git a/res/static/img/nova_32.png b/res/static/img/nova_32.png
new file mode 100644
index 0000000..8eac89f
Binary files /dev/null and b/res/static/img/nova_32.png differ
diff --git a/res/static/img/nova_512.png b/res/static/img/nova_512.png
new file mode 100644
index 0000000..46ac27b
Binary files /dev/null and b/res/static/img/nova_512.png differ
diff --git a/res/static/img/nova_64.png b/res/static/img/nova_64.png
new file mode 100644
index 0000000..b6ed533
Binary files /dev/null and b/res/static/img/nova_64.png differ
diff --git a/res/static/img/nova_title.xcf b/res/static/img/nova_title.xcf
new file mode 100644
index 0000000..0e639b0
Binary files /dev/null and b/res/static/img/nova_title.xcf differ
diff --git a/res/template/wrap.html b/res/template/wrap.html
index 36f61ce..0e698f3 100644
--- a/res/template/wrap.html
+++ b/res/template/wrap.html
@@ -10,16 +10,17 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
{{ template "opengraph" .OGData }}
diff --git a/svelte/src/util/Formatting.ts b/svelte/src/util/Formatting.ts
index c419559..4bfdeb1 100644
--- a/svelte/src/util/Formatting.ts
+++ b/svelte/src/util/Formatting.ts
@@ -58,11 +58,24 @@ const hour = minute * 60
const day = hour * 24
export const formatDuration = (ms: number, decimals: number) => {
+ let remainingDecimals = decimals
let res = ""
- if (ms >= day) { res += Math.floor(ms / day) + "d " }
- if (ms >= hour) { res += Math.floor((ms % day) / hour) + "h " }
- if (ms >= minute) { res += Math.floor((ms % hour) / minute) + "m " }
- return res + ((ms % minute) / second).toFixed(decimals) + "s"
+ if (ms >= day && remainingDecimals > 0) {
+ res += Math.floor(ms / day) + "d "
+ remainingDecimals--
+ }
+ if (ms >= hour && remainingDecimals > 0) {
+ res += Math.floor((ms % day) / hour) + "h "
+ remainingDecimals--
+ }
+ if (ms >= minute && remainingDecimals > 0) {
+ res += Math.floor((ms % hour) / minute) + "m "
+ remainingDecimals--
+ }
+ if (remainingDecimals > 0) {
+ res += ((ms % minute) / second).toFixed(remainingDecimals) + "s"
+ }
+ return res
}
export const formatDate = (
diff --git a/svelte/src/util/TabMenu.svelte b/svelte/src/util/TabMenu.svelte
index 6d28ec7..08cb998 100644
--- a/svelte/src/util/TabMenu.svelte
+++ b/svelte/src/util/TabMenu.svelte
@@ -49,7 +49,7 @@ const get_page = () => {
}
title = current_subpage === null ? current_page.title : current_subpage.title
- window.document.title = title+" / FNX"
+ window.document.title = title+" / Nova"
}
let current_page: Tab = $state(null)
diff --git a/svelte/src/wrap/Router.svelte b/svelte/src/wrap/Router.svelte
index 5fd1518..43b7f35 100644
--- a/svelte/src/wrap/Router.svelte
+++ b/svelte/src/wrap/Router.svelte
@@ -98,7 +98,7 @@ const load_page = (pathname: string, history: boolean): boolean => {
return load_page("/login", true)
}
- window.document.title = current_page.title+" / FNX"
+ window.document.title = current_page.title+" / Nova"
if(history) {
window.history.pushState({}, window.document.title, pathname)