feat(админка): Мой день с очередью
This commit is contained in:
@@ -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>`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user