feat: wayfinding system across chapters, HUD and project plates; cut boot log, headlight and ops strip
This commit is contained in:
15
src/lib/route-plate.ts
Normal file
15
src/lib/route-plate.ts
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user