add base styles and scripts

This commit is contained in:
2025-09-04 22:41:59 +01:00
parent a665235b9f
commit 5ed57ac818
43 changed files with 1554 additions and 13 deletions

View File

@@ -0,0 +1,3 @@
<footer class="content-info">
@php(dynamic_sidebar('sidebar-footer'))
</footer>

View File

@@ -0,0 +1,17 @@
export default function Footer() {
const body = document.querySelector("body");
const footer = document.querySelector(".js-footer");
const links = footer.querySelectorAll("a");
const currentURL = location.protocol + '//' + location.host + location.pathname;
links.forEach(link => {
const hash = link.hash;
const href = link.href;
link.addEventListener("click", () => {
if(href.includes(currentURL)) {
body.classList.remove("menu-open");
}
});
});
}