repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
SectionHeader.astroAstro26 lines1.1 KiBraw download
---
interface Props {
  eyebrow: string;
  title: string;
  intro?: string;
  /** Heading + eyebrow colour — each section is keyed to a different accent. */
  tone?: 'ink' | 'pine' | 'iris' | 'love' | 'gold' | 'foam' | 'rose';
  class?: string;
}
const { eyebrow, title, intro, tone = 'ink', class: cls } = Astro.props;

/**
 * The three-column header every archive section opens with — mono eyebrow,
 * oversized display heading, short intro — ported from the main site's
 * SectionHeader. The eyebrow takes the section's own accent rather than a
 * neutral; the heading tone is keyed to the same. Stacks below the lg break.
 */
// The eyebrow always uses an accent (never bare ink); the title follows tone.
const eyebrowVar = tone === 'ink' ? 'var(--pine)' : `var(--${tone})`;
const titleVar = tone === 'ink' ? 'var(--text)' : `var(--${tone})`;
---
<div class:list={['sec-head', cls]}>
  <span class="sec-head__eyebrow" style={`--tone: ${eyebrowVar};`}>{eyebrow}</span>
  <h2 class="sec-head__title" style={`--tone: ${titleVar};`}>{title}</h2>
  {intro && <p class="sec-head__intro">{intro}</p>}
</div>