Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 3x 3x 9x 15x | import { html, renderHTML } from '@be-music/service-web-theme/server';
import { ABOUT } from './about-content.ts';
import { Layout, PageHeader } from './layout.ts';
import { meta, PAGE_CACHE, pageLocale, type PageContext } from './page.ts';
/** What the Leaderboard is and how it counts a play: scoring, charts, accounts, checks, and its beta state. */
export function aboutPage(c: PageContext<'/about'>) {
c.header('cache-control', PAGE_CACHE);
const content = ABOUT[pageLocale(c)];
return c.html(
renderHTML(
Layout({
meta: meta(c, content.title, content.description, [{ label: content.title, kind: 'about' }]),
children: html`${PageHeader({ title: content.title, kind: 'about', children: html`${content.lead}` })}
<section aria-labelledby="different" class="space-y-3">
<h2 id="different" class="text-base font-semibold tracking-tight">${content.apart}</h2>
<ul class="grid gap-3 sm:grid-cols-3">
${content.highlights.map(
(item) =>
html`<li class="card flex flex-col gap-2 px-4 py-4">
<h3 class="text-sm font-semibold">${item.title}</h3>
<p class="text-muted-foreground text-sm leading-relaxed">${item.text}</p>
<a class="text-foreground mt-auto pt-1 text-xs underline underline-offset-4" href=${`#${item.more}`}
>${content.moreBelow}</a
>
</li>`,
)}
</ul>
<ul class="text-muted-foreground grid gap-x-6 gap-y-1.5 pt-2 text-sm sm:grid-cols-2">
${content.also.map(
(item) =>
html`<li>
<a class="text-foreground underline-offset-4 hover:underline" href=${`#${item.more}`}
>${item.title}</a
>${' '}— ${item.text}
</li>`,
)}
</ul>
</section>
<div class="space-y-8">${content.body()}</div>`,
}),
),
);
}
|