This repository was archived by the owner on Jul 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathentryPage.js
More file actions
58 lines (51 loc) · 1.62 KB
/
entryPage.js
File metadata and controls
58 lines (51 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import React from "react";
import { Switch, Route } from "react-router-dom";
import { Link } from "react-router-dom";
import Login from "./login";
import Register from "./register";
import Welcome from "./welcome";
const formStyle = {
fontSize: "1.5em",
padding: "3px",
border: "1px solid black",
float: "left",
borderRadius: "5px",
width: "50%",
textAlign: "center"
};
const switchBox = {
border: "1px solid black",
borderRadius: "5px",
display: "inline-block",
width: "100%",
backgroundColor: "rgb(104, 187, 231)",
padding: "15px",
height: "287px"
};
class EntryPage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="row" style={{ marginTop: "100px" }}>
<div className="col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6">
<Welcome />
</div>
<div className="col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 table">
<div>
<Link to="/"><h3 style={formStyle} className="hover">Log In</h3></Link>
<Link to="/register"><h3 style={formStyle} className="hover">Register</h3></Link>
</div>
<div style={switchBox}>
<Switch>
<Route exact path="/" component={Login} />
<Route exact path="/register" component={Register} />
</Switch>
</div>
</div>
</div>
);
}
}
export default EntryPage;