[3798b7]: / client / src / App.jsx

Download this file

43 lines (40 with data), 1.5 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
import React from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Navbar from "./components/Navbar";
import Home from "./components/Home";
import Prediction from "./components/Prediction";
import DataInfo from "./components/DataInfo";
import Visualization from "./components/Visualization";
import Footer from "./components/Footer";
import ContactUs from "./components/contact";
import FloatBtn from "./components/FloatBtn";
import FAQ from "./components/FAQ";
import Helmet from "react-helmet";
const App = () => {
return (
<>
<Helmet>
<script src="https://cdn.botpress.cloud/webchat/v2/inject.js"></script>
<script src="https://mediafiles.botpress.cloud/308f960c-95e7-4cc1-aa6a-f1c653965b80/webchat/v2/config.js"></script>
</Helmet>
<Router>
<div className="min-h-screen flex flex-col">
<Navbar />
<div className="flex-grow">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/data-info" element={<DataInfo />} />
<Route path="/prediction" element={<Prediction />} />
<Route path="/visualization" element={<Visualization />} />
<Route path="/contact" element={<ContactUs />} />
<Route path="/FAQ" element={<FAQ />} />
</Routes>
</div>
<Footer />
<FloatBtn />
</div>
</Router>
</>
);
};
export default App;