Files
com.gregkilmer.www/packages/ui/src/components/SectionHeading.astro
T
Claude 7aa2910b12 Add light mode that follows the device setting
Dark stays the default. A device set to light gets the picks from the
light motif board: the Dawn chart sky (dawn wash over faint star chart
lines, atlas marks in the hero), deep gold line seals, Midnight, violet and
gold dust, the deep gold to teal filament and the morning sky placeholder.
Large standalone seals (404, Inquiries, Inquiry sent, the blog's lead) are
gold foil in both modes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012aSbo2D1qP8cMFQCykf7kx
2026-10-18 18:54:56 +00:00

42 lines
995 B
Plaintext

---
/**
* A section heading: optional gold eyebrow over a tick scale, the heading in
* Cinzel, and the filament underline beneath it.
*/
import Kicker from "./Kicker.astro";
interface Props {
eyebrow?: string;
level?: 1 | 2 | 3;
id?: string;
class?: string;
}
const { eyebrow, level = 2, id, class: className } = Astro.props;
const H = `h${level}` as "h1" | "h2" | "h3";
---
<div class:list={["gk-heading", className]}>
{eyebrow && <Kicker>{eyebrow}</Kicker>}
<H id={id}><slot /></H>
<span class="gk-underline" aria-hidden="true"></span>
</div>
<style>
.gk-heading {
display: flex;
flex-direction: column;
gap: 8px;
}
.gk-heading :is(h1, h2, h3) {
margin: 0;
}
.gk-underline {
display: block;
width: 180px;
max-width: 60%;
height: 2px;
border-radius: 2px;
background: linear-gradient(90deg, var(--gk-gold), rgba(var(--gk-gold-rgb), 0.15) 70%, transparent);
box-shadow: 0 0 8px rgba(var(--gk-gold-rgb), 0.35);
}
</style>