Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : agentilab-web8 * File : components/pages/HomePage.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 Image from 'next/image';44import type { Locale } from '@/lib/i18n/config';45import { getCopy } from '@/lib/i18n/copy';46import { href } from '@/lib/i18n/routes';47import { brand, productsOf, publishedProducts, technologies } from '@/lib/catalog';48import { ButtonLink, ArrowLink, Container, ExternalLink, Section, SectionHeading } from '@/components/ui/primitives';49import { BrandCard, JsonLd, TechnologyCard } from '@/components/marketing/blocks';50import { OrbitalDiagram } from '@/components/marketing/OrbitalDiagram';51import { organizationJsonLd } from '@/lib/seo/metadata';52import { Shell } from './Shell';5354export function HomePage({ locale }: { locale: Locale }) {55 const copy = getCopy(locale);56 const t = copy.home;57 const ka = productsOf('groupe-ka');58 const orix = productsOf('orix');59 const louKa = publishedProducts.find((p) => p.id === 'ka-lou-ka');60 const louKaShot = louKa?.screenshots[0];61 return (62 <Shell locale={locale} current="home">63 <div className="hero" data-tone="light">64 <Container>65 <div className="grid12">66 <div className="hero__text">67 <span className="eyebrow">{t.eyebrow}</span>68 <h1 className="hero__title">{t.title}</h1>69 <p className="lead hero__lead rise rise--2">{t.lead}</p>70 <div className="hero__cta rise rise--3">71 <ButtonLink href={href('ecosystem', locale)}>{t.ctaPrimary}</ButtonLink>72 <ButtonLink href={href('contact', locale)} variant="secondary">73 {t.ctaSecondary}74 </ButtonLink>75 </div>76 </div>77 <figure className="hero__figure">78 <OrbitalDiagram79 kaLabel="Groupe Ka"80 kaSub={t.diagramKa(ka.length)}81 orixLabel="ORIX"82 orixSub={t.diagramOrix(orix.length)}83 kaCount={ka.length}84 orixCount={orix.length}85 />86 <figcaption>{t.diagramCaption}</figcaption>87 </figure>88 </div>89 </Container>90 </div>9192 <section className="facts" data-tone="light" aria-label={t.facts.label}>93 <Container>94 <dl>95 {t.facts.items.map((item) => (96 <div key={item.term}>97 <dt>{item.term}</dt>98 <dd>{item.value}</dd>99 </div>100 ))}101 </dl>102 </Container>103 </section>104105 <Section labelledBy="portefeuille">106 <SectionHeading id="portefeuille" eyebrow={t.portfolio.eyebrow} title={t.portfolio.title} intro={t.portfolio.intro} />107 <div className="brands">108 <BrandCard brand={brand('groupe-ka')} products={ka} locale={locale} route="groupeKa" cta={t.portfolio.kaCta} highlight="ka-lou-ka" />109 <BrandCard brand={brand('orix')} products={orix} locale={locale} route="orix" cta={t.portfolio.orixCta} />110 </div>111 </Section>112113 {louKa && louKaShot ? (114 <Section tone="dark" className="featured" labelledBy="vedette">115 <div className="grid12">116 <div className="featured__text">117 <span className="eyebrow">{t.featured.eyebrow}</span>118 <h2 id="vedette">{t.featured.title}</h2>119 {t.featured.text.map((paragraph) => (120 <p key={paragraph} className="muted">121 {paragraph}122 </p>123 ))}124 <p>125 <ExternalLink href={louKa.officialUrl[locale]} externalLabel={copy.labels.external} hrefLang={locale === 'en' ? 'fr-CA' : undefined}>126 {t.featured.cta}127 </ExternalLink>128 </p>129 </div>130 <div className="featured__shot">131 <Image src={louKaShot.src} width={louKaShot.width} height={louKaShot.height} alt={louKaShot.alt[locale]} sizes="(min-width: 1000px) 640px, 100vw" />132 </div>133 </div>134 </Section>135 ) : null}136137 <Section labelledBy="ingenierie">138 <SectionHeading id="ingenierie" eyebrow={t.technologies.eyebrow} title={t.technologies.title} intro={t.technologies.intro} />139 <ul className="tiles tiles--3">140 {technologies.map((tech, index) => (141 <TechnologyCard key={tech.id} tech={tech} index={index} locale={locale} link={{ href: href('technologies', locale), label: copy.labels.learnMore }} />142 ))}143 </ul>144 </Section>145146 <Section className="section--ruled" labelledBy="principes">147 <SectionHeading id="principes" eyebrow={t.principles.eyebrow} title={t.principles.title} intro={t.principles.intro} />148 <ul className="tiles tiles--4">149 {t.principles.items.map((item, index) => (150 <li key={item.title} className="tile">151 <span className="tile__index" aria-hidden="true">152 {String(index + 1).padStart(2, '0')}153 </span>154 <h3>{item.title}</h3>155 <p>{item.text}</p>156 </li>157 ))}158 </ul>159 </Section>160161 <Section tone="dark" labelledBy="entreprise">162 <div className="split">163 <div className="heading">164 <span className="eyebrow">{t.company.eyebrow}</span>165 <h2 id="entreprise">{t.company.title}</h2>166 </div>167 <div className="prose">168 <p className="lead">{t.company.text}</p>169 <p>170 <ArrowLink href={href('company', locale)}>{t.company.cta}</ArrowLink>171 </p>172 </div>173 </div>174 </Section>175176 <Section labelledBy="contact">177 <div className="split">178 <div className="heading">179 <span className="eyebrow">{t.contact.eyebrow}</span>180 <h2 id="contact">{t.contact.title}</h2>181 </div>182 <div className="prose">183 <p className="lead">{t.contact.text}</p>184 <p>185 <ButtonLink href={href('contact', locale)}>{t.contact.cta}</ButtonLink>186 </p>187 </div>188 </div>189 </Section>190 <JsonLd data={organizationJsonLd(locale)} />191 </Shell>192 );193}194