aboutsummaryrefslogtreecommitdiff
path: root/src/web/index.jsx
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-13 18:04:18 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-02-13 18:04:18 +1100
commit93dfe2be64e8658839bcfe5356adf35f8cde7075 (patch)
treec60b1e20d569b74dbde85123e1b2bf3590c66244 /src/web/index.jsx
initial commit
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);