Added meal planner, pantry and shopping list

This commit is contained in:
2026-03-26 17:10:16 +01:00
parent 7b9db1c5e6
commit c1b3ee5ce6
22 changed files with 2888 additions and 223 deletions

13
js/ui/toast.js Normal file
View File

@@ -0,0 +1,13 @@
export function showAppToast(message) {
const wrap = document.getElementById('app-toast');
const text = document.getElementById('app-toast-text');
if (!wrap || !text) return;
text.textContent = message;
wrap.classList.remove('opacity-0', 'translate-y-2');
wrap.classList.add('opacity-100', 'translate-y-0');
clearTimeout(showAppToast._t);
showAppToast._t = setTimeout(() => {
wrap.classList.add('opacity-0', 'translate-y-2');
wrap.classList.remove('opacity-100', 'translate-y-0');
}, 2600);
}