- Add React 18 + Vite + Typescript application architecture with basename /birthday - Implement invitation experience with golden bokeh particle canvas adn countdown timer - Build Colombian phone validated RSVP flow with optimistic submission state machine - Add Authelia-protected admin dashboard with live RSVP table and configuration editor - Embed self-hosted display and Montserrat fonts without external CDN dependencies - Include self-contained Biome linter configuration with parent VCS root resolution - Update project roadmap reflecting completion of phases 2, 3 and 4
28 lines
861 B
TypeScript
28 lines
861 B
TypeScript
import { BrowserRouter, Navigate, Route, Routes } from "react-router-dom";
|
|
import { AdminLayout } from "./admin/AdminLayout";
|
|
import { ConfigEditor } from "./admin/ConfigEditor";
|
|
import { RsvpTable } from "./admin/RsvpTable";
|
|
import { Invitation } from "./invitation/Invitation";
|
|
|
|
export function App() {
|
|
return (
|
|
<BrowserRouter basename="/birthday">
|
|
<Routes>
|
|
{/* Guest Public Route */}
|
|
<Route path="/" element={<Invitation />} />
|
|
|
|
{/* Authelia-Protected Admin Dashboard */}
|
|
<Route path="/admin" element={<AdminLayout />}>
|
|
<Route index element={<RsvpTable />} />
|
|
<Route path="config" element={<ConfigEditor />} />
|
|
</Route>
|
|
|
|
{/* Catch-all fallback */}
|
|
<Route path="*" element={<Navigate to="/" replace />} />
|
|
</Routes>
|
|
</BrowserRouter>
|
|
);
|
|
}
|
|
|
|
export default App;
|