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: #141413;
  --ink: #acbab0;
  --ink-soft: #737c76;
  --ink-dim: #272624;
  --panel: #10100f;
  --sheet: #050505;
  --on-dark: #b5b5b5;
  --metal-light: #060606;
  --metal-mid: #3a3935;
  --metal-dark: #7e8881;
  --shade: rgba(172, 186, 176, 0.3);
  --shade-light: rgba(172, 186, 176, 0.1);
  --sheen: rgba(3, 3, 3, 0.1);
  --green: #563e36;
  --green-hover: #c1a8a0;
  --scribble: #4c3f3b;
}
</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

Guest profiles

Guest profiles

Lead paragraph and fact card

Lead paragraph and fact card

Info sheet

Info sheet

Paper roster card

Paper roster card

Team portraits

Team portraits

Drawn self-portrait

Drawn self-portrait

Founders

Founders

About

About