导航

v2.1.0
营销区块

集成

产品可以对接的服务,既可供浏览,也可列为连接及其状态。

集成区块展示产品可以对接哪些服务,以及每个连接能做什么。在营销页面上,它是供人浏览的:访客会寻找自己团队已经在用的工具。每个服务是一张卡片,通往它自己的页面。

集成

<section class="container-inline px-lg py-4xl" aria-labelledby="integrations-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">Integrations</p>      <h2 class="heading heading-2xl" id="integrations-title">        Atlas fits the tools you already use.      </h2>      <p class="lead max-w(520)">        Connect a repository and deploy on every push. Then send what happens to where your team already looks.      </p>    </header>    <ul class="grid gap-md m(0) p(0) grid-cols(2)@container(--2xl) grid-cols(3)@container(--5xl)">      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">GH</span><a class="card-link" href="#integrations-title">GitHub</a>          </h3>          <span class="badge card-action self-center">Source</span>        </header>        <div class="card-body">          Deploy on every push, with a check and a preview link on each pull request.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">GL</span><a class="card-link" href="#integrations-title">GitLab</a>          </h3>          <span class="badge card-action self-center">Source</span>        </header>        <div class="card-body">          The same pipeline for merge requests, on gitlab.com or a server of your own.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">SL</span><a class="card-link" href="#integrations-title">Slack</a>          </h3>          <span class="badge card-action self-center">Chat</span>        </header>        <div class="card-body">          A message in the channel you choose when a deployment is ready, or when it fails.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">LI</span><a class="card-link" href="#integrations-title">Linear</a>          </h3>          <span class="badge card-action self-center">Issues</span>        </header>        <div class="card-body">          Every preview is linked from the issue it closes, and the issue moves when it ships.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">DD</span><a class="card-link" href="#integrations-title">Datadog</a>          </h3>          <span class="badge card-action self-center">Monitoring</span>        </header>        <div class="card-body">          Edge logs and build times in the dashboards your on-call engineer already reads.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">SE</span><a class="card-link" href="#integrations-title">Sentry</a>          </h3>          <span class="badge card-action self-center">Errors</span>        </header>        <div class="card-body">          Each error is tagged with the deployment that introduced it, one click from a rollback.        </div>      </li>    </ul>    <p class="m(0) text-center fg-text-muted">      Something missing? <a class="link" href="#integrations-title">Build an integration</a> with the Atlas API.    </p>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="integrations-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">Integrations</p>      <h2 className="heading heading-2xl" id="integrations-title">        Atlas fits the tools you already use.      </h2>      <p className="lead max-w(520)">        Connect a repository and deploy on every push. Then send what happens to where your team already looks.      </p>    </header>    <ul className="grid gap-md m(0) p(0) grid-cols(2)@container(--2xl) grid-cols(3)@container(--5xl)">      <li className="card">        <header className="card-header">          <h3 className="card-title flex items-center gap-sm">            <span className="avatar avatar-square" aria-hidden="true">GH</span><a className="card-link" href="#integrations-title">GitHub</a>          </h3>          <span className="badge card-action self-center">Source</span>        </header>        <div className="card-body">          Deploy on every push, with a check and a preview link on each pull request.        </div>      </li>      <li className="card">        <header className="card-header">          <h3 className="card-title flex items-center gap-sm">            <span className="avatar avatar-square" aria-hidden="true">GL</span><a className="card-link" href="#integrations-title">GitLab</a>          </h3>          <span className="badge card-action self-center">Source</span>        </header>        <div className="card-body">          The same pipeline for merge requests, on gitlab.com or a server of your own.        </div>      </li>      <li className="card">        <header className="card-header">          <h3 className="card-title flex items-center gap-sm">            <span className="avatar avatar-square" aria-hidden="true">SL</span><a className="card-link" href="#integrations-title">Slack</a>          </h3>          <span className="badge card-action self-center">Chat</span>        </header>        <div className="card-body">          A message in the channel you choose when a deployment is ready, or when it fails.        </div>      </li>      <li className="card">        <header className="card-header">          <h3 className="card-title flex items-center gap-sm">            <span className="avatar avatar-square" aria-hidden="true">LI</span><a className="card-link" href="#integrations-title">Linear</a>          </h3>          <span className="badge card-action self-center">Issues</span>        </header>        <div className="card-body">          Every preview is linked from the issue it closes, and the issue moves when it ships.        </div>      </li>      <li className="card">        <header className="card-header">          <h3 className="card-title flex items-center gap-sm">            <span className="avatar avatar-square" aria-hidden="true">DD</span><a className="card-link" href="#integrations-title">Datadog</a>          </h3>          <span className="badge card-action self-center">Monitoring</span>        </header>        <div className="card-body">          Edge logs and build times in the dashboards your on-call engineer already reads.        </div>      </li>      <li className="card">        <header className="card-header">          <h3 className="card-title flex items-center gap-sm">            <span className="avatar avatar-square" aria-hidden="true">SE</span><a className="card-link" href="#integrations-title">Sentry</a>          </h3>          <span className="badge card-action self-center">Errors</span>        </header>        <div className="card-body">          Each error is tagged with the deployment that introduced it, one click from a rollback.        </div>      </li>    </ul>    <p className="m(0) text-center fg-text-muted">      Something missing? <a className="link" href="#integrations-title">Build an integration</a> with the Atlas API.    </p>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="integrations-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">Integrations</p>      <h2 class="heading heading-2xl" id="integrations-title">        Atlas fits the tools you already use.      </h2>      <p class="lead max-w(520)">        Connect a repository and deploy on every push. Then send what happens to where your team already looks.      </p>    </header>    <ul class="grid gap-md m(0) p(0) grid-cols(2)@container(--2xl) grid-cols(3)@container(--5xl)">      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">GH</span><a class="card-link" href="#integrations-title">GitHub</a>          </h3>          <span class="badge card-action self-center">Source</span>        </header>        <div class="card-body">          Deploy on every push, with a check and a preview link on each pull request.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">GL</span><a class="card-link" href="#integrations-title">GitLab</a>          </h3>          <span class="badge card-action self-center">Source</span>        </header>        <div class="card-body">          The same pipeline for merge requests, on gitlab.com or a server of your own.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">SL</span><a class="card-link" href="#integrations-title">Slack</a>          </h3>          <span class="badge card-action self-center">Chat</span>        </header>        <div class="card-body">          A message in the channel you choose when a deployment is ready, or when it fails.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">LI</span><a class="card-link" href="#integrations-title">Linear</a>          </h3>          <span class="badge card-action self-center">Issues</span>        </header>        <div class="card-body">          Every preview is linked from the issue it closes, and the issue moves when it ships.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">DD</span><a class="card-link" href="#integrations-title">Datadog</a>          </h3>          <span class="badge card-action self-center">Monitoring</span>        </header>        <div class="card-body">          Edge logs and build times in the dashboards your on-call engineer already reads.        </div>      </li>      <li class="card">        <header class="card-header">          <h3 class="card-title flex items-center gap-sm">            <span class="avatar avatar-square" aria-hidden="true">SE</span><a class="card-link" href="#integrations-title">Sentry</a>          </h3>          <span class="badge card-action self-center">Errors</span>        </header>        <div class="card-body">          Each error is tagged with the deployment that introduced it, one click from a rollback.        </div>      </li>    </ul>    <p class="m(0) text-center fg-text-muted">      Something missing? <a class="link" href="#integrations-title">Build an integration</a> with the Atlas API.    </p>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="integrations-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">Integrations</p>        <h2 class="heading heading-2xl" id="integrations-title">          Atlas fits the tools you already use.        </h2>        <p class="lead max-w(520)">          Connect a repository and deploy on every push. Then send what happens to where your team already looks.        </p>      </header>      <ul class="grid gap-md m(0) p(0) grid-cols(2)@container(--2xl) grid-cols(3)@container(--5xl)">        <li class="card">          <header class="card-header">            <h3 class="card-title flex items-center gap-sm">              <span class="avatar avatar-square" aria-hidden="true">GH</span><a class="card-link" href="#integrations-title">GitHub</a>            </h3>            <span class="badge card-action self-center">Source</span>          </header>          <div class="card-body">            Deploy on every push, with a check and a preview link on each pull request.          </div>        </li>        <li class="card">          <header class="card-header">            <h3 class="card-title flex items-center gap-sm">              <span class="avatar avatar-square" aria-hidden="true">GL</span><a class="card-link" href="#integrations-title">GitLab</a>            </h3>            <span class="badge card-action self-center">Source</span>          </header>          <div class="card-body">            The same pipeline for merge requests, on gitlab.com or a server of your own.          </div>        </li>        <li class="card">          <header class="card-header">            <h3 class="card-title flex items-center gap-sm">              <span class="avatar avatar-square" aria-hidden="true">SL</span><a class="card-link" href="#integrations-title">Slack</a>            </h3>            <span class="badge card-action self-center">Chat</span>          </header>          <div class="card-body">            A message in the channel you choose when a deployment is ready, or when it fails.          </div>        </li>        <li class="card">          <header class="card-header">            <h3 class="card-title flex items-center gap-sm">              <span class="avatar avatar-square" aria-hidden="true">LI</span><a class="card-link" href="#integrations-title">Linear</a>            </h3>            <span class="badge card-action self-center">Issues</span>          </header>          <div class="card-body">            Every preview is linked from the issue it closes, and the issue moves when it ships.          </div>        </li>        <li class="card">          <header class="card-header">            <h3 class="card-title flex items-center gap-sm">              <span class="avatar avatar-square" aria-hidden="true">DD</span><a class="card-link" href="#integrations-title">Datadog</a>            </h3>            <span class="badge card-action self-center">Monitoring</span>          </header>          <div class="card-body">            Edge logs and build times in the dashboards your on-call engineer already reads.          </div>        </li>        <li class="card">          <header class="card-header">            <h3 class="card-title flex items-center gap-sm">              <span class="avatar avatar-square" aria-hidden="true">SE</span><a class="card-link" href="#integrations-title">Sentry</a>            </h3>            <span class="badge card-action self-center">Errors</span>          </header>          <div class="card-body">            Each error is tagged with the deployment that introduced it, one click from a rollback.          </div>        </li>      </ul>      <p class="m(0) text-center fg-text-muted">        Something missing? <a class="link" href="#integrations-title">Build an integration</a> with the Atlas API.      </p>    </div>  </section></template>

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

#区块组成

  • 网格随区块宽度变化。 默认一列,达到 42rem 时两列,达到 64rem 时三列:grid-cols(2)@container(--2xl) grid-cols(3)@container(--5xl)。六个服务在每种列数下都能排满,不会有卡片单独落在一行。
  • 每个服务是列表项上的一个 card,也是一个链接。 名称是一个 <a class="card-link">,点击目标覆盖整张卡片;名称下的那句话叠在这个点击目标的上层,可以选中。
  • 使用字母标记,不用品牌标志。 一个 avatar avatar-square 放两个字母,使用系统自身的墨色,并设置 aria-hidden,因为名称就在它旁边。六种颜色的六个品牌标志会成为页面上最抢眼的东西,而且每个标志都有各自的使用规范。如果产品有权展示某个标志,就把它放进同一个方形中。
  • 服务的类型用 card-action 中的中性徽标表示:“Source”(代码托管)、“Chat”(聊天)、“Monitoring”(监控)。想找自己所用问题跟踪工具的访客,会先看徽标。
  • 用一句话说明结果,不讲机制:两者连接之后,团队能看到什么。
  • 为未列出的服务留一个入口,是网格下方一行弱化的文字。

#连接

在产品内部,同样的服务是设置页面中的一个连接列表,重要的是它们的状态。列表的每一行都是通往该集成自身页面的链接,连接、修改或移除都在那个页面上进行;状态是行尾的一个徽标。

连接

<section class="sheet container-inline flex flex-col max-w(640) mx-auto" aria-labelledby="connections-title">  <header class="flex flex-col gap-3xs px(18) pt-md pb-xs">    <h2 class="heading heading-sm" id="connections-title">Integrations</h2>    <p class="m(0) fg-text-muted">Services connected to the Atlas Labs workspace.</p>  </header>  <ul class="list list-interactive p-xs">    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">GH</span>        <span class="list-body">          <span class="list-title">GitHub</span>          <span class="list-description">atlas-labs</span>        </span>        <span class="list-end">          <span class="badge badge-success badge-dot">Connected</span><svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <path d="M7.5 4.5L12.8586 9.8586A0.2 0.2 0 0 1 12.8586 10.1414L7.5 15.5" />          </svg>        </span>      </a>    </li>    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">SL</span>        <span class="list-body">          <span class="list-title">Slack</span>          <span class="list-description">Access expired</span>        </span>        <span class="list-end">          <span class="badge badge-warning badge-dot">Reauthorize</span><svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <path d="M7.5 4.5L12.8586 9.8586A0.2 0.2 0 0 1 12.8586 10.1414L7.5 15.5" />          </svg>        </span>      </a>    </li>    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">LI</span>        <span class="list-body">          <span class="list-title">Linear</span>          <span class="list-description">Issues</span>        </span>        <span class="list-end">          <span class="badge">Not connected</span><svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <path d="M7.5 4.5L12.8586 9.8586A0.2 0.2 0 0 1 12.8586 10.1414L7.5 15.5" />          </svg>        </span>      </a>    </li>    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">SE</span>        <span class="list-body">          <span class="list-title">Sentry</span>          <span class="list-description">Errors</span>        </span>        <span class="list-end">          <span class="badge">Not connected</span><svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <path d="M7.5 4.5L12.8586 9.8586A0.2 0.2 0 0 1 12.8586 10.1414L7.5 15.5" />          </svg>        </span>      </a>    </li>  </ul></section>
import ChevronRightIcon from '@master/icons-react/native/20/soft/chevron-right'<section className="sheet container-inline flex flex-col max-w(640) mx-auto" aria-labelledby="connections-title">  <header className="flex flex-col gap-3xs px(18) pt-md pb-xs">    <h2 className="heading heading-sm" id="connections-title">Integrations</h2>    <p className="m(0) fg-text-muted">Services connected to the Atlas Labs workspace.</p>  </header>  <ul className="list list-interactive p-xs">    <li>      <a className="list-row" href="#connections-title">        <span className="avatar avatar-square list-media" aria-hidden="true">GH</span>        <span className="list-body">          <span className="list-title">GitHub</span>          <span className="list-description">atlas-labs</span>        </span>        <span className="list-end">          <span className="badge badge-success badge-dot">Connected</span><ChevronRightIcon className="icon" />        </span>      </a>    </li>    <li>      <a className="list-row" href="#connections-title">        <span className="avatar avatar-square list-media" aria-hidden="true">SL</span>        <span className="list-body">          <span className="list-title">Slack</span>          <span className="list-description">Access expired</span>        </span>        <span className="list-end">          <span className="badge badge-warning badge-dot">Reauthorize</span><ChevronRightIcon className="icon" />        </span>      </a>    </li>    <li>      <a className="list-row" href="#connections-title">        <span className="avatar avatar-square list-media" aria-hidden="true">LI</span>        <span className="list-body">          <span className="list-title">Linear</span>          <span className="list-description">Issues</span>        </span>        <span className="list-end">          <span className="badge">Not connected</span><ChevronRightIcon className="icon" />        </span>      </a>    </li>    <li>      <a className="list-row" href="#connections-title">        <span className="avatar avatar-square list-media" aria-hidden="true">SE</span>        <span className="list-body">          <span className="list-title">Sentry</span>          <span className="list-description">Errors</span>        </span>        <span className="list-end">          <span className="badge">Not connected</span><ChevronRightIcon className="icon" />        </span>      </a>    </li>  </ul></section>
<script>  import ChevronRightIcon from '@master/icons-svelte/native/20/soft/chevron-right'</script><section class="sheet container-inline flex flex-col max-w(640) mx-auto" aria-labelledby="connections-title">  <header class="flex flex-col gap-3xs px(18) pt-md pb-xs">    <h2 class="heading heading-sm" id="connections-title">Integrations</h2>    <p class="m(0) fg-text-muted">Services connected to the Atlas Labs workspace.</p>  </header>  <ul class="list list-interactive p-xs">    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">GH</span>        <span class="list-body">          <span class="list-title">GitHub</span>          <span class="list-description">atlas-labs</span>        </span>        <span class="list-end">          <span class="badge badge-success badge-dot">Connected</span><ChevronRightIcon class="icon" />        </span>      </a>    </li>    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">SL</span>        <span class="list-body">          <span class="list-title">Slack</span>          <span class="list-description">Access expired</span>        </span>        <span class="list-end">          <span class="badge badge-warning badge-dot">Reauthorize</span><ChevronRightIcon class="icon" />        </span>      </a>    </li>    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">LI</span>        <span class="list-body">          <span class="list-title">Linear</span>          <span class="list-description">Issues</span>        </span>        <span class="list-end">          <span class="badge">Not connected</span><ChevronRightIcon class="icon" />        </span>      </a>    </li>    <li>      <a class="list-row" href="#connections-title">        <span class="avatar avatar-square list-media" aria-hidden="true">SE</span>        <span class="list-body">          <span class="list-title">Sentry</span>          <span class="list-description">Errors</span>        </span>        <span class="list-end">          <span class="badge">Not connected</span><ChevronRightIcon class="icon" />        </span>      </a>    </li>  </ul></section>
<script setup>import ChevronRightIcon from '@master/icons-vue/native/20/soft/chevron-right'</script><template>  <section class="sheet container-inline flex flex-col max-w(640) mx-auto" aria-labelledby="connections-title">    <header class="flex flex-col gap-3xs px(18) pt-md pb-xs">      <h2 class="heading heading-sm" id="connections-title">Integrations</h2>      <p class="m(0) fg-text-muted">Services connected to the Atlas Labs workspace.</p>    </header>    <ul class="list list-interactive p-xs">      <li>        <a class="list-row" href="#connections-title">          <span class="avatar avatar-square list-media" aria-hidden="true">GH</span>          <span class="list-body">            <span class="list-title">GitHub</span>            <span class="list-description">atlas-labs</span>          </span>          <span class="list-end">            <span class="badge badge-success badge-dot">Connected</span><ChevronRightIcon class="icon" />          </span>        </a>      </li>      <li>        <a class="list-row" href="#connections-title">          <span class="avatar avatar-square list-media" aria-hidden="true">SL</span>          <span class="list-body">            <span class="list-title">Slack</span>            <span class="list-description">Access expired</span>          </span>          <span class="list-end">            <span class="badge badge-warning badge-dot">Reauthorize</span><ChevronRightIcon class="icon" />          </span>        </a>      </li>      <li>        <a class="list-row" href="#connections-title">          <span class="avatar avatar-square list-media" aria-hidden="true">LI</span>          <span class="list-body">            <span class="list-title">Linear</span>            <span class="list-description">Issues</span>          </span>          <span class="list-end">            <span class="badge">Not connected</span><ChevronRightIcon class="icon" />          </span>        </a>      </li>      <li>        <a class="list-row" href="#connections-title">          <span class="avatar avatar-square list-media" aria-hidden="true">SE</span>          <span class="list-body">            <span class="list-title">Sentry</span>            <span class="list-description">Errors</span>          </span>          <span class="list-end">            <span class="badge">Not connected</span><ChevronRightIcon class="icon" />          </span>        </a>      </li>    </ul>  </section></template>
  • 三种状态,各用一个词表示。 成功色调的“Connected”(已连接)、警告色调的“Reauthorize”(重新授权),以及中性的“Not connected”(未连接)。色调只是重复文字;从未连接过的服务并不是问题,因此不带色调。
  • 名称下的一行是该状态下最要紧的信息:连接到的账户、出了什么问题,或者它会是哪一类服务。它只占一行,因此只写几个词。
  • 整行都是链接。 list list-interactive 让每个 <a class="list-row"> 成为一个圆角点击目标,在触摸屏上高度至少为 44px。连接操作在这一行通往的页面上进行,由服务在那里请求它自己的授权;列表本身不会启动任何操作。
  • 标题区沿用各行的内缩。 行内容从 18px 处开始,即列表的 p-xs 加上行自身的 .625rem,因此标题区使用 px(18),标题的起点与字母标记对齐。

#无障碍

  • 每个区块是一个以其标题命名的 <section>。在网格中,每个服务的名称是一个 <h3>。
  • 一张卡片和一行各是一个链接,以其中的全部内容命名:“GitHub, atlas-labs, Connected”。状态是名称的一部分,因此谁都不必看到颜色。
  • 字母标记和箭头都设置了 aria-hidden。
  • 需要处理的行会在它的徽标和名称下的那一行中说明,不只靠色相表达。
  • 不要从行列表中直接打开授权窗口。按下“Slack”的用户期待的是 Slack 的页面,在提出任何请求之前,先说明将会共享哪些内容。