-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
37 lines (36 loc) · 1.38 KB
/
App.js
File metadata and controls
37 lines (36 loc) · 1.38 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
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Home from "./component/page/home/Home";
import About from "./component/About";
import Contact from "./component/page/contact/Contact";
import Header from "./component/Header";
import Footer from "./component/Footer";
import ReactGA from "react-ga";
import EBookSection from "./component/page/ebook/EBookSection";
import Placment from "./component/page/carrer/Carrer";
import FreePdf from "./component/page/freepdf/FreePdf";
import ErrorPage from "./component/page/ErrorPage";
const TRACKING_ID = process.env.REACT_APP_G_ANALYTICS_ID; // OUR_TRACKING_ID
ReactGA.initialize(TRACKING_ID);
ReactGA.pageview(window.location.pathname);
function App() {
return (
<BrowserRouter>
<div className="relative ">
<Header />
<div className="flex flex-col min-h-screen bg-[#f2f2f2]">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/contact" element={<Contact />} />
<Route path="/ebook" element={<EBookSection />} />
<Route path="/source" element={<Placment />} />
<Route path="/freepdf" element={<FreePdf />} />
<Route path="*" element={<ErrorPage />} />
</Routes>
<Footer />
</div>
</div>
</BrowserRouter>
);
}
export default App;