导航

v2.1.0
营销区块

文章列表

文章、资源或案例研究:配图、摘要、作者和阅读入口。

文章列表展示有哪些内容可读:一张配图、一个作为入口的标题、一句说明文章内容的话,以及作者和发布时间。同一个区块可以列出博客文章、指南库或一组案例研究,因为这三者都由标题、摘要和出处构成。每篇内容是一张卡片。

文章列表

<section class="container-inline px-lg py-4xl" aria-labelledby="articles-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-wrap items-end justify-between gap-md">      <div class="flex flex-col gap-sm max-w(560)">        <p class="eyebrow">Blog</p>        <h2 class="heading heading-2xl" id="articles-title">          Notes from the people who build Atlas.        </h2>      </div>      <a class="btn" href="#articles-title">All articles</a>    </header>    <ul class="grid gap-md m(0) p(0) grid-cols(3)@container(--5xl)">      <li class="card card-split">        <img class="card-media" src="/demo/scenes/wallpaper-stone-mist-16x9.webp" alt>        <header class="card-header">          <h3 class="card-title">            <a class="card-link" href="#articles-title">How cold builds got under a minute</a>          </h3>          <p class="card-description">            Dependency caches are now restored before the install step. What changed in the pipeline, and what it did to forty real projects.          </p>          <span class="badge card-action">Engineering</span>        </header>        <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Po-han Chen</span>          <span aria-hidden="true">·</span>          <time datetime="2026-11-10">10 Nov 2026</time>        </div>      </li>      <li class="card card-split">        <img class="card-media" src="/demo/scenes/interior-desk-window-16x9.webp" alt>        <header class="card-header">          <h3 class="card-title">            <a class="card-link" href="#articles-title">Review the page, not a screenshot of it</a>          </h3>          <p class="card-description">            Comments on previews stay with the element they were left on, from one deployment to the next. Here is how a review reads now.          </p>          <span class="badge card-action">Product</span>        </header>        <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Misaki Sato</span>          <span aria-hidden="true">·</span>          <time datetime="2026-11-03">3 Nov 2026</time>        </div>      </li>      <li class="card card-split">        <img class="card-media" src="/demo/scenes/wallpaper-window-light-16x9.webp" alt>        <header class="card-header">          <h3 class="card-title">            <a class="card-link" href="#articles-title">Rolling back without a meeting</a>          </h3>          <p class="card-description">            A deployment never changes, so going back is choosing an earlier one. A walk through the first minute of an incident.          </p>          <span class="badge card-action">Guide</span>        </header>        <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/kenta-nakamura.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Kenta Nakamura</span>          <span aria-hidden="true">·</span>          <time datetime="2026-10-27">27 Oct 2026</time>        </div>      </li>    </ul>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="articles-title">  <div className="flex flex-col gap-2xl max-w(1040) mx-auto">    <header className="flex flex-wrap items-end justify-between gap-md">      <div className="flex flex-col gap-sm max-w(560)">        <p className="eyebrow">Blog</p>        <h2 className="heading heading-2xl" id="articles-title">          Notes from the people who build Atlas.        </h2>      </div>      <a className="btn" href="#articles-title">All articles</a>    </header>    <ul className="grid gap-md m(0) p(0) grid-cols(3)@container(--5xl)">      <li className="card card-split">        <img className="card-media" src="/demo/scenes/wallpaper-stone-mist-16x9.webp" alt="" />        <header className="card-header">          <h3 className="card-title">            <a className="card-link" href="#articles-title">How cold builds got under a minute</a>          </h3>          <p className="card-description">            Dependency caches are now restored before the install step. What changed in the pipeline, and what it did to forty real projects.          </p>          <span className="badge card-action">Engineering</span>        </header>        <div className="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span className="avatar avatar-sm">            <img className="avatar-image" src="/demo/people/pohan-chen.webp" alt="" width="256" height="256" />          </span>          <span className="fg-text-strong">Po-han Chen</span>          <span aria-hidden="true">·</span>          <time dateTime="2026-11-10">10 Nov 2026</time>        </div>      </li>      <li className="card card-split">        <img className="card-media" src="/demo/scenes/interior-desk-window-16x9.webp" alt="" />        <header className="card-header">          <h3 className="card-title">            <a className="card-link" href="#articles-title">              Review the page, not a screenshot of it            </a>          </h3>          <p className="card-description">            Comments on previews stay with the element they were left on, from one deployment to the next. Here is how a review reads now.          </p>          <span className="badge card-action">Product</span>        </header>        <div className="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span className="avatar avatar-sm">            <img className="avatar-image" src="/demo/people/misaki-sato.webp" alt="" width="256" height="256" />          </span>          <span className="fg-text-strong">Misaki Sato</span>          <span aria-hidden="true">·</span>          <time dateTime="2026-11-03">3 Nov 2026</time>        </div>      </li>      <li className="card card-split">        <img className="card-media" src="/demo/scenes/wallpaper-window-light-16x9.webp" alt="" />        <header className="card-header">          <h3 className="card-title">            <a className="card-link" href="#articles-title">Rolling back without a meeting</a>          </h3>          <p className="card-description">            A deployment never changes, so going back is choosing an earlier one. A walk through the first minute of an incident.          </p>          <span className="badge card-action">Guide</span>        </header>        <div className="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span className="avatar avatar-sm">            <img className="avatar-image" src="/demo/people/kenta-nakamura.webp" alt="" width="256" height="256" />          </span>          <span className="fg-text-strong">Kenta Nakamura</span>          <span aria-hidden="true">·</span>          <time dateTime="2026-10-27">27 Oct 2026</time>        </div>      </li>    </ul>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="articles-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-wrap items-end justify-between gap-md">      <div class="flex flex-col gap-sm max-w(560)">        <p class="eyebrow">Blog</p>        <h2 class="heading heading-2xl" id="articles-title">          Notes from the people who build Atlas.        </h2>      </div>      <a class="btn" href="#articles-title">All articles</a>    </header>    <ul class="grid gap-md m(0) p(0) grid-cols(3)@container(--5xl)">      <li class="card card-split">        <img class="card-media" src="/demo/scenes/wallpaper-stone-mist-16x9.webp" alt>        <header class="card-header">          <h3 class="card-title">            <a class="card-link" href="#articles-title">How cold builds got under a minute</a>          </h3>          <p class="card-description">            Dependency caches are now restored before the install step. What changed in the pipeline, and what it did to forty real projects.          </p>          <span class="badge card-action">Engineering</span>        </header>        <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Po-han Chen</span>          <span aria-hidden="true">·</span>          <time datetime="2026-11-10">10 Nov 2026</time>        </div>      </li>      <li class="card card-split">        <img class="card-media" src="/demo/scenes/interior-desk-window-16x9.webp" alt>        <header class="card-header">          <h3 class="card-title">            <a class="card-link" href="#articles-title">Review the page, not a screenshot of it</a>          </h3>          <p class="card-description">            Comments on previews stay with the element they were left on, from one deployment to the next. Here is how a review reads now.          </p>          <span class="badge card-action">Product</span>        </header>        <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Misaki Sato</span>          <span aria-hidden="true">·</span>          <time datetime="2026-11-03">3 Nov 2026</time>        </div>      </li>      <li class="card card-split">        <img class="card-media" src="/demo/scenes/wallpaper-window-light-16x9.webp" alt>        <header class="card-header">          <h3 class="card-title">            <a class="card-link" href="#articles-title">Rolling back without a meeting</a>          </h3>          <p class="card-description">            A deployment never changes, so going back is choosing an earlier one. A walk through the first minute of an incident.          </p>          <span class="badge card-action">Guide</span>        </header>        <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/kenta-nakamura.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Kenta Nakamura</span>          <span aria-hidden="true">·</span>          <time datetime="2026-10-27">27 Oct 2026</time>        </div>      </li>    </ul>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="articles-title">    <div class="flex flex-col gap-2xl max-w(1040) mx-auto">      <header class="flex flex-wrap items-end justify-between gap-md">        <div class="flex flex-col gap-sm max-w(560)">          <p class="eyebrow">Blog</p>          <h2 class="heading heading-2xl" id="articles-title">            Notes from the people who build Atlas.          </h2>        </div>        <a class="btn" href="#articles-title">All articles</a>      </header>      <ul class="grid gap-md m(0) p(0) grid-cols(3)@container(--5xl)">        <li class="card card-split">          <img class="card-media" src="/demo/scenes/wallpaper-stone-mist-16x9.webp" alt>          <header class="card-header">            <h3 class="card-title">              <a class="card-link" href="#articles-title">How cold builds got under a minute</a>            </h3>            <p class="card-description">              Dependency caches are now restored before the install step. What changed in the pipeline, and what it did to forty real projects.            </p>            <span class="badge card-action">Engineering</span>          </header>          <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">            <span class="avatar avatar-sm">              <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="256" height="256">            </span>            <span class="fg-text-strong">Po-han Chen</span>            <span aria-hidden="true">·</span>            <time datetime="2026-11-10">10 Nov 2026</time>          </div>        </li>        <li class="card card-split">          <img class="card-media" src="/demo/scenes/interior-desk-window-16x9.webp" alt>          <header class="card-header">            <h3 class="card-title">              <a class="card-link" href="#articles-title">                Review the page, not a screenshot of it              </a>            </h3>            <p class="card-description">              Comments on previews stay with the element they were left on, from one deployment to the next. Here is how a review reads now.            </p>            <span class="badge card-action">Product</span>          </header>          <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">            <span class="avatar avatar-sm">              <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256">            </span>            <span class="fg-text-strong">Misaki Sato</span>            <span aria-hidden="true">·</span>            <time datetime="2026-11-03">3 Nov 2026</time>          </div>        </li>        <li class="card card-split">          <img class="card-media" src="/demo/scenes/wallpaper-window-light-16x9.webp" alt>          <header class="card-header">            <h3 class="card-title">              <a class="card-link" href="#articles-title">Rolling back without a meeting</a>            </h3>            <p class="card-description">              A deployment never changes, so going back is choosing an earlier one. A walk through the first minute of an incident.            </p>            <span class="badge card-action">Guide</span>          </header>          <div class="card-body flex flex-wrap items-center gap-xs mt-auto fg-text-muted">            <span class="avatar avatar-sm">              <img class="avatar-image" src="/demo/people/kenta-nakamura.webp" alt width="256" height="256">            </span>            <span class="fg-text-strong">Kenta Nakamura</span>            <span aria-hidden="true">·</span>            <time datetime="2026-10-27">27 Oct 2026</time>          </div>        </li>      </ul>    </div>  </section></template>

区块提供可直接复制的标记,沿用页面自身的文字颜色和字号。预览在 body 上设置 fg-text-body text-sm。每个区块都是尺寸容器,会按自身宽度重排。

#区块组成

  • 标题组,附带通往其余内容的入口。 标题位于行的起始侧,“All articles”(全部文章)位于同一行的末尾侧,使用 flex flex-wrap items-end justify-between;区块较窄时,按钮换行到标题下方。三张卡片只是样例,按钮说明其余内容在哪里。
  • 每篇内容是列表项上的一个 card card-split。 区块宽度达到 64rem 时,三张卡片通过 grid-cols(3)@container(--5xl) 并排,配图在上。宽度不足时它们上下堆叠,每张卡片在自身宽度有 28rem 时把配图放在文字旁边,到了手机宽度又回到配图在上。这由卡片根据自身宽度决定;区块只决定列数。
  • 标题就是入口。 它是一个 <a class="card-link">,点击目标覆盖整张卡片,因此配图和内边距也都属于这个链接。摘要和作者行叠在这个点击目标的上层,其中的文字仍然可以选中。
  • 摘要说明文章包含什么,最多两句,放在 card-description 中。重复标题的摘要白白浪费了这一行。
  • 内容的类型用 card-action 中的中性徽标表示,位于卡片头部末尾。它是文字,不带色相:类型不是状态。
  • 作者和时间,写在低调的一行里。 一个头像、以墨色显示的姓名,以及放在 <time> 中的日期。mt-auto 把这一行固定在卡片底部,因此三张长短不一的卡片会在同一条线上结束。

按从新到旧的顺序排列内容,日期中要写明年份。

如果要让某一篇领衔,就像案例研究领衔指南库那样,就把区块的一半留给它:一个图文块、一个更大的标题和它的摘要。旁边的三篇各有一个标题和一行文字,用细线分隔。区块宽度达到 64rem 时,两半并排;宽度不足时,精选内容排在前面。

精选内容

<section class="container-inline px-lg py-4xl" aria-labelledby="resources-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">Resources</p>      <h2 class="heading heading-2xl" id="resources-title">        Guides and stories from teams on Atlas.      </h2>    </header>    <div class="grid gap-2xl items-start grid-cols(2)@container(--5xl)">      <article class="flex flex-col gap-md">        <div class="figure">          <img class="figure-media" src="/demo/scenes/interior-linen-armchair-3x2.webp" alt width="2000" height="1333" style="--figure-ratio: 3 / 2">        </div>        <p class="flex flex-wrap items-center gap-xs m(0) mt-xs fg-text-muted">          <span class="badge">Case study</span>          <time datetime="2026-11-12">12 Nov 2026</time>          <span aria-hidden="true">·</span>          <span>8 min read</span>        </p>        <h3 class="heading heading-lg">          <a class="link link-quiet" href="#resources-title">            How Orbit moved forty services in a quarter          </a>        </h3>        <p class="m(0) leading-md max-w(480)">          Orbit kept a deploy calendar and froze every Friday. This is the order they moved their services in, what they left for last, and the week the calendar went away.        </p>        <p class="flex items-center gap-xs m(0) fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/jihoon-park.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Ji-hoon Park</span>        </p>      </article>      <ul class="flex flex-col m(0) p(0)">        <li class="flex flex-col gap-xs pb-lg">          <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span class="badge">Guide</span>            <time datetime="2026-11-05">5 Nov 2026</time>            <span aria-hidden="true">·</span>            <span>5 min read</span>          </p>          <h3 class="heading heading-sm">            <a class="link link-quiet" href="#resources-title">              A preview for every branch, at its own address            </a>          </h3>          <p class="m(0) leading-md">            Set up previews for a repository, share one, and keep the rest behind a sign-in.          </p>        </li>        <li class="flex flex-col gap-xs py-lg bt(1) bt-solid b-line-hair">          <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span class="badge">Engineering</span>            <time datetime="2026-10-29">29 Oct 2026</time>            <span aria-hidden="true">·</span>            <span>7 min read</span>          </p>          <h3 class="heading heading-sm">            <a class="link link-quiet" href="#resources-title">              What fourteen regions taught us about latency            </a>          </h3>          <p class="m(0) leading-md">            Where the last hundred milliseconds go, measured from the edge and not from a laptop.          </p>        </li>        <li class="flex flex-col gap-xs pt-lg bt(1) bt-solid b-line-hair">          <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span class="badge">Guide</span>            <time datetime="2026-10-21">21 Oct 2026</time>            <span aria-hidden="true">·</span>            <span>3 min read</span>          </p>          <h3 class="heading heading-sm">            <a class="link link-quiet" href="#resources-title">              Custom domains, and certificates that renew            </a>          </h3>          <p class="m(0) leading-md">            Point a domain at a project and let Atlas keep its certificate current.          </p>        </li>      </ul>    </div>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="resources-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">Resources</p>      <h2 className="heading heading-2xl" id="resources-title">        Guides and stories from teams on Atlas.      </h2>    </header>    <div className="grid gap-2xl items-start grid-cols(2)@container(--5xl)">      <article className="flex flex-col gap-md">        <div className="figure">          <img className="figure-media" src="/demo/scenes/interior-linen-armchair-3x2.webp" alt="" width="2000" height="1333" style={{ '--figure-ratio': '3 / 2' } as React.CSSProperties} />        </div>        <p className="flex flex-wrap items-center gap-xs m(0) mt-xs fg-text-muted">          <span className="badge">Case study</span>          <time dateTime="2026-11-12">12 Nov 2026</time>          <span aria-hidden="true">·</span>          <span>8 min read</span>        </p>        <h3 className="heading heading-lg">          <a className="link link-quiet" href="#resources-title">            How Orbit moved forty services in a quarter          </a>        </h3>        <p className="m(0) leading-md max-w(480)">          Orbit kept a deploy calendar and froze every Friday. This is the order they moved their services in, what they left for last, and the week the calendar went away.        </p>        <p className="flex items-center gap-xs m(0) fg-text-muted">          <span className="avatar avatar-sm">            <img className="avatar-image" src="/demo/people/jihoon-park.webp" alt="" width="256" height="256" />          </span>          <span className="fg-text-strong">Ji-hoon Park</span>        </p>      </article>      <ul className="flex flex-col m(0) p(0)">        <li className="flex flex-col gap-xs pb-lg">          <p className="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span className="badge">Guide</span>            <time dateTime="2026-11-05">5 Nov 2026</time>            <span aria-hidden="true">·</span>            <span>5 min read</span>          </p>          <h3 className="heading heading-sm">            <a className="link link-quiet" href="#resources-title">              A preview for every branch, at its own address            </a>          </h3>          <p className="m(0) leading-md">            Set up previews for a repository, share one, and keep the rest behind a sign-in.          </p>        </li>        <li className="flex flex-col gap-xs py-lg bt(1) bt-solid b-line-hair">          <p className="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span className="badge">Engineering</span>            <time dateTime="2026-10-29">29 Oct 2026</time>            <span aria-hidden="true">·</span>            <span>7 min read</span>          </p>          <h3 className="heading heading-sm">            <a className="link link-quiet" href="#resources-title">              What fourteen regions taught us about latency            </a>          </h3>          <p className="m(0) leading-md">            Where the last hundred milliseconds go, measured from the edge and not from a laptop.          </p>        </li>        <li className="flex flex-col gap-xs pt-lg bt(1) bt-solid b-line-hair">          <p className="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span className="badge">Guide</span>            <time dateTime="2026-10-21">21 Oct 2026</time>            <span aria-hidden="true">·</span>            <span>3 min read</span>          </p>          <h3 className="heading heading-sm">            <a className="link link-quiet" href="#resources-title">              Custom domains, and certificates that renew            </a>          </h3>          <p className="m(0) leading-md">            Point a domain at a project and let Atlas keep its certificate current.          </p>        </li>      </ul>    </div>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="resources-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">Resources</p>      <h2 class="heading heading-2xl" id="resources-title">        Guides and stories from teams on Atlas.      </h2>    </header>    <div class="grid gap-2xl items-start grid-cols(2)@container(--5xl)">      <article class="flex flex-col gap-md">        <div class="figure">          <img class="figure-media" src="/demo/scenes/interior-linen-armchair-3x2.webp" alt width="2000" height="1333" style="--figure-ratio: 3 / 2">        </div>        <p class="flex flex-wrap items-center gap-xs m(0) mt-xs fg-text-muted">          <span class="badge">Case study</span>          <time datetime="2026-11-12">12 Nov 2026</time>          <span aria-hidden="true">·</span>          <span>8 min read</span>        </p>        <h3 class="heading heading-lg">          <a class="link link-quiet" href="#resources-title">            How Orbit moved forty services in a quarter          </a>        </h3>        <p class="m(0) leading-md max-w(480)">          Orbit kept a deploy calendar and froze every Friday. This is the order they moved their services in, what they left for last, and the week the calendar went away.        </p>        <p class="flex items-center gap-xs m(0) fg-text-muted">          <span class="avatar avatar-sm">            <img class="avatar-image" src="/demo/people/jihoon-park.webp" alt width="256" height="256">          </span>          <span class="fg-text-strong">Ji-hoon Park</span>        </p>      </article>      <ul class="flex flex-col m(0) p(0)">        <li class="flex flex-col gap-xs pb-lg">          <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span class="badge">Guide</span>            <time datetime="2026-11-05">5 Nov 2026</time>            <span aria-hidden="true">·</span>            <span>5 min read</span>          </p>          <h3 class="heading heading-sm">            <a class="link link-quiet" href="#resources-title">              A preview for every branch, at its own address            </a>          </h3>          <p class="m(0) leading-md">            Set up previews for a repository, share one, and keep the rest behind a sign-in.          </p>        </li>        <li class="flex flex-col gap-xs py-lg bt(1) bt-solid b-line-hair">          <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span class="badge">Engineering</span>            <time datetime="2026-10-29">29 Oct 2026</time>            <span aria-hidden="true">·</span>            <span>7 min read</span>          </p>          <h3 class="heading heading-sm">            <a class="link link-quiet" href="#resources-title">              What fourteen regions taught us about latency            </a>          </h3>          <p class="m(0) leading-md">            Where the last hundred milliseconds go, measured from the edge and not from a laptop.          </p>        </li>        <li class="flex flex-col gap-xs pt-lg bt(1) bt-solid b-line-hair">          <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">            <span class="badge">Guide</span>            <time datetime="2026-10-21">21 Oct 2026</time>            <span aria-hidden="true">·</span>            <span>3 min read</span>          </p>          <h3 class="heading heading-sm">            <a class="link link-quiet" href="#resources-title">              Custom domains, and certificates that renew            </a>          </h3>          <p class="m(0) leading-md">            Point a domain at a project and let Atlas keep its certificate current.          </p>        </li>      </ul>    </div>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="resources-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">Resources</p>        <h2 class="heading heading-2xl" id="resources-title">          Guides and stories from teams on Atlas.        </h2>      </header>      <div class="grid gap-2xl items-start grid-cols(2)@container(--5xl)">        <article class="flex flex-col gap-md">          <div class="figure">            <img class="figure-media" src="/demo/scenes/interior-linen-armchair-3x2.webp" alt width="2000" height="1333" style="--figure-ratio: 3 / 2">          </div>          <p class="flex flex-wrap items-center gap-xs m(0) mt-xs fg-text-muted">            <span class="badge">Case study</span>            <time datetime="2026-11-12">12 Nov 2026</time>            <span aria-hidden="true">·</span>            <span>8 min read</span>          </p>          <h3 class="heading heading-lg">            <a class="link link-quiet" href="#resources-title">              How Orbit moved forty services in a quarter            </a>          </h3>          <p class="m(0) leading-md max-w(480)">            Orbit kept a deploy calendar and froze every Friday. This is the order they moved their services in, what they left for last, and the week the calendar went away.          </p>          <p class="flex items-center gap-xs m(0) fg-text-muted">            <span class="avatar avatar-sm">              <img class="avatar-image" src="/demo/people/jihoon-park.webp" alt width="256" height="256">            </span>            <span class="fg-text-strong">Ji-hoon Park</span>          </p>        </article>        <ul class="flex flex-col m(0) p(0)">          <li class="flex flex-col gap-xs pb-lg">            <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">              <span class="badge">Guide</span>              <time datetime="2026-11-05">5 Nov 2026</time>              <span aria-hidden="true">·</span>              <span>5 min read</span>            </p>            <h3 class="heading heading-sm">              <a class="link link-quiet" href="#resources-title">                A preview for every branch, at its own address              </a>            </h3>            <p class="m(0) leading-md">              Set up previews for a repository, share one, and keep the rest behind a sign-in.            </p>          </li>          <li class="flex flex-col gap-xs py-lg bt(1) bt-solid b-line-hair">            <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">              <span class="badge">Engineering</span>              <time datetime="2026-10-29">29 Oct 2026</time>              <span aria-hidden="true">·</span>              <span>7 min read</span>            </p>            <h3 class="heading heading-sm">              <a class="link link-quiet" href="#resources-title">                What fourteen regions taught us about latency              </a>            </h3>            <p class="m(0) leading-md">              Where the last hundred milliseconds go, measured from the edge and not from a laptop.            </p>          </li>          <li class="flex flex-col gap-xs pt-lg bt(1) bt-solid b-line-hair">            <p class="flex flex-wrap items-center gap-xs m(0) fg-text-muted">              <span class="badge">Guide</span>              <time datetime="2026-10-21">21 Oct 2026</time>              <span aria-hidden="true">·</span>              <span>3 min read</span>            </p>            <h3 class="heading heading-sm">              <a class="link link-quiet" href="#resources-title">                Custom domains, and certificates that renew              </a>            </h3>            <p class="m(0) leading-md">              Point a domain at a project and let Atlas keep its certificate current.            </p>          </li>        </ul>      </div>    </div>  </section></template>

精选内容不使用表面:直接放在页面上的一个图文块和一栏文字就足以领衔,而在三个不带装饰的标题旁放一张卡片会显得过于抢眼。两个标题之间的细线 bt(1) bt-solid b-line-hair 是唯一一条用工具类绘制的线。

#无障碍

  • 区块是一个以其 <h2> 命名的 <section>;每篇内容的标题是一个 <h3>,因此标题列表就是内容列表。
  • 一个标题就是一个链接,它的文字说明链接通往哪里。这里没有“阅读更多”:标题本身就是入口,而三个都叫“阅读更多”的链接,在屏幕阅读器的链接列表中提供不了任何信息。
  • 示例中的配图只用来营造氛围,因此 alt 留空。能说明文章主题的图片则需要描述。
  • 姓名旁的人像 alt 留空:姓名已经写在那里了。
  • 日期是带有 datetime 的 <time>,月份用文字写出。“10/11”在两位读者眼中是两个不同的日子。
  • 各项信息之间的圆点设置了 aria-hidden。