导航

v2.1.0
营销区块

客户评价

展示客户原话,并附上署名。

客户评价引用客户的原话,并署上客户的姓名。这个区块采用引用块组件。如果页面主打一位客户的评价,就突出展示一条大号引文。需要展示多条评价时,可将它们并排放置。

客户评价

<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 限制引文栏宽并使其居中。
  • 注明发言人。 展示头像、以墨色显示的姓名,以及职务和公司。匿名引文缺乏说服力。
  • 只保留这些内容。 省去星级、标志和轮播。一句有说服力的话,胜过五句访客等不到播完的轮播引文。

#多条评价

三条引文分别放在面板上,统一置于一个托盘中。区块宽度小于 56rem 时显示一列,从 56rem 起显示三列。每张卡片都是一个 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>

让引文长度接近,最多相差一两行。成排卡片的底部参差不齐,看起来像是没有仔细整理过。

#无障碍

  • 每条评价都是一个 <figure>:引述的文字放在带有 quote-body 的 <blockquote> 中,出处放在其后的 <figcaption>,不属于引述内容。
  • 头像旁已显示姓名,因此头像的 alt 留空。
  • 征得发言人同意后引用原话,并在出处公开时提供链接。