forked from Stellar-split/split-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.tsx
More file actions
26 lines (23 loc) · 868 Bytes
/
Copy pathloading.tsx
File metadata and controls
26 lines (23 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { SkeletonCard } from "@/components/Skeleton";
/**
* Route-level loading UI for dashboard.
* Shown while the page is being server-rendered.
*/
export default function DashboardLoading() {
return (
<main className="max-w-3xl mx-auto w-full px-4 sm:px-6 py-16 overflow-x-hidden">
<div className="flex items-center justify-between mb-10 flex-wrap gap-3">
<div className="h-9 w-40 bg-gray-200 dark:bg-gray-700 rounded animate-pulse" />
<div className="h-11 w-32 bg-gray-200 dark:bg-gray-700 rounded-lg animate-pulse" />
</div>
<div className="mb-6">
<div className="h-12 w-full bg-gray-100 dark:bg-gray-800 rounded-lg animate-pulse" />
</div>
<div className="flex flex-col gap-4">
{[...Array(8)].map((_, i) => (
<SkeletonCard key={i} />
))}
</div>
</main>
);
}