Skip to main content
⌘K

Search

Search pages, pieces and blocks.

Steps/A Section header and how something works in four numbered steps, across on wide screens, down on a phone.

components/blocks/steps.tsx
import {  PageHeader,  PageHeaderContent,  PageHeaderDescription,  PageHeaderTitle,} from "@/components/ui/page-header"import { Stepper, StepperItem } from "@/components/ui/stepper"
// Steps: a Section header and how booking a lesson works, in four numbered// steps. Stepper in the plain look (every step the same, no status) and the// responsive orientation: across from 672px, down on a phone.
const steps = [  { title: "Pick a beach", description: "Seven schools, from Ericeira in the north to Sagres in the south." },  { title: "Choose a lesson", description: "Beginner, Improver or Private, in the morning or the afternoon." },  { title: "Hold the place", description: "Pay by card. A weather hold moves the lesson or refunds the full price." },  { title: "Meet on the sand", description: "Fifteen minutes early, with the board and wetsuit already waiting." },]
function StepsBlock() {  return (    <section className="mx-auto flex w-full max-w-6xl flex-col gap-10 px-6 py-16 md:py-24">      <PageHeader>        <PageHeaderContent className="max-w-xl">          <PageHeaderTitle level={2} size="heading">From the sofa to the sea</PageHeaderTitle>          <PageHeaderDescription>Booking a lesson takes about a minute.</PageHeaderDescription>        </PageHeaderContent>      </PageHeader>      <Stepper look="plain" orientation="responsive" aria-label="How booking works">        {steps.map((step) => (          <StepperItem key={step.title} title={step.title} description={step.description} />        ))}      </Stepper>    </section>  )}
export { StepsBlock }