feat(website): footer sub-pages + shared page layout

Wire every footer link to a real route. Adds a shared `page` layout (Nav +
content + Footer), reusable PageHeader/ComingSoon components, six content pages
(about, contact, brand, roadmap, changelog, migration), and a dynamic [slug]
catch-all for the not-yet-built pages — unknown slugs 404, legal slugs get a
distinct "contact us" body.

Footer links repointed from dead "#" to real paths; section anchors ("/#suite")
smooth-scroll on the homepage and route home + scroll from a sub-page; logo
links home. Page copy (da + en) added under COPY.pages.
This commit is contained in:
Ronni Baslund
2026-06-05 14:40:36 +02:00
parent 4c57d41350
commit 0a35d9deb6
15 changed files with 723 additions and 33 deletions
+15
View File
@@ -34,3 +34,18 @@ export function scrollToAnchor(hash: string) {
window.scrollTo({ top, behavior: 'smooth' })
history.replaceState(null, '', hash)
}
// Navigate to a homepage section from anywhere. Footer/Nav links use the form
// "/#suite": when already on the homepage we smooth-scroll in place; from a
// sub-page we route home and index.vue scrolls to the hash on mount. Accepts
// either "/#suite" or "#suite". Returns true if it handled the click (so the
// caller can preventDefault), false to let normal navigation proceed.
export function goToSection(href: string, currentPath: string): boolean {
const hash = href.slice(href.indexOf('#'))
if (currentPath === '/') {
scrollToAnchor(hash)
return true
}
navigateTo(`/${hash}`)
return true
}