NavBar & SideBar Works... Kinda. Not Customized Yet.

This commit is contained in:
2026-09-03 19:51:44 -05:00
parent 41383b8fe7
commit faeab2134c
7 changed files with 134 additions and 36 deletions
+13
View File
@@ -0,0 +1,13 @@
document.addEventListener('click', (event) => {
// Check if the clicked item (or its parent) is the toggle button
const toggleBtn = event.target.closest('#sidebar-toggle');
if (toggleBtn) {
const sidebar = document.querySelector('.sidebar');
if (sidebar) {
sidebar.classList.toggle('sidebar--open');
} else {
console.error('Sidebar element (.sidebar) not found in the DOM.');
}
}
});