Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save howtomakeaturn/8d1baf048f977eb118d84bd47b8c2ed3 to your computer and use it in GitHub Desktop.
Save howtomakeaturn/8d1baf048f977eb118d84bd47b8c2ed3 to your computer and use it in GitHub Desktop.
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