next-enterprise/app/loading.tsx
joshuasalcedo-dev f691f5d570 feat: add UI component files and navigation structure
Added various UI components and navigation elements including:
- Section cards and selection components
- Social icon SVGs with horizontal/vertical text variants
- Table, tabs, and toggle components
- Site header and sidebar components
- Tooltip and unauthorized page
- Project configuration files (tsconfig.json)
- Route handlers for health checks
- Utility and hook functions for mobile responsiveness
2025-04-03 10:31:23 +08:00

41 lines
1.4 KiB
TypeScript

import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card"
import { Skeleton } from "@/components/ui/skeleton"
export default function Loading() {
return (
<div className="space-y-4 py-4">
<div className="flex items-center justify-between">
<Skeleton className="h-8 w-48" />
<Skeleton className="h-8 w-24" />
</div>
{/* Skeleton cards - repeat for multiple items */}
{Array(3)
.fill(0)
.map((_, index) => (
<Card key={index} className="mx-auto max-w-3xl">
<CardHeader className="gap-2">
<div className="flex items-center space-x-4">
<Skeleton className="h-12 w-12 rounded-full" />
<div className="space-y-2">
<Skeleton className="h-4 w-32" />
<Skeleton className="h-3 w-24" />
</div>
</div>
</CardHeader>
<CardContent className="space-y-2">
<Skeleton className="h-4 w-full" />
<Skeleton className="h-4 w-full" />
<Skeleton className="h-4 w-3/4" />
</CardContent>
<CardFooter>
<div className="flex w-full justify-between">
<Skeleton className="h-9 w-20" />
<Skeleton className="h-9 w-20" />
</div>
</CardFooter>
</Card>
))}
</div>
)
}