-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathattendance.skeleton.tsx
65 lines (60 loc) · 2.04 KB
/
attendance.skeleton.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import React from 'react';
function AttendanceSkeleton() {
return (
<div className="animate-pulse space-y-6">
<div className="h-8 bg-gray-300 rounded w-1/4" />
<div className="flex justify-between items-center">
<div className="flex space-x-4">
<div className="h-8 bg-gray-300 rounded w-32" />
<div className="h-8 bg-gray-300 rounded w-20" />
</div>
<div className="h-8 bg-gray-300 rounded w-40" />
</div>
<div className="flex space-x-2">
{Array(5)
.fill(null)
.map((_) => (
<div
id={`day-skeleton-${_}`}
className="h-8 bg-gray-300 rounded w-16"
/>
))}
</div>
<div className="border border-gray-300 rounded overflow-hidden">
<div className="flex bg-gray-200">
<div className="h-10 w-1/4 bg-gray-300" />
<div className="h-10 w-1/4 bg-gray-300" />
<div className="h-10 w-1/4 bg-gray-300" />
<div className="h-10 w-1/4 bg-gray-300" />
</div>
{Array(5)
.fill(null)
.map((_, rowIndex) => (
<div id={`row-skeleton-${rowIndex}`} className="flex space-x-1">
{Array(4)
.fill(null)
.map((_, colIndex) => (
<div
id={`cell-skeleton-${rowIndex}-${colIndex}`}
className="h-8 bg-gray-300 w-1/4"
/>
))}
</div>
))}
</div>
<div className="flex justify-between">
<div className="space-y-2">
<div className="h-4 bg-gray-300 w-32" />
<div className="h-4 bg-gray-300 w-40" />
<div className="h-4 bg-gray-300 w-24" />
</div>
<div className="space-y-2">
<div className="h-6 bg-gray-300 rounded w-24" />
<div className="h-6 bg-gray-300 rounded w-28" />
<div className="h-6 bg-gray-300 rounded w-20" />
</div>
</div>
</div>
);
}
export default AttendanceSkeleton;