diff --git a/js/app.js b/js/app.js index aeb0fbbca..99d89f991 100644 --- a/js/app.js +++ b/js/app.js @@ -1,8 +1,3 @@ -var appStyles = { - width: '800px', - marginLeft: 'auto', - marginRight: 'auto', -}; var App = React.createClass({ getInitialState: function() { // For now, routes are in format ?page or ?page=args @@ -46,24 +41,19 @@ var App = React.createClass({ }, render: function() { if (this.state.viewingPage == 'home') { - var content = ; + return ; } else if (this.state.viewingPage == 'settings') { - var content = ; + return ; } else if (this.state.viewingPage == 'help') { - var content = ; + return ; } else if (this.state.viewingPage == 'watch') { - var content = ; + return ; } else if (this.state.viewingPage == 'report') { - var content = ; + return ; } else if (this.state.viewingPage == 'files') { - var content = ; + return ; } else if (this.state.viewingPage == 'start') { - var content = ; + return ; } - return ( -
- {content} -
- ); } }); \ No newline at end of file diff --git a/js/page/help.js b/js/page/help.js index c6268a7f7..b6b9d4af0 100644 --- a/js/page/help.js +++ b/js/page/help.js @@ -3,7 +3,7 @@ var HelpPage = React.createClass({ render: function() { return ( -
+

Troubleshooting

Here are the most commonly encountered problems and what to try doing about them

diff --git a/js/page/home.js b/js/page/home.js index ab965f690..73b05b7a5 100644 --- a/js/page/home.js +++ b/js/page/home.js @@ -281,7 +281,7 @@ var HomePage = React.createClass({ }, render: function() { return ( -
+
diff --git a/js/page/my_files.js b/js/page/my_files.js index 9deb17d83..291482055 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -125,7 +125,7 @@ var MyFilesPage = React.createClass({ } } return ( -
+

My files

{content}
diff --git a/js/page/report.js b/js/page/report.js index ddfb999c4..087783fee 100644 --- a/js/page/report.js +++ b/js/page/report.js @@ -20,7 +20,7 @@ var ReportPage = React.createClass({ }, render: function() { return ( -
+

Report a bug

Please describe the problem you experienced and any information you think might be useful to us. Links to screenshots are great!

diff --git a/js/page/settings.js b/js/page/settings.js index 958bcd312..34f0db780 100644 --- a/js/page/settings.js +++ b/js/page/settings.js @@ -73,7 +73,7 @@ var SettingsPage = React.createClass({ } return ( -
+

Settings

Run on startup

diff --git a/js/page/start.js b/js/page/start.js index 1c5b1d0b6..8ae856ac8 100644 --- a/js/page/start.js +++ b/js/page/start.js @@ -4,7 +4,7 @@ var StartPage = React.createClass({ }, render: function() { return ( -
+

LBRY has closed

diff --git a/js/page/watch.js b/js/page/watch.js index 35af645af..c0af88688 100644 --- a/js/page/watch.js +++ b/js/page/watch.js @@ -1,6 +1,6 @@ var videoStyle = { width: '100%', - height: '100%', +// height: '100%', backgroundColor: '#000' }; @@ -39,7 +39,7 @@ var WatchPage = React.createClass({ }, render: function() { return ( -
+

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

{this.state.loadStatusMessage}... diff --git a/scss/_gui.scss b/scss/_gui.scss index ad9b29eea..33c16aaea 100644 --- a/scss/_gui.scss +++ b/scss/_gui.scss @@ -13,6 +13,16 @@ body position: relative; } +.page { + margin-left: auto; + margin-right: auto; + width: 800px; + + &.full-width { + width: 100%; + } +} + section { margin-bottom: $spacing-vertical;