feat(ui): basic layout
Some checks failed
ci / ci (22, ubuntu-latest) (push) Failing after 7m11s

This commit is contained in:
2025-12-07 21:27:23 +01:00
parent c9ff62da95
commit e284c07de0
16 changed files with 198 additions and 187 deletions

View File

@@ -0,0 +1,15 @@
export const usePageTitle = () => {
const pageName = useState<string>('pageName', () => '');
const title = computed<string>(() => (pageName.value.length > 0 ? `${pageName.value} - Tímmál` : 'Tímmál'));
const setPageName = (newName: string) => {
pageName.value = newName;
useHead({ title: title.value });
};
return {
title: readonly(title),
pageName: readonly(pageName),
setPageName,
};
};