-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
|
||
export default function LoadingDots({ mainMsg,className }) { | ||
if (mainMsg == undefined || mainMsg == "") { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className={classNames(className, | ||
"flex w-full", | ||
)}> | ||
<div className='flex space-x-2 justify-center items-center'> | ||
<span className='text-lg font-semibold'>{mainMsg}</span> | ||
<div className='size-6 h-2 w-2 bg-black rounded-full animate-bounce [animation-delay:-0.2s]'></div> | ||
<div className='size-6 h-2 w-2 bg-black rounded-full animate-bounce [animation-delay:-0.1s]'></div> | ||
<div className='size-6 h-2 w-2 bg-black rounded-full animate-bounce'></div> | ||
</div> | ||
</div>); | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
|
||
export default function Spinner({ mainMsg,className }) { | ||
if (mainMsg == undefined || mainMsg == "") { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className={classNames(className, | ||
"flex w-full flex-row justify-center items-center gap-x-6", | ||
)}> | ||
<span className="flex inline-block align-[-0.125em] text-lg">{mainMsg}</span> | ||
<div | ||
className="flex text-gray-700 inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-e-transparent align-[-0.125em] text-surface motion-reduce:animate-[spin_1.5s_linear_infinite]" | ||
role="status"> | ||
</div> | ||
</div>); | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters