SPB Git

Repository Public

page.tsx 2.8 KB 74 lines tsx

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : Vrai-Prix8 * File             : src/app/stats/page.tsx9 * Module           : app10 * Repository       : https://git.spboucher.ai/vrai-prix11 * Created          : 2026-08-0912 * Last Modified    : 2026-09-0813 *14 * Author           : Simon-Pierre Boucher15 * Position         : Professor of Finance16 * Institution      : Université du Québec en Outaouais (UQO)17 * Organization     : SP Boucher18 * Website          : https://spboucher.ai19 * Git              : https://git.spboucher.ai20 *21 * Preferred Contact: contact@spboucher.ai22 * Development      : dev@spboucher.ai23 * Support          : support@spboucher.ai24 * Security/Admin   : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License          : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142import StatsView, { type ProvStats } from "@/components/StatsView";43import StatsDashboard, { type DashboardPayload } from "@/components/StatsDashboard";44import MarcheTeaser from "@/components/MarcheTeaser";45import { getDashboard } from "@/lib/stats-dashboard";46import { loadMarcheStats } from "@/lib/marche-stats";47import stats from "@/data/stats.json";4849import type { Metadata } from "next";5051export const metadata: Metadata = {52  title: "Statistiques provinciales — la valeur de l'immobilier québécois",53  description:54    "La valeur totale de l'immobilier québécois : 2 000 milliards $ en 2026, indicateurs, indices de marché, distributions, palmarès des 200 plus grandes municipalités et 5 rapports PDF.",55  alternates: { canonical: "/stats" },56};5758export default function StatsPage() {59  const dash = getDashboard() as unknown as DashboardPayload;60  // « la mesure à l'épreuve du marché » — fichier nocturne (data/) ou instantané versionné61  const marche = loadMarcheStats();62  return (63    <div className="pb-6">64      <StatsView s={stats as ProvStats} />65      <MarcheTeaser66        n={marche.source.valid}67        mdape={marche.global.mdape ?? 0}68        ratio={marche.global.medianRatio ?? 0}69      />70      <StatsDashboard initial={dash} />71    </div>72  );73}74
Files main
Menu

Theme