Frontend: CSS modules, Zustand + URL sync

This commit is contained in:
Adrian Rumpold
2025-04-25 08:17:46 +02:00
parent e8a9a42ef4
commit ad335ad4d3
26 changed files with 1457 additions and 294 deletions

View File

@@ -0,0 +1,8 @@
import CelexSelector from "../components/CelexSelector/CelexSelector";
import { useUrlSync } from "../hooks/urlSync";
function LandingPage() {
useUrlSync();
return <CelexSelector />;
}
export default LandingPage;

View File

@@ -0,0 +1,16 @@
import App from "../App";
import { useUrlSync } from "../hooks/urlSync";
import useNavState from "../store/navStore";
function MainView() {
useUrlSync();
const celexId = useNavState((state) => state.celexId);
if (!celexId) {
return <div>Error: No CELEX ID provided</div>;
}
return <App />;
}
export default MainView;