-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathApp.tsx
More file actions
45 lines (38 loc) · 1.11 KB
/
App.tsx
File metadata and controls
45 lines (38 loc) · 1.11 KB
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
44
45
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";
import ScrollProgressBar from "./components/ScrollProgressBar";
import { Toaster } from "react-hot-toast";
import Router from "./Routes/Router";
import ThemeWrapper from "./context/ThemeContext";
function App() {
return (
<ThemeWrapper>
<div className="relative flex flex-col min-h-screen">
<ScrollProgressBar />
<Navbar />
<main className="flex-grow bg-gray-50 dark:bg-gray-800 flex justify-center items-center">
<Router />
</main>
<Footer />
<Toaster
position="top-center"
reverseOrder={false}
gutter={8}
containerClassName="mt-12"
toastOptions={{
className: "bg-white dark:bg-gray-800 text-black dark:text-white",
duration: 5000,
success: {
duration: 3000,
iconTheme: {
primary: "green",
secondary: "white",
},
},
}}
/>
</div>
</ThemeWrapper>
);
}
export default App;