aboutsummaryrefslogtreecommitdiff
path: root/src/web/index.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/index.jsx')
-rw-r--r--src/web/index.jsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/web/index.jsx b/src/web/index.jsx
new file mode 100644
index 0000000..188b386
--- /dev/null
+++ b/src/web/index.jsx
@@ -0,0 +1,24 @@
+import React from "react";
+import {render} from "react-dom";
+import {BrowserRouter, Routes, Route} from "react-router-dom";
+
+import App from "./components/app/App.jsx";
+import NotFound from "./components/not_found/NotFound.jsx";
+
+import "./reset.css";
+import "./index.css";
+import "@fontsource/heebo";
+
+function BrowserRoutes() {
+ return (
+ <BrowserRouter>
+ <Routes>
+ <Route path="/*" element={<App />} />
+ <Route path="*" element={<NotFound />} />
+ </Routes>
+ </BrowserRouter>
+ );
+}
+
+const root = document.getElementById("root");
+render(<BrowserRoutes />, root);