kitbash Sign in Connect agent
Components

About with cut-out portrait

The page turns black: a mono eyebrow, an old studio portrait cut into an arch with a white rim and stickers on it, and a big statement that fills from grey to white as you scroll, with two short columns of facts under it.

Part of the style

Clothesline Pitch

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@800&display=swap");
:root {
  --font-display: "Outfit", "Futura", "Avenir Next", sans-serif;
  --font-body: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-tight: "Outfit", "Futura", "Avenir Next", sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
}
</style>

<section class="about" aria-label="About the studio">
  <p class="about__eyebrow">About the studio</p>
  <div class="about__grid">
    <div class="about__visual">
      <div class="about__cutout">
        <img class="about__photo" src="assets/about-sailor.jpg" alt="An old studio portrait of a young sailor in uniform, standing with one hand on his hip" width="540" height="800" loading="lazy">
      </div>
      <span class="about__sticker about__sticker--pill" style="--rot: 10deg;" aria-hidden="true">that's me, day one</span>
      <span class="about__sticker about__sticker--heart" style="--rot: -14deg;" aria-hidden="true">
        <svg class="about__heart" viewBox="0 0 100 92"><path class="about__heart-shape" d="M50 86C20 64 6 48 6 29 6 15 17 6 29 6c9 0 16 5 21 13 5-8 12-13 21-13 12 0 23 9 23 23 0 19-14 35-44 57z"/><path class="about__heart-shine" d="M22 26c2-6 7-9 12-9"/></svg>
      </span>
    </div>

    <div class="about__main">
      <p class="about__statement">I'm Otto, the one person behind Hullo. I design and build every site myself, from the first sketch on a napkin to the last line of code, so nothing gets lost between a designer, a developer and an account manager who never met you.</p>
      <div class="about__points">
        <p class="about__point">Design and code by the same hands<br>40+ sites since I left the ship</p>
        <p class="about__point">A direct line, no hand-offs<br>Also running <a class="about__link" href="#">Sunday Type Club</a> on the side</p>
      </div>
    </div>
  </div>
</section>

<style>
  .about {
    padding: var(--section-space) var(--edge);
    background: var(--night);
    color: var(--white);
  }
  .about__eyebrow {
    margin: 0 0 40px;
    font: 500 var(--text-xs)/1.2 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .about__grid {
    display: grid;
    grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
    gap: clamp(32px, 5.5vw, 79px);
    align-items: start;
  }

  /* The portrait, cut into an arch like a sticker */
  .about__visual { position: relative; padding: 12px 0 24px; }
  .about__cutout {
    position: relative;
    aspect-ratio: 300 / 470;
    overflow: hidden;
    border: 6px solid var(--white);
    border-radius: 999px 999px 26px 26px;
    background: var(--lime);
    transform: rotate(-4deg);
    transition: transform var(--plan-lift) var(--spring);
  }
  .about__visual:hover .about__cutout { transform: rotate(3deg) translateY(-6px); }
  .about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 50%;
    filter: grayscale(1) contrast(1.25) brightness(1.08);
    mix-blend-mode: multiply;
  }
  .about__sticker {
    position: absolute;
    z-index: 2;
    display: block;
    transform: rotate(var(--rot));
    filter: var(--sticker-shadow);
    transition: transform var(--lift) var(--spring), filter 0.3s;
  }
  .about__sticker:hover { transform: rotate(calc(var(--rot) * -0.6)) scale(1.08); filter: var(--sticker-shadow-up); }
  .about__sticker--pill {
    top: 6%;
    right: -18%;
    padding: 10px 18px;
    border: var(--sticker-border) solid var(--white);
    border-radius: var(--radius-pill);
    background: var(--grad-sunset);
    font: 800 18px/1 var(--font-body);
    letter-spacing: -0.03em;
    white-space: nowrap;
  }
  .about__sticker--heart { left: -8%; bottom: 4%; }
  .about__heart { width: clamp(64px, 7vw, 92px); overflow: visible; }
  .about__heart-shape { fill: var(--pink); stroke: var(--white); stroke-width: 8; stroke-linejoin: round; paint-order: stroke; transform-box: fill-box; transform-origin: center; animation: about-beat 1.8s ease-in-out infinite; }
  .about__heart-shine { fill: none; stroke: rgba(255, 255, 255, 0.8); stroke-width: 6; stroke-linecap: round; }
  .about__sticker--heart:hover .about__heart-shape { animation-duration: 0.5s; }
  .about.is-away .about__heart-shape { animation-play-state: paused; }

  /* The statement that fills in as it scrolls up */
  .about__statement {
    margin: 0;
    font: 500 var(--text-quote)/1.08 var(--font-body);
    letter-spacing: -0.04em;
  }
  .about__word { color: var(--unread-dark); transition: color var(--word) ease; }
  .about__word.is-read { color: var(--white); }
  .about__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: clamp(40px, 6vw, 80px);
  }
  .about__point {
    margin: 0;
    color: var(--soft-dark);
    font-size: var(--text-l);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .about__link { color: var(--white); text-underline-offset: 4px; transition: color 0.3s; }
  .about__link:hover { color: var(--lime); }

  @keyframes about-beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.12); } 40% { transform: scale(0.96); } }

  @media (max-width: 760px) {
    .about__grid { grid-template-columns: 1fr; }
    .about__visual { width: min(62%, 240px); margin: 0 auto 0 8%; }
    .about__points { grid-template-columns: 1fr; }
    .about__point { font-size: 17px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .about__heart-shape { animation: none; }
    .about__word { color: var(--white); transition: none; }
  }
</style>

<script>
(() => {
  const READ_AT_LOAD = 0.6;
  const reduced = matchMedia('(prefers-reduced-motion: reduce)').matches;

  function splitWords(text) {
    const words = text.textContent.trim().split(/\s+/);
    const spans = words.map((word) => {
      const span = document.createElement('span');
      span.className = 'about__word';
      span.textContent = word;
      return span;
    });
    text.replaceChildren(...spans.flatMap((span, i) => (i ? [' ', span] : [span])));
    return spans;
  }

  function readShare(text) {
    const box = text.getBoundingClientRect();
    const travelled = (innerHeight * 0.9 - box.top) / (box.height + innerHeight * 0.3);
    return Math.min(1, Math.max(READ_AT_LOAD, travelled));
  }

  function setUp(root) {
    const text = root.querySelector('.about__statement');
    const words = splitWords(text);
    const paint = () => {
      const read = reduced ? words.length : Math.round(readShare(text) * words.length);
      words.forEach((word, i) => word.classList.toggle('is-read', i < read));
    };
    let frame = 0;
    const onScroll = () => { cancelAnimationFrame(frame); frame = requestAnimationFrame(paint); };
    new IntersectionObserver(([entry]) => {
      root.classList.toggle('is-away', !entry.isIntersecting);
      entry.isIntersecting ? addEventListener('scroll', onScroll, { passive: true }) : removeEventListener('scroll', onScroll);
    }).observe(root);
    paint();
  }

  document.querySelectorAll('.about').forEach(setUp);
})();
</script>

Similar components

About

About

Team and biographies

Team and biographies

Author

Author

Red flood studio

Red flood studio

Case study flood

Case study flood

Catchphrase and tickets

Catchphrase and tickets

Mixed-type headline

Mixed-type headline

Discipline shapes

Discipline shapes