SPB Git

Repository Public

page.tsx 4.6 KB 51 lines tsx

1import type { Metadata } from "next";2import Link from "next/link";3import { getLocale } from "@/i18n/server";4import { dict } from "@/i18n/dict";5import { env } from "@/lib/env";6import { LogoMark, Signature } from "@/components/brand";78const T = dict({9  title: ["À propos", "About"], eyebrow: ["Auteur et mission", "Author and mission"],10  lead: ["Sheet est une publication de fiches scientifiques, techniques et pédagogiques conçue et signée par Simon-Pierre Boucher.", "Sheet is a publication of scientific, technical and teaching sheets designed and signed by Simon-Pierre Boucher."],11  missionH: ["La mission", "The mission"],12  mission: ["Transformer une question, une équation ou une méthode en une fiche que l’on comprend en quelques minutes, sans sacrifier la rigueur. Chaque fiche est un document vectoriel : les diagrammes restent nets à toutes les tailles, les équations sont composées proprement et les simulations se manipulent directement dans la page.",13    "Turn a question, an equation or a method into a sheet that can be understood in a few minutes without giving up rigour. Each sheet is a vector document: diagrams stay sharp at every size, equations are typeset properly and simulations run right in the page."],14  rulesH: ["Ce à quoi une fiche s’engage", "What a sheet commits to"],15  r1: ["Les sources sont citées, et celles qui n’ont pas pu être vérifiées sont signalées comme telles.", "Sources are cited, and those that could not be verified are marked as such."],16  r2: ["Un graphique indique toujours la nature de ses données : réelles, synthétiques ou illustratives.", "A chart always states the nature of its data: real, synthetic or illustrative."],17  r3: ["Les calculs des simulations sont faits par du code déterministe et testé, jamais par un texte généré.", "Simulation results come from deterministic, tested code, never from generated text."],18  r4: ["L’IA aide à rédiger et à mettre en page ; la révision et la décision de publier restent humaines.", "AI helps with drafting and layout; review and the decision to publish stay human."],19  r5: ["La lecture est libre : pas de compte, pas de paiement, pas de pistage publicitaire.", "Reading is free: no account, no payment, no advertising tracking."],20  authorH: ["L’auteur", "The author"],21  author: ["Simon-Pierre Boucher travaille en finance, en économétrie et en intelligence artificielle. Ses autres travaux sont présentés sur son site personnel.", "Simon-Pierre Boucher works in finance, econometrics and artificial intelligence. His other work is presented on his personal site."],22  site: ["Site personnel", "Personal site"], browse: ["Parcourir les fiches", "Browse the sheets"],23});24export async function generateMetadata(): Promise<Metadata> { const t = T(await getLocale()); return { title: t.title, description: t.lead, alternates: { canonical: "/about" } }; }2526export default async function About() {27  const t = T(await getLocale());28  const jsonLd = { "@context": "https://schema.org", "@type": "ProfilePage", mainEntity: { "@type": "Person", name: "Simon-Pierre Boucher", url: `${env.appUrl}/about`, sameAs: ["https://www.spboucher.ai"] } };29  return (30    <div className="mx-auto max-w-[780px] pt-10 safe-x">31      <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, "\\u003c") }} />32      <p className="eyebrow">{t.eyebrow}</p>33      <h1 className="mt-3 flex items-center gap-3 font-display text-4xl font-semibold tracking-tight sm:text-5xl"><LogoMark size={44} />{t.title}</h1>34      <p className="mt-5 text-xl leading-relaxed text-muted">{t.lead}</p>35      <h2 className="mt-10 font-display text-2xl font-semibold tracking-tight">{t.missionH}</h2>36      <p className="mt-3 leading-relaxed text-muted">{t.mission}</p>37      <h2 className="mt-10 font-display text-2xl font-semibold tracking-tight">{t.rulesH}</h2>38      <ul className="mt-4 grid gap-3">39        {[t.r1, t.r2, t.r3, t.r4, t.r5].map((r, i) => <li key={i} className="card flex gap-3 px-4 py-3 leading-relaxed"><span className="font-display text-lg font-semibold text-accent" aria-hidden="true">{i + 1}</span><span>{r}</span></li>)}40      </ul>41      <h2 className="mt-10 font-display text-2xl font-semibold tracking-tight">{t.authorH}</h2>42      <p className="mt-3 leading-relaxed text-muted">{t.author}</p>43      <div className="mt-6 flex flex-wrap gap-3">44        <a className="btn" href="https://www.spboucher.ai" rel="me noopener">{t.site}</a>45        <Link className="btn btn-primary" href="/">{t.browse}</Link>46      </div>47      <p className="mt-10 border-t border-line pt-6 text-sm text-muted"><Signature /></p>48    </div>49  );50}51
Files main
Menu

Theme