diff options
Diffstat (limited to 'frontend/src/App.js')
-rw-r--r-- | frontend/src/App.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/frontend/src/App.js b/frontend/src/App.js new file mode 100644 index 0000000..def37d1 --- /dev/null +++ b/frontend/src/App.js @@ -0,0 +1,38 @@ +// Filename - App.js + +import React from "react"; +import '@popperjs/core'; +import 'bootstrap/dist/css/bootstrap.min.css'; +import 'bootstrap/dist/js/bootstrap.bundle.min'; + +import Navbar from "./components/Navbar"; +import Footer from "./Footer"; +import { + BrowserRouter as Router, + Routes, + Route, +} from "react-router-dom"; +import Home from "./pages"; +import About from "./pages/about"; +import Courses from "./pages/courses"; +import Contact from "./pages/contact"; + +function App() { + return ( + <Router> + <Navbar /> + <Routes> + <Route exact path="/" element={<Home />} /> + <Route path="/about" element={<About />} /> + <Route + path="/contact" + element={<Contact />} + /> + <Route path="/courses" element={<Courses />} /> + </Routes> + <Footer /> + </Router> + ); +} + +export default App; |