feat: migrate showcase to Next.js and overhaul CRM UI

- rebuild the public site on the Next.js App Router with static export,
  per-section SEO pages, metadata, sitemap, robots and a generated OG image
- add full-screen scroll-snap regions, staged scroll reveals, a hash-free
  tab navigation with a sliding indicator and region-by-region menu scrolling
- replace the theme text toggle with animated sun/moon icons
- restructure the CRM API into config, middleware, models, routes, services
  and utils layers
- redesign the CRM shell with a single surface, tab rail, full-width blurred
  DataTable, record dialogs and mask-based icons
- update Docker/Nginx publishing, Makefile targets, shared UI polish and docs
This commit is contained in:
2026-11-16 00:52:29 +01:00
parent ab4cde1ce2
commit 09cf07d79b
113 changed files with 6427 additions and 2364 deletions
+13
View File
@@ -0,0 +1,13 @@
/** Point d'entrée de l'API CRM. Surchargeable via NEXT_PUBLIC_CRM_API_URL au build. */
const host = typeof window !== "undefined" ? window.location.hostname : "";
const isLocal =
host === "localhost" || host === "127.0.0.1" || host === "0.0.0.0";
const base =
process.env.NEXT_PUBLIC_CRM_API_URL ??
(isLocal ? "http://localhost:8082" : "https://crm.cohaise.dev");
const trimmed = base.replace(/\/+$/, "");
/** Endpoint public qui crée un prospect depuis le formulaire de contact. */
export const LEADS_ENDPOINT = `${trimmed}/api/crm/leads`;