page title

This commit is contained in:
2026-07-18 22:26:38 +02:00
parent 463aa9a7a3
commit 50568127c5
3 changed files with 74 additions and 12 deletions
+22
View File
@@ -0,0 +1,22 @@
import type { SectionId } from './navigation'
export const SECTION_TITLES: Record<SectionId, string> = {
overview: 'Overview',
vms: 'Virtual Machines',
docker: 'Docker',
containers: 'Containers',
logs: 'Logs',
profile: 'Profile',
configuration: 'Configuration',
setup: 'Setup',
login: 'Sign in',
}
const APP_TITLE = 'ClusterCanvas'
export function documentTitleFor(section: SectionId | 'loading'): string {
if (section === 'loading') {
return APP_TITLE
}
return `${APP_TITLE} - ${SECTION_TITLES[section]}`
}