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: #e4e4e4;
  --grid-line: #d3d2d1;
  --ink: #0b111f;
  --ink-soft: #454b56;
  --ink-dim: #b7b5b1;
  --panel: #dadad9;
  --sheet: #f0f0f0;
  --on-dark: #111111;
  --metal-light: #eeeeee;
  --metal-mid: #9c9a94;
  --metal-dark: #393f4b;
  --shade: rgba(11, 17, 31, 0.3);
  --shade-light: rgba(11, 17, 31, 0.1);
  --sheen: rgba(248, 248, 248, 0.1);
  --green: #4377f6;
  --green-hover: #010170;
  --scribble: #4f7add;
}
</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

About

About

About with cut-out portrait

About with cut-out portrait

Team and biographies

Team and biographies

Lineup tiles

Lineup tiles

Pink voice card

Pink voice card

Ruled hero

Ruled hero

Statement with pictures

Statement with pictures

News

News