diff --git a/dist/index.html b/dist/index.html index d4a10ed73..ee164944d 100644 --- a/dist/index.html +++ b/dist/index.html @@ -34,6 +34,7 @@ + diff --git a/js/component/load_screen.js b/js/component/load_screen.js new file mode 100644 index 000000000..b5cb99c76 --- /dev/null +++ b/js/component/load_screen.js @@ -0,0 +1,49 @@ +var loadScreenStyle = { + color: 'white', + backgroundImage: 'url(' + lbry.imagePath('lbry-bg.png') + ')', + backgroundSize: 'cover', + minHeight: '100vh', + minWidth: '100vw', + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + justifyContent: 'center' +}, loadScreenMessageStyle = { + marginTop: '24px', + width: '325px', + textAlign: 'center', +}; + +var LoadScreen = React.createClass({ + propTypes: { + message: React.PropTypes.string.isRequired, + details: React.PropTypes.string, + isWarning: React.PropTypes.bool, + }, + getDefaultProps: function() { + return { + isWarning: false, + } + }, + getInitialState: function() { + return { + message: null, + details: null, + isLagging: false, + } + }, + render: function() { + var imgSrc = lbry.imagePath('lbry-white-485x160.png'); + return ( +
+ LBRY +
+

+ +

+ {this.props.details} +
+
+ ); + } +}); \ No newline at end of file diff --git a/js/component/splash.js b/js/component/splash.js index c6aaf87df..a6b123f67 100644 --- a/js/component/splash.js +++ b/js/component/splash.js @@ -1,19 +1,3 @@ -var splashStyle = { - color: 'white', - backgroundImage: 'url(' + lbry.imagePath('lbry-bg.png') + ')', - backgroundSize: 'cover', - minHeight: '100vh', - minWidth: '100vw', - display: 'flex', - flexDirection: 'column', - alignItems: 'center', - justifyContent: 'center' -}, splashMessageStyle = { - marginTop: '24px', - width: '325px', - textAlign: 'center', -}; - var SplashScreen = React.createClass({ propTypes: { message: React.PropTypes.string, @@ -46,17 +30,6 @@ var SplashScreen = React.createClass({ this.updateStatus(); }, render: function() { - var imgSrc = lbry.imagePath('lbry-white-485x160.png'); - return ( -
- LBRY -
-

- -

- {this.state.details} -
-
- ); + return ; } }); \ No newline at end of file diff --git a/js/page/watch.js b/js/page/watch.js index 9fa1f58a3..9db199891 100644 --- a/js/page/watch.js +++ b/js/page/watch.js @@ -38,15 +38,13 @@ var WatchPage = React.createClass({ }, render: function() { return ( -
-
-

Loading lbry://{this.props.name}

- {this.state.loadStatusMessage}... -
- -
+ !this.state.readyToPlay + ? + :
+ +
); } });