| import React from "react"; | |
| import ReactDOM from "react-dom/client"; | |
| import { BrowserRouter, Routes, Route } from "react-router-dom"; | |
| import { ThemeProvider } from "@mui/material/styles"; | |
| import CssBaseline from "@mui/material/CssBaseline"; | |
| import { theme } from "./theme"; | |
| import { Home } from "./pages/Home"; | |
| import { Game } from "./pages/Game"; | |
| import { Tutorial } from "./pages/Tutorial"; | |
| import Debug from "./pages/Debug"; | |
| import { Universe } from "./pages/Universe"; | |
| import { SoundProvider } from "./contexts/SoundContext"; | |
| import { GameNavigation } from "./components/GameNavigation"; | |
| import { AppBackground } from "./components/AppBackground"; | |
| import "./index.css"; | |
| ReactDOM.createRoot(document.getElementById("root")).render( | |
| <ThemeProvider theme={theme}> | |
| <CssBaseline /> | |
| <SoundProvider> | |
| <BrowserRouter> | |
| <GameNavigation /> | |
| <AppBackground /> | |
| <Routes> | |
| <Route path="/" element={<Home />} /> | |
| <Route path="/game" element={<Game />} /> | |
| <Route path="/tutorial" element={<Tutorial />} /> | |
| <Route path="/debug" element={<Debug />} /> | |
| <Route path="/universe" element={<Universe />} /> | |
| </Routes> | |
| </BrowserRouter> | |
| </SoundProvider> | |
| </ThemeProvider> | |
| ); | |