Browse Source

Loading Container UI improvements

develop
Ezerous 6 years ago
parent
commit
2896c835e3
  1. 8
      app/src/assets/css/loading-container.css
  2. 16
      app/src/containers/LoadingContainer.js

8
app/src/assets/css/loading-container.css

@ -0,0 +1,8 @@
.loading-screen {
text-align: center;
}
.loading-img {
margin-bottom: 30px;
height: 100px;
}

16
app/src/containers/LoadingContainer.js

@ -1,8 +1,10 @@
import React, { Children, Component } from 'react'; import React, { Children, Component } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import '../assets/css/loading-container.css';
import ethereum_logo from '../assets/images/ethereum_logo.svg'; import ethereum_logo from '../assets/images/ethereum_logo.svg';
import ipfs_logo from '../assets/images/ipfs_logo.svg'; import ipfs_logo from '../assets/images/ipfs_logo.svg';
import orbitdb_logo from '../assets/images/orbitdb_logo.png'; import orbitdb_logo from '../assets/images/orbitdb_logo.png';
import logo from '../assets/images/logo.png';
class LoadingContainer extends Component { class LoadingContainer extends Component {
render() { render() {
@ -11,7 +13,7 @@ class LoadingContainer extends Component {
<main className="container loading-screen"> <main className="container loading-screen">
<div className="pure-g"> <div className="pure-g">
<div className="pure-u-1-1"> <div className="pure-u-1-1">
<img src={ethereum_logo} alt="ethereum_logo" height="50"/> <img src={ethereum_logo} alt="ethereum_logo" className="loading-img"/>
<p><strong>This browser has no connection to the Ethereum network.</strong></p> <p><strong>This browser has no connection to the Ethereum network.</strong></p>
Please make sure that: Please make sure that:
<ul> <ul>
@ -30,7 +32,7 @@ class LoadingContainer extends Component {
<main className="loading-screen"> <main className="loading-screen">
<div> <div>
<div> <div>
<img src={ethereum_logo} alt="ethereum_logo" height="50"/> <img src={ethereum_logo} alt="ethereum_logo" className="loading-img"/>
<p><strong>We can't find any Ethereum accounts!</strong>.</p> <p><strong>We can't find any Ethereum accounts!</strong>.</p>
</div> </div>
</div> </div>
@ -43,7 +45,7 @@ class LoadingContainer extends Component {
<main className="loading-screen"> <main className="loading-screen">
<div> <div>
<div> <div>
<img src={ethereum_logo} alt="ethereum_logo" height="50"/> <img src={ethereum_logo} alt="ethereum_logo" className="loading-img"/>
<p><strong>Initializing contracts...</strong></p> <p><strong>Initializing contracts...</strong></p>
<p>If this takes too long please make sure they are deployed to the network <p>If this takes too long please make sure they are deployed to the network
and you are connected to the correct one. and you are connected to the correct one.
@ -59,7 +61,7 @@ class LoadingContainer extends Component {
<main className="loading-screen"> <main className="loading-screen">
<div> <div>
<div> <div>
<img src={ipfs_logo} alt="ipfs_logo" height="50"/> <img src={ipfs_logo} alt="ipfs_logo" className="loading-img"/>
<p><strong>Initializing IPFS...</strong></p> <p><strong>Initializing IPFS...</strong></p>
</div> </div>
</div> </div>
@ -72,7 +74,7 @@ class LoadingContainer extends Component {
<main className="loading-screen"> <main className="loading-screen">
<div> <div>
<div> <div>
<img src={orbitdb_logo} alt="orbitdb_logo" height="50"/> <img src={orbitdb_logo} alt="orbitdb_logo" className="loading-img"/>
<p><strong>Preparing OrbitDB...</strong></p> <p><strong>Preparing OrbitDB...</strong></p>
</div> </div>
</div> </div>
@ -87,8 +89,8 @@ class LoadingContainer extends Component {
<main className="container loading-screen"> <main className="container loading-screen">
<div> <div>
<div> <div>
<h1><span role="img" aria-label="Gear"></span></h1> <img src={logo} alt="app_logo" className="loading-img"/>
<p>Loading dapp...</p> <p><strong>Loading dapp...</strong></p>
</div> </div>
</div> </div>
</main> </main>

Loading…
Cancel
Save