Spaces:
Sleeping
Sleeping
feat: add web/app/dashboard-pages/compare/loading.tsx
Browse files
web/app/dashboard-pages/compare/loading.tsx
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { GitCompare } from "lucide-react";
|
| 2 |
+
|
| 3 |
+
export default function CompareLoading() {
|
| 4 |
+
return (
|
| 5 |
+
<div className="min-h-screen bg-zinc-50/30">
|
| 6 |
+
<div className="max-w-6xl mx-auto px-4 sm:px-6 py-8 sm:py-12">
|
| 7 |
+
<div className="flex items-center gap-3 mb-8">
|
| 8 |
+
<GitCompare className="w-6 h-6 text-zinc-400 animate-pulse" />
|
| 9 |
+
<div className="h-7 w-44 bg-zinc-200 rounded-lg animate-pulse" />
|
| 10 |
+
</div>
|
| 11 |
+
<div className="grid md:grid-cols-2 gap-6">
|
| 12 |
+
{[...Array(2)].map((_, i) => (
|
| 13 |
+
<div key={i} className="bg-white rounded-xl p-4 border border-zinc-200">
|
| 14 |
+
<div className="h-3 w-24 bg-zinc-100 rounded animate-pulse mb-3" />
|
| 15 |
+
<div className="h-[280px] bg-zinc-50 rounded-lg animate-pulse" />
|
| 16 |
+
</div>
|
| 17 |
+
))}
|
| 18 |
+
</div>
|
| 19 |
+
</div>
|
| 20 |
+
</div>
|
| 21 |
+
);
|
| 22 |
+
}
|