steam-backlog-enforcer/web/src/components/PageHead.astro
Krzysztof kuhy Rudnicki ca59039ba0 web: icon rail nav, spoken-only page heads
Sidebar paints a glyph and digit per section, the palette button a
magnifier and ⌃K; page titles, subtitles and the Actions heading are
spoken only. web/scripts/visible_words.mjs lists chrome words in the
built pages (146 -> 4, the command-button labels).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 02:23:47 +01:00

20 lines
533 B
Plaintext

---
// Page title and optional subtitle (spoken only, textgate) plus action buttons
// (default slot). Was ui/Page.tsx PageHead.
interface Props {
title: string
sub?: string
}
const { title, sub } = Astro.props
const hasActions = Astro.slots.has('default')
---
<header class="page-head">
<div>
<h1 class="sr-only">{title}</h1>
{sub && <p class="sr-only">{sub}</p>}
{Astro.slots.has('sub') && <p class="sr-only"><slot name="sub" /></p>}
</div>
{hasActions && <div class="page-actions"><slot /></div>}
</header>