Skip to content

Commit

Permalink
Feat: Allow user to Login issue#14
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreacy002 committed Jun 25, 2020
1 parent 23a669f commit 7426086
Show file tree
Hide file tree
Showing 9 changed files with 344 additions and 177 deletions.
180 changes: 65 additions & 115 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions src/Login.jsx

This file was deleted.

5 changes: 4 additions & 1 deletion src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React from "react";
import { BrowserRouter, Switch, Route } from "react-router-dom";
import Home from "./Home";
import Register from "./register/Register";
import Login from "./Login";
import Login from "./login/Login";
import MySpace from "./myspace/MySpace";
import { Navbar, Nav } from "react-bootstrap";


Expand All @@ -24,6 +25,7 @@ export default (
<Nav.Link href="/programs">Programs</Nav.Link>
<Nav.Link href="/organizations">Organizations</Nav.Link>
<Nav.Link href="/members">Members</Nav.Link>
<Nav.Link href="/my-space">My Space</Nav.Link>
<Nav.Link href="/register">Register</Nav.Link>
<Nav.Link href="/login">Login</Nav.Link>
</Nav>
Expand All @@ -33,6 +35,7 @@ export default (
<Route exact path="/" component={Home} />
<Route path="/register" component={Register} />
<Route path="/login" component={Login} />
<Route path="/my-space" component={MySpace} />
</Switch>
</div>
</BrowserRouter>
Expand Down
48 changes: 48 additions & 0 deletions src/login/Login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.container {
background: #f7f9fa;
height: auto;
width: 70%;
margin: 5em auto;
-webkit-box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.4);
box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.4);
}

label {
color: #24b9b6;
font-size: 1.2em;
font-weight: 400;
}

h1 {
color: #24b9b6;
padding-top: 0.5em;
}

.error {
color: red;
}
.error-message {
color: #ff6565;
padding: 0.5em 0.2em;
height: 1em;
position: absolute;
font-size: 0.8em;
}

.field {
border: 1px solid #1c6ea4;
width: 100%;
height: 2em;
}

.button-group {
width: 100%;
}

.login-form {
width: 80%;
text-align: left;
padding-top: 2em;
padding-bottom: 2em;
}
Loading

0 comments on commit 7426086

Please sign in to comment.