Skip to content

How It Works 1

Three numbered steps joined by a dashed connector, each with a checklist.

01 / 01

Installation

Run this in a project that already uses shadcn/ui. The CLI adds the block, its components and npm dependencies.

pnpm dlx shadcn@latest add https://ui.sumansharma.info.np/r/how-it-works-1.json
Prefer to iterate with AI?Open in

Usage

The CLI writes the block to components/how-it-works-1.tsx. Import it anywhere:

Loading...

Source

The CLI writes this component to components/how-it-works-1.tsx.

import { Check, Rocket, Settings2, UserPlus } from 'lucide-react'

const steps = [
    {
        icon: UserPlus,
        title: 'Create your workspace',
        body: 'Sign up with your work email and invite your team. It takes under a minute.',
        detail: ['Free for up to 3 people', 'No credit card required'],
    },
    {
        icon: Settings2,
        title: 'Connect your tools',
        body: 'Import projects from GitHub, Linear or a CSV and pick the integrations you need.',
        detail: ['80+ integrations', 'Two-way sync'],
    },
    {
        icon: Rocket,
        title: 'Ship with confidence',
        body: 'Track progress in real time, automate the busywork and release on schedule.',
        detail: ['Automated reports', 'Release checklists'],
    },
]

export default function HowItWorks() {
    return (
        <section className="py-16 md:py-24">
            <div className="mx-auto max-w-6xl px-6">
                <div className="mx-auto max-w-2xl text-center">
                    <p className="text-muted-foreground text-sm font-medium">How it works</p>
                    <h2 className="mt-2 text-balance text-4xl font-semibold lg:text-5xl">Up and running in three steps</h2>
                </div>

                <ol className="relative mt-16 grid gap-10 md:grid-cols-3 md:gap-6">
                    {/* Connector line behind the step badges on desktop */}
                    <span
                        aria-hidden
                        className="absolute left-[16.66%] right-[16.66%] top-6 hidden border-t border-dashed md:block"
                    />
                    {steps.map(({ icon: Icon, title, body, detail }, i) => (
                        <li
                            key={title}
                            className="relative flex flex-col items-center text-center">
                            <span className="bg-background relative flex size-12 items-center justify-center rounded-full border shadow-sm">
                                <Icon className="size-5" />
                                <span className="bg-foreground text-background absolute -right-1 -top-1 flex size-5 items-center justify-center rounded-full text-[11px] font-semibold">{i + 1}</span>
                            </span>
                            <h3 className="mt-6 text-lg font-semibold">{title}</h3>
                            <p className="text-muted-foreground mt-2 max-w-xs text-pretty text-sm">{body}</p>
                            <ul className="mt-5 space-y-1.5 text-sm">
                                {detail.map((d) => (
                                    <li
                                        key={d}
                                        className="flex items-center justify-center gap-2">
                                        <Check className="size-3.5 text-emerald-600 dark:text-emerald-400" />
                                        {d}
                                    </li>
                                ))}
                            </ul>
                        </li>
                    ))}
                </ol>
            </div>
        </section>
    )
}