An AI voice agent landing page template for 2027, built on a phone keypad

How our AI voice agent landing page template works: a live call on frosted glass over a photo, a waveform with a playhead, a call that becomes a work order, and every section as a key on the phone.

7 min read

The real component. Click the picture to open it live and try it before you read how it was built.

Voice agents are the hottest category in AI right now, and most of their sites show a glowing orb. This template shows the call itself.

A real call over a real photo

The hero's call sits on frosted glass over a photo of the moment it happens. Tonight's calls are tabs along the top; the open one plays itself, and picking another slides the highlight over and plays it from the start.

src/registry/landing-pages/porter/hero-call.tsx

"use client";

import { useState } from "react";
import { motion } from "motion/react";
import { SPRING_SNAPPY } from "@/lib/motion";
import { cn } from "@/lib/utils";
import { LiveCall } from "./live-call";
import type { Call } from "./types";

interface HeroCallProps {
  calls: Call[];
  building: string;
  startId: string;
}

// The live call on frosted glass over the hero's photo. Tonight's calls sit as tabs along its top, each with its
// time; the open one plays itself, and picking another slides the highlight over and plays that call from the start.
export function HeroCall({ calls, building, startId }: HeroCallProps) {
  const [openId, setOpenId] = useState(startId);
  const [plays, setPlays] = useState(0);
  const open = calls.find((call) => call.id === openId) ?? calls[0];
  const play = (id: string) => {
    setOpenId(id);
    setPlays((count) => count + 1);
  };

  return (
    <div className="rounded-3xl bg-white p-2 shadow-2xl ring-1 shadow-stone-950/40 ring-stone-950/5">
      <div
        role="tablist"
        aria-label="Tonight's calls"
        className="flex gap-1 overflow-x-auto rounded-2xl bg-stone-900/5 p-1"
      >
        {calls.map((call) => (
          <button
            key={call.id}
            type="button"
            role="tab"
            aria-selected={call.id === open.id}
            onClick={() => play(call.id)}
            className="relative shrink-0 rounded-xl px-3 py-1.5 text-left text-xs outline-none focus-visible:ring-2 focus-visible:ring-red-600"
          >
            {call.id === open.id && (
              <motion.span
                layoutId="porter-hero-call"
                transition={SPRING_SNAPPY}
                className="absolute inset-0 rounded-xl bg-white shadow-sm"
              />
            )}
            <span className="relative block text-2xs text-stone-400 tabular-nums">{call.time}</span>
            <span className={cn("relative font-medium", call.id === open.id ? "text-stone-950" : "text-stone-500")}>
              {call.topic}
            </span>
          </button>
        ))}
      </div>
      <LiveCall
        key={`${open.id}-${plays}`}
        call={open}
        building={building}
        onReplay={() => play(open.id)}
        className="p-4"
      />
    </div>
  );
}
The live call

A waveform that doesn't relayout

The call's waveform is fine vertical bars in the text colour. The played part is the same bars printed again on top and clipped to the progress, with a red playhead at the edge, so nothing re-lays out while it plays.

src/registry/landing-pages/porter/call-wave.tsx

import { cn } from "@/lib/utils";
import { waveHeights } from "./wave";

const BAR_COUNT = 72;

interface CallWaveProps {
  seed: number;
  // How much of the call has played, 0 to 1. The played part is lit; the playhead sits at its edge.
  progress: number;
  className?: string;
}

// A call's waveform drawn as fine vertical bars in the text colour: the unplayed part faint, the played part solid
// (printed again on top and clipped to the progress, so nothing re-lays out), and a red playhead at the edge.
export function CallWave({ seed, progress, className }: CallWaveProps) {
  const heights = waveHeights(seed, BAR_COUNT);
  const bars = (tone: string) => (
    <div className="flex h-full items-center gap-0.5">
      {heights.map((height, index) => (
        <span key={index} style={{ height: `${height * 100}%` }} className={cn("w-0.5 flex-1 rounded-full", tone)} />
      ))}
    </div>
  );
  const remaining = `${(1 - progress) * 100}%`;

  return (
    <div aria-hidden className={cn("relative h-10 min-w-0 overflow-hidden", className)}>
      {bars("bg-current opacity-25")}
      <div style={{ clipPath: `inset(0 ${remaining} 0 0)` }} className="absolute inset-0">
        {bars("bg-current")}
      </div>
      {progress > 0 && progress < 1 && (
        <span style={{ left: `${progress * 100}%` }} className="absolute inset-y-0 w-0.5 bg-red-600" />
      )}
    </div>
  );
}
The waveform

The call becomes a work order

As the caller speaks, the phrases the agent took fields from are marked in place and numbered like the field they filled. The page's sections are keys on a phone keypad, and the closing is a phone you can actually dial.

src/registry/landing-pages/porter/call-to-ticket.tsx

"use client";

import { type ReactNode, useEffect, useRef, useState } from "react";
import { useInView } from "motion/react";
import { usePrefersReducedMotion } from "@/hooks/use-prefers-reduced-motion";
import { cn } from "@/lib/utils";
import type { Call, PorterContent } from "./types";
import { WorkOrder } from "./work-order";

// How long Porter takes over each field of the work order.
const FIELD_MS = 1100;

interface Mark {
  phrase: string;
  number: number;
  isOn: boolean;
  isHot: boolean;
}

// A turn's words with the phrases Porter took fields from marked in place, each numbered like its field.
function markPhrases(text: string, marks: Mark[]): ReactNode[] {
  const found = marks
    .filter((mark) => text.includes(mark.phrase))
    .sort((a, b) => text.indexOf(a.phrase) - text.indexOf(b.phrase));
  const parts: ReactNode[] = [];
  let cursor = 0;
  for (const mark of found) {
    const at = text.indexOf(mark.phrase, cursor);
    if (at < 0) continue;
    parts.push(text.slice(cursor, at));
    parts.push(
      <mark
        key={mark.number}
        className={cn(
          "rounded-md bg-transparent text-inherit transition-colors duration-500",
          mark.isOn && "bg-red-100 px-0.5",
          mark.isHot && "bg-red-200 ring-2 ring-red-300",
        )}
      >
        {mark.phrase}
        {mark.isOn && <sup className="ml-0.5 text-2xs font-semibold text-red-600">{mark.number}</sup>}
      </mark>,
    );
    cursor = at + mark.phrase.length;
  }
  parts.push(text.slice(cursor));
  return parts;
}

interface CallToTicketProps {
  call: Call;
  ticket: PorterContent["ticket"];
  building: string;
}

// The call on the left, the caller's words large and Porter's small, and the work order on the right. As it plays,
// each phrase Porter used lights up and gets a number while the matching field fills in the ticket; pointing at a
// field lights its phrase again, so you can see exactly what Porter understood and from where.
export function CallToTicket({ call, ticket, building }: CallToTicketProps) {
  const ref = useRef<HTMLDivElement>(null);
  const isInView = useInView(ref, { once: true, amount: 0.4 });
  const isReduced = usePrefersReducedMotion();
  const [step, setStep] = useState(0);
  const [runs, setRuns] = useState(0);
  const [hovered, setHovered] = useState<number | null>(null);
  const total = ticket.fields.length;
  const filled = isReduced ? total : step;

  useEffect(() => {
    if (!isInView || isReduced) return;
    const timer = window.setInterval(() => setStep((value) => Math.min(total, value + 1)), FIELD_MS);
    return () => window.clearInterval(timer);
  }, [isInView, isReduced, runs, total]);

  const replay = () => {
    setStep(0);
    setRuns((count) => count + 1);
  };
  const marksFor = (turn: number): Mark[] =>
    ticket.fields.flatMap((field, index) =>
      field.turn === turn && field.phrase
        ? [{ phrase: field.phrase, number: index + 1, isOn: index < filled, isHot: hovered === index }]
        : [],
    );

  return (
    <div ref={ref} className="grid grid-cols-1 gap-6 lg:grid-cols-12 lg:items-start">
      <div className="flex flex-col gap-6 rounded-3xl bg-stone-50 p-6 ring-1 ring-stone-100 sm:p-8 lg:col-span-6">
        <p className="text-xs text-stone-500">
          <span className="font-semibold text-stone-950">{call.caller}</span> · Unit {call.unit} · {call.time} ·{" "}
          {call.length}
        </p>
        {call.turns.map((turn, index) => (
          <p
            key={index}
            className={
              turn.speaker === "porter"
                ? "text-sm text-pretty text-stone-500"
                : "text-xl leading-snug font-medium text-pretty text-stone-950 sm:text-2xl"
            }
          >
            <span className="mb-1 block text-xs font-medium text-stone-400">
              {turn.speaker === "porter" ? "Porter" : call.caller.split(" ")[0]}
            </span>
            {markPhrases(turn.text, marksFor(index))}
          </p>
        ))}
      </div>
      <div className="lg:col-span-6">
        <WorkOrder
          ticket={ticket}
          building={building}
          filled={filled}
          hovered={hovered}
          onHover={setHovered}
          onReplay={replay}
        />
      </div>
    </div>
  );
}
From call to ticket

More articles