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