base styles now buildable

This commit is contained in:
2025-09-04 23:03:37 +01:00
parent 5ed57ac818
commit a9d9ca717b
9 changed files with 66 additions and 1040 deletions

View File

@@ -0,0 +1,4 @@
export default function WYSIWYG()
{
}

View File

@@ -1,9 +1,13 @@
export default function Footer() {
const body = document.querySelector("body");
const footer = document.querySelector(".js-footer");
if(!footer) return;
const links = footer.querySelectorAll("a");
const currentURL = location.protocol + '//' + location.host + location.pathname;
links.forEach(link => {
const hash = link.hash;
const href = link.href;

View File

@@ -4,6 +4,8 @@ export default function Header() {
const menuToggle = document.querySelector(".js-menu-toggle");
const menuClose = document.querySelector(".js-menu-close");
if(!menuToggle) return;
menuToggle.addEventListener("click", (e) => {
e.preventDefault();
body.classList.toggle("menu-open");