File tree Expand file tree Collapse file tree 3 files changed +55
-2
lines changed
Expand file tree Collapse file tree 3 files changed +55
-2
lines changed Original file line number Diff line number Diff line change 1+ import ThreeDotLoader from "@/components/ui/loading_dots" ;
2+
13// frontend/src/app/jobs/loading.tsx
24export default function JobLoading ( ) {
3- return < div > Loading Job...</ div > ;
5+ return (
6+ < div className = "flex min-h-[70vh] justify-center items-center " >
7+ < ThreeDotLoader />
8+ </ div >
9+ ) ;
410}
Original file line number Diff line number Diff line change 1+ import ThreeDotLoader from "@/components/ui/loading_dots" ;
2+
13export default function Loading ( ) {
2- return < div > Loading...</ div > ;
4+ return (
5+ < div className = "py-8" >
6+ < ThreeDotLoader />
7+ </ div >
8+ ) ;
39}
Original file line number Diff line number Diff line change 1+ export default function ThreeDotLoader ( {
2+ className,
3+ mode = "dark" ,
4+ } : {
5+ className ?: string ;
6+ mode ?: "light" | "dark" ;
7+ } ) {
8+ return (
9+ < div
10+ className = {
11+ "flex items-center justify-center space-x-2 " +
12+ ( className ? ` ${ className } ` : "" )
13+ }
14+ >
15+ < style > { `
16+ @keyframes flow {
17+ 0%, 80%, 100% { opacity: 0.2; }
18+ 40% { opacity: 1; }
19+ }
20+ .dot {
21+ animation: flow 1.4s infinite ease-in-out;
22+ }
23+ .dot:nth-child(1) {
24+ animation-delay: -0.32s;
25+ }
26+ .dot:nth-child(2) {
27+ animation-delay: -0.16s;
28+ }
29+ ` } </ style >
30+ < div
31+ className = { `w-3 h-3 rounded-full dot ${ mode == "dark" ? "bg-white" : "bg-black/70" } ` }
32+ />
33+ < div
34+ className = { `w-3 h-3 rounded-full dot ${ mode == "dark" ? "bg-white" : "bg-black/70" } ` }
35+ />
36+ < div
37+ className = { `w-3 h-3 rounded-full dot ${ mode == "dark" ? "bg-white" : "bg-black/70" } ` }
38+ />
39+ </ div >
40+ ) ;
41+ }
You can’t perform that action at this time.
0 commit comments