Skip to content

Commit

Permalink
fix bg
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldReddy committed Jun 5, 2024
1 parent 8df2d3c commit 69834d4
Show file tree
Hide file tree
Showing 2 changed files with 214 additions and 197 deletions.
10 changes: 4 additions & 6 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@ import { createBrowserRouter, createRoutesFromElements, RouterProvider, Route }
import './index.css'
import App from './App.jsx'
import Home from "./pages/Home/Home.jsx"
import MarsRover from './pages/MarsRover/MarsRover.jsx'
import NasaProjects from "./pages/NasaProjects/NasaProjects.jsx"
import NotFoundPage from "./pages/404 Page/NotfoundPage.jsx"
import './index.css'
import { createBrowserRouter, createRoutesFromElements, RouterProvider, Route } from "react-router-dom"
import About from "./pages/About/About.jsx"
import MarsRover from './pages/MarsRover/MarsRover.jsx'
import NotFoundPage from "./pages/404 Page/NotfoundPage.jsx"

const router = createBrowserRouter(
createRoutesFromElements(
<Route path='/' element={<App />}>
<Route index element={<Home />} />
<Route path='mars-rover' element={<MarsRover />} />
<Route path='nasa-projects' element={<NasaProjects />} />
<Route path='*' element={<NotFoundPage />} />
<Route path='about' element={<About />} />
<Route path='mars-rover' element={<MarsRover/>}/>
<Route path='*' element={<NotFoundPage />} />
</Route>
)
)
Expand Down
Loading

0 comments on commit 69834d4

Please sign in to comment.