Skip to content

Commit db8e4ce

Browse files
ui: improve loading layout animation
1 parent 59ba848 commit db8e4ce

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎frontend/src/app/loading.tsx‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
import DashboardShell from "@/components/DashboardShell";
21
import { Loader2 } from "lucide-react";
32

3+
// Lightweight route-transition fallback. Deliberately NOT a full DashboardShell
4+
// (that rendered a second navbar/main — heavy, and the inert "double-main").
45
export default function Loading() {
56
return (
6-
<DashboardShell>
7-
<div className="flex flex-col items-center justify-center min-h-[60vh] gap-4 text-muted-foreground animate-in fade-in duration-500">
8-
<Loader2 className="w-10 h-10 animate-spin text-primary" />
9-
<p className="text-sm font-semibold tracking-wide uppercase">Organizing insights...</p>
10-
</div>
11-
</DashboardShell>
7+
<div className="fixed inset-0 z-40 flex flex-col items-center justify-center gap-3 bg-background/55 backdrop-blur-sm pointer-events-none">
8+
<Loader2 className="w-8 h-8 text-primary animate-spin" />
9+
<span className="text-[11px] font-mono uppercase tracking-[0.2em] text-muted-foreground">
10+
Loading…
11+
</span>
12+
</div>
1213
);
1314
}

0 commit comments

Comments
 (0)