init
This commit is contained in:
29
src/features/overview/components/bar-graph-skeleton.tsx
Normal file
29
src/features/overview/components/bar-graph-skeleton.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Card, CardContent, CardHeader } from '@/components/ui/card';
|
||||
import { Skeleton } from '@/components/ui/skeleton';
|
||||
|
||||
export function BarGraphSkeleton() {
|
||||
return (
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<div className='flex items-center gap-2'>
|
||||
<Skeleton className='h-6 w-[160px]' />
|
||||
<Skeleton className='h-5 w-[60px] rounded-full' />
|
||||
</div>
|
||||
<Skeleton className='h-4 w-[150px]' />
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className='flex aspect-auto h-[280px] w-full items-end justify-around gap-2 pt-8'>
|
||||
{Array.from({ length: 12 }).map((_, i) => (
|
||||
<Skeleton
|
||||
key={i}
|
||||
className='w-full rounded-t-sm'
|
||||
style={{
|
||||
height: `${Math.max(20, Math.random() * 100)}%`
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user