App.js 947 Bytes
Newer Older
1
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
Jiwon Yoon's avatar
Jiwon Yoon committed
2
3
4
import Header from "./components/Header";
import SubNav from "./components/Navs/SubNav";
import MainNav from "./components/Navs/MainNav";
5
6
7
8
9
10
11
import HomePage from "./pages/HomePage";
import LoginPage from "./pages/LoginPage";
import SignupPage from "./pages/SignupPage";
import MovieListPage from "./pages/MovieListPage";
import MoviePage from "./pages/MoviePage";
import TheaterPage from "./pages/TheaterPage";
import MyPage from "./pages/MyPage";
Kim, Subin's avatar
Kim, Subin committed
12
import AdminPage from "./pages/AdminPage";
Jiwon Yoon's avatar
Jiwon Yoon committed
13
14
15

function App() {
  return (
Jiwon Yoon's avatar
Jiwon Yoon committed
16
17
18
19
20
21
22
23
24
25
26
      <div className="" style={{ backgroundColor: "black" }}>
        <SubNav />
        <Header />
        <MainNav />
        <Router>
          <Switch>
            <Route exact path="/" component={HomePage} />
            <Route path="/movie" component={MovieListPage} />
          </Switch>
        </Router>
      </div>
Jiwon Yoon's avatar
Jiwon Yoon committed
27
28
29
30
  );
}

export default App;