Laptop hero

Headline, paragraph and two buttons on the left, with a laptop showing a shift-scheduling dashboard that runs off the right edge.

Open preview
snippet.html213 lines
<section class="lph">
  <header class="lph__bar" data-block="Navigation">
    <a class="lph__logo" href="#">Rota<b>line</b></a>
    <nav class="lph__nav" aria-label="Main">
      <a class="lph__tab" href="#" aria-current="page">Home</a>
      <a class="lph__tab" href="#">Product</a>
      <a class="lph__tab" href="#">Pricing</a>
      <a class="lph__tab" href="#">Customers</a>
      <a class="lph__tab" href="#">Contact</a>
    </nav>
    <div class="lph__social">
      <a class="lph__icon" href="#" aria-label="Rotaline on Facebook">
        <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M13.6 21v-7.6h2.6l.4-3h-3V8.5c0-.9.3-1.5 1.5-1.5h1.6V4.3c-.3 0-1.2-.1-2.3-.1-2.3 0-3.9 1.4-3.9 4v2.2H7.9v3h2.6V21z" fill="currentColor"/></svg>
      </a>
      <a class="lph__icon" href="#" aria-label="Rotaline on Instagram">
        <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="5" fill="currentColor"/><circle cx="12" cy="12" r="3.9" fill="none" stroke="#fff" stroke-width="2"/><circle cx="17.1" cy="6.9" r="1.2" fill="#fff"/></svg>
      </a>
      <a class="lph__icon" href="#" aria-label="Rotaline on LinkedIn">
        <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="3" fill="currentColor"/><path d="M7 10h2.5v7.5H7zm1.25-3.9a1.45 1.45 0 1 1 0 2.9 1.45 1.45 0 0 1 0-2.9M11 10h2.4v1.1c.4-.7 1.3-1.3 2.5-1.3 2.1 0 2.8 1.3 2.8 3.3v4.4h-2.5v-3.9c0-1-.3-1.7-1.2-1.7-1 0-1.5.7-1.5 1.7v3.9H11z" fill="#fff"/></svg>
      </a>
    </div>
  </header>

  <div class="lph__body">
    <div class="lph__copy">
      <h1 class="lph__title" data-block="Title">Staff your clinic a week ahead</h1>
      <p class="lph__text" data-block="Text">Rotaline texts open shifts to your bank nurses and lets staff swap with a colleague in two taps. Practice managers at 140 clinics use it to build next week's rota in under an hour.</p>
      <div class="lph__actions" data-block="CTA">
        <a class="lph__btn lph__btn--solid" href="#">Start free trial</a>
        <a class="lph__btn" href="#">
          <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10" fill="currentColor"/><path d="M10 8v8l6-4z" fill="#fff"/></svg>
          Watch the demo
        </a>
      </div>
    </div>

    <div class="lph__device" aria-hidden="true">
      <div class="lph__laptop" data-block="Device">
        <div class="lph__lid">
          <i class="lph__cam"></i>
          <div class="lph__screen">
            <div class="lph__app-top">
              <b>Rota<span>line</span></b>
              <span class="lph__week">&lsaquo; Week of 9 Nov &rsaquo;</span>
              <span class="lph__pill">3 open shifts</span>
              <span class="lph__publish">Publish rota</span>
            </div>
            <div class="lph__app">
              <ul class="lph__side">
                <li class="is-on">Rota</li>
                <li>Open shifts</li>
                <li>Swaps <em>2</em></li>
                <li>Staff</li>
                <li>Reports</li>
              </ul>
              <div class="lph__main">
                <div class="lph__rota">
                  <span></span><span class="lph__day">Mon 9</span><span class="lph__day">Tue 10</span><span class="lph__day">Wed 11</span><span class="lph__day">Thu 12</span><span class="lph__day">Fri 13</span><span class="lph__day">Sat 14</span><span class="lph__day">Sun 15</span>

                  <span class="lph__who">A. Okafor</span><span class="lph__s lph__s--e">Early</span><span class="lph__s lph__s--e">Early</span><span></span><span class="lph__s lph__s--l">Late</span><span class="lph__s lph__s--l">Late</span><span></span><span></span>

                  <span class="lph__who">J. Baines</span><span class="lph__s lph__s--l">Late</span><span></span><span class="lph__s lph__s--n">Night</span><span class="lph__s lph__s--n">Night</span><span></span><span class="lph__s lph__s--e">Early</span><span></span>

                  <span class="lph__who">M. Ruiz</span><span></span><span class="lph__s lph__s--e">Early</span><span class="lph__s lph__s--e">Early</span><span class="lph__s lph__s--o">Open</span><span class="lph__s lph__s--e">Early</span><span></span><span class="lph__s lph__s--l">Late</span>

                  <span class="lph__who">S. Patel</span><span class="lph__s lph__s--n">Night</span><span class="lph__s lph__s--n">Night</span><span></span><span></span><span class="lph__s lph__s--l">Late</span><span class="lph__s lph__s--o">Open</span><span class="lph__s lph__s--e">Early</span>

                  <span class="lph__who">D. Clarke</span><span class="lph__s lph__s--e">Early</span><span class="lph__s lph__s--l">Late</span><span class="lph__s lph__s--l">Late</span><span class="lph__s lph__s--e">Early</span><span></span><span class="lph__s lph__s--o">Open</span><span></span>
                </div>
                <div class="lph__stats">
                  <span><small>Shifts filled</small>46 of 49</span>
                  <span><small>Swaps waiting</small>2</span>
                  <span><small>Overtime</small>6 h</span>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="lph__base"><i></i></div>
      </div>
    </div>
  </div>
</section>

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

  .lph__bar { display: flex; align-items: center; gap: 1rem; height: 64px; padding: 0 clamp(1rem, 3.4vw, 3rem); box-shadow: inset 0 -1px 0 var(--lph-tint); }
  .lph__logo { min-width: 149px; font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; }
  .lph__logo b { font-weight: 700; }
  .lph__nav { display: flex; align-self: stretch; margin-left: clamp(0.5rem, 5.6vw, 5rem); }
  .lph__tab { display: grid; place-items: center; width: 107px; font-size: 0.75rem; font-weight: 500; transition: background-color 0.15s; }
  .lph__tab:hover { background: var(--lph-tint); }
  .lph__tab[aria-current="page"] { font-weight: 700; box-shadow: inset 0 0 0 1px var(--lph-brand); }
  .lph .lph__tab:focus-visible { outline-offset: -4px; }
  .lph__social { display: flex; gap: 20px; margin-left: auto; }
  .lph__icon { display: grid; place-items: center; width: 24px; height: 24px; transition: color 0.15s; }
  .lph__icon:hover { color: var(--lph-brand-dark); }
  .lph__icon svg { width: 24px; height: 24px; }

  .lph__body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 456px) minmax(0, 1fr);
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: calc(1128px + 4rem);
    margin: 0 auto;
    padding: clamp(3rem, 10vh, 8rem) clamp(1rem, 4vw, 2rem);
  }
  .lph__title { margin: 0; text-wrap: balance; font-size: clamp(2.25rem, 4.2vw, 3.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
  .lph__text { margin: 0.5rem 0 2rem; font-size: 1rem; line-height: 1.5; }
  .lph__actions { display: flex; flex-wrap: wrap; gap: 1.5rem; }
  .lph__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    min-height: 48px; padding: 0 2rem;
    border: 1px solid var(--lph-brand); border-radius: 4px;
    font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
    transition: background-color 0.15s, color 0.15s;
  }
  .lph__btn svg { width: 24px; height: 24px; margin-left: -0.25rem; color: var(--lph-brand-dark); flex: none; }
  .lph__btn:hover { background: var(--lph-tint); }
  .lph__btn--solid { background: var(--lph-brand); color: #fff !important; }
  .lph__btn--solid:hover { background: var(--lph-brand-dark); border-color: var(--lph-brand-dark); }

  /* Laptop: drawn on a 1027 x 589 grid, 1 unit = var(--u). */
  .lph__device { container-type: inline-size; width: min(71.3vw, 1140px); }
  .lph__laptop { --u: calc(100cqw / 1027); position: relative; width: 100%; aspect-ratio: 1027 / 589; }
  .lph__lid {
    position: absolute; left: calc(96 * var(--u)); top: 0;
    width: calc(834.5 * var(--u)); height: calc(557.5 * var(--u));
    border-radius: calc(26 * var(--u)) calc(26 * var(--u)) 0 0;
    background: var(--lph-brand);
  }
  .lph__cam { position: absolute; left: calc(413.7 * var(--u)); top: calc(10.9 * var(--u)); width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--lph-brand-dark); }
  .lph__screen {
    position: absolute; left: calc(14.5 * var(--u)); top: calc(27.5 * var(--u));
    width: calc(805 * var(--u)); height: calc(509.5 * var(--u));
    overflow: hidden; background: var(--lph-surface);
    font-size: calc(10 * var(--u)); line-height: 1.2;
  }
  .lph__base {
    position: absolute; left: 0; top: calc(557.5 * var(--u));
    width: 100%; height: calc(31 * var(--u));
    border: 1px solid var(--lph-brand); border-bottom: 0;
    border-radius: 0 0 0 calc(56 * var(--u)) / 0 0 0 calc(20 * var(--u));
    background: linear-gradient(var(--lph-surface) 0 58%, #e4e4e4 58%);
  }
  .lph__base i { position: absolute; left: calc(441.5 * var(--u)); top: -1px; width: calc(144 * var(--u)); height: calc(9.6 * var(--u)); border-radius: 0 0 calc(6 * var(--u)) calc(6 * var(--u)); background: var(--lph-brand-dark); }

  /* Dashboard on the screen. 1em = 10 units. */
  .lph__app-top { display: flex; align-items: center; gap: 2.4em; height: 4.4em; padding: 0 1.6em; border-bottom: 1px solid var(--lph-tint); font-size: 1em; }
  .lph__app-top b { font-size: 1.4em; font-weight: 400; width: 9.4em; }
  .lph__app-top b span { font-weight: 700; }
  .lph__week { font-weight: 700; font-size: 1.1em; }
  .lph__pill { padding: 0.35em 0.8em; border-radius: 1em; background: var(--lph-tint); font-weight: 700; font-size: 0.9em; }
  .lph__publish { margin-left: auto; padding: 0.7em 1.2em; border-radius: 0.3em; background: var(--lph-brand); color: #fff; font-weight: 700; font-size: 0.9em; }
  .lph__app { display: flex; height: calc(100% - 4.4em); }
  .lph__side { flex: none; width: 14em; margin: 0; padding: 1.4em 1em; list-style: none; border-right: 1px solid var(--lph-tint); }
  .lph__side li { display: flex; justify-content: space-between; padding: 0.75em 0.8em; border-radius: 0.3em; font-size: 1.05em; font-weight: 500; }
  .lph__side li.is-on { background: var(--lph-tint); font-weight: 700; }
  .lph__side em { font-style: normal; font-weight: 700; padding: 0 0.5em; border-radius: 1em; background: var(--lph-brand); color: #fff; }
  .lph__main { flex: 1; padding: 1.6em; }
  .lph__rota { display: grid; grid-template-columns: 7.6em repeat(7, 7.6em); grid-auto-rows: 4.4em; gap: 0.6em; font-size: 0.95em; }
  .lph__day { align-self: end; padding-bottom: 0.4em; font-weight: 700; font-size: 0.95em; }
  .lph__who { align-self: center; font-weight: 600; }
  .lph__s { display: flex; align-items: center; padding: 0 0.7em; border-radius: 0.35em; font-weight: 700; font-size: 0.9em; }
  .lph__s--e { background: var(--lph-tint); border-left: 0.3em solid var(--lph-line); }
  .lph__s--l { background: var(--lph-line); color: var(--lph-brand-dark); }
  .lph__s--n { background: var(--lph-brand); color: #fff; }
  .lph__s--o { border: 1.5px dashed var(--lph-brand); }
  .lph__stats { display: flex; gap: 1em; margin-top: 2em; }
  .lph__stats span { width: 12em; padding: 1em 1.2em; border: 1px solid var(--lph-line); border-radius: 0.4em; font-size: 1.6em; font-weight: 700; }
  .lph__stats small { display: block; margin-bottom: 0.3em; font-size: 0.6em; font-weight: 500; }

  @media (max-width: 1100px) {
    .lph__tab { width: auto; padding: 0 clamp(0.75rem, 1.6vw, 1.5rem); }
    .lph__nav { margin-left: clamp(1rem, 3vw, 3rem); }
  }
  @media (max-width: 900px) {
    .lph__nav { display: none; }
    .lph__body { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .lph__copy { max-width: 560px; }
    .lph__device { width: min(125%, 820px); }
  }
  @media (max-width: 420px) {
    .lph__logo { min-width: 0; font-size: 1.5rem; }
    .lph__social { gap: 14px; }
    .lph__btn { flex: 1 1 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .lph__btn, .lph__tab, .lph__icon { transition: none; }
  }
</style>

Kind
Wireframe
Category
Hero
Added
5 Nov 2026
Canvas
Full width
File
snippet.html
Size
213 lines · 12.3 KB
  • light
  • black-and-white
  • two-column
  • device

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