fixes(frontend): Made the overlay transparent & redirect on login
The overlay that is used when the menubar is used is now actually transparent When logging in, actually always redirect to somewhere (if not asked -> redirect to /)
This commit is contained in:
parent
762796417a
commit
4a56c92667
3 changed files with 29 additions and 17 deletions
|
|
@ -7,6 +7,7 @@ const overlay = document.querySelector('#overlay')!;
|
|||
menuBtn.addEventListener('click', () => {
|
||||
sidebar.classList.toggle('-translate-x-full')
|
||||
overlay.classList.toggle('opacity-0');
|
||||
overlay.classList.toggle('opacity-40');
|
||||
overlay.classList.toggle('pointer-events-none');
|
||||
menuBtn.classList.toggle('flipped');
|
||||
});
|
||||
|
|
@ -14,4 +15,5 @@ menuBtn.addEventListener('click', () => {
|
|||
overlay.addEventListener('click', () => {
|
||||
sidebar.classList.add('-translate-x-full');
|
||||
overlay.classList.add('opacity-0', 'pointer-events-none');
|
||||
overlay.classList.remove('opacity-40');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue