summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.js4
-rw-r--r--src/components/launcher/index.js17
-rw-r--r--src/components/launcher/styles.css31
-rw-r--r--src/components/loading/index.js5
-rw-r--r--src/components/top-nav/styles.css12
-rw-r--r--src/containers/feed/index.js2
6 files changed, 58 insertions, 13 deletions
diff --git a/src/app.js b/src/app.js
index 5868b85..956f66c 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/lib/integration/react';
-import Loading from './components/loading';
+import Launcher from './components/launcher';
import { persist, store } from './store';
import AppRoutes from './router';
@@ -10,7 +10,7 @@ class App extends Component {
render() {
return (
<Provider store={ store }>
- <PersistGate loading={ <Loading/> } persistor={ persist }>
+ <PersistGate loading={ <Launcher/> } persistor={ persist }>
<AppRoutes/>
</PersistGate>
</Provider>
diff --git a/src/components/launcher/index.js b/src/components/launcher/index.js
new file mode 100644
index 0000000..1d4d6d0
--- /dev/null
+++ b/src/components/launcher/index.js
@@ -0,0 +1,17 @@
+import React from 'react';
+
+import './styles.css';
+
+const Launcher = () => (
+ <div className="launcher-body">
+ <div className="logo-container">
+ <img src='/img/logo.svg'/>
+ <div className="logo-text">
+ <h4>Loading ..</h4>
+ <p className="text-muted">We're testing your patience</p>
+ </div>
+ </div>
+ </div>
+);
+
+export default Launcher;
diff --git a/src/components/launcher/styles.css b/src/components/launcher/styles.css
new file mode 100644
index 0000000..27e8823
--- /dev/null
+++ b/src/components/launcher/styles.css
@@ -0,0 +1,31 @@
+.launcher-body {
+ display: flex;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ background: white;
+}
+
+.launcher-body .logo-container img {
+ height: 150px;
+}
+
+.launcher-body .logo-container .logo-text h4 {
+ font-weight: 700;
+ font-size: 45px;
+ margin-bottom: 5px;
+}
+
+.launcher-body .logo-container .logo-text p {
+ margin-bottom: 0;
+ font-size: 23px;
+}
+
+.launcher-body .logo-container .logo-text {
+ margin-top: 10px;
+}
diff --git a/src/components/loading/index.js b/src/components/loading/index.js
deleted file mode 100644
index 1c81869..0000000
--- a/src/components/loading/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import React from 'react';
-
-export default () => (
- <h1>Loading</h1>
-);
diff --git a/src/components/top-nav/styles.css b/src/components/top-nav/styles.css
index 15230f8..c1c7cc2 100644
--- a/src/components/top-nav/styles.css
+++ b/src/components/top-nav/styles.css
@@ -6,32 +6,32 @@
position: relative;
}
-.logo {
+.top-nav .logo {
margin-left: -10px;
}
-.logo img {
+.top-nav .logo img {
height: 75px;
float: left;
}
-.logo-text {
+.top-nav .logo-text {
float: left;
margin-left: 10px;
margin-top: 10px;
}
-.logo-text h4 {
+.top-nav .logo-text h4 {
margin: 3px 0 0;
font-weight: 700;
color: #2d2d2d;
}
-.logo-text p {
+.top-nav .logo-text p {
margin-bottom: 0;
}
-.duration-btns a.btn {
+.top-nav .duration-btns a.btn {
margin-left: 10px;
margin-top: 24px;
box-shadow: none;
diff --git a/src/containers/feed/index.js b/src/containers/feed/index.js
index 862ce35..6792613 100644
--- a/src/containers/feed/index.js
+++ b/src/containers/feed/index.js
@@ -82,6 +82,8 @@ class FeedContainer extends React.Component {
</div>
<div className="body-row">
{ this.props.preference.viewType === 'grid' ? <RepositoryGrid/> : <RepositoryList/> }
+
+ {/* @todo show loading */}
</div>
</div>
</div>