feat: First iteration, multi themes, I18N

This commit is contained in:
gauvainboiche
2026-10-08 11:58:18 +02:00
parent 9240fa3c3c
commit aa9721ac2a
53 changed files with 3363 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
import { $, h } from './dom.js';
const DURATION_MS = 6000;
export function showToast(message, { error = false } = {}) {
const toast = h('p', { class: error ? 'toast toast--error' : 'toast', text: message });
$('#toasts').append(toast);
setTimeout(() => toast.remove(), DURATION_MS);
}