This commit is contained in:
2024-12-21 00:29:45 -05:00
parent 451d127488
commit 2ad92eb7fd
6 changed files with 218 additions and 10 deletions

8
public/js/nav.js Normal file
View File

@@ -0,0 +1,8 @@
document.addEventListener('DOMContentLoaded', function() {
const menuIcon = document.getElementById('menu-icon');
const navLinks = document.getElementById('nav-links');
menuIcon.addEventListener('click', function() {
navLinks.classList.toggle('active');
});
});

View File

@@ -41,9 +41,11 @@
position: relative;
background: #333;
color: #fff;
display: flex;
display: inline-block;
align-items: center;
padding: 0.5rem 1rem;
top:0;
left:0;
}
.menu-icon {