mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-26 19:07:17 +01:00
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>
20 lines
533 B
Plaintext
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>
|