kitbash Sign in Connect agent
Components

Hello block

A small greeting, a feathered photograph of horn speakers printed into the teal field over a red haze that leans with scroll speed, a justified caps paragraph and a toolbox list.

Part of the style

Teal Haze Lab

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --field: #ffffff;
  --ink: #6603dd;
  --night: #8459f4;
  --night-ink: #060606;
  --screen: #835fea;
  --screen-ink: #060606;
  --paper: #ffffff;
  --ray: #000900;
  --glow: #5ce25f;
  --field-deep: #0cd7bb;
  --field-bright: #32f0d2;
  --lilac: #95d938;
  --pink: #a8c5fa;
}
</style>

<section class="about">
  <p class="about__hello about__item">Hello, I'm Wren</p>
  <div class="about__grid">
    <figure class="about__picture about__item">
      <div class="about__scene" role="img" aria-label="Horn speakers on a mast, printed in teal under a red haze">
        <img class="about__photo" src="assets/speaker-mast.jpg" alt="" width="658" height="800">
      </div>
    </figure>
    <div class="about__text">
      <p class="about__lead about__item">Hi, I'm Wren Halloway. Building rooms that listen back, tuning old ferries, schoolyards and bus shelters until they hum on purpose.</p>
      <p class="about__item">This workbook keeps the pieces that made people stop on the way to somewhere else. Most of them are loud for a week and then quietly dismantled.</p>
      <ul class="about__tools about__item">
        <li>Toolbox</li>
        <li>Contact mics</li>
        <li>Tape loops</li>
        <li>Max patches</li>
        <li>DMX light</li>
        <li>Solder</li>
        <li>Patience</li>
      </ul>
    </div>
  </div>
</section>

<style>
  .about {
    --about-lean: 0;
    position: relative;
    padding: var(--space-xl) var(--edge);
    color: var(--ink);
    overflow: hidden;
  }
  .about__hello {
    margin: 0 0 var(--space-l);
    text-align: center;
  }
  .about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap);
    align-items: end;
  }
  .about__picture {
    grid-column: 2;
    width: min(100%, 360px);
    margin: 0 auto;
    transform: skewY(calc(var(--about-lean) * 1deg)) scaleY(calc(1 + var(--about-lean) * 0.01));
    transform-origin: 50% 50%;
  }
  /* A photograph printed into the field: white sky takes the teal to paper gradient, darks go near black, a red haze sits behind. */
  .about__scene {
    position: relative;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    background:
      radial-gradient(circle at 62% 46%, var(--glow) 0%, transparent 34%),
      linear-gradient(180deg, var(--field-bright), var(--paper) 78%);
    mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 60%, transparent 100%);
    isolation: isolate;
  }
  .about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 30%;
    filter: grayscale(1) contrast(1.6) brightness(1.12);
    mix-blend-mode: multiply;
  }
  .about__scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--field-deep);
    mix-blend-mode: screen;
    opacity: 0.35;
  }
  .about__text {
    grid-column: 3;
    max-width: 270px;
  }
  .about__text p {
    margin: 0 0 var(--space-m);
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
  }
  .about__tools {
    margin: var(--space-l) 0 0;
    padding: 0;
    list-style: none;
  }
  .about__tools li:first-child {
    margin-bottom: var(--space-s);
    opacity: 0.55;
  }

  .about__item {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out);
    transition-delay: calc(var(--order, 0) * 90ms);
  }
  .about.is-seen .about__item {
    opacity: 1;
    translate: 0 0;
  }

  @media (max-width: 52rem) {
    .about__grid {
      grid-template-columns: minmax(0, 1fr);
      justify-items: center;
      gap: var(--space-l);
    }
    .about__picture,
    .about__text {
      grid-column: 1;
    }
    .about__picture {
      width: min(80%, 320px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .about__item {
      opacity: 1;
      translate: none;
      transition: none;
    }
    .about__picture {
      transform: none;
    }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');

    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        entry.target.classList.add('is-seen');
        seen.unobserve(entry.target);
      }
    }, { threshold: 0.15 });

    function leanWithScroll(about) {
      let lean = 0;
      let lastY = scrollY;
      let frame = 0;
      let visible = false;
      const settle = () => {
        lean *= 0.88;
        about.style.setProperty('--about-lean', lean.toFixed(3));
        frame = Math.abs(lean) > 0.01 ? requestAnimationFrame(settle) : 0;
      };
      new IntersectionObserver(([entry]) => { visible = entry.isIntersecting; }).observe(about);
      addEventListener('scroll', () => {
        const speed = scrollY - lastY;
        lastY = scrollY;
        if (!visible || still.matches) return;
        lean = Math.max(-6, Math.min(6, lean + speed * 0.05));
        if (!frame) frame = requestAnimationFrame(settle);
      }, { passive: true });
    }

    for (const about of document.querySelectorAll('.about')) {
      about.querySelectorAll('.about__item').forEach((item, order) => item.style.setProperty('--order', order));
      seen.observe(about);
      leanWithScroll(about);
    }
  })();
</script>

Similar components

About

About

About with cut-out portrait

About with cut-out portrait

Author

Author

Team and biographies

Team and biographies

Ruled hero

Ruled hero

Pink voice card

Pink voice card

Lineup tiles

Lineup tiles

Boot screen

Boot screen