From c100d2c1edd7823e15a29998714b00f91b2a9eec Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 7 Apr 2024 03:07:59 -0700 Subject: [PATCH] feat: add loading bar component --- src/lib/components/BackToTop.svelte | 2 +- src/lib/components/LoadingBar.svelte | 38 +++++++++++++++++++++++++ src/lib/components/Navbar/Navbar.svelte | 2 +- src/lib/components/Toc/TocHeader.svelte | 2 +- src/routes/+layout.svelte | 7 +++++ 5 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 src/lib/components/LoadingBar.svelte diff --git a/src/lib/components/BackToTop.svelte b/src/lib/components/BackToTop.svelte index 4a20ab2..96cc601 100644 --- a/src/lib/components/BackToTop.svelte +++ b/src/lib/components/BackToTop.svelte @@ -23,7 +23,7 @@ {#if showButton} -
+
{/if} diff --git a/src/lib/components/LoadingBar.svelte b/src/lib/components/LoadingBar.svelte new file mode 100644 index 0000000..a299fd3 --- /dev/null +++ b/src/lib/components/LoadingBar.svelte @@ -0,0 +1,38 @@ + + +{#if !hidden} +
+ +
+ +
+{/if} diff --git a/src/lib/components/Navbar/Navbar.svelte b/src/lib/components/Navbar/Navbar.svelte index e142629..4513aff 100644 --- a/src/lib/components/Navbar/Navbar.svelte +++ b/src/lib/components/Navbar/Navbar.svelte @@ -26,7 +26,7 @@ }); -