diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-14 16:40:30 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-14 16:40:30 +1100 |
| commit | 6e1fbeceedada4de17a12bb25fad9c28933d6b29 (patch) | |
| tree | 2be3e99cca95949f1153e3276af2b4497b98191e /src/index.jsx | |
initial commit
Diffstat (limited to 'src/index.jsx')
| -rw-r--r-- | src/index.jsx | 25 |
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(); |
