mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
all questions: showing loading indicator on new db select, loading indicator update
This commit is contained in:
parent
230f069aa4
commit
e563e503c9
3 changed files with 50 additions and 11 deletions
|
@ -1,10 +1,12 @@
|
|||
import React, { PureComponent } from 'react'
|
||||
|
||||
import styles from './LoadingIndicator.module.css'
|
||||
|
||||
class LoadingIndicator extends PureComponent {
|
||||
render () {
|
||||
render() {
|
||||
return (
|
||||
<div className='loadingindicator'>
|
||||
Loading...
|
||||
<div className={styles.loadContainer}>
|
||||
<div className={styles.load} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
24
src/components/LoadingIndicator.module.css
Normal file
24
src/components/LoadingIndicator.module.css
Normal file
|
@ -0,0 +1,24 @@
|
|||
.load {
|
||||
border: 4px solid #f3f3f3;
|
||||
border-top: 4px solid #99f;
|
||||
border-radius: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
animation: spin 2s linear infinite;
|
||||
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.loadContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue