wip: add linters and formatters

This commit is contained in:
2026-01-11 01:42:18 +00:00
parent 230e76b2d5
commit e86b0de9fa
30 changed files with 1342 additions and 933 deletions

View File

@@ -182,6 +182,7 @@ const { version } = Astro.props;
const navbarHeight = 64;
function updateHeaderVisibility() {
if (!header) return;
if (window.scrollY >= navbarHeight) {
header.classList.remove("translate-y-[-100%]", "border-transparent");
header.classList.add("border-gray-200", "dark:border-neutral-800");
@@ -191,7 +192,9 @@ const { version } = Astro.props;
}
}
window.addEventListener("scroll", updateHeaderVisibility, { passive: true });
window.addEventListener("scroll", updateHeaderVisibility, {
passive: true,
});
updateHeaderVisibility();
// Mobile menu toggle