Delete app.py
Browse files
app.py
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
import React from "react";
|
2 |
-
import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom";
|
3 |
-
import Home from "./pages/Home";
|
4 |
-
import About from "./pages/About";
|
5 |
-
import Contact from "./pages/Contact";
|
6 |
-
import Timing from "./Timing"; // Import Timing component
|
7 |
-
import "./App.css";
|
8 |
-
|
9 |
-
function App() {
|
10 |
-
return (
|
11 |
-
<Router>
|
12 |
-
<div className="app">
|
13 |
-
<nav className="navbar">
|
14 |
-
<h2>My Website</h2>
|
15 |
-
<ul>
|
16 |
-
<li><Link to="/">Home</Link></li>
|
17 |
-
<li><Link to="/about">About</Link></li>
|
18 |
-
<li><Link to="/contact">Contact</Link></li>
|
19 |
-
<li><Link to="/timing">Flight Timings</Link></li> {/* New Link */}
|
20 |
-
</ul>
|
21 |
-
</nav>
|
22 |
-
|
23 |
-
<Routes>
|
24 |
-
<Route path="/" element={<Home />} />
|
25 |
-
<Route path="/about" element={<About />} />
|
26 |
-
<Route path="/contact" element={<Contact />} />
|
27 |
-
<Route path="/timing" element={<Timing />} /> {/* New Route */}
|
28 |
-
</Routes>
|
29 |
-
|
30 |
-
<footer className="footer">
|
31 |
-
<p>© 2025 My Website. All Rights Reserved.</p>
|
32 |
-
</footer>
|
33 |
-
</div>
|
34 |
-
</Router>
|
35 |
-
);
|
36 |
-
}
|
37 |
-
|
38 |
-
export default App;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|