-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
43 lines (41 loc) · 1.61 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Home from "./pages/Home";
import SideNavBar from "./components/SideNavBar";
import NavBar from "./components/NavBar";
import Courses from "./pages/Courses";
import Dashboard from "./pages/Dashboard";
import Contact from "./pages/Contact";
import Profile from "./pages/Profile";
import Login from "./pages/Login";
import Logout from "./pages/Logout";
import 'react-notifications/lib/notifications.css';
import {NotificationContainer} from 'react-notifications';
import Create from "./pages/Create";
import VerifyEmail from "./pages/VerifyEmail";
function App() {
return (
<BrowserRouter>
<div className="flex bg-[#94d7682d]">
<div className="basis-[11%] hidden lg:block">
<SideNavBar />
</div>
<div className="lg:basis-[89%] ttt overflow min-h-screen max-h-screen overflow-y-hidden w-full lg:w-[95%] mx-auto">
<NavBar />
<Routes>
<Route exact path="/" element={<Home />} />
<Route path="/courses" element={<Courses />} />
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/contact" element={<Contact />} />
<Route path="/profile" element={<Profile />} />
<Route path="/login" element={<Login />} />
<Route path="/logout" element={<Logout />} />
<Route path="/create" element={<Create />} />
<Route path="/verify_email/:token" element={<VerifyEmail />} />
</Routes>
</div>
<NotificationContainer/>
</div>
</BrowserRouter>
);
}
export default App;