Finished functionally complete client registration workflow

This commit is contained in:
Alexander Wong
2017-08-29 19:51:45 -06:00
parent aaad6ea3eb
commit 415aea74a3
25 changed files with 587 additions and 66 deletions
+15 -6
View File
@@ -1,23 +1,32 @@
import React, { Component } from "react";
import { Route, Switch } from "react-router-dom";
import Login from "./Auth/Login";
import Register from "./Auth/Register";
import About from "./Static/About";
import Footer from "./Static/Footer";
import Home from "./Static/Home";
import NoMatch from "./Static/NoMatch";
import Navbar from "./Navbar";
import Footer from "./Footer";
import Home from "./Home";
import About from "./About";
import Topics from "./Topics";
class App extends Component {
render() {
const footSmash = {
display: "flex",
minHeight: "calc(100vh - 1px)",
flexDirection: "column"
};
return (
<div>
<Navbar />
<div style={{ display: "flex", minHeight: "calc(100vh - 1px)", flexDirection: "column" }}>
<div style={footSmash}>
<div style={{ flex: "1" }}>
<Switch>
<Route exact path="/" component={Home} />
<Route path="/about" component={About} />
<Route path="/topics" component={Topics} />
<Route path="/auth/login" component={Login} />
<Route path="/auth/register" component={Register} />
<Route component={NoMatch} />
</Switch>
</div>
<Footer />