kitbash Sign in Connect agent
Components

Dark service columns

Six columns on a black panel split by hairlines, each with a pixel icon, a wide caps name and a short grey text with a blue tail.

Part of the style

Black Road White Page

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<section class="services">
  <div class="services__head">
    <p class="services__label">Services</p>
    <h2 class="services__title">Six ways across</h2>
  </div>

  <ul class="services__grid">
    <li class="services__item">
      <a class="services__link" href="#">
        <svg class="services__icon" viewBox="0 0 12 12" aria-hidden="true" data-pixels="............|.##########.|.#..#..#..#.|.#..#..#..#.|.##########.|.##########.|.##########.|..##....##..|..##....##..|............"></svg>
        <span class="services__name">Night coaches</span>
        <span class="services__text">Reclining seats, dimmed cabins and one quiet stop at midnight. Sleep in one capital, <span class="services__tail">wake in the next.</span></span>
      </a>
    </li>
    <li class="services__item">
      <a class="services__link" href="#">
        <svg class="services__icon" viewBox="0 0 12 12" aria-hidden="true" data-pixels="............|.....##.....|....####....|...######...|.....##.....|.....##.....|.....##.....|.....##.....|..########..|............"></svg>
        <span class="services__name">Day express</span>
        <span class="services__text">Fewer stops, faster lanes and a window seat for the mountains. Timed to <span class="services__tail">meet the last trains.</span></span>
      </a>
    </li>
    <li class="services__item">
      <a class="services__link" href="#">
        <svg class="services__icon" viewBox="0 0 12 12" aria-hidden="true" data-pixels="............|..########..|..#......#..|..#.####.#..|..#......#..|..#.####.#..|..#......#..|..########..|....#..#....|...##..##..."></svg>
        <span class="services__name">Charter fleet</span>
        <span class="services__text">A whole coach for a choir, a team or a wedding. Your route, your hours, <span class="services__tail">our drivers.</span></span>
      </a>
    </li>
    <li class="services__item">
      <a class="services__link" href="#">
        <svg class="services__icon" viewBox="0 0 12 12" aria-hidden="true" data-pixels="............|....####....|....#..#....|.##########.|.#........#.|.##########.|.#........#.|.#........#.|.##########.|............"></svg>
        <span class="services__name">Parcel hold</span>
        <span class="services__text">Boxes ride under the seats on every line, with a slip you can follow <span class="services__tail">stop by stop.</span></span>
      </a>
    </li>
    <li class="services__item">
      <a class="services__link" href="#">
        <svg class="services__icon" viewBox="0 0 12 12" aria-hidden="true" data-pixels="............|.##########.|.#........#.|.#.##..##.#.|.#........#.|.#.######.#.|.#........#.|.##########.|.....##.....|....####...."></svg>
        <span class="services__name">Border desk</span>
        <span class="services__text">Visas, transit papers and passport checks handled before you board, <span class="services__tail">not at the barrier.</span></span>
      </a>
    </li>
    <li class="services__item">
      <a class="services__link" href="#">
        <svg class="services__icon" viewBox="0 0 12 12" aria-hidden="true" data-pixels="............|....####....|...#....#...|..#..##..#..|..#.#..#.#..|..#..##..#..|...#....#...|....#..#....|.....##.....|............"></svg>
        <span class="services__name">Route planning</span>
        <span class="services__text">Tell us where and when. We stitch the legs, hold the seats and <span class="services__tail">send one ticket.</span></span>
      </a>
    </li>
  </ul>

  <a class="services__pill" href="#">All services</a>
</section>

<style>
  .services {
    display: grid;
    gap: var(--space-xl);
    padding: var(--section-space) var(--edge);
    background: var(--panel);
    color: var(--on-night);
  }
  .services__head {
    display: grid;
    gap: var(--space-s);
  }
  .services__label {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--on-night-soft);
  }
  .services__title {
    margin: 0;
    font-family: var(--font-display);
    font-variation-settings: "wdth" var(--display-width);
    font-size: var(--display-m);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
  }
  .services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .services__item {
    border-left: var(--rule) solid var(--line-dark);
  }
  .services__link {
    display: grid;
    align-content: start;
    gap: var(--space-m);
    height: 100%;
    padding: var(--space-m) var(--gap) var(--space-l);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--mid) var(--ease);
  }
  .services__link:hover,
  .services__link:focus-visible {
    background: var(--line-dark);
    outline: none;
  }
  .services__icon {
    width: 30px;
    height: 30px;
    margin-bottom: var(--space-s);
    fill: var(--on-night);
    shape-rendering: crispEdges;
    transition: fill var(--quick) var(--ease), transform var(--slow) var(--ease-out);
  }
  .services__link:hover .services__icon,
  .services__link:focus-visible .services__icon {
    fill: var(--signal-light);
    transform: translateY(-4px);
  }
  .services__name {
    font-family: var(--font-display);
    font-variation-settings: "wdth" var(--display-width);
    font-size: var(--display-s);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    max-width: 8em;
  }
  .services__text {
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--on-night-soft);
    max-width: 26em;
  }
  .services__tail {
    background: linear-gradient(90deg, var(--signal-light), var(--signal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .services__pill {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-m);
    border: var(--rule) solid var(--on-night-faint);
    border-radius: var(--pill);
    color: var(--on-night);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--mid) var(--ease), color var(--mid) var(--ease);
  }
  .services__pill:hover,
  .services__pill:focus-visible {
    background: var(--on-night);
    color: var(--ink);
    outline: none;
  }
  @media (min-width: 1100px) {
    .services__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }
</style>

<script>
(() => {
  const NS = 'http://www.w3.org/2000/svg';
  for (const root of document.querySelectorAll('.services')) {
    for (const icon of root.querySelectorAll('.services__icon[data-pixels]')) {
      const rows = icon.dataset.pixels.split('|');
      const top = Math.floor((12 - rows.length) / 2);
      let d = '';
      rows.forEach((row, y) => {
        [...row].forEach((cell, x) => { if (cell === '#') d += `M${x} ${y + top}h1v1h-1z`; });
      });
      const path = document.createElementNS(NS, 'path');
      path.setAttribute('d', d);
      icon.appendChild(path);
    }
  }
})();
</script>

Similar components

Infrastructure checker

Infrastructure checker

Particle-icon services

Particle-icon services

Heat-flooded night cards

Heat-flooded night cards

Process cards on a string

Process cards on a string

Fanned feature cards

Fanned feature cards

App tiles

App tiles

Grey card rail

Grey card rail

Edition slips

Edition slips