Browser window hero

Centered headline and subline above a wide browser-window mockup that shows an analytics dashboard.

Open preview
snippet.html205 lines
<section class="bwh">
  <header class="bwh__bar" data-block="Navigation">
    <a class="bwh__logo" href="#">Plain<b>stat</b></a>
    <div class="bwh__actions">
      <a class="bwh__btn" href="#">Log in</a>
      <a class="bwh__btn bwh__btn--solid" href="#">Try it free</a>
    </div>
  </header>

  <div class="bwh__body">
    <h1 class="bwh__title" data-block="Title">Site stats without the cookie banner</h1>
    <p class="bwh__sub" data-block="Subtitle">A 2 KB script that stores no personal data, so there's nothing for visitors to consent to.</p>

    <div class="bwh__window" aria-hidden="true" data-block="Device">
      <div class="bwh__chrome">
        <span class="bwh__dots"><i></i><i></i><i></i></span>
        <span class="bwh__pills"><i></i><i></i><i class="is-wide"></i></span>
        <span class="bwh__url">
          <svg viewBox="0 0 24 24"><path d="M7 10V7a5 5 0 0 1 10 0v3h1.5v11h-13V10zm2.2 0h5.6V7a2.8 2.8 0 0 0-5.6 0z" fill="currentColor"/></svg>
          app.plainstat.com
        </span>
        <span class="bwh__pills bwh__pills--end"><i class="is-wide"></i><i class="is-wide"></i><i class="is-wide"></i></span>
      </div>
      <div class="bwh__tabline">
        <span>fernandmoss.com, last 30 days | Plainstat</span>
        <i></i>
      </div>

      <div class="bwh__page">
        <ul class="bwh__side">
          <li class="bwh__mark">Plain<b>stat</b></li>
          <li class="is-on">Dashboard</li>
          <li>Pages</li>
          <li>Sources</li>
          <li>Goals</li>
          <li>Settings</li>
        </ul>
        <div class="bwh__main">
          <div class="bwh__head">
            <b>fernandmoss.com &#9662;</b>
            <span class="bwh__range"><span>Today</span><span>7 days</span><span class="is-on">30 days</span></span>
            <span class="bwh__export">Export CSV</span>
          </div>
          <div class="bwh__kpis">
            <span><small>Visitors</small>18,204<em>+12%</em></span>
            <span><small>Pageviews</small>41,930<em>+8%</em></span>
            <span><small>Bounce rate</small>38%<em>-3%</em></span>
            <span><small>Visit length</small>2m 41s<em>+9s</em></span>
          </div>
          <div class="bwh__chart">
            <div class="bwh__chart-head"><b>Visitors per day</b><span>Peak: 1,102 on 28 Oct</span></div>
            <div class="bwh__bars"><i style="--h:45%"></i><i style="--h:46%"></i><i style="--h:44%"></i><i style="--h:55%"></i><i style="--h:51%"></i><i style="--h:39%"></i><i style="--h:35%"></i><i style="--h:49%"></i><i style="--h:50%"></i><i style="--h:50%"></i><i style="--h:57%"></i><i style="--h:59%"></i><i style="--h:52%"></i><i style="--h:43%"></i><i style="--h:66%"></i><i style="--h:67%"></i><i style="--h:56%"></i><i style="--h:60%"></i><i style="--h:66%"></i><i style="--h:53%"></i><i style="--h:51%"></i><i style="--h:64%"></i><i class="is-peak" style="--h:91%"></i><i style="--h:64%"></i><i style="--h:76%"></i><i style="--h:65%"></i><i style="--h:55%"></i><i style="--h:55%"></i><i style="--h:81%"></i><i style="--h:68%"></i></div>
          </div>
          <div class="bwh__lists">
            <div class="bwh__list">
              <b>Top pages</b>
              <span style="--w:92%"><span>/</span><em>9,812</em></span>
              <span style="--w:61%"><span>/shop/monstera-deliciosa</span><em>5,406</em></span>
              <span style="--w:38%"><span>/care/watering-guide</span><em>3,377</em></span>
              <span style="--w:24%"><span>/shop/pots</span><em>2,140</em></span>
            </div>
            <div class="bwh__list">
              <b>Top sources</b>
              <span style="--w:88%"><span>Google</span><em>7,950</em></span>
              <span style="--w:47%"><span>Instagram</span><em>4,212</em></span>
              <span style="--w:30%"><span>Newsletter</span><em>2,698</em></span>
              <span style="--w:17%"><span>Pinterest</span><em>1,544</em></span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<style>
  .bwh {
    --bwh-bg: #ffffff;
    --bwh-brand: #111111;
    --bwh-brand-dark: #000000;
    --bwh-tint: #f2f2f2;
    --bwh-line: #d4d4d4;
    --bwh-surface: #ffffff;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: var(--bwh-bg);
    color: var(--bwh-brand);
    font-family: Montserrat, "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  }
  .bwh *, .bwh *::before, .bwh *::after { box-sizing: border-box; }
  .bwh a { color: inherit; text-decoration: none; }
  .bwh a:focus-visible { outline: 2px solid var(--bwh-brand-dark); outline-offset: 3px; border-radius: 4px; }

  .bwh__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; padding: 0 clamp(1rem, 3.4vw, 3rem); }
  .bwh__logo { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; }
  .bwh__logo b { font-weight: 700; }
  .bwh__actions { display: flex; gap: 1rem; }
  .bwh__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 117px; min-height: 40px; padding: 0 1.5rem;
    border: 1px solid var(--bwh-brand); border-radius: 4px;
    font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
    transition: background-color 0.15s, border-color 0.15s;
  }
  .bwh__btn:hover { background: var(--bwh-tint); }
  .bwh__btn--solid { background: var(--bwh-brand); color: #fff !important; }
  .bwh__btn--solid:hover { background: var(--bwh-brand-dark); border-color: var(--bwh-brand-dark); }

  .bwh__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: calc(1128px + 4rem);
    margin: 0 auto;
    padding: clamp(2.5rem, 9.5vh, 5.3rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vh, 5rem);
    text-align: center;
  }
  .bwh__title { margin: 0; font-size: clamp(2.25rem, 4.2vw, 3.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
  .bwh__sub { margin: 1rem 0 0; font-size: 1rem; font-weight: 700; line-height: 1.5; text-wrap: balance; }

  /* Browser window */
  .bwh__window { width: 100%; margin-top: clamp(2.5rem, 6.25vw, 5.625rem); border: 2px solid var(--bwh-brand); border-radius: 8px; overflow: hidden; background: var(--bwh-surface); text-align: left; }
  .bwh__chrome { position: relative; display: flex; align-items: center; height: 37px; padding: 0 12px; background: var(--bwh-bg); border-bottom: 2px solid var(--bwh-brand); }
  .bwh__dots { display: flex; gap: 6px; }
  .bwh__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--bwh-brand); }
  .bwh__pills { display: flex; gap: 2px; margin-left: 20px; }
  .bwh__pills i { width: 26px; height: 26px; border-radius: 4px; background: var(--bwh-tint); }
  .bwh__pills i.is-wide { width: 38px; }
  .bwh__pills i:nth-child(3) { margin-left: 10px; }
  .bwh__pills--end { gap: 8px; margin-left: auto; }
  .bwh__pills--end i:nth-child(3) { margin-left: 0; }
  .bwh__url {
    position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: min(422px, 40%); height: 28px;
    border: 1px solid var(--bwh-brand); border-radius: 4px; background: var(--bwh-surface);
    font-size: 1rem; white-space: nowrap;
  }
  .bwh__url svg { width: 14px; height: 14px; flex: none; color: var(--bwh-brand-dark); }
  .bwh__tabline { position: relative; height: 26px; background: var(--bwh-bg); text-align: center; font-size: 0.75rem; line-height: 26px; }
  .bwh__tabline span { display: block; padding: 0 34px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .bwh__tabline i { position: absolute; right: 0; top: 0; width: 26px; height: 26px; background: var(--bwh-brand); }

  /* The app inside */
  .bwh__page { display: flex; min-height: 640px; font-size: 13px; line-height: 1.3; }
  .bwh__side { flex: none; width: 184px; margin: 0; padding: 20px 14px; list-style: none; border-right: 1px solid var(--bwh-tint); }
  .bwh__side li { padding: 9px 12px; border-radius: 4px; font-weight: 500; }
  .bwh__side li.is-on { background: var(--bwh-tint); font-weight: 700; }
  .bwh__side .bwh__mark { margin-bottom: 14px; padding-top: 0; font-size: 18px; }
  .bwh__main { flex: 1; min-width: 0; padding: 22px 28px; }
  .bwh__head { display: flex; align-items: center; gap: 20px; }
  .bwh__head b { font-size: 15px; }
  .bwh__range { display: flex; padding: 3px; border-radius: 6px; background: var(--bwh-tint); }
  .bwh__range span { padding: 5px 12px; border-radius: 4px; font-weight: 600; font-size: 12px; }
  .bwh__range .is-on { background: var(--bwh-surface); color: var(--bwh-brand-dark); box-shadow: 0 0 0 1px var(--bwh-line); }
  .bwh__export { margin-left: auto; padding: 7px 14px; border: 1px solid var(--bwh-brand); border-radius: 4px; font-weight: 700; font-size: 12px; }
  .bwh__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
  .bwh__kpis > span { padding: 14px 16px; border: 1px solid var(--bwh-line); border-radius: 6px; font-size: 24px; font-weight: 700; }
  .bwh__kpis small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
  .bwh__kpis em { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--bwh-brand-dark); }
  .bwh__chart { margin-top: 14px; padding: 16px 16px 14px; border: 1px solid var(--bwh-line); border-radius: 6px; }
  .bwh__chart-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
  .bwh__chart-head b { font-size: 13px; }
  .bwh__bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; margin-top: 14px; padding-bottom: 1px; border-bottom: 1px solid var(--bwh-line); background: repeating-linear-gradient(to top, transparent 0 44px, var(--bwh-tint) 44px 45px); }
  .bwh__bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--bwh-line); }
  .bwh__bars i.is-peak { background: var(--bwh-brand); }
  .bwh__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
  .bwh__list { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--bwh-line); border-radius: 6px; }
  .bwh__list > b { margin-bottom: 4px; }
  .bwh__list > span { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 3px; background: linear-gradient(90deg, var(--bwh-tint) var(--w), transparent var(--w)); }
  .bwh__list > span span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .bwh__list em { font-style: normal; font-weight: 700; }

  @media (max-width: 900px) {
    .bwh__side { display: none; }
    .bwh__pills { display: none; }
    .bwh__url { width: auto; left: 74px; right: 12px; transform: none; }
    .bwh__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 600px) {
    .bwh__actions .bwh__btn:first-child { display: none; }
    .bwh__btn { min-width: 0; padding: 0 1rem; }
    .bwh__page { min-height: 0; }
    .bwh__main { padding: 16px; }
    .bwh__export { display: none; }
    .bwh__head { flex-wrap: wrap; gap: 10px; }
    .bwh__kpis > span { font-size: 18px; padding: 12px; }
    .bwh__kpis em { display: block; margin: 4px 0 0; }
    .bwh__bars { height: 120px; gap: 3px; }
    .bwh__chart-head span { display: none; }
    .bwh__lists { grid-template-columns: minmax(0, 1fr); }
    .bwh__list:last-child { display: none; }
    .bwh__url { font-size: 0.8125rem; }
  }
  @media (max-width: 420px) {
    .bwh__logo { font-size: 1.5rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .bwh__btn { transition: none; }
  }
</style>

Kind
Wireframe
Category
Hero
Added
5 Nov 2026
Canvas
Full width
File
snippet.html
Size
205 lines · 11.5 KB
  • light
  • black-and-white
  • centered
  • mockup

One file: HTML, a style block and, when needed, a small script. Paste it anywhere. Nothing to install.