refactor: restructure project to classic MVC pattern

This commit is contained in:
2025-09-09 19:57:43 +02:00
parent a28728af2a
commit 2a8d5d093c
58 changed files with 1601 additions and 1991 deletions

View File

@@ -0,0 +1,18 @@
export function useNavigation() {
function scrollToSection(sectionId: string) {
const element = document.getElementById(sectionId)
if (element) {
const offset = 80 // Account for fixed header
const elementPosition = element.offsetTop - offset
window.scrollTo({
top: elementPosition,
behavior: "smooth",
})
}
}
return {
scrollToSection,
}
}