switch to parcel building

This commit is contained in:
WillJeynes
2026-06-23 12:25:37 +01:00
parent 77c2c3acdf
commit 5bb94d4714
10 changed files with 2870 additions and 951 deletions
+42
View File
@@ -0,0 +1,42 @@
import React, { useEffect, useState } from "react";
import ReactDOM from "react-dom/client";
import App from "./app/layout";
import Home from "./app/page";
import Careers from "./app/careers/page";
import Apply from "./app/apply/page";
import Submitted from "./app/submitted/page";
function Router() {
const [hash, setHash] = useState(window.location.hash);
useEffect(() => {
const onHashChange = () => setHash(window.location.hash);
window.addEventListener("hashchange", onHashChange);
return () => {
window.removeEventListener("hashchange", onHashChange);
};
}, []);
if (hash === "#careers") {
return <Careers />;
}
if (hash === "#apply") {
return <Apply />;
}
if (hash === "#submitted") {
return <Submitted />;
}
return <Home />
}
ReactDOM.createRoot(
document.getElementById("root")
).render(<App><Router /></App>);