App.js
887 Bytes
import React from "react";
import LandingPage from "./pages/LandingPage.js";
import MainPage from "./pages/MainPage.js";
import LoginPage from "./pages/LoginPage.js";
import SignUpPage from "./pages/SignUpPage.js";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles";
const THEME = createMuiTheme({
typography: {
"fontFamily": "MapoGoldenPier",
}
});
function App() {
return (
<MuiThemeProvider theme={THEME}>
<Router>
<Switch>
<Route exact path="/" component={LandingPage} />
<Route exact path="/main" component={MainPage} />
<Route exact path="/login" component={LoginPage} />
<Route exact path="/signup" component={SignUpPage} />
</Switch>
</Router>
</MuiThemeProvider>
);
}
export default App;