Skip to content

Commit 04faa7c

Browse files
committed
Implemented Loading State for jobs page
1 parent f59030e commit 04faa7c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

app/(root)/jobs/loading.tsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { Skeleton } from "@/components/ui/skeleton";
2+
3+
const Loading = () => {
4+
return (
5+
<section>
6+
<h1 className="h1-bold text-dark100_light900">Jobs</h1>
7+
8+
<div className="mb-12 mt-11 flex flex-wrap gap-5">
9+
<Skeleton className="h-14 flex-1" />
10+
<Skeleton className="h-14 w-28" />
11+
</div>
12+
13+
<div className="my-10">
14+
<div className="hidden flex-wrap gap-3 md:flex">
15+
<Skeleton className="h-9 w-28" />
16+
<Skeleton className="h-9 w-28" />
17+
<Skeleton className="h-9 w-28" />
18+
<Skeleton className="h-9 w-28" />
19+
</div>
20+
<div className="mt-2">
21+
<Skeleton className="h-9 w-72" />
22+
</div>
23+
</div>
24+
25+
<div className="flex flex-col gap-6">
26+
{[...Array(10)].map((_, i) => (
27+
<Skeleton key={i} className="h-52 w-full rounded-xl" />
28+
))}
29+
</div>
30+
</section>
31+
);
32+
};
33+
34+
export default Loading;

0 commit comments

Comments
 (0)