ナビゲーション

v2.2.1
マーケティング用ブロック

ご利用の流れ 新着

訪問者が行うことを順番に示し、各ステップで得られるものを添えます。

「ご利用の流れ」ブロックは、訪問者に始めてもらう前に、これから行うことを行う順番で案内します。グリッドとして組んだ順序付きリストで、各ステップは、言葉で書いた番号、タイトル、1 つの文、そしてそのステップで得られるものを示す小さなシートで構成します。シートの並びがそのまま論拠になります。横に読み進めると、製品が一通り動いたことになります。

ご利用の流れ

<section class="container-inline px-lg py-4xl" aria-labelledby="how-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col gap-sm max-w(560)">      <p class="eyebrow">How it works</p>      <h2 class="heading heading-2xl" id="how-title">        From a repository to an address in three steps.      </h2>      <p class="lead">        There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.      </p>    </header>    <ol class="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">atlas-labs/storefront</span>          <span class="badge">Astro</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 1</p>          <h3 class="heading heading-sm">Connect a repository</h3>          <p class="m(0) leading-md">            Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <code class="code truncate">git push origin main</code>          <span class="badge badge-info badge-dot">Building</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 2</p>          <h3 class="heading heading-sm">Push as you always do</h3>          <p class="m(0) leading-md">            Every push starts a build. A branch gets a preview of its own, and main goes to production.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">storefront.atlas.dev</span>          <span class="badge badge-success badge-dot">Ready in 48s</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 3</p>          <h3 class="heading heading-sm">Share the address</h3>          <p class="m(0) leading-md">            The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.          </p>        </div>      </li>    </ol>    <div class="flex flex-wrap items-center gap-sm">      <a class="btn btn-brand btn-lg" href="#">Start deploying</a>      <a class="btn btn-lg" href="#">Read the docs</a>    </div>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="how-title">  <div className="flex flex-col gap-2xl max-w(1040) mx-auto">    <header className="flex flex-col gap-sm max-w(560)">      <p className="eyebrow">How it works</p>      <h2 className="heading heading-2xl" id="how-title">        From a repository to an address in three steps.      </h2>      <p className="lead">        There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.      </p>    </header>    <ol className="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">      <li className="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div className="sheet flex items-center justify-between gap-sm px-md py-sm">          <span className="fg-text-strong truncate">atlas-labs/storefront</span>          <span className="badge">Astro</span>        </div>        <div className="flex flex-col gap-xs">          <p className="eyebrow">Step 1</p>          <h3 className="heading heading-sm">Connect a repository</h3>          <p className="m(0) leading-md">            Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.          </p>        </div>      </li>      <li className="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div className="sheet flex items-center justify-between gap-sm px-md py-sm">          <code className="code truncate">git push origin main</code>          <span className="badge badge-info badge-dot">Building</span>        </div>        <div className="flex flex-col gap-xs">          <p className="eyebrow">Step 2</p>          <h3 className="heading heading-sm">Push as you always do</h3>          <p className="m(0) leading-md">            Every push starts a build. A branch gets a preview of its own, and main goes to production.          </p>        </div>      </li>      <li className="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div className="sheet flex items-center justify-between gap-sm px-md py-sm">          <span className="fg-text-strong truncate">storefront.atlas.dev</span>          <span className="badge badge-success badge-dot">Ready in 48s</span>        </div>        <div className="flex flex-col gap-xs">          <p className="eyebrow">Step 3</p>          <h3 className="heading heading-sm">Share the address</h3>          <p className="m(0) leading-md">            The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.          </p>        </div>      </li>    </ol>    <div className="flex flex-wrap items-center gap-sm">      <a className="btn btn-brand btn-lg" href="#">Start deploying</a>      <a className="btn btn-lg" href="#">Read the docs</a>    </div>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="how-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col gap-sm max-w(560)">      <p class="eyebrow">How it works</p>      <h2 class="heading heading-2xl" id="how-title">        From a repository to an address in three steps.      </h2>      <p class="lead">        There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.      </p>    </header>    <ol class="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">atlas-labs/storefront</span>          <span class="badge">Astro</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 1</p>          <h3 class="heading heading-sm">Connect a repository</h3>          <p class="m(0) leading-md">            Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <code class="code truncate">git push origin main</code>          <span class="badge badge-info badge-dot">Building</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 2</p>          <h3 class="heading heading-sm">Push as you always do</h3>          <p class="m(0) leading-md">            Every push starts a build. A branch gets a preview of its own, and main goes to production.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">storefront.atlas.dev</span>          <span class="badge badge-success badge-dot">Ready in 48s</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 3</p>          <h3 class="heading heading-sm">Share the address</h3>          <p class="m(0) leading-md">            The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.          </p>        </div>      </li>    </ol>    <div class="flex flex-wrap items-center gap-sm">      <a class="btn btn-brand btn-lg" href="#">Start deploying</a>      <a class="btn btn-lg" href="#">Read the docs</a>    </div>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="how-title">    <div class="flex flex-col gap-2xl max-w(1040) mx-auto">      <header class="flex flex-col gap-sm max-w(560)">        <p class="eyebrow">How it works</p>        <h2 class="heading heading-2xl" id="how-title">          From a repository to an address in three steps.        </h2>        <p class="lead">          There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.        </p>      </header>      <ol class="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">        <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">          <div class="sheet flex items-center justify-between gap-sm px-md py-sm">            <span class="fg-text-strong truncate">atlas-labs/storefront</span>            <span class="badge">Astro</span>          </div>          <div class="flex flex-col gap-xs">            <p class="eyebrow">Step 1</p>            <h3 class="heading heading-sm">Connect a repository</h3>            <p class="m(0) leading-md">              Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.            </p>          </div>        </li>        <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">          <div class="sheet flex items-center justify-between gap-sm px-md py-sm">            <code class="code truncate">git push origin main</code>            <span class="badge badge-info badge-dot">Building</span>          </div>          <div class="flex flex-col gap-xs">            <p class="eyebrow">Step 2</p>            <h3 class="heading heading-sm">Push as you always do</h3>            <p class="m(0) leading-md">              Every push starts a build. A branch gets a preview of its own, and main goes to production.            </p>          </div>        </li>        <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">          <div class="sheet flex items-center justify-between gap-sm px-md py-sm">            <span class="fg-text-strong truncate">storefront.atlas.dev</span>            <span class="badge badge-success badge-dot">Ready in 48s</span>          </div>          <div class="flex flex-col gap-xs">            <p class="eyebrow">Step 3</p>            <h3 class="heading heading-sm">Share the address</h3>            <p class="m(0) leading-md">              The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.            </p>          </div>        </li>      </ol>      <div class="flex flex-wrap items-center gap-sm">        <a class="btn btn-brand btn-lg" href="#">Start deploying</a>        <a class="btn btn-lg" href="#">Read the docs</a>      </div>    </div>  </section></template>

ブロックはコピーして使えるマークアップです。文字色と文字サイズはページから引き継ぎます。プレビューでは body に fg-text-body text-sm を設定しています。各ブロックはサイズコンテナーで、広いページでも、サイドバーほどの幅でも、ダイアログ内でも、自身の幅に応じて配置が変わります。

#構成

  • ステップは <ol> です。 順序が内容そのものなので、要素でそれを表します。スクリーンリーダーは「リスト、3 項目」と各ステップの位置を読み上げます。リストはグリッドで、1 列が grid-cols(3)@container(--4xl) で 3 列になります。各項目もグリッドで、マーカーを描画しないため、言葉で書いた番号の横にブラウザーの番号が表示されることはありません。
  • 番号は「Step 1」という見出しラベルです。 ブロックの見出しラベルがタイトルの上にあるのと同じように、ステップの <h3> の上に置く <p> です。円の中に数字を描くと、新たに考える形が 1 つ増えます。番号を <h3> の中に書くと、見出しの一覧では「1 Connect a repository」と読まれてしまいます。
  • 各ステップは、後に残るものを示します。 小さな sheet に 1 行を収めます。リポジトリと検出されたフレームワーク、コマンドとそれが開始したビルド、アドレスと所要時間です。言葉がそこにあるものを示し、バッジがその状態を伝えます。3 列のときは、カードのタイトルの上に画像があるのと同じようにシートをテキストの上に置くため、文の長さにかかわらず 3 つが揃います。スマートフォンの幅からその幅までの間では、ステップは横 1 行になり、シートが文章の横に並びます。タブレットの幅いっぱいに 1 行で伸びる文章は長すぎて読みにくく、その幅のシートはほとんどが空白になるためです。
  • 状態はステータスなので、色相を使えます。 「Building」は情報のトーン、「Ready in 48s」は成功のトーンで、どちらもドットを付け、トーンが伝えることを言葉でも伝えます。フレームワークの名前はステータスではないため、ニュートラルのままです。
  • ステップはタイトルと 1 つの文です。 3 つのステップは、簡単だという約束です。正直に数えて 7 つあるなら、このブロックは適していません。それはドキュメントです。
  • 行動の呼びかけは、ステップの前ではなく後に置きます。 「Start deploying」はページで唯一の btn-brand で、その横に詳しく読むための導線を置きます。

#アクセシビリティ

  • ブロックは <h2> を名前とする <section> です。ステップは 1 階層下の <h3> です。
  • <ol> はそのまま使います。ここでは list-style: none をどこにも設定していません。設定すると、Safari ではマーカーとともにリストのロールも失われます。
  • 各シートの 1 行はステップを図解するもので、ステップのタイトルより前に、ステップと一緒に読み上げられます。テキストのままにします。代わりにスクリーンショットを置く場合は、そのステップで得られたものを伝える alt が必要です。
  • バッジのトーンだけを手がかりにすることはありません。「Building」と「Ready in 48s」という言葉が、強制カラーモードでもモノクロ印刷でも状態を伝えます。