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:
Maieul BOYER 2025-12-12 15:42:28 +01:00
parent 762796417a
commit 4a56c92667
No known key found for this signature in database
3 changed files with 29 additions and 17 deletions

View file

@ -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');
});