2020-10-14 20:19:14 +02:00
|
|
|
import React from "react"
|
2020-10-09 17:10:26 +02:00
|
|
|
|
|
|
|
import {
|
2020-10-14 20:19:14 +02:00
|
|
|
BrowserRouter as Router,
|
|
|
|
Switch,
|
|
|
|
Route,
|
|
|
|
Link
|
|
|
|
} from "react-router-dom"
|
2020-10-09 17:10:26 +02:00
|
|
|
|
2020-10-14 20:19:14 +02:00
|
|
|
import LoginPage from './pages/loginPage'
|
|
|
|
import BoardPage from './pages/boardPage'
|
2020-10-09 17:10:26 +02:00
|
|
|
|
|
|
|
export default function App() {
|
2020-10-14 20:19:14 +02:00
|
|
|
return (
|
|
|
|
<Router>
|
|
|
|
<div id="frame">
|
|
|
|
<div className="page-header">
|
|
|
|
<a href="/">OCTO</a>
|
|
|
|
</div>
|
2020-10-09 17:10:26 +02:00
|
|
|
|
2020-10-14 20:19:14 +02:00
|
|
|
<div id="main">
|
|
|
|
<Switch>
|
|
|
|
<Route path="/login">
|
|
|
|
<LoginPage />
|
|
|
|
</Route>
|
2020-10-18 02:46:25 +02:00
|
|
|
<Route path="/">
|
|
|
|
<BoardPage />
|
|
|
|
</Route>
|
2020-10-14 20:19:14 +02:00
|
|
|
<Route path="/board">
|
|
|
|
<BoardPage />
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
|
|
|
</div>
|
2020-10-09 17:10:26 +02:00
|
|
|
|
2020-10-14 20:19:14 +02:00
|
|
|
<div id="overlay">
|
|
|
|
</div>
|
2020-10-15 02:35:15 +02:00
|
|
|
|
|
|
|
<div id="modal">
|
|
|
|
</div>
|
2020-10-14 20:19:14 +02:00
|
|
|
</div>
|
|
|
|
</Router>
|
|
|
|
)
|
2020-10-09 17:10:26 +02:00
|
|
|
}
|