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
SectionBanner.astroAstro73 lines2.6 KiBraw download
---
import ContourField from './ContourField.astro';

interface Stat {
  label: string;
  value: string | number;
  /** Paint the value in the banner's accent — one per banner, the number
   *  worth reading first. */
  accent?: boolean;
}

interface Props {
  /** Mono lockup before the rule, e.g. `03 ^: ACTIVE DIRECTORY`. */
  n: string;
  label: string;
  title: string;
  blurb?: string;
  stats?: Stat[];
  accent?: 'iris' | 'foam' | 'love' | 'gold' | 'rose' | 'pine';
}
const { n, label, title, blurb, stats = [], accent = 'foam' } = Astro.props;

---
<header class="banner plate bleed signal-hero" style={`--acc: var(--${accent});`}>
  <!-- The home hero's contour field, in the plate's night values. The
       title block and the ledger are each marked `data-contour-clear`,
       so the lines run round them and through the open middle. -->
  <ContourField />
  <span class="banner__scrim" aria-hidden="true"></span>
  <span class="grain grain--local" aria-hidden="true"></span>
  <!-- CRT film over the contour field — the body row is already z-index 2,
       so the type stays above the scanlines. -->
  <span class="scanlines" aria-hidden="true"></span>

  <div class="wrap banner__body">
    <div data-contour-clear>
      <p class="eyebrow" style={`--acc: var(--${accent});`}>
        <span class="eyebrow__n">{n}</span>
        <span class="eyebrow__mark">^:</span>
        <span>{label}</span>
        <span class="eyebrow__rule" aria-hidden="true"></span>
      </p>
      <h1 class="banner__title" data-unscramble={title}>{title}</h1>
      {blurb && <p class="banner__blurb">{blurb}</p>}
    </div>

    {stats.length > 0 && (
      <dl class="banner__ledger" data-contour-clear>
        {stats.map((s) => (
          <div class={`banner__row${s.accent ? ' banner__row--acc' : ''}`}>
            <dt>{s.label}</dt>
            <dd><b>{s.value}</b></dd>
          </div>
        ))}
      </dl>
    )}
  </div>
</header>

<style>
  /* ---- Cyberdeck chrome for the banner -----------------------------------
     Hairline frame + CRT film over the dark plate. The plate pins the night
     palette (`.plate`), so `--rule`/`--rule-hi` below resolve to the night
     hairlines in both modes — the frame belongs to the plate, not the page. */
  .banner { border-top: 1px solid var(--rule); }
  /* Kept faint: the contour field and the grain already texture the plate,
     and the title has to win every layer stack it sits in. */
  .banner > .scanlines { opacity: 0.45; }
  /* The ledger is terminal furniture — DM Mono, same as the segbar. */
  .banner__ledger {
    font-family: var(--font-term);
  }
</style>