-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Lee
committed
Feb 15, 2018
1 parent
54557b9
commit 1ea2d21
Showing
6 changed files
with
208 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- "stable" | ||
- 8 | ||
cache: | ||
directories: | ||
- node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Created by jaewonlee on 2018. 2. 15.. | ||
*/ | ||
import React, { Component } from 'react'; | ||
//bodies | ||
import MainPage from './bodies/main' | ||
import NavigationBar from './navbar/navigationBar' | ||
import StudentLanding from './bodies/studentLanding' | ||
import ProfLanding from './bodies/professorLanding' | ||
import AdminLanding from './bodies/adminLanding' | ||
|
||
const Redirection=()=>( | ||
<Redirect to={"/main"}/> | ||
); | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
<NavigationBar/> | ||
<Router> | ||
<Switch> | ||
<Route exact path="/main" component={MainPage} /> | ||
<Route exact path="/student/*" component={StudentLanding} /> | ||
<Route exact path="/prof/*" component={ProfLanding}/> | ||
<Route exact path="/admin/*" component={AdminLanding}/> | ||
<Route path="/*" component={Redirection} /> | ||
</Switch> | ||
</Router> | ||
|
||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default App; |