SPB Git

Repository Public

NotFoundPage.tsx 2.7 KB 76 lines tsx

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : agentilab-web8 * File             : components/pages/NotFoundPage.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 { languageTag } from '@/lib/i18n/config';45import { getCopy } from '@/lib/i18n/copy';46import { href } from '@/lib/i18n/routes';47import { ButtonLink, Container } from '@/components/ui/primitives';48import { Shell } from './Shell';4950export function NotFoundPage({ locale }: { locale: Locale }) {51  const t = getCopy(locale).notFound;52  const other: Locale = locale === 'fr' ? 'en' : 'fr';53  return (54    <Shell locale={locale} current={null}>55      <div className="notfound" data-tone="light">56        <Container>57          <span className="eyebrow">{t.code}</span>58          <h1>{t.title}</h1>59          <p className="lead">{t.text}</p>60          <div className="hero__cta">61            <ButtonLink href={href('home', locale)}>{t.home}</ButtonLink>62            <ButtonLink href={href('ecosystem', locale)} variant="secondary">63              {t.ecosystem}64            </ButtonLink>65          </div>66          <p>67            <a href={href('home', other)} lang={languageTag[other]} hrefLang={languageTag[other]}>68              {t.otherLanguage}69            </a>70          </p>71        </Container>72      </div>73    </Shell>74  );75}76
Files main
Menu

Theme