SPB Git

Repository Public

LegalPage.tsx 4.2 KB 119 lines tsx

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : Vrai-Prix8 * File             : src/components/LegalPage.tsx9 * Module           : components10 * Repository       : https://git.spboucher.ai/vrai-prix11 * Created          : 2026-08-0912 * Last Modified    : 2026-08-0913 *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 */4142"use client";43import Link from "next/link";44import { useLang } from "./LangContext";4546export interface LegalSection {47  title: string;48  paras: string[];49}5051export default function LegalPage({52  crumb,53  kicker,54  title,55  updated,56  sections,57  children,58}: {59  crumb: { fr: string; en: string };60  kicker: { fr: string; en: string };61  title: { fr: string; en: string };62  updated: string;63  sections: { fr: LegalSection[]; en: LegalSection[] };64  children?: React.ReactNode;65}) {66  const { lang } = useLang();67  const fr = lang === "fr";68  const list = fr ? sections.fr : sections.en;69  return (70    <div className="py-10">71      <nav className="vp-mono mb-8 flex items-center gap-2 text-[11.5px] uppercase tracking-[0.06em] text-ink-3">72        <Link href="/" className="border-b-[1.5px] border-transparent hover:border-green hover:text-green">73          Vrai-Prix74        </Link>75        <span>/</span>76        <span>{fr ? crumb.fr : crumb.en}</span>77      </nav>78      <span className="kicker">{fr ? kicker.fr : kicker.en}</span>79      <h1 className="vp-display mt-3 max-w-3xl text-[clamp(28px,4.6vw,44px)] font-bold uppercase leading-[1.02] tracking-[-0.03em]">80        {fr ? title.fr : title.en}81      </h1>82      <p className="vp-mono mt-3 text-[11px] uppercase tracking-[0.08em] text-ink-3">83        {fr ? "Dernière mise à jour" : "Last updated"} : {updated}84      </p>85      <div className="mt-8 space-y-6">86        {list.map((s, i) => (87          <section key={s.title} className="vp-card p-6 sm:p-7">88            <div className="flex items-baseline gap-4">89              <span className="vp-mono text-[12px] font-bold text-green">90                {String(i + 1).padStart(2, "0")}91              </span>92              <h2 className="vp-display text-[17px] font-bold uppercase tracking-[-0.01em]">93                {s.title}94              </h2>95            </div>96            <div className="mt-3 space-y-3">97              {s.paras.map((p, j) => (98                <p key={j} className="max-w-3xl text-[14px] leading-relaxed text-ink-2">99                  {p}100                </p>101              ))}102            </div>103          </section>104        ))}105      </div>106      {children}107      <div className="vp-card mt-6 border-ink bg-ink p-6 text-paper">108        <p className="klabel !text-lime">109          {fr ? "Responsable et contact" : "Controller and contact"}110        </p>111        <p className="vp-display mt-2 text-[18px] font-bold">Simon-Pierre Boucher</p>112        <p className="vp-mono mt-1 text-[12px] tracking-[0.04em] text-[rgba(245,243,238,0.8)]">113          contact@spboucher.ai · vrai-prix.com114        </p>115      </div>116    </div>117  );118}119
Files main
Menu

Theme