Marketing blocks
How it works New
What a visitor will do, in order, with what each step leaves behind.
A "how it works" block walks a visitor through what they will do, in the order they will do it, before they are asked to start. It is an ordered list set as a grid: each step has its number in words, a title, one sentence, and a small sheet that shows what the step leaves behind. The row of sheets is the argument: read across it and the product has run once.
How it works
<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>Blocks are markup to copy. They take the page's own text color and size; the previews set fg-text-body text-sm on the body. Each block is a size container, so it reflows by its own width: in a wide page, a sidebar's worth of room or a dialog.
#What is in it
- The steps are an
<ol>. The order is the content, so the element says it: a screen reader announces "list, 3 items" and each step's place. The list is a grid, one column that becomes three withgrid-cols(3)@container(--4xl). Each item is a grid too, which draws no marker, so the browser's own numbers are not printed beside the ones written in words. - The number is an eyebrow, "Step 1". It is a
<p>over the step's<h3>, as the block's own eyebrow is over its title. A numeral drawn in a circle would be one more shape to invent, and a number written into the<h3>would make a list of headings read "1 Connect a repository". - Each step shows what it leaves behind. A small
sheetholds one line: the repository and the framework that was found, the command and the build it started, the address and how long it took. The words name what is there, and a badge says its state. In three columns they stand over the text, as a picture stands over a card's title, so the three line up whatever the length of the sentences. Between a phone and that width a step is a row instead, its sheet beside its words: a line of text across a tablet is too long to read, and a sheet that wide is mostly empty. - The states are statuses, so they may take a hue. "Building" is the info tone and "Ready in 48s" the success tone, each with a dot and each saying in words what the tone says. The framework's name is no status and stays neutral.
- A step is a title and one sentence. Three steps is a promise that it is simple. If the honest count is seven, this block is the wrong one: that is documentation.
- The ask comes after the steps, not before: "Start deploying" is the page's one
btn-brand, with the way to read more beside it.
#Accessibility
- The block is a
<section>named by its<h2>. The steps are<h3>, one level down. - Keep the
<ol>. Nothing here setslist-style: none, which in Safari would take the list's role away along with its markers. - The line in each sheet is an illustration of the step and is read with it, before the step's title. Keep it text: a screenshot in its place needs an
altthat says what the step produced. - A badge's tone is never the only signal. The words "Building" and "Ready in 48s" carry the state in forced colors and in a monochrome print.
#Related
- HeadingA title in the ink of the page, with the line over it and the paragraph under it.
- SurfaceTrays, sheets and wells: the material ladder every component is built on.
- BadgeA small chip for a status, a category or a count.
- CodeLiteral text in the mono face, inline or as a block.
- ButtonA raised control that lifts on hover and sinks when pressed.