web/about: about page routing & navigation

This commit is contained in:
wukko
2024-09-04 20:59:05 +06:00
parent 6a0c05cf7a
commit d98353d5af
12 changed files with 127 additions and 15 deletions

View File

@@ -10,6 +10,17 @@ const defaultSettingsPage = () => {
return "/settings/appearance";
}
const defaultAboutPage = () => {
if (browser) {
if (window.innerWidth <= 750) {
return "/about";
}
}
return "/about/general";
}
export {
defaultSettingsPage,
defaultAboutPage
}