s72
  • Stat card

    article

    A card of three parts: a <small> label, a <strong> value and a <span> of context. Four of them in a data-grid="4" make the row of numbers at the top of a dashboard.

    Basic

    Unread mail126 need a reply
    Commits this week49across four repositories
    Open pull requests52 are waiting on you
    Focus time14.5 hMonday to this morning
    html
    <div data-grid="4">
      <article><small>Unread mail</small><strong>12</strong><span>6 need a reply</span></article>
      <article><small>Commits this week</small><strong>49</strong><span>across four repositories</span></article>
      <article><small>Open pull requests</small><strong>5</strong><span>2 are waiting on you</span></article>
      <article><small>Focus time</small><strong>14.5 h</strong><span>Monday to this morning</span></article>
    </div>

    The three parts are plain elements, so a stat card is a card with nothing new in it.

    Notes