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
+6 -4
View File
@@ -1,6 +1,7 @@
import { h, render } from '/static/admin2/vendor/preact.module.js';
import htm from '/static/admin2/vendor/htm.module.js';
import { SECTIONS, sectionFromPath, hrefFor } from '/static/admin2/router.js';
import { DayPage } from '/static/admin2/pages/day.js';
const html = htm.bind(h);
const TITLES = {
@@ -24,10 +25,11 @@ const App = () => html`
</nav>
<main class="main">
<header class="top"><div><h1>${title}</h1><p>${subtitle}</p></div></header>
<section class="card" aria-labelledby="placeholder">
<h2 id="placeholder">Раздел готовится</h2>
<p>Оболочка v2. Данные и действия подключит следующий этап.</p>
</section>
${section === 'today' ? html`<${DayPage} />` : html`
<section class="card" aria-labelledby="placeholder">
<h2 id="placeholder">Раздел готовится</h2>
<p>Данные и действия подключит следующий этап.</p>
</section>`}
</main>
</div>`;