Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions apps/web/src/app/dashboard/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
export default function DashboardLoading() {
return (
<div className="space-y-10">
{/* Metrics Section Skeleton */}
<section>
<h2 className="text-xl font-semibold text-gray-900 mb-4">Engineering Overview</h2>
<div className="grid grid-cols-1 md:grid-cols-4 gap-4">
{Array.from({ length: 4 }).map((_, i) => (
<div key={i} className="bg-white p-6 rounded-xl border border-gray-200 shadow-sm">
<div className="h-4 w-28 animate-pulse rounded bg-gray-200 mb-3" />
<div className="h-9 w-16 animate-pulse rounded bg-gray-200" />
</div>
))}
</div>
</section>

{/* Repositories Section Skeleton */}
<section>
<div className="flex flex-col md:flex-row justify-between items-start md:items-center gap-4 mb-4">
<h2 className="text-xl font-semibold text-gray-900">Your Repositories</h2>
<div className="h-10 w-36 animate-pulse rounded-lg bg-gray-200" />
</div>

<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{Array.from({ length: 6 }).map((_, i) => (
<div key={i} className="bg-white p-6 rounded-xl border border-gray-200 shadow-sm flex flex-col justify-between h-full">
<div>
<div className="h-6 w-3/4 animate-pulse rounded bg-gray-200" />
<div className="h-4 w-1/2 animate-pulse rounded bg-gray-100 mt-2" />
</div>
<div className="mt-6 flex justify-between items-center">
<div className="h-5 w-14 animate-pulse rounded-full bg-gray-100" />
<div className="h-4 w-16 animate-pulse rounded bg-gray-100" />
</div>
</div>
))}
</div>
</section>
</div>
);
}
Loading