diff --git a/web/src/lib/components/page_loading_bar.svelte b/web/src/lib/components/page_loading_bar.svelte new file mode 100644 index 00000000..92f3c1e3 --- /dev/null +++ b/web/src/lib/components/page_loading_bar.svelte @@ -0,0 +1,285 @@ + + + +{#if running || width > 0} + + {#if running} +
+ {/if} + +{/if} + + \ No newline at end of file diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 071190d3..3dd0919a 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -13,6 +13,7 @@ import "../css/app.css"; import "../css/components.css"; import "../css/theme.css"; + import PageLoadingBar from "$lib/components/page_loading_bar.svelte"; beforeNavigate((n) => { if (!$currentUser && isRouteProtected(n.to?.url?.pathname ?? "")) { @@ -68,6 +69,7 @@ {/if} +