changes
This commit is contained in:
8
public/js/nav.js
Normal file
8
public/js/nav.js
Normal 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');
|
||||
});
|
||||
});
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user