feat: wayfinding system across chapters, HUD and project plates; cut boot log, headlight and ops strip

This commit is contained in:
2026-10-10 17:46:17 +03:00
parent 8a77fc02b2
commit 629535ba04
16 changed files with 345 additions and 401 deletions

15
src/lib/route-plate.ts Normal file
View File

@@ -0,0 +1,15 @@
import type { PublicProject } from '@/content/types';
/**
* Decorative registration plate for a project, e.g. "05.1 / PRIVATE / ACTIVE".
* Built only from real content fields; rendered through CSS generated content.
*/
export function routePlate(
exit: string | undefined,
index: number,
project: Pick<PublicProject, 'visibility' | 'maturity'>,
): string {
const code = exit === undefined ? `${index + 1}` : `${exit}.${index + 1}`;
const maturity = project.maturity.replace(/-/gu, ' ');
return `${code} / ${project.visibility} / ${maturity}`.toUpperCase();
}