kitbash Sign in Connect agent
Components

Appeal

Centred call to action between two ticked rules: a dotted-outline slab heading with a hatched shade, one heavy sentence and an underlined link.

Part of the style

Wood Type Playbill

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #0d0f0a;
  --ink: #c3a292;
  --ink-mid: rgba(195, 162, 146, 0.8);
  --ink-soft: rgba(195, 162, 146, 0.5);
  --paper: #000000;
  --night: #846d62;
  --poster-cream: #f2f6ee;
  --poster-cobalt: #97574a;
  --poster-dusk: #58342d;
  --poster-red: #781710;
  --hot: #6c271f;
  --plum: #9e7872;
  --tile-brick: #602e27;
  --poster-lemon: #711a0d;
  --tile-olive: #390c06;
  --poster-mint: #583017;
  --tile-forest: #3c1903;
  --tile-leaf: #542402;
  --poster-neon: #652b1f;
  --poster-heather: #45332e;
  --tile-violet: #ad4a3e;
  --tile-sky: #711a0d;
}
</style>

<section class="appeal">
  <div class="appeal__inner">
    <h2 class="appeal__heading" aria-label="Join the club">
      <svg class="appeal__type" viewBox="0 0 750 66" preserveAspectRatio="none" aria-hidden="true" focusable="false">
        <defs>
          <pattern id="appeal-hatch" width="3.2" height="3.2" patternUnits="userSpaceOnUse" patternTransform="rotate(28)">
            <rect class="appeal__hatch-line" width="1.1" height="3.2" />
          </pattern>
        </defs>
        <text class="appeal__shade" x="7" y="63.4" textLength="741.4" lengthAdjust="spacingAndGlyphs">JOIN THE CLUB</text>
        <text class="appeal__face" x="1" y="60" textLength="741.4" lengthAdjust="spacingAndGlyphs">JOIN THE CLUB</text>
      </svg>
    </h2>
    <p class="appeal__text">When you join Holler Press, you keep the presses turning, the ink cheap and the door open to anyone with something to say.</p>
    <a class="appeal__link" href="#">Become a member</a>
  </div>
</section>

<style>
  .appeal {
    padding: 0 var(--edge) var(--section-space);
  }
  .appeal__inner {
    display: grid;
    justify-items: center;
    gap: var(--space-l);
    padding: var(--space-xl) 0;
    text-align: center;
  }

  /* Rules made of short upright ticks, not a plain dotted border. */
  .appeal__inner::before,
  .appeal__inner::after {
    content: "";
    width: 100%;
    height: calc(var(--rule-thick) + 1px);
    background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px);
  }
  .appeal__inner::before {
    margin-bottom: var(--space-l);
  }
  .appeal__inner::after {
    margin-top: var(--space-l);
  }

  .appeal__heading {
    width: min(100%, 40rem);
    margin: 0 0 var(--space-s);
  }
  /* The slab is drawn at 100px in a box as tall as its capitals, then pulled to the width and height the layout gives it. */
  .appeal__type {
    display: block;
    width: 100%;
    aspect-ratio: 750 / calc(66 * var(--display-stretch));
    overflow: visible;
    font: 900 100px var(--font-display);
  }
  .appeal__face,
  .appeal__shade {
    stroke: var(--ink);
    stroke-width: 1.5px;
    stroke-dasharray: 1.5 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }
  .appeal__face {
    fill: var(--page);
  }
  .appeal__shade {
    fill: url(#appeal-hatch);
  }
  .appeal__hatch-line {
    fill: var(--ink);
  }

  .appeal__text {
    max-width: 54rem;
    margin: 0;
    font-size: var(--text-l);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
  }
  .appeal__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: inherit;
    font-weight: 800;
    text-decoration: underline 2px currentColor;
    text-underline-offset: 0.22em;
    transition: text-decoration-color var(--time) var(--ease);
  }
  .appeal__link:hover,
  .appeal__link:focus-visible {
    text-decoration-color: transparent;
  }
  .appeal__link:focus-visible {
    outline: var(--rule-thick) solid var(--ink);
    outline-offset: 4px;
  }

  @media (prefers-reduced-motion: reduce) {
    .appeal__link {
      transition-duration: 0s;
    }
  }
</style>

Similar components

Catchphrase and tickets

Catchphrase and tickets

Closing call and horizon

Closing call and horizon

Big call and footer

Big call and footer

Figure with call to action

Figure with call to action

Signup card

Signup card

Closing call and footer

Closing call and footer

Sign-off and sticker pile

Sign-off and sticker pile

Error screen

Error screen