kitbash Sign in Connect agent
Components

Author

A narrow centred column with a small heading, a place-and-year caption and a paragraph with bold italic phrases, next to a small dark portrait that tones from grayscale on hover.

Part of the style

Graph Paper Novel

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #0a0a0a;
  --grid-line: #131312;
  --ink: #afa194;
  --ink-soft: #756c64;
  --ink-dim: #242321;
  --panel: #0f0f0f;
  --sheet: #f1f1f1;
  --on-dark: #9e9e9e;
  --metal-light: #060606;
  --metal-mid: #363430;
  --metal-dark: #80766d;
  --shade: rgba(175, 161, 148, 0.3);
  --shade-light: rgba(175, 161, 148, 0.1);
  --sheen: rgba(3, 3, 3, 0.1);
  --green: #691401;
  --green-hover: #ec917b;
  --scribble: #56281d;
}
</style>

<section class="author" aria-labelledby="author-title">
  <figure class="author__portrait">
    <img class="author__picture" src="assets/author-stand-in.jpg" alt="Studio portrait of a woman with dark wavy hair, looking past the camera" width="120" height="157">
    <figcaption class="author__credit">Archive portrait, public domain</figcaption>
  </figure>

  <div class="author__text">
    <h2 class="author__title" id="author-title">The Author</h2>
    <p class="author__origin">Halifax, Canada. 1981</p>
    <p><strong><em>Ines Calloway</em></strong> has spent twenty years between ferry decks, harbour offices and night classes in <strong><em>coastal navigation and public accounting.</em></strong> She has kept the books for a fishing co-operative, taught chart work to adults who failed it at school, and crossed the North Atlantic twice as crew.</p>
    <p>Along the way she noticed that people who are good with money and people who are good at sea share one quiet habit: <strong><em>they write down where they think they are, and they check.</em></strong> True North is her first novel.</p>
  </div>
</section>

<style>
  .author {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 34rem) minmax(0, 1fr);
    align-items: start;
    gap: var(--gap);
    padding: var(--section-space) var(--edge);
  }
  .author__portrait {
    justify-self: end;
    width: clamp(5.5rem, 9vw, 8rem);
    margin: 0;
  }
  .author__picture {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 30%;
    filter: grayscale(1) contrast(1.15);
    transition: filter var(--fade) ease;
  }
  .author__portrait:hover .author__picture { filter: grayscale(0.6) sepia(0.25) contrast(1); }
  .author__credit {
    margin-top: 0.35rem;
    font: 400 0.5rem / 1.3 var(--font-label);
    letter-spacing: 0;
  }
  .author__text {
    font-size: var(--text-m);
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
  }
  .author__text p { margin: 0 0 var(--space-m); }
  .author__text strong { font-weight: 500; }
  .author__title {
    margin: 0;
    font-size: var(--text-s);
    font-weight: 400;
  }
  .author__origin {
    margin-bottom: var(--space-l) !important;
    font: 400 0.6rem / 1.4 var(--font-label);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  @media (max-width: 48rem) {
    .author { grid-template-columns: 1fr; justify-items: center; }
    .author__portrait { justify-self: center; }
  }
</style>

Similar components

Hello block

Hello block

About

About

Team and biographies

Team and biographies

Lineup tiles

Lineup tiles

Pink voice card

Pink voice card

Ruled hero

Ruled hero

Numbers in water

Numbers in water

Statement with pictures

Statement with pictures