From d0207739db4bd7ed0007e411f812d200c30ef521 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Sun, 17 Jun 2018 15:12:05 +0300 Subject: [PATCH] Add separate route for SignUpContainer, Redirect / to /home, Add guest capabilities --- src/assets/css/App.css | 14 +-------- src/assets/css/navbar.css | 7 ----- src/assets/css/start-topic-container.css | 2 +- src/components/FloatingButton.js | 1 - src/components/NavBar.js | 2 +- src/components/NewPost.js | 9 ++---- src/components/NewTopicPreview.js | 2 +- src/components/NotFoundView.js | 2 +- src/components/Topic.js | 1 - src/containers/BoardContainer.js | 37 +++++++++++++++++++++--- src/containers/HomeContainer.js | 22 ++++++++++---- src/containers/LoadingContainer.js | 14 ++------- src/containers/PrivateRouteContainer.js | 25 ---------------- src/containers/ProfileContainer.js | 9 ++++-- src/containers/SignUpContainer.js | 29 +++++++++++++------ src/containers/StartTopicContainer.js | 8 ++++- src/containers/TopicContainer.js | 2 +- src/containers/UsernameFormContainer.js | 10 +++---- src/index.js | 20 +++++-------- src/layouts/CoreLayout/CoreLayout.js | 1 - 20 files changed, 108 insertions(+), 109 deletions(-) delete mode 100644 src/assets/css/navbar.css delete mode 100644 src/containers/PrivateRouteContainer.js diff --git a/src/assets/css/App.css b/src/assets/css/App.css index f19033b..d985067 100644 --- a/src/assets/css/App.css +++ b/src/assets/css/App.css @@ -41,6 +41,7 @@ strong { top: 0; left: 0; } + .main-panel { width: 60%; height: 100%; @@ -105,10 +106,6 @@ strong { margin: 0px; } -.margin-left-small { - margin-left: 7px; -} - hr { color: #0c1a2b; margin: 0px; @@ -118,10 +115,6 @@ hr { outline:none !important } -.centerDiv { - margin: 0 auto; -} - a { color:inherit; text-decoration: none; @@ -175,11 +168,6 @@ a { height: 100%; } -.full-width { - max-width: 100% !important; - width: 100% !important; -} - .vis { /* For UX developing */ border: 1px solid red; } \ No newline at end of file diff --git a/src/assets/css/navbar.css b/src/assets/css/navbar.css deleted file mode 100644 index 8e65749..0000000 --- a/src/assets/css/navbar.css +++ /dev/null @@ -1,7 +0,0 @@ -/* NAVBAR */ - -.nav-link:hover { - background: rgba(255,255,255,.08) !important; - color: #fff !important; - cursor: pointer !important; -} \ No newline at end of file diff --git a/src/assets/css/start-topic-container.css b/src/assets/css/start-topic-container.css index 2c7c64a..44370a4 100644 --- a/src/assets/css/start-topic-container.css +++ b/src/assets/css/start-topic-container.css @@ -5,6 +5,6 @@ margin: 20px 0px; } -.markdownPreview { +.markdown-preview { padding: 0px 20px; } \ No newline at end of file diff --git a/src/components/FloatingButton.js b/src/components/FloatingButton.js index 75178da..522005a 100644 --- a/src/components/FloatingButton.js +++ b/src/components/FloatingButton.js @@ -1,5 +1,4 @@ import React from 'react'; -import { Link } from 'react-router'; import { Button, Icon } from 'semantic-ui-react' const FloatingButton = (props) => { diff --git a/src/components/NavBar.js b/src/components/NavBar.js index 77176aa..cd2458a 100644 --- a/src/components/NavBar.js +++ b/src/components/NavBar.js @@ -36,7 +36,7 @@ class NavBar extends Component { Profile : - {this.handleItemClick("/signUp")}}> + {this.handleItemClick("/signup")}}> Sign Up diff --git a/src/components/NewPost.js b/src/components/NewPost.js index 70d1027..380ebc8 100644 --- a/src/components/NewPost.js +++ b/src/components/NewPost.js @@ -132,7 +132,7 @@ class NewPost extends Component {
{this.state.previewEnabled ? + className="markdown-preview" /> : [
- -