Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : UQO Éval — Le Grand Défi Immobilier8 * File : apps/web/src/App.tsx9 * Module : web10 * Repository : https://git.spboucher.ai/uqo-eval-jeux11 * Project Website : https://jeux.uqo-eval.app12 * Created : 2026-11-2513 * Last Modified : 2026-11-2514 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: contact@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License : None specified (no license file in this repository)34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import { Suspense, lazy } from "react";44import { Link, Route, Switch } from "wouter";45import { Home } from "./pages/Home";46import { Play } from "./pages/Play";47import { Resume } from "./pages/Resume";4849const Finale = lazy(() => import("./pages/Finale"));50const Leaderboard = lazy(() => import("./pages/Leaderboard"));51const Legal = lazy(() => import("./pages/Legal"));52const Admin = lazy(() => import("./admin/Admin"));5354function Loading() {55 return <div className="center-screen" role="status"><span className="spinner" /><span className="sr-only">Chargement…</span></div>;56}5758export function App() {59 return (60 <Suspense fallback={<Loading />}>61 <Switch>62 <Route path="/" component={Home} />63 <Route path="/jouer/:id">{(params) => <Play id={params.id} />}</Route>64 <Route path="/resultats/:id">{(params) => <Finale id={params.id} />}</Route>65 <Route path="/classement/:id?">{(params) => <Leaderboard id={params.id} />}</Route>66 <Route path="/reprendre" component={Resume} />67 <Route path="/regles">{() => <Legal page="regles" />}</Route>68 <Route path="/confidentialite">{() => <Legal page="confidentialite" />}</Route>69 <Route path="/admin/*?" component={Admin} />70 <Route>71 <div className="center-screen">72 <div className="stack">73 <h1 className="display" style={{ fontSize: "var(--step-4)" }}>Cette porte ne mène nulle part.</h1>74 <p className="muted">La page demandée n'existe pas.</p>75 <p><Link href="/" className="btn btn-dark">Retour à l'accueil</Link></p>76 </div>77 </div>78 </Route>79 </Switch>80 </Suspense>81 );82}83