SPB Git

Repository Public

OrixPage.tsx 4.3 KB 109 lines tsx

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : agentilab-web8 * File             : components/pages/OrixPage.tsx9 * Module           : User Interface10 * Repository       : https://git.spboucher.ai/agentilab-web11 * Project Website  : Not specified12 * Created          : 2026-12-0513 * Last Modified    : 2026-12-0514 *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          : Proprietary34 *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 type { Locale } from '@/lib/i18n/config';44import { formatDate } from '@/lib/i18n/config';45import { getCopy } from '@/lib/i18n/copy';46import { brand, productsOf } from '@/lib/catalog';47import type { ProductCategory } from '@/lib/catalog/types';48import { ExternalLink, Section, SectionHeading } from '@/components/ui/primitives';49import { PageHead } from '@/components/marketing/blocks';50import { ProductGrid } from '@/components/marketing/ProductCard';51import { Shell } from './Shell';5253const CATEGORY_ORDER: ProductCategory[] = ['productivity', 'utilities', 'creativity', 'ai', 'entertainment'];5455export function OrixPage({ locale }: { locale: Locale }) {56  const copy = getCopy(locale);57  const t = copy.orix;58  const orix = brand('orix');59  const products = productsOf('orix');60  const categories = CATEGORY_ORDER.map((category) => ({61    category,62    label: copy.labels.category[category],63    items: products.filter((product) => product.category === category),64  })).filter((group) => group.items.length > 0);65  return (66    <Shell locale={locale} current="orix">67      <PageHead id="orix" locale={locale} eyebrow={t.eyebrow} title={t.title} lead={orix.summary[locale]}>68        <p className="lead" style={{ marginTop: 'var(--s4)' }}>69          {orix.description[locale]}70        </p>71        <p style={{ marginTop: 'var(--s5)' }}>72          <ExternalLink href={orix.officialUrl[locale]} externalLabel={copy.labels.external}>73            {orix.officialLabel}74          </ExternalLink>75        </p>76      </PageHead>7778      <Section tone="dark" labelledBy="confidentialite-produits">79        <div className="split">80          <div className="heading">81            <h2 id="confidentialite-produits">{t.privacyTitle}</h2>82          </div>83          <p className="lead">{t.privacyText}</p>84        </div>85      </Section>8687      <Section labelledBy="catalogue">88        <SectionHeading id="catalogue" title={t.catalogTitle} intro={t.catalogIntro(products.length, formatDate(orix.verifiedAt, locale))} />89        <nav className="catnav" aria-label={t.categoriesNav}>90          {categories.map((group) => (91            <a key={group.category} href={`#${group.category}`}>92              {group.label}93            </a>94          ))}95        </nav>96        {categories.map((group) => (97          <section key={group.category} id={group.category} className="category" aria-labelledby={`cat-${group.category}`}>98            <h3 id={`cat-${group.category}`}>{group.label}</h3>99            <ProductGrid products={group.items} locale={locale} heading="h4" withScreenshot />100          </section>101        ))}102        <p className="muted small" style={{ marginTop: 'var(--s7)', maxWidth: '68ch' }}>103          {t.trademark}104        </p>105      </Section>106    </Shell>107  );108}109
Files main
Menu

Theme