SPB Git

Repository Public

page.tsx 5.3 KB 125 lines tsx

1/**2 * =============================================================================3 *                  SP BOUCHER | ACADEMIC RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * PROJECT METADATA8 * -----------------------------------------------------------------------------9 * Project          : UQO Éval10 * File             : src/app/municipalites/page.tsx11 * Module           : app12 * Repository       : https://git.spboucher.ai/uqo-eval13 * Project Website  : https://www.uqo-eval.app14 * Created          : 2026-08-1315 * Last Modified    : 2026-08-2816 *17 * =============================================================================18 * SOFTWARE MAINTAINER & AFFILIATION19 * =============================================================================20 *21 * Maintainer       : Simon-Pierre Boucher22 * Position         : Professor of Finance23 * Institution      : Université du Québec en Outaouais (UQO)24 * Department       : Département des sciences administratives25 * Website          : https://spboucher.ai26 * Git              : https://git.spboucher.ai27 *28 * Research Contact : research@spboucher.ai29 * Direct Contact   : simon@spboucher.ai30 * Security/Admin   : admin@spboucher.ai31 *32 * The affiliation is descriptive. It is not an institutional endorsement,33 * a license grant or a determination of ownership.34 *35 * =============================================================================36 * COPYRIGHT, AUTHORSHIP & DATA37 * =============================================================================38 *39 * Copyright (c) the author(s) of this work.40 * Ownership is not asserted by this notice; see the repository records.41 *42 * This header identifies the maintainer of the software. Scientific43 * authorship of any associated paper is stated in the paper itself and44 * is not changed by this notice. Datasets and third-party materials45 * remain the property of their respective owners and licensors.46 *47 * This file is governed by the applicable project license, copyright48 * notices, institutional agreements and relevant law.49 *50 * =============================================================================51 * LICENSE & MAINTENANCE52 * =============================================================================53 *54 * License          : None specified (no license file in this repository)55 * Classification   : Public56 *57 * =============================================================================58 * END OF SP BOUCHER SOURCE HEADER59 * =============================================================================60 */6162// UQO Éval — laboratoire pédagogique d'évaluation immobilière63// Index des 1 097 municipalités : point d'entrée du maillage programmatique.64import type { Metadata } from "next";65import Link from "next/link";66import { allMunicipalities } from "@/lib/municipalites";67import { numFr, slugify } from "@/lib/seo";6869export const metadata: Metadata = {70  title: "Toutes les municipalités du Québec — valeur des propriétés",71  description:72    "Valeur médiane, statistiques d'évaluation et propriétés estimées pour les 1 097 municipalités du Québec : Montréal, Québec, Laval, Gatineau, Longueuil et toutes les autres.",73  alternates: { canonical: "/municipalites" },74};7576export default function MunicipalitesPage() {77  const all = allMunicipalities();78  const byLetter = new Map<string, typeof all>();79  for (const m of [...all].sort((a, b) => a.nom.localeCompare(b.nom, "fr"))) {80    const l = slugify(m.nom)[0]!.toUpperCase();81    if (!byLetter.has(l)) byLetter.set(l, []);82    byLetter.get(l)!.push(m);83  }84  return (85    <div className="pb-6 pt-10 sm:pt-14">86      <section>87        <span className="kicker">Explorer le Québec</span>88        <h1 className="vp-display mt-3 max-w-4xl text-[clamp(28px,5vw,52px)] font-bold uppercase leading-[1.02] tracking-[-0.03em]">89          La valeur des propriétés dans les{" "}90          <span className="hl">{numFr(all.length)} municipalités</span> du91          Québec92        </h1>93        <p className="mt-4 max-w-2xl text-[15.5px] text-ink-2">94          Chaque municipalité a sa page : nombre d&apos;unités d&apos;évaluation,95          valeur médiane estimée 2026, croissance depuis 2021, répartition par96          type de propriété et fiches détaillées, bâties sur les rôles97          d&apos;évaluation foncière du MAMH et 745 119 ventes réelles.98        </p>99      </section>100      {[...byLetter.entries()].map(([letter, ms]) => (101        <section key={letter} className="mt-10">102          <h2 className="vp-display border-b-2 border-ink pb-1 text-[22px] font-bold">103            {letter}104          </h2>105          <ul className="mt-3 grid grid-cols-2 gap-x-6 gap-y-1.5 sm:grid-cols-3 lg:grid-cols-4">106            {ms.map((m) => (107              <li key={m.slug}>108                <Link109                  href={`/municipalite/${m.slug}`}110                  className="group flex items-baseline justify-between gap-2 py-0.5 text-[13.5px]"111                >112                  <span className="group-hover:underline">{m.nom}</span>113                  <span className="vp-mono text-[10.5px] text-ink-2">114                    {numFr(m.n)}115                  </span>116                </Link>117              </li>118            ))}119          </ul>120        </section>121      ))}122    </div>123  );124}125
Files main
Menu

Theme