탐색

v2.2.1
마케팅 블록

작동 방식 신규

방문자가 하게 될 일을 순서대로 보여 주고, 각 단계가 남기는 결과를 함께 제시합니다.

“작동 방식” 블록은 방문자에게 시작을 요청하기 전에, 방문자가 하게 될 일을 실제로 하게 될 순서대로 안내합니다. 그리드로 배치한 순서 있는 목록이며, 각 단계에는 글로 쓴 번호, 제목, 한 문장, 그리고 그 단계가 남기는 결과를 보여 주는 작은 시트가 있습니다. 시트가 늘어선 줄이 곧 설득의 근거입니다. 그 줄을 따라 읽으면 제품이 한 번 실행된 셈입니다.

작동 방식

<section class="container-inline px-lg py-4xl" aria-labelledby="how-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">How it works</p>      <h2 class="heading heading-2xl" id="how-title">        From a repository to an address in three steps.      </h2>      <p class="lead">        There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.      </p>    </header>    <ol class="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">atlas-labs/storefront</span>          <span class="badge">Astro</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 1</p>          <h3 class="heading heading-sm">Connect a repository</h3>          <p class="m(0) leading-md">            Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <code class="code truncate">git push origin main</code>          <span class="badge badge-info badge-dot">Building</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 2</p>          <h3 class="heading heading-sm">Push as you always do</h3>          <p class="m(0) leading-md">            Every push starts a build. A branch gets a preview of its own, and main goes to production.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">storefront.atlas.dev</span>          <span class="badge badge-success badge-dot">Ready in 48s</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 3</p>          <h3 class="heading heading-sm">Share the address</h3>          <p class="m(0) leading-md">            The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.          </p>        </div>      </li>    </ol>    <div class="flex flex-wrap items-center gap-sm">      <a class="btn btn-brand btn-lg" href="#">Start deploying</a>      <a class="btn btn-lg" href="#">Read the docs</a>    </div>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="how-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">How it works</p>      <h2 className="heading heading-2xl" id="how-title">        From a repository to an address in three steps.      </h2>      <p className="lead">        There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.      </p>    </header>    <ol className="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">      <li className="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div className="sheet flex items-center justify-between gap-sm px-md py-sm">          <span className="fg-text-strong truncate">atlas-labs/storefront</span>          <span className="badge">Astro</span>        </div>        <div className="flex flex-col gap-xs">          <p className="eyebrow">Step 1</p>          <h3 className="heading heading-sm">Connect a repository</h3>          <p className="m(0) leading-md">            Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.          </p>        </div>      </li>      <li className="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div className="sheet flex items-center justify-between gap-sm px-md py-sm">          <code className="code truncate">git push origin main</code>          <span className="badge badge-info badge-dot">Building</span>        </div>        <div className="flex flex-col gap-xs">          <p className="eyebrow">Step 2</p>          <h3 className="heading heading-sm">Push as you always do</h3>          <p className="m(0) leading-md">            Every push starts a build. A branch gets a preview of its own, and main goes to production.          </p>        </div>      </li>      <li className="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div className="sheet flex items-center justify-between gap-sm px-md py-sm">          <span className="fg-text-strong truncate">storefront.atlas.dev</span>          <span className="badge badge-success badge-dot">Ready in 48s</span>        </div>        <div className="flex flex-col gap-xs">          <p className="eyebrow">Step 3</p>          <h3 className="heading heading-sm">Share the address</h3>          <p className="m(0) leading-md">            The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.          </p>        </div>      </li>    </ol>    <div className="flex flex-wrap items-center gap-sm">      <a className="btn btn-brand btn-lg" href="#">Start deploying</a>      <a className="btn btn-lg" href="#">Read the docs</a>    </div>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="how-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">How it works</p>      <h2 class="heading heading-2xl" id="how-title">        From a repository to an address in three steps.      </h2>      <p class="lead">        There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.      </p>    </header>    <ol class="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">atlas-labs/storefront</span>          <span class="badge">Astro</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 1</p>          <h3 class="heading heading-sm">Connect a repository</h3>          <p class="m(0) leading-md">            Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <code class="code truncate">git push origin main</code>          <span class="badge badge-info badge-dot">Building</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 2</p>          <h3 class="heading heading-sm">Push as you always do</h3>          <p class="m(0) leading-md">            Every push starts a build. A branch gets a preview of its own, and main goes to production.          </p>        </div>      </li>      <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">        <div class="sheet flex items-center justify-between gap-sm px-md py-sm">          <span class="fg-text-strong truncate">storefront.atlas.dev</span>          <span class="badge badge-success badge-dot">Ready in 48s</span>        </div>        <div class="flex flex-col gap-xs">          <p class="eyebrow">Step 3</p>          <h3 class="heading heading-sm">Share the address</h3>          <p class="m(0) leading-md">            The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.          </p>        </div>      </li>    </ol>    <div class="flex flex-wrap items-center gap-sm">      <a class="btn btn-brand btn-lg" href="#">Start deploying</a>      <a class="btn btn-lg" href="#">Read the docs</a>    </div>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="how-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">How it works</p>        <h2 class="heading heading-2xl" id="how-title">          From a repository to an address in three steps.        </h2>        <p class="lead">          There is nothing to install and no pipeline to write. Atlas reads the repository and does the rest.        </p>      </header>      <ol class="grid gap-xl row-gap-2xl m(0) p(0) grid-cols(3)@container(--4xl)">        <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">          <div class="sheet flex items-center justify-between gap-sm px-md py-sm">            <span class="fg-text-strong truncate">atlas-labs/storefront</span>            <span class="badge">Astro</span>          </div>          <div class="flex flex-col gap-xs">            <p class="eyebrow">Step 1</p>            <h3 class="heading heading-sm">Connect a repository</h3>            <p class="m(0) leading-md">              Sign in with your Git host and pick a repository. Atlas recognizes the framework and fills in the build command.            </p>          </div>        </li>        <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">          <div class="sheet flex items-center justify-between gap-sm px-md py-sm">            <code class="code truncate">git push origin main</code>            <span class="badge badge-info badge-dot">Building</span>          </div>          <div class="flex flex-col gap-xs">            <p class="eyebrow">Step 2</p>            <h3 class="heading heading-sm">Push as you always do</h3>            <p class="m(0) leading-md">              Every push starts a build. A branch gets a preview of its own, and main goes to production.            </p>          </div>        </li>        <li class="grid gap-md items-start grid-cols(2)@container(--xl) grid-cols(1)@container(--4xl)">          <div class="sheet flex items-center justify-between gap-sm px-md py-sm">            <span class="fg-text-strong truncate">storefront.atlas.dev</span>            <span class="badge badge-success badge-dot">Ready in 48s</span>          </div>          <div class="flex flex-col gap-xs">            <p class="eyebrow">Step 3</p>            <h3 class="heading heading-sm">Share the address</h3>            <p class="m(0) leading-md">              The deployment is live in fourteen regions with a certificate in place. Add your own domain when you are ready.            </p>          </div>        </li>      </ol>      <div class="flex flex-wrap items-center gap-sm">        <a class="btn btn-brand btn-lg" href="#">Start deploying</a>        <a class="btn btn-lg" href="#">Read the docs</a>      </div>    </div>  </section></template>

블록은 복사해 사용하는 마크업입니다. 페이지의 텍스트 색상과 크기를 따르며, 미리보기에서는 body에 fg-text-body text-sm 클래스를 설정합니다. 각 블록은 크기 컨테이너이므로 넓은 페이지, 사이드바 너비의 공간, 대화 상자 어디서든 자체 너비에 맞춰 배치가 바뀝니다.

#구성 요소

  • 단계는 <ol>입니다. 순서 자체가 내용이므로 요소가 그것을 알립니다. 스크린 리더는 “목록, 항목 3개”와 각 단계의 위치를 안내합니다. 목록은 그리드이며, 한 열이었다가 grid-cols(3)@container(--4xl)로 세 열이 됩니다. 각 항목도 그리드여서 마커를 그리지 않으므로, 글로 쓴 번호 옆에 브라우저 자체의 번호가 함께 찍히지 않습니다.
  • 번호는 제목 위 안내 문구인 “Step 1”(1단계)입니다. 블록 자체의 안내 문구가 블록 제목 위에 놓이듯, 단계의 <h3> 위에 놓인 <p>입니다. 원 안에 그린 숫자는 새로 만들어야 할 모양이 하나 더 늘어나는 것이고, <h3> 안에 숫자를 써 넣으면 제목 목록이 “1 Connect a repository”로 읽히게 됩니다.
  • 각 단계는 자신이 남기는 결과를 보여 줍니다. 작은 sheet에 한 줄이 들어갑니다. 저장소와 감지된 프레임워크, 명령과 그 명령이 시작한 빌드, 주소와 걸린 시간입니다. 글은 거기에 무엇이 있는지 밝히고, 배지는 그 상태를 알립니다. 세 열일 때는 그림이 카드 제목 위에 놓이듯 시트가 텍스트 위에 놓이므로, 문장 길이와 상관없이 세 시트가 나란히 정렬됩니다. 휴대폰 너비와 세 열이 되는 너비 사이에서는 단계가 하나의 행이 되어 시트가 글 옆에 놓입니다. 태블릿 너비를 가로지르는 텍스트 한 줄은 읽기에 너무 길고, 그만큼 넓은 시트는 대부분 비어 있기 때문입니다.
  • 이 표시들은 상태(status)이므로 색조를 쓸 수 있습니다. “Building”(빌드 중)은 정보 톤, “Ready in 48s”(48초 만에 준비됨)는 성공 톤이며, 각각 점이 있고 톤이 뜻하는 바를 글로도 알립니다. 프레임워크 이름은 상태가 아니므로 중립색을 유지합니다.
  • 단계는 제목 하나와 한 문장입니다. 세 단계는 간단하다는 약속입니다. 솔직하게 센 단계가 일곱 개라면 이 블록은 맞지 않습니다. 그것은 문서입니다.
  • 요청은 단계 앞이 아니라 뒤에 옵니다. “Start deploying”(배포 시작)은 페이지에서 하나뿐인 btn-brand이며, 그 옆에 더 읽어 볼 수 있는 링크를 둡니다.

#접근성

  • 블록은 <h2>로 이름을 지정한 <section>입니다. 단계는 한 수준 아래인 <h3>입니다.
  • <ol>을 유지합니다. 여기서는 어디에도 list-style: none을 설정하지 않습니다. Safari에서는 이 선언이 마커와 함께 목록의 역할까지 없앱니다.
  • 각 시트 안의 한 줄은 단계를 보여 주는 예시이며, 단계 제목보다 먼저 단계와 함께 읽힙니다. 텍스트로 유지합니다. 그 자리에 스크린샷을 넣는다면 단계가 무엇을 만들어 냈는지 알리는 alt가 필요합니다.
  • 배지의 톤만으로 상태를 전달하지 않습니다. “Building”과 “Ready in 48s”라는 글이 강제 색상 모드와 흑백 인쇄에서도 상태를 전달합니다.