feat(админка): Мой день с очередью

This commit is contained in:
anor
2026-11-06 21:23:53 +10:00
parent 0e7fd76fa1
commit 33240f6ddd
12 changed files with 274 additions and 7 deletions
+11
View File
@@ -0,0 +1,11 @@
import { h } from '/static/admin2/vendor/preact.module.js';
import htm from '/static/admin2/vendor/htm.module.js';
const html = htm.bind(h);
export const Card = ({ title, value, note, children, badge }) => html`
<section class="card">
<header class="card-head"><h2>${title}</h2>${badge && html`<span class="badge">${badge}</span>`}</header>
${value != null && html`<div class="value">${value}</div>`}
${note && html`<p class="note">${note}</p>`}
${children}
</section>`;