Files
bdinvite/frontend/src/App.tsx
T
kiskaadee d4ae37fef8 feat(frontend): implement interactive invitation SPA and admin dashboard
- 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
2026-09-30 23:38:18 -05:00

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;