make nav responsive and fix styling

This commit is contained in:
Tobias Hilfiker
2022-12-22 20:04:03 +01:00
parent a6067fc0e2
commit 644671d1ab
8 changed files with 75 additions and 18 deletions

View File

@@ -1,2 +1,6 @@
import './style.scss';
function Menu(e) {
let list = document.querySelector('ul');
e.name === 'menu' ? (e.name = "close", list.classList.add('top-[80px]') , list.classList.add('opacity-100')) : (e.name = "menu" , list.classList.remove('top-[80px]'), list.classList.remove('opacity-100'))
}