---
title: "Resume Header"
description: "Opens a personal site or a CV - the portrait, the name, the role, a summary, the facts, the actions and the profiles elsewhere; beside the portrait, centered, or compact for a printed CV."
slug: "resume-header"
---

import { DocPage, PageHeader, SkillPanel, SourceFiles, DocLink, SkillField, SkillText, SkillRow, ApiPill } from "../../lib/components/index";

<DocPage meta={meta}>

<PageHeader slug="resume-header" title="Resume Header" component="resume-header">
  Opens a personal site or a CV - the portrait, the name, the role, a summary, the facts, the actions and the profiles elsewhere; beside the portrait, centered, or compact for a printed CV. Part of the <DocLink href="website-resume-portfolio.html">Resume &amp; Portfolio</DocLink> blocks.
</PageHeader>

<SkillPanel component="resume-header">
  <SkillField label="Native basis">
<SkillText>A <code>&lt;header&gt;</code>: the portrait, the availability line, the name as the page's <code>&lt;h1&gt;</code>, the role and a summary, the facts as a <code>&lt;ul&gt;</code>, the actions and the profiles elsewhere as a labelled list of icon links.</SkillText>
  </SkillField>

  <SkillField label="Built from">
<SkillText><DocLink href="button.html">Button</DocLink>, <DocLink href="indicator.html">Indicator</DocLink>.</SkillText>
  </SkillField>

  <SkillField label="Web Platform APIs">
<SkillRow>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header" title="the introduction of the page"><code>&lt;header&gt;</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries" title="cqi units scale the name and the portrait with the header"><code>Container queries</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap" title="name and role break evenly"><code>text-wrap: balance</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download" title="the CV link saves the file"><code>download</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/@media#print" title="the actions leave the printed page"><code>@media print</code></ApiPill>
  </SkillRow>
  </SkillField>

  <SkillField label="Classes">
<SkillRow>
    <code>.mk-resume-header</code>
    <code>.mk-resume-header-photo</code>
    <code>.mk-resume-header-body</code>
    <code>.mk-resume-header-status</code>
    <code>.mk-resume-header-name</code>
    <code>.mk-resume-header-role</code>
    <code>.mk-resume-header-summary</code>
    <code>.mk-resume-header-facts</code>
    <code>.mk-resume-header-actions</code>
    <code>.mk-resume-header-links</code>
  </SkillRow>
  </SkillField>

  <SkillField label="Data attributes">
<SkillText><code>data-variant="centered"</code> (the portrait above, everything centered), <code>data-variant="compact"</code> (the head of a CV, a rule below), <code>data-variant="poster"</code> (the name as the picture), <code>data-variant="split"</code> (text and a tall portrait side by side); shape utilities on the portrait; the status is an Indicator dot's variant.</SkillText>
  </SkillField>
</SkillPanel>

```html example label="Default" hint="The portrait beside the text - narrow, the text wraps under it; the name scales with the header's width (cqi). The facts carry the contact details, the actions leave a printed page." previewStyle="align-items:stretch;"
<header class="mk-resume-header">
  <img class="mk-resume-header-photo" src="images/mk-portrait2.png" alt="" />
  <div class="mk-resume-header-body">
    <p class="mk-resume-header-status"
      ><span class="indicator-dot" data-variant="success" data-animate="ping" aria-hidden="true"></span> Available for
      projects from December</p
    >
    <h1 class="mk-resume-header-name">Mara Okafor</h1>
    <p class="mk-resume-header-role">Design engineer - design systems, front-end architecture and accessibility</p>
    <p class="mk-resume-header-summary"
      >Eleven years between design and code. I build the systems product teams ship with, and I make them fast,
      accessible and calm to work in.</p
    >
    <ul class="mk-resume-header-facts">
      <li><i data-lucide="map-pin"></i> Berlin, Germany - remote across Europe</li>
      <li><i data-lucide="briefcase"></i> 11 years in product teams</li>
      <li><i data-lucide="mail"></i> <a href="mailto:mara@example.com">mara@example.com</a></li>
    </ul>
    <div class="mk-resume-header-actions">
      <a class="btn" href="mailto:mara@example.com"><i data-lucide="send"></i> Get in touch</a>
      <a class="btn" data-variant="outline" href="#" download><i data-lucide="download"></i> Download CV</a>
      <ul class="mk-resume-header-links" aria-label="Profiles">
        <li
          ><a
            class="btn"
            data-variant="ghost"
            data-size="icon"
            href="https://github.com/"
            target="_blank"
            rel="noopener"
            aria-label="GitHub"
            ><svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true">
              <path
                d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
              /></svg></a
        ></li>
        <li
          ><a
            class="btn"
            data-variant="ghost"
            data-size="icon"
            href="https://www.linkedin.com/"
            target="_blank"
            rel="noopener"
            aria-label="LinkedIn"
            ><svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true">
              <path
                d="M5 3.5A2.5 2.5 0 1 1 5 8.5 2.5 2.5 0 0 1 5 3.5ZM3 10h4v11H3V10Zm7 0h3.8v1.6h.1c.5-1 1.8-1.9 3.6-1.9 3.9 0 4.5 2.5 4.5 5.8V21h-4v-4.9c0-1.2 0-2.7-1.7-2.7s-2 1.3-2 2.6v5h-4V10Z"
              /></svg></a
        ></li>
        <li
          ><a class="btn" data-variant="ghost" data-size="icon" href="#" aria-label="Website"
            ><i data-lucide="globe"></i></a
        ></li>
      </ul>
    </div>
  </div>
</header>
```

```html example label="Centered" hint="data-variant='centered': the portrait above and round, everything on one axis - a portfolio's opening screen." previewStyle="align-items:stretch;"
<header class="mk-resume-header" data-variant="centered">
  <img class="mk-resume-header-photo" src="images/mk-portrait.png" alt="" />
  <div class="mk-resume-header-body">
    <h1 class="mk-resume-header-name">Jonas Weber</h1>
    <p class="mk-resume-header-role">Product designer for tools people use all day</p>
    <ul class="mk-resume-header-facts">
      <li><i data-lucide="map-pin"></i> Hamburg</li>
      <li><i data-lucide="pen-tool"></i> Interaction, prototyping, design systems</li>
    </ul>
    <div class="mk-resume-header-actions">
      <a class="btn" href="#"><i data-lucide="layout-grid"></i> See the work</a>
      <a class="btn" data-variant="outline" href="#">About me</a>
    </div>
  </div>
</header>
```

```html example label="Compact" hint="data-variant='compact': the head of a CV - a small portrait, a smaller name, a rule below. A warning Indicator dot says the person is booked for now." previewStyle="align-items:stretch;"
<header class="mk-resume-header" data-variant="compact">
  <img class="mk-resume-header-photo" src="images/mk-portrait2.png" alt="" />
  <div class="mk-resume-header-body">
    <p class="mk-resume-header-status"
      ><span class="indicator-dot" data-variant="warning" aria-hidden="true"></span> Booked until March</p
    >
    <h1 class="mk-resume-header-name">Mara Okafor</h1>
    <p class="mk-resume-header-role">Design engineer</p>
    <ul class="mk-resume-header-facts">
      <li><i data-lucide="map-pin"></i> Berlin</li>
      <li><i data-lucide="mail"></i> <a href="mailto:mara@example.com">mara@example.com</a></li>
      <li><i data-lucide="phone"></i> +49 30 1234 5678</li>
      <li><i data-lucide="globe"></i> <a href="#">maraokafor.dev</a></li>
    </ul>
  </div>
</header>
```

```html example label="Poster" hint="data-variant='poster': the name as the picture - huge, uppercase, tight, scaled by the header's width; the role a tilted label; the portrait tilted beside, shaped by corner-blob (shapes.css) with a sticker shadow. Entrances from Motion: the name rises, the portrait pops." previewStyle="align-items:stretch;"
<header class="mk-resume-header" data-variant="poster">
  <img
    class="mk-resume-header-photo corner-blob shadow-sticker"
    src="images/mk-portrait.png"
    alt=""
    data-df-entrance="pop"
    style="--df-motion-delay: 300ms"
  />
  <div class="mk-resume-header-body">
    <p class="mk-resume-header-status"
      ><span class="indicator-dot" data-variant="success" data-animate="ping" aria-hidden="true"></span> Open for
      commissions</p
    >
    <h1 class="mk-resume-header-name" data-df-entrance="up">Jonas<br />Weber</h1>
    <p class="mk-resume-header-role">Type &amp; identity designer</p>
    <div class="mk-resume-header-actions">
      <a class="btn" href="#"><i data-lucide="layout-grid"></i> See the work</a>
      <a class="btn" data-variant="ghost" href="mailto:jonas@example.com">jonas@example.com</a>
    </div>
  </div>
</header>
```

```html example label="Split" hint="data-variant='split': the text and a tall portrait side by side - corner-arch (shapes.css) gives the portrait an arch; narrow, the portrait goes first. The portrait wipes up into place." previewStyle="align-items:stretch;"
<header class="mk-resume-header" data-variant="split">
  <img class="mk-resume-header-photo corner-arch" src="images/mk-portrait2.png" alt="" data-df-entrance="wipe-up" />
  <div class="mk-resume-header-body">
    <h1 class="mk-resume-header-name">Hello, I'm Lea.</h1>
    <p class="mk-resume-header-role">Illustrator and motion designer in Leipzig</p>
    <p class="mk-resume-header-summary"
      >I draw for books, brands and the small screens in between - and make the drawings move when they want to.</p
    >
    <ul class="mk-resume-header-facts">
      <li><i data-lucide="sparkles"></i> Clients in 14 countries</li>
      <li><i data-lucide="award"></i> ADC Gold 2025</li>
    </ul>
    <div class="mk-resume-header-actions">
      <a class="btn" href="#">Commission a piece</a>
      <a class="btn" data-variant="outline" href="#">Shop prints</a>
    </div>
  </div>
</header>
```

<SourceFiles component="resume-header" section="css" />

</DocPage>
