Skip to content

Commit

Permalink
Issue8 register ui - new pr (#18)
Browse files Browse the repository at this point in the history
* add react boilerplate

* issue8-register-ui-v1

* remove console log and fix naming convention

* Rename files

* Rename register.css

* Rename routes.js
  • Loading branch information
mtreacy002 authored Jun 15, 2020
1 parent 8595f1f commit b5bf859
Show file tree
Hide file tree
Showing 9 changed files with 576 additions and 128 deletions.
312 changes: 190 additions & 122 deletions package-lock.json

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions public/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
body,
html {
height: 100vh;
width: 100vw;
margin: 0;
overflow-x: hidden;
overflow-y: hidden;
}

html {
box-sizing: border-box;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
* {
box-sizing: "border-box";
}

p,
ul {
font-family: "Brandon", "Lato";
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Quan", "Cairo"
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
margin: 0;
padding: 0;
}

.navbar-brand > img {
width: 75px;
height: 75px;
}

/* Default */
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "BIT React App",
"name": "Bridge In Tech",
"icons": [
{
"src": "anitab.ico",
Expand Down
7 changes: 7 additions & 0 deletions src/Login.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

export default function Login() {
return (
<div>This is the Login page</div>
);
}
6 changes: 5 additions & 1 deletion src/routes.js → src/Routes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,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 { Navbar, Nav } from "react-bootstrap";


Expand Down Expand Up @@ -28,7 +30,9 @@ export default (
</Navbar.Collapse>
</Navbar>
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/" component={Home} />
<Route path="/register" component={Register} />
<Route path="/login" component={Login} />
</Switch>
</div>
</BrowserRouter>
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ReactDOM from 'react-dom';
import routes from "./routes";
import Routes from "./Routes";

ReactDOM.render(
routes, document.getElementById('root')
Routes, document.getElementById('root')
);

52 changes: 52 additions & 0 deletions src/register/Register.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.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: .5em;
}


.error {
color: red;
}
.error-message {
color: #FF6565;
padding: .5em .2em;
height: 1em;
position: absolute;
font-size: .8em;
}

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

.button-group {
width: 100%;
}


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

0 comments on commit b5bf859

Please sign in to comment.