Add Trust Center top bar to compliance portal

Build the Trust Center top navigation in a Relay-wired layout route. The
portal now mounts a Relay environment and provider, and the root layout
loads a query whose fragment feeds the TopBar: brand, ghost-pill nav with
an active state from the router, and a guest "Get Access" button versus an
authenticated user menu. Placeholder section routes keep the nav links and
active state functional until real pages land.

Wire the Relay tagged-template transform via @rolldown/plugin-babel and
set the router basename to the /trust/{slug} path prefix so the app
resolves under its served path.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-26 21:55:09 +02:00
parent a6be5464a5
commit 68eaabe0ea
15 changed files with 471 additions and 5 deletions

View File

@@ -14,8 +14,13 @@
import { RouterProvider } from "react-router";
import { RelayProvider } from "#/lib/relay/RelayProvider";
import { router } from "#/routes";
export function App() {
return <RouterProvider router={router} />;
return (
<RelayProvider>
<RouterProvider router={router} />
</RelayProvider>
);
}