2022-06-23 07:11:01 +00:00
|
|
|
// Modules
|
|
|
|
|
import { Routes, Route } from "react-router-dom";
|
|
|
|
|
|
|
|
|
|
// Styles
|
2022-06-21 18:09:14 +00:00
|
|
|
import "./styles/style.scss";
|
2022-06-21 17:51:44 +00:00
|
|
|
|
2022-06-23 07:11:01 +00:00
|
|
|
// Components
|
2022-06-23 08:44:47 +00:00
|
|
|
import Nav from "./components/global/Nav";
|
|
|
|
|
import Footer from "./components/global/Footer";
|
2022-06-23 07:11:01 +00:00
|
|
|
|
|
|
|
|
// Pages
|
|
|
|
|
import Main from "./pages/Main";
|
2022-06-23 19:14:20 +00:00
|
|
|
import Events from "./pages/Events";
|
2022-06-23 22:42:57 +00:00
|
|
|
import Rating from "./pages/Rating";
|
2022-06-28 14:08:16 +00:00
|
|
|
import Profile from "./pages/Profile";
|
2022-06-28 20:40:51 +00:00
|
|
|
import EventItem from "./pages/EventItem";
|
2022-06-28 21:28:33 +00:00
|
|
|
import Structure from "./pages/Structure";
|
2022-06-29 12:25:48 +00:00
|
|
|
import Contacts from "./pages/Contact";
|
2022-06-23 07:11:01 +00:00
|
|
|
|
2022-06-21 18:01:52 +00:00
|
|
|
const App = () => {
|
2022-06-23 07:11:01 +00:00
|
|
|
return (
|
|
|
|
|
<div className="App">
|
|
|
|
|
<Nav />
|
|
|
|
|
<div className="inner-body">
|
|
|
|
|
<Routes>
|
|
|
|
|
<Route path="/" element={<Main />} />
|
2022-06-23 19:14:20 +00:00
|
|
|
<Route path="/news" element={<Events />} />
|
2022-06-23 22:42:57 +00:00
|
|
|
<Route path="/rating" element={<Rating />} />
|
2022-06-28 14:08:16 +00:00
|
|
|
<Route path="/profile" element={<Profile />} />
|
2022-06-28 20:40:51 +00:00
|
|
|
<Route path="/event" element={<EventItem />} />
|
2022-06-28 21:28:33 +00:00
|
|
|
<Route path="/structure" element={<Structure />} />
|
2022-06-29 12:25:48 +00:00
|
|
|
<Route path="/contact" element={<Contacts />} />
|
2022-06-23 07:11:01 +00:00
|
|
|
</Routes>
|
|
|
|
|
</div>
|
|
|
|
|
<Footer />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2022-06-21 18:01:52 +00:00
|
|
|
};
|
2022-06-21 17:51:44 +00:00
|
|
|
|
|
|
|
|
export default App;
|