Created
February 14, 2019 04:04
-
-
Save howtomakeaturn/8d1baf048f977eb118d84bd47b8c2ed3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from 'react'; | |
class Loading extends React.Component { | |
render() { | |
return ( | |
<div style={{ | |
position: "fixed", | |
width: "100%", | |
height: "100%", | |
top: "0", | |
left: "0", | |
right: "0", | |
bottom: "0", | |
backgroundColor: "rgba(0,0,0,0.3)", | |
zIndex: "1", | |
}}> | |
<div style={{ | |
position: "fixed", | |
top: "50%", | |
right: "50%", | |
transform: "translate(50%,-50%)", | |
zIndex: "2", | |
color: "white", | |
}}> | |
<div style={{ | |
fontSize: "4em", | |
}}> | |
{this.props.text} | |
</div> | |
<div className="fa-10x text-center"> | |
<i className="fas fa-spinner fa-pulse"> | |
</i> | |
</div> | |
</div> | |
</div> | |
); | |
} | |
} | |
export default Loading; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment