kitbash Sign in Connect agent
Components

Blossom notice

The signature first screen: a pink blossom that opens and slowly turns, a big light serif statement, a lede, a short rule and an underlined contact line, fading in piece by piece.

Part of the style

Forest Ink on Cream

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #334493;
  --tile: #3d509b;
  --ink: #fff2f1;
  --on-ink: #334493;
  --ink-soft: #faa19f;
  --blossom: #99627e;
  --blossom-deep: #b25e8a;
  --blossom-eye: #faa19f;
}
</style>

<section class="notice" aria-labelledby="notice-title">
  <div class="notice__blossom notice__item" aria-hidden="true">
    <svg class="notice__flower" viewBox="-60 -60 120 120" width="88" height="88">
      <defs>
        <radialGradient id="notice-petal" cx="0" cy="0" r="50" gradientUnits="userSpaceOnUse">
          <stop offset="0.12" style="stop-color: var(--blossom-deep)"/>
          <stop offset="0.7" style="stop-color: var(--blossom)"/>
          <stop offset="1" style="stop-color: var(--paper)"/>
        </radialGradient>
      </defs>
      <g class="notice__petals" fill="url(#notice-petal)">
        <path d="M0 0C-15-13-17-36 0-50 17-36 15-13 0 0Z"/>
        <path d="M0 0C-15-13-17-36 0-50 17-36 15-13 0 0Z" transform="rotate(60)"/>
        <path d="M0 0C-15-13-17-36 0-50 17-36 15-13 0 0Z" transform="rotate(120)"/>
        <path d="M0 0C-15-13-17-36 0-50 17-36 15-13 0 0Z" transform="rotate(180)"/>
        <path d="M0 0C-15-13-17-36 0-50 17-36 15-13 0 0Z" transform="rotate(240)"/>
        <path d="M0 0C-15-13-17-36 0-50 17-36 15-13 0 0Z" transform="rotate(300)"/>
      </g>
      <path class="notice__eye" d="M0-9 2.6-3.6 8.6-2.8 4.2 1.4 5.3 7.3 0 4.5-5.3 7.3-4.2 1.4-8.6-2.8-2.6-3.6Z"/>
    </svg>
  </div>
  <h1 class="notice__title notice__item" id="notice-title">Resting until the ground&nbsp;thaws.</h1>
  <p class="notice__lede notice__item">Tendril is closed for the winter. Thank you for filling your sills and allotments with us all year.</p>
  <hr class="notice__rule notice__item">
  <div class="notice__contact notice__item">
    <p class="notice__ask">For trade orders and allotment visits</p>
    <a class="notice__email" href="#">hello@tendril.example</a>
  </div>
</section>

<style>
  .notice {
    display: grid;
    justify-items: center;
    padding: var(--section-space) var(--edge);
    color: var(--ink);
    text-align: center;
  }
  .notice__item {
    opacity: 0;
    transition: opacity var(--fade) var(--ease);
    transition-delay: calc(var(--order, 0) * var(--stagger) + var(--stagger));
  }
  .notice.is-in .notice__item {
    opacity: 1;
  }
  .notice__blossom {
    margin-bottom: var(--space-l);
  }
  .notice__flower {
    width: clamp(3.5rem, 6vw, 5.5rem);
    height: auto;
    overflow: visible;
  }
  .notice__petals {
    transform: scale(0.45) rotate(-60deg);
    transform-box: view-box;
    transform-origin: center;
    transition: transform var(--bloom) var(--ease) calc(var(--stagger) * 2);
  }
  .notice.is-in .notice__petals {
    transform: scale(1) rotate(0deg);
  }
  .notice.is-in.is-live .notice__flower {
    animation: notice-turn var(--turn) linear infinite;
  }
  .notice__eye {
    fill: var(--blossom-eye);
  }
  .notice__title {
    max-width: 11ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: var(--weight-display);
    font-variation-settings: "SOFT" 100;
    line-height: var(--leading-display);
    letter-spacing: var(--track-display);
    text-wrap: balance;
  }
  .notice__lede {
    max-width: var(--measure);
    margin: var(--space-l) 0 0;
    font-size: var(--text-l);
    line-height: var(--leading-text);
    text-wrap: balance;
  }
  .notice__rule {
    width: min(100%, var(--measure));
    margin: var(--space-xl) 0;
    border: 0;
    border-top: var(--rule) solid var(--ink);
  }
  .notice__contact {
    display: grid;
    justify-items: center;
    gap: var(--space-s);
  }
  .notice__ask {
    margin: 0;
    font-size: var(--text-m);
  }
  .notice__email {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-size: var(--text-l);
    font-weight: var(--weight-strong);
    text-decoration: underline;
    text-decoration-thickness: var(--rule-link);
    text-underline-offset: 0.35em;
    transition: opacity var(--fade) var(--ease);
  }
  .notice__email:hover {
    opacity: 0.7;
  }
  .notice__email:focus-visible {
    outline: var(--rule) solid var(--ink);
    outline-offset: 4px;
  }
  @keyframes notice-turn {
    to { rotate: 360deg; }
  }
  @media (prefers-reduced-motion: reduce) {
    .notice__item { opacity: 1; transition: none; }
    .notice__petals { transform: none; transition: none; }
    .notice.is-in.is-live .notice__flower { animation: none; }
  }
</style>

<script>
  (() => {
    const live = new IntersectionObserver((entries) => {
      for (const entry of entries) entry.target.classList.toggle('is-live', entry.isIntersecting);
    });
    for (const root of document.querySelectorAll('.notice')) {
      root.querySelectorAll('.notice__item').forEach((item, order) => item.style.setProperty('--order', order));
      requestAnimationFrame(() => requestAnimationFrame(() => root.classList.add('is-in')));
      live.observe(root);
    }
  })();
</script>

Similar components

Run-on intro

Run-on intro

Night title band

Night title band

Swash masthead

Swash masthead

Entry sheet

Entry sheet

Hello column

Hello column

Painted scene hero

Painted scene hero

Masthead

Masthead

Typing hero with window

Typing hero with window