お客様の言葉を、本人の名前を添えて掲載します。このブロックには引用を使います。1人の声をページの中心に据えるなら大きく1件、複数の声を紹介するなら横に並べます。
お客様の声
<section class="container-inline px-lg py-4xl" aria-label="What customers say"> <figure class="quote quote-lg max-w(720) mx-auto"> <blockquote class="quote-body"> <p class="quote-text"> We moved forty services to Atlas in a quarter and stopped keeping a deploy calendar. Friday is an ordinary day now. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure></section><section className="container-inline px-lg py-4xl" aria-label="What customers say"> <figure className="quote quote-lg max-w(720) mx-auto"> <blockquote className="quote-body"> <p className="quote-text"> We moved forty services to Atlas in a quarter and stopped keeping a deploy calendar. Friday is an ordinary day now. </p> </blockquote> <figcaption className="quote-source"> <span className="avatar"> <img className="avatar-image" src="/demo/people/seoyeon-kim.webp" alt="" width="256" height="256" /> </span> <span><span className="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure></section><section class="container-inline px-lg py-4xl" aria-label="What customers say"> <figure class="quote quote-lg max-w(720) mx-auto"> <blockquote class="quote-body"> <p class="quote-text"> We moved forty services to Atlas in a quarter and stopped keeping a deploy calendar. Friday is an ordinary day now. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure></section><template> <section class="container-inline px-lg py-4xl" aria-label="What customers say"> <figure class="quote quote-lg max-w(720) mx-auto"> <blockquote class="quote-body"> <p class="quote-text"> We moved forty services to Atlas in a quarter and stopped keeping a deploy calendar. Friday is an ordinary day now. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure> </section></template>ブロックはコピーして使えるマークアップです。文字色と文字サイズはページから引き継ぎます。プレビューでは body に fg-text-body text-sm を設定しています。各ブロックはサイズコンテナーで、自身の幅に応じて配置が変わります。
#構成
quote quote-lgの行幅を整えます。 抜粋引用には開始引用符が自動で付き、各行の長さが均等になるように折り返されます。max-w(720) mx-autoで引用欄の最大幅を指定し、中央に配置します。- 誰の言葉かを明示します。 顔写真を添え、名前は通常の文字色で表示し、役職と会社名も記載します。匿名の引用では説得力がありません。
- 引用に絞ります。 星評価やロゴ、カルーセルは省きます。5件の引用を順に表示しても、読者は切り替わるまで待ってくれません。印象に残る1文のほうが効果的です。
#複数の引用
3件の引用を個別のシートに載せてトレイに並べ、ブロック幅が 56rem 未満なら1列、56rem 以上なら3列で表示します。各カードは flex のボックスにします。引用文の領域が伸びることで、発言者情報が横並びのカードの下部で同じ位置にそろいます。
複数の引用
<section class="container-inline px-lg py-4xl" aria-labelledby="quotes-title"> <div class="flex flex-col gap-xl max-w(1040) mx-auto"> <header class="flex flex-col gap-sm max-w(560)"> <p class="eyebrow">Customers</p> <h2 class="heading heading-2xl" id="quotes-title">Teams that ship with Atlas.</h2> </header> <ul class="tray grid gap(4) m(0) grid-cols(3)@container(--4xl)"> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Previews changed how we review. Nobody argues about a screenshot any more; they click the link and look. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Misaki Sato</span>Design lead, Northwind</span> </figcaption> </figure> </li> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Cold builds went from a minute and a half to under a minute the week we moved. We changed nothing. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Po-han Chen</span>Staff engineer, Halcyon</span> </figcaption> </figure> </li> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Rolling back used to be a meeting. Now it is a button, and it takes less time than explaining why. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure> </li> </ul> </div></section><section className="container-inline px-lg py-4xl" aria-labelledby="quotes-title"> <div className="flex flex-col gap-xl max-w(1040) mx-auto"> <header className="flex flex-col gap-sm max-w(560)"> <p className="eyebrow">Customers</p> <h2 className="heading heading-2xl" id="quotes-title">Teams that ship with Atlas.</h2> </header> <ul className="tray grid gap(4) m(0) grid-cols(3)@container(--4xl)"> <li className="sheet sheet-raised flex p-lg"> <figure className="quote grow(1)"> <blockquote className="quote-body"> <p className="quote-text"> Previews changed how we review. Nobody argues about a screenshot any more; they click the link and look. </p> </blockquote> <figcaption className="quote-source"> <span className="avatar avatar-sm"> <img className="avatar-image" src="/demo/people/misaki-sato.webp" alt="" width="256" height="256" /> </span> <span><span className="quote-name">Misaki Sato</span>Design lead, Northwind</span> </figcaption> </figure> </li> <li className="sheet sheet-raised flex p-lg"> <figure className="quote grow(1)"> <blockquote className="quote-body"> <p className="quote-text"> Cold builds went from a minute and a half to under a minute the week we moved. We changed nothing. </p> </blockquote> <figcaption className="quote-source"> <span className="avatar avatar-sm"> <img className="avatar-image" src="/demo/people/pohan-chen.webp" alt="" width="256" height="256" /> </span> <span><span className="quote-name">Po-han Chen</span>Staff engineer, Halcyon</span> </figcaption> </figure> </li> <li className="sheet sheet-raised flex p-lg"> <figure className="quote grow(1)"> <blockquote className="quote-body"> <p className="quote-text"> Rolling back used to be a meeting. Now it is a button, and it takes less time than explaining why. </p> </blockquote> <figcaption className="quote-source"> <span className="avatar avatar-sm"> <img className="avatar-image" src="/demo/people/seoyeon-kim.webp" alt="" width="256" height="256" /> </span> <span><span className="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure> </li> </ul> </div></section><section class="container-inline px-lg py-4xl" aria-labelledby="quotes-title"> <div class="flex flex-col gap-xl max-w(1040) mx-auto"> <header class="flex flex-col gap-sm max-w(560)"> <p class="eyebrow">Customers</p> <h2 class="heading heading-2xl" id="quotes-title">Teams that ship with Atlas.</h2> </header> <ul class="tray grid gap(4) m(0) grid-cols(3)@container(--4xl)"> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Previews changed how we review. Nobody argues about a screenshot any more; they click the link and look. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Misaki Sato</span>Design lead, Northwind</span> </figcaption> </figure> </li> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Cold builds went from a minute and a half to under a minute the week we moved. We changed nothing. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Po-han Chen</span>Staff engineer, Halcyon</span> </figcaption> </figure> </li> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Rolling back used to be a meeting. Now it is a button, and it takes less time than explaining why. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure> </li> </ul> </div></section><template> <section class="container-inline px-lg py-4xl" aria-labelledby="quotes-title"> <div class="flex flex-col gap-xl max-w(1040) mx-auto"> <header class="flex flex-col gap-sm max-w(560)"> <p class="eyebrow">Customers</p> <h2 class="heading heading-2xl" id="quotes-title">Teams that ship with Atlas.</h2> </header> <ul class="tray grid gap(4) m(0) grid-cols(3)@container(--4xl)"> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Previews changed how we review. Nobody argues about a screenshot any more; they click the link and look. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Misaki Sato</span>Design lead, Northwind</span> </figcaption> </figure> </li> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Cold builds went from a minute and a half to under a minute the week we moved. We changed nothing. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Po-han Chen</span>Staff engineer, Halcyon</span> </figcaption> </figure> </li> <li class="sheet sheet-raised flex p-lg"> <figure class="quote grow(1)"> <blockquote class="quote-body"> <p class="quote-text"> Rolling back used to be a meeting. Now it is a button, and it takes less time than explaining why. </p> </blockquote> <figcaption class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="256" height="256"> </span> <span><span class="quote-name">Seo-yeon Kim</span>Engineering lead, Orbit</span> </figcaption> </figure> </li> </ul> </div> </section></template>引用文の長さの差は1〜2行に収めます。カードの下端がばらばらだと、内容が整理されていないように見えます。
#アクセシビリティ
- 各引用は
<figure>です。引用した言葉はquote-bodyを付けた<blockquote>に入れ、出典はその後の<figcaption>に、引用部分の外側に記載します。 - アバターの横に本人の名前があるため、アバターの
altは空にします。 - 本人の許可を得て実際の発言を掲載し、出典が公開されている場合はリンクを付けます。