Spaces:
Running
Running
Download client/src/App.jsx from mb672038/python-mastery-academy: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/mb672038/python-mastery-academy/resolve/main/client/src/App.jsx
- Command line
-
hf download hf://spaces/mb672038/python-mastery-academy/client/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/spaces/mb672038/python-mastery-academy/resolve/main/client/src/App.jsx
1.04 kB
| import { Routes, Route } from 'react-router-dom'; | |
| import Home from './pages/Home'; | |
| import Courses from './pages/Courses'; | |
| import CourseDetail from './pages/CourseDetail'; | |
| import Login from './pages/Login'; | |
| import Register from './pages/Register'; | |
| import Dashboard from './pages/Dashboard'; | |
| import Navbar from './components/Navbar'; | |
| import Footer from './components/Footer'; | |
| import PrivateRoute from './components/PrivateRoute'; | |
| function App() { | |
| return ( | |
| <div className="flex flex-col min-h-screen"> | |
| <Navbar /> | |
| <main className="flex-grow"> | |
| <Routes> | |
| <Route path="/" element={<Home />} /> | |
| <Route path="/courses" element={<Courses />} /> | |
| <Route path="/courses/:id" element={<CourseDetail />} /> | |
| <Route path="/login" element={<Login />} /> | |
| <Route path="/register" element={<Register />} /> | |
| <Route path="/dashboard" element={<PrivateRoute><Dashboard /></PrivateRoute>} /> | |
| </Routes> | |
| </main> | |
| <Footer /> | |
| </div> | |
| ); | |
| } | |
| export default App; |