diff --git a/src/app/leaderboard/[country]/loading.tsx b/src/app/leaderboard/[country]/loading.tsx new file mode 100644 index 0000000..612849f --- /dev/null +++ b/src/app/leaderboard/[country]/loading.tsx @@ -0,0 +1,71 @@ +import { AppFooter } from "@/components/layout/app-footer"; +import { AppHeader } from "@/components/layout/app-header"; +import { Card, CardContent, CardHeader } from "@/components/ui/card"; +import { Skeleton } from "@/components/ui/skeleton"; + +export default function CountryLeaderboardLoading() { + return ( +
+ + +
+
+ +
+ +
+ + + + +
+ + + + + + + + + +
+ + + + {Array.from({ length: 6 }).map((_, index) => ( + + ))} + + + + {Array.from({ length: 6 }).map((_, rowIndex) => ( + + + + {Array.from({ length: 4 }).map((_, cellIndex) => ( + + ))} + + ))} + +
+ +
+ + +
+ + +
+
+ +
+
+
+
+
+ + +
+ ); +} diff --git a/src/app/leaderboard/loading.tsx b/src/app/leaderboard/loading.tsx new file mode 100644 index 0000000..42e25e7 --- /dev/null +++ b/src/app/leaderboard/loading.tsx @@ -0,0 +1,77 @@ +import { AppFooter } from "@/components/layout/app-footer"; +import { AppHeader } from "@/components/layout/app-header"; +import { Skeleton } from "@/components/ui/skeleton"; + +export default function LeaderboardLoading() { + return ( +
+ + +
+ {/* Leaderboard hero */} +
+ + +
+ + +
+ +
+ + +
+ + +
+ + {/* Country leaderboard container */} +
+ {/* Section heading */} +
+ + + +
+ + {/* Worldwide leaderboard link */} +
+ + +
+ + +
+
+ + {/* Country search */} + + + {/* Country cards */} +
+ {Array.from({ length: 25 }).map((_, index) => ( +
+
+
+ + +
+ +
+ + +
+
+
+ ))} +
+
+
+ + +
+ ); +}