網站導覽

v2.1.0
行銷區塊

定價

並列各個方案,列出價格、適用對象與包含項目,並突顯其中一個推薦方案。

定價區塊並列各個方案,列出方案名稱、價格、適用對象、一個按鈕和包含的項目。只推薦一個方案,並讓它成為唯一突顯的方案。

定價

<section class="container-inline px-lg py-4xl" aria-labelledby="pricing-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col items-center gap-sm text-center">      <p class="eyebrow">Pricing</p>      <h2 class="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>      <p class="lead max-w(480)">        Every plan deploys the same way. You pay for the team, not for the traffic.      </p>    </header>    <div class="grid gap-md items-start grid-cols(3)@container(--4xl)">      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Hobby</h3>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">0</span><span class="price-period">forever</span>          </p>          <p class="m(0) leading-md">For side projects and trying things out.</p>        </header>        <a class="btn" href="#">Start for free</a>        <ul class="bullets bullets-check">          <li class="bullets-item">One project</li>          <li class="bullets-item">Previews for every branch</li>          <li class="bullets-item">Community support</li>        </ul>      </article>      <article class="sheet flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Pro</h3>            <span class="badge badge-ink badge-pill">Most popular</span>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">20</span><span class="price-period">per member, monthly</span>          </p>          <p class="m(0) leading-md">For teams that ship to real visitors.</p>        </header>        <a class="btn btn-brand" href="#">Start a trial</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Unlimited projects</li>          <li class="bullets-item">Fourteen regions</li>          <li class="bullets-item">Analytics and firewall</li>          <li class="bullets-item">Email support, next day</li>        </ul>      </article>      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Enterprise</h3>          </div>          <p class="price"><span class="price-amount">Custom</span></p>          <p class="m(0) leading-md">For organizations with their own rules.</p>        </header>        <a class="btn" href="#">Talk to sales</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Single sign-on and audit log</li>          <li class="bullets-item">A 99.99% uptime agreement</li>          <li class="bullets-item">A named engineer</li>          <li class="bullets-item">Invoices and purchase orders</li>        </ul>      </article>    </div>    <p class="m(0) text-center text-xs fg-text-muted">      Prices are in US dollars and exclude tax. Cancel any time.    </p>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="pricing-title">  <div className="flex flex-col gap-2xl max-w(1040) mx-auto">    <header className="flex flex-col items-center gap-sm text-center">      <p className="eyebrow">Pricing</p>      <h2 className="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>      <p className="lead max-w(480)">        Every plan deploys the same way. You pay for the team, not for the traffic.      </p>    </header>    <div className="grid gap-md items-start grid-cols(3)@container(--4xl)">      <article className="sheet sheet-raised flex flex-col gap-lg p-lg">        <header className="flex flex-col gap-xs">          <div className="flex items-center justify-between gap-sm">            <h3 className="heading heading-sm">Hobby</h3>          </div>          <p className="price">            <span className="price-currency">$</span><span className="price-amount">0</span><span className="price-period">forever</span>          </p>          <p className="m(0) leading-md">For side projects and trying things out.</p>        </header>        <a className="btn" href="#">Start for free</a>        <ul className="bullets bullets-check">          <li className="bullets-item">One project</li>          <li className="bullets-item">Previews for every branch</li>          <li className="bullets-item">Community support</li>        </ul>      </article>      <article className="sheet flex flex-col gap-lg p-lg">        <header className="flex flex-col gap-xs">          <div className="flex items-center justify-between gap-sm">            <h3 className="heading heading-sm">Pro</h3>            <span className="badge badge-ink badge-pill">Most popular</span>          </div>          <p className="price">            <span className="price-currency">$</span><span className="price-amount">20</span><span className="price-period">per member, monthly</span>          </p>          <p className="m(0) leading-md">For teams that ship to real visitors.</p>        </header>        <a className="btn btn-brand" href="#">Start a trial</a>        <ul className="bullets bullets-check">          <li className="bullets-item">Unlimited projects</li>          <li className="bullets-item">Fourteen regions</li>          <li className="bullets-item">Analytics and firewall</li>          <li className="bullets-item">Email support, next day</li>        </ul>      </article>      <article className="sheet sheet-raised flex flex-col gap-lg p-lg">        <header className="flex flex-col gap-xs">          <div className="flex items-center justify-between gap-sm">            <h3 className="heading heading-sm">Enterprise</h3>          </div>          <p className="price"><span className="price-amount">Custom</span></p>          <p className="m(0) leading-md">For organizations with their own rules.</p>        </header>        <a className="btn" href="#">Talk to sales</a>        <ul className="bullets bullets-check">          <li className="bullets-item">Single sign-on and audit log</li>          <li className="bullets-item">A 99.99% uptime agreement</li>          <li className="bullets-item">A named engineer</li>          <li className="bullets-item">Invoices and purchase orders</li>        </ul>      </article>    </div>    <p className="m(0) text-center text-xs fg-text-muted">      Prices are in US dollars and exclude tax. Cancel any time.    </p>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="pricing-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col items-center gap-sm text-center">      <p class="eyebrow">Pricing</p>      <h2 class="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>      <p class="lead max-w(480)">        Every plan deploys the same way. You pay for the team, not for the traffic.      </p>    </header>    <div class="grid gap-md items-start grid-cols(3)@container(--4xl)">      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Hobby</h3>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">0</span><span class="price-period">forever</span>          </p>          <p class="m(0) leading-md">For side projects and trying things out.</p>        </header>        <a class="btn" href="#">Start for free</a>        <ul class="bullets bullets-check">          <li class="bullets-item">One project</li>          <li class="bullets-item">Previews for every branch</li>          <li class="bullets-item">Community support</li>        </ul>      </article>      <article class="sheet flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Pro</h3>            <span class="badge badge-ink badge-pill">Most popular</span>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">20</span><span class="price-period">per member, monthly</span>          </p>          <p class="m(0) leading-md">For teams that ship to real visitors.</p>        </header>        <a class="btn btn-brand" href="#">Start a trial</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Unlimited projects</li>          <li class="bullets-item">Fourteen regions</li>          <li class="bullets-item">Analytics and firewall</li>          <li class="bullets-item">Email support, next day</li>        </ul>      </article>      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Enterprise</h3>          </div>          <p class="price"><span class="price-amount">Custom</span></p>          <p class="m(0) leading-md">For organizations with their own rules.</p>        </header>        <a class="btn" href="#">Talk to sales</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Single sign-on and audit log</li>          <li class="bullets-item">A 99.99% uptime agreement</li>          <li class="bullets-item">A named engineer</li>          <li class="bullets-item">Invoices and purchase orders</li>        </ul>      </article>    </div>    <p class="m(0) text-center text-xs fg-text-muted">      Prices are in US dollars and exclude tax. Cancel any time.    </p>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="pricing-title">    <div class="flex flex-col gap-2xl max-w(1040) mx-auto">      <header class="flex flex-col items-center gap-sm text-center">        <p class="eyebrow">Pricing</p>        <h2 class="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>        <p class="lead max-w(480)">          Every plan deploys the same way. You pay for the team, not for the traffic.        </p>      </header>      <div class="grid gap-md items-start grid-cols(3)@container(--4xl)">        <article class="sheet sheet-raised flex flex-col gap-lg p-lg">          <header class="flex flex-col gap-xs">            <div class="flex items-center justify-between gap-sm">              <h3 class="heading heading-sm">Hobby</h3>            </div>            <p class="price">              <span class="price-currency">$</span><span class="price-amount">0</span><span class="price-period">forever</span>            </p>            <p class="m(0) leading-md">For side projects and trying things out.</p>          </header>          <a class="btn" href="#">Start for free</a>          <ul class="bullets bullets-check">            <li class="bullets-item">One project</li>            <li class="bullets-item">Previews for every branch</li>            <li class="bullets-item">Community support</li>          </ul>        </article>        <article class="sheet flex flex-col gap-lg p-lg">          <header class="flex flex-col gap-xs">            <div class="flex items-center justify-between gap-sm">              <h3 class="heading heading-sm">Pro</h3>              <span class="badge badge-ink badge-pill">Most popular</span>            </div>            <p class="price">              <span class="price-currency">$</span><span class="price-amount">20</span><span class="price-period">per member, monthly</span>            </p>            <p class="m(0) leading-md">For teams that ship to real visitors.</p>          </header>          <a class="btn btn-brand" href="#">Start a trial</a>          <ul class="bullets bullets-check">            <li class="bullets-item">Unlimited projects</li>            <li class="bullets-item">Fourteen regions</li>            <li class="bullets-item">Analytics and firewall</li>            <li class="bullets-item">Email support, next day</li>          </ul>        </article>        <article class="sheet sheet-raised flex flex-col gap-lg p-lg">          <header class="flex flex-col gap-xs">            <div class="flex items-center justify-between gap-sm">              <h3 class="heading heading-sm">Enterprise</h3>            </div>            <p class="price"><span class="price-amount">Custom</span></p>            <p class="m(0) leading-md">For organizations with their own rules.</p>          </header>          <a class="btn" href="#">Talk to sales</a>          <ul class="bullets bullets-check">            <li class="bullets-item">Single sign-on and audit log</li>            <li class="bullets-item">A 99.99% uptime agreement</li>            <li class="bullets-item">A named engineer</li>            <li class="bullets-item">Invoices and purchase orders</li>          </ul>        </article>      </div>      <p class="m(0) text-center text-xs fg-text-muted">        Prices are in US dollars and exclude tax. Cancel any time.      </p>    </div>  </section></template>

區塊提供可直接複製的標記,並沿用所在頁面的文字顏色和大小。預覽在 body 上套用 fg-text-body text-sm。每個區塊都是尺寸容器,會依自身寬度重新排列。

#組成

  • 將三張面板排成網格。 區塊寬度未達 56rem 時排成一欄,達到後用 grid-cols(3)@container(--4xl) 排成三欄。items-start 讓各方案的高度隨自己的清單長度調整。
  • 用陰影層級突顯推薦方案。 在使用 sheet-raised 的其他方案之間,推薦方案採用預設陰影層級的 sheet,再搭配 badge-ink 和頁面上唯一的 btn-brand。以陰影層級、文字和唯一的品牌色按鈕低調提示,邊框不另加強調色。
  • 價格使用價格元件:金額用大字,貨幣符號縮小並靠齊數字上緣,計費週期則用較淡的文字色放在一旁,與金額共用基線。
  • 按鈕放在清單前。 已經做出決定的訪客可以直接操作,無須先滑過功能清單。
  • 方案包含的項目用條列清單搭配 bullets-check:每行前方以高對比文字色呈現的勾號只作裝飾,文字本身就能讀懂。

按價格從低到高排列方案。若某個方案適合幾乎所有人,直接在該方案的說明中寫明,無須新增第四個方案。

#方案比較

在方案下方放一張表格,補充卡片難以回答的比較問題。每項功能占一列,每個方案占一欄。在窄螢幕上,表格可在面板內的捲動區域橫向捲動,有更多欄位的一側會以漸淡邊緣提示。

方案比較

<section class="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">  <div class="flex flex-col gap-xl max-w(880) mx-auto">    <h2 class="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>    <div class="sheet overflow-hidden">      <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-labelledby="pricing-compare-title">        <table class="table">          <thead>            <tr class="table-row">              <th class="table-heading" scope="col"><span class="sr-only">Feature</span></th>              <th class="table-heading" scope="col">Hobby</th>              <th class="table-heading" scope="col">Pro</th>              <th class="table-heading" scope="col">Enterprise</th>            </tr>          </thead>          <tbody>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Projects</th>              <td class="table-cell">1</td>              <td class="table-cell">Unlimited</td>              <td class="table-cell">Unlimited</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Regions</th>              <td class="table-cell">1</td>              <td class="table-cell">14</td>              <td class="table-cell">14</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Build minutes</th>              <td class="table-cell">100 a month</td>              <td class="table-cell">400 per member</td>              <td class="table-cell">Custom</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Analytics</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Firewall rules</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Single sign-on</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Uptime agreement</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">99.99%</td>            </tr>          </tbody>        </table>      </div>    </div>  </div></section>
import CheckIcon from '@master/icons-react/native/16/soft/check'<section className="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">  <div className="flex flex-col gap-xl max-w(880) mx-auto">    <h2 className="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>    <div className="sheet overflow-hidden">      <div className="scroll-area scroll-area-inline" tabIndex={0} role="region" aria-labelledby="pricing-compare-title">        <table className="table">          <thead>            <tr className="table-row">              <th className="table-heading" scope="col">                <span className="sr-only">Feature</span>              </th>              <th className="table-heading" scope="col">Hobby</th>              <th className="table-heading" scope="col">Pro</th>              <th className="table-heading" scope="col">Enterprise</th>            </tr>          </thead>          <tbody>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Projects</th>              <td className="table-cell">1</td>              <td className="table-cell">Unlimited</td>              <td className="table-cell">Unlimited</td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Regions</th>              <td className="table-cell">1</td>              <td className="table-cell">14</td>              <td className="table-cell">14</td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Build minutes</th>              <td className="table-cell">100 a month</td>              <td className="table-cell">400 per member</td>              <td className="table-cell">Custom</td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Analytics</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Firewall rules</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Single sign-on</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Uptime agreement</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">99.99%</td>            </tr>          </tbody>        </table>      </div>    </div>  </div></section>
<script>  import CheckIcon from '@master/icons-svelte/native/16/soft/check'</script><section class="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">  <div class="flex flex-col gap-xl max-w(880) mx-auto">    <h2 class="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>    <div class="sheet overflow-hidden">      <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-labelledby="pricing-compare-title">        <table class="table">          <thead>            <tr class="table-row">              <th class="table-heading" scope="col"><span class="sr-only">Feature</span></th>              <th class="table-heading" scope="col">Hobby</th>              <th class="table-heading" scope="col">Pro</th>              <th class="table-heading" scope="col">Enterprise</th>            </tr>          </thead>          <tbody>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Projects</th>              <td class="table-cell">1</td>              <td class="table-cell">Unlimited</td>              <td class="table-cell">Unlimited</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Regions</th>              <td class="table-cell">1</td>              <td class="table-cell">14</td>              <td class="table-cell">14</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Build minutes</th>              <td class="table-cell">100 a month</td>              <td class="table-cell">400 per member</td>              <td class="table-cell">Custom</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Analytics</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Firewall rules</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Single sign-on</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Uptime agreement</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">99.99%</td>            </tr>          </tbody>        </table>      </div>    </div>  </div></section>
<script setup>import CheckIcon from '@master/icons-vue/native/16/soft/check'</script><template>  <section class="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">    <div class="flex flex-col gap-xl max-w(880) mx-auto">      <h2 class="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>      <div class="sheet overflow-hidden">        <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-labelledby="pricing-compare-title">          <table class="table">            <thead>              <tr class="table-row">                <th class="table-heading" scope="col"><span class="sr-only">Feature</span></th>                <th class="table-heading" scope="col">Hobby</th>                <th class="table-heading" scope="col">Pro</th>                <th class="table-heading" scope="col">Enterprise</th>              </tr>            </thead>            <tbody>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Projects</th>                <td class="table-cell">1</td>                <td class="table-cell">Unlimited</td>                <td class="table-cell">Unlimited</td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Regions</th>                <td class="table-cell">1</td>                <td class="table-cell">14</td>                <td class="table-cell">14</td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Build minutes</th>                <td class="table-cell">100 a month</td>                <td class="table-cell">400 per member</td>                <td class="table-cell">Custom</td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Analytics</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Firewall rules</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Single sign-on</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Uptime agreement</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">99.99%</td>              </tr>            </tbody>          </table>        </div>      </div>    </div>  </section></template>

將勾號和短橫線對輔助技術隱藏,分別提供視覺隱藏的文字「包含」和「未包含」。捲動區域設有 tabindex="0",並以標題作為名稱,讓使用者能用鍵盤捲動。

#無障礙

  • 每個方案都是一個 <article>,方案名稱使用隸屬於區塊 <h2> 的 <h3>。
  • 徽章以「最受歡迎」標示推薦方案,避免只靠位置或陰影層級傳達。
  • 表格每列的第一格都是 <th scope="row">,讓輔助技術讀出儲存格內容時,也能讀出對應的功能和方案。
  • 在價格中寫明計費週期。只寫「$20」,價格資訊仍不完整。