-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
30 lines (28 loc) · 1.06 KB
/
App.js
File metadata and controls
30 lines (28 loc) · 1.06 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
import React from "react";
import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom";
import PredictionForm from "./components/PredictionForm";
import HotspotAnalysis from "./components/HotspotAnalysis";
import ResultPage from "./components/ResultPage";
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap-icons/font/bootstrap-icons.css";
function App() {
return (
<Router>
<nav className="navbar navbar-expand-lg navbar-dark bg-dark">
<div className="container">
<Link className="navbar-brand" to="/">AI Traffic Prediction</Link>
<div>
<Link className="btn btn-outline-light me-2" to="/">Predict</Link>
<Link className="btn btn-warning" to="/hotspot-analysis">Hotspot Map</Link>
</div>
</div>
</nav>
<Routes>
<Route path="/" element={<PredictionForm />} />
<Route path="/result" element={<ResultPage />} />
<Route path="/hotspot-analysis" element={<HotspotAnalysis />} />
</Routes>
</Router>
);
}
export default App;