diff --git a/ui/src/app.css b/ui/src/app.css index e7bc911..c106a57 100644 --- a/ui/src/app.css +++ b/ui/src/app.css @@ -53,3 +53,13 @@ html { margin: 2em 0; } +/* ── Navigation progress bar ───────────────────────────────────────── */ +@keyframes progress-bar { + 0% { width: 0%; opacity: 1; } + 80% { width: 90%; opacity: 1; } + 100% { width: 100%; opacity: 0; } +} +.animate-progress-bar { + animation: progress-bar 8s cubic-bezier(0.1, 0.05, 0.1, 1) forwards; +} + diff --git a/ui/src/routes/+layout.svelte b/ui/src/routes/+layout.svelte index 0553763..7014c0d 100644 --- a/ui/src/routes/+layout.svelte +++ b/ui/src/routes/+layout.svelte @@ -1,6 +1,6 @@ @@ -85,13 +112,21 @@ {/if} -{#if !data.html} +{#if fetchingContent} +
Chapter content not available.
+{fetchError || 'Chapter content not available.'}