Browse Source

Added LoadingScreen for full-size loading placeholder

1.0
Gisle Aune 7 years ago
parent
commit
237190e498
  1. 13
      rpdata-ui/src/common/LoadingScreen.js
  2. 7
      rpdata-ui/src/common/css/LoadingScreen.css

13
rpdata-ui/src/common/LoadingScreen.js

@ -0,0 +1,13 @@
import React, { Component } from 'react';
import Background from "./Background";
import './css/LoadingScreen.css';
export function LoadingScreen({className}) {
return (
<div className={`Loading ${className}`}>
<Background />
<div className="text color-primary">Loading...</div>
</div>
)
}

7
rpdata-ui/src/common/css/LoadingScreen.css

@ -0,0 +1,7 @@
.Loading .text {
width: 100%;
margin-top: 6em;
font-size: 3em;
opacity: 0.5;
text-align: center;
}
Loading…
Cancel
Save