current state

This commit is contained in:
2026-02-08 10:42:01 +01:00
parent 0a4372c40d
commit e055af9248
70 changed files with 4882 additions and 330 deletions

24
public/legacy/js/nova.js Normal file
View File

@@ -0,0 +1,24 @@
// Simulate login state (replace with Laravel later)
const isLoggedIn = true;
if (isLoggedIn) {
document.querySelector('.guest-only').style.display = 'none';
document.querySelector('.user-only').style.display = 'flex';
}
function toggleDropdown(btn) {
const drop = btn.closest('.dropdown');
drop.classList.toggle('active');
}
function toggleMobile() {
document.getElementById('mobileMenu').classList.toggle('show');
}
// Close dropdown on outside click
document.addEventListener('click', e => {
document.querySelectorAll('.dropdown').forEach(d => {
if (!d.contains(e.target)) d.classList.remove('active');
});
});