A POS and payments landing page template for 2027: tap a card, watch it ring up

How our payments and point-of-sale landing page template works: a card terminal drawn in code you tap a card on, a live payments dashboard, a best-hour heat grid and a fee calculator written out as a check.

7 min read

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

A payments company sells one moment: a card tapped on a reader and money arriving. This template lets the visitor do exactly that, then shows where the money goes.

A terminal drawn in code

The reader is a device made of markup: a graphite body, the four contactless lights that come on one after another while it reads, and a checkout screen. Drag the debit card onto it, or press the button, and the sale is approved.

src/registry/landing-pages/tender/card-terminal.tsx

"use client";

import type { Ref } from "react";
import { motion } from "motion/react";
import { cn } from "@/lib/utils";
import { TenderMark } from "./tender-mark";
import { TerminalScreen } from "./terminal-screen";
import type { IncomingSale, TapPhase, TenderContent } from "./types";

// Every contactless reader has four status lights that come on one after another while it reads a card.
const LIGHTS = 4;
const LIGHT_STEP = 0.16;

interface CardTerminalProps {
  screen: TenderContent["hero"]["counter"]["screen"];
  phase: TapPhase;
  sale: IncomingSale;
  // What the screen shows once approved, and which card paid.
  approved: string;
  paidWith: string;
  ref?: Ref<HTMLDivElement>;
  className?: string;
}

// Tender's terminal, drawn as a device: a graphite body with a lit top edge, the four contactless lights, the checkout
// screen set into it, a button on the side, and a chin with the mark and the chip slot like a real terminal.
export function CardTerminal({ screen, phase, sale, approved, paidWith, ref, className }: CardTerminalProps) {
  const isReading = phase !== "idle";
  return (
    <div
      ref={ref}
      className={cn(
        "relative flex h-112 w-64 flex-col items-center rounded-3xl bg-linear-to-b from-zinc-700 via-zinc-900 to-zinc-950 p-3 pt-4 shadow-2xl ring-1 inset-shadow-sm shadow-zinc-950/40 ring-zinc-950 inset-shadow-white/25",
        className,
      )}
    >
      <span aria-hidden className="flex gap-2">
        {Array.from({ length: LIGHTS }, (_, light) => (
          <motion.span
            key={light}
            animate={{ opacity: isReading ? 1 : 0.35 }}
            transition={{ delay: isReading ? light * LIGHT_STEP : 0, duration: 0.15 }}
            className={cn(
              "size-1.5 rounded-full transition-colors",
              isReading ? "bg-marigold shadow-sm shadow-marigold" : "bg-zinc-500",
            )}
          />
        ))}
      </span>
      <TerminalScreen
        screen={screen}
        phase={phase}
        sale={sale}
        approved={approved}
        paidWith={paidWith}
        className="mt-3 flex-1"
      />
      <TenderMark className="mt-4 size-5 text-zinc-600" />
      <span aria-hidden className="mt-3 mb-1 h-1.5 w-32 rounded-full bg-black inset-shadow-xs inset-shadow-black" />
      <span aria-hidden className="absolute top-28 -right-1 h-12 w-1 rounded-r-sm bg-zinc-800" />
    </div>
  );
}
The card terminal

The sale lands in a real dashboard

Below the hero, the shop's dashboard updates with every tap: today's sales with the latest one popping in, tonight's payout after fees, a ring of how customers paid and a list of recent sales.

src/registry/landing-pages/tender/dashboard-totals.tsx

"use client";

import type { ReactNode } from "react";
import { AnimatePresence, motion } from "motion/react";
import { SPRING_SNAPPY } from "@/lib/motion";
import { cn } from "@/lib/utils";
import { RollingNumber } from "../shared/rolling-number";
import { Donut, SLICE_SWATCHES } from "./donut";
import type { IncomingSale, ShopSales, Slice } from "./types";

const money = (amount: number) =>
  `$${amount.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
const sum = (items: { amount: number }[]) => items.reduce((total, item) => total + item.amount, 0);

interface DashboardTotalsProps {
  sales: ShopSales;
  extra: IncomingSale[];
  mixTitle: string;
}

// The day at a glance, three tiles in a row: today's sales with the change on last week and the latest sale popping
// in, tonight's payout as the one dark tile (what reaches the bank after fees), and a ring of how customers paid.
export function DashboardTotals({ sales, extra, mixTitle }: DashboardTotalsProps) {
  const slices: Slice[] = sales.slices.map((slice) => ({
    ...slice,
    amount: slice.amount + sum(extra.filter((sale) => sale.method === slice.label)),
  }));
  const total = sum(slices);
  const cardTotal = total - sum(slices.filter((slice) => slice.label === "Cash"));
  const fees = cardTotal * sales.feeRate + (sales.slices.length + extra.length) * sales.feeFixed;
  const latest = extra.at(-1);
  const { labels } = sales;

  return (
    <div className="grid grid-cols-1 gap-2 p-3 sm:grid-cols-3 sm:p-4">
      <Tile title={labels.today} meta={sales.date} amount={total} className="ring-1 ring-zinc-200">
        <p className="text-2xs text-zinc-500">
          <span className="font-semibold text-emerald-700">+{sales.change}</span> {labels.changeNote}
        </p>
        <AnimatePresence>
          {latest && (
            <motion.span
              key={extra.length}
              initial={{ opacity: 0, y: 8 }}
              animate={{ opacity: 1, y: 0 }}
              exit={{ opacity: 0 }}
              transition={SPRING_SNAPPY}
              className="absolute top-3 right-3 bg-emerald-50 px-2 py-1 text-2xs font-semibold text-emerald-800"
            >
              +{money(latest.amount)}
            </motion.span>
          )}
        </AnimatePresence>
      </Tile>
      <Tile
        title={`${labels.payout} ${sales.payoutTime}`}
        meta={sales.bank}
        amount={total - fees}
        className="bg-dusk text-chalk"
        metaClassName="text-chalk/55"
      >
        <p className="flex items-center gap-2 text-2xs text-chalk/60">
          <span className="bg-marigold px-1.5 py-0.5 font-semibold text-zinc-950">{labels.sameDay}</span>
          {labels.feesNote.replace("{fees}", money(fees))}
        </p>
      </Tile>
      <div className="flex flex-col gap-3 p-4 ring-1 ring-zinc-200">
        <p className="text-sm font-medium">{mixTitle}</p>
        <div className="flex items-center gap-4">
          <Donut values={slices.map((slice) => slice.amount)} className="size-16 shrink-0" />
          <ul className="flex min-w-0 flex-1 flex-col gap-1.5 text-2xs">
            {slices.map((slice, index) => (
              <li key={slice.label} className="flex items-center gap-2">
                <span className={cn("size-2 shrink-0", SLICE_SWATCHES[index])} />
                <span className="flex-1 truncate text-zinc-500">{slice.label}</span>
                <span className="tabular-nums">{money(slice.amount)}</span>
              </li>
            ))}
          </ul>
        </div>
      </div>
    </div>
  );
}

interface TileProps {
  title: string;
  meta: string;
  amount: number;
  className?: string;
  metaClassName?: string;
  children: ReactNode;
}

function Tile({ title, meta, amount, className, metaClassName = "text-zinc-500", children }: TileProps) {
  return (
    <div className={cn("relative flex flex-col gap-2 p-4", className)}>
      <div>
        <p className="text-sm font-medium">{title}</p>
        <p className={cn("text-2xs", metaClassName)}>{meta}</p>
      </div>
      <RollingNumber
        value={Math.round(amount * 100) / 100}
        format={money}
        className="text-3xl font-semibold tracking-tight tabular-nums"
      />
      {children}
    </div>
  );
}
The day at a glance

Proof as product

The busiest hours are a heat grid you can point at. The fee comparison is written out as a check, in figures and in words, so the saving reads like money rather than a percentage.

src/registry/landing-pages/tender/amount-in-words.ts

const ONES = [
  "",
  "one",
  "two",
  "three",
  "four",
  "five",
  "six",
  "seven",
  "eight",
  "nine",
  "ten",
  "eleven",
  "twelve",
  "thirteen",
  "fourteen",
  "fifteen",
  "sixteen",
  "seventeen",
  "eighteen",
  "nineteen",
];
const TENS = ["", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"];
const TEEN_LIMIT = 20;
const TEN = 10;
const HUNDRED = 100;
const THOUSAND = 1000;

const underHundred = (value: number) => {
  if (value < TEEN_LIMIT) return ONES[value];
  const ones = value % TEN;
  return ones ? `${TENS[Math.floor(value / TEN)]}-${ONES[ones]}` : TENS[value / TEN];
};

const underThousand = (value: number) => {
  const hundreds = Math.floor(value / HUNDRED);
  const rest = value % HUNDRED;
  return [hundreds ? `${ONES[hundreds]} hundred` : "", rest ? underHundred(rest) : ""].filter(Boolean).join(" ");
};

// A dollar amount written out the way it goes on a check: 4783 is "Four thousand seven hundred eighty-three and
// 00/100 dollars". Good up to $999,999.
export function amountInWords(amount: number) {
  const dollars = Math.floor(amount);
  const cents = Math.round((amount - dollars) * HUNDRED);
  const thousands = Math.floor(dollars / THOUSAND);
  const words =
    [thousands ? `${underThousand(thousands)} thousand` : "", underThousand(dollars % THOUSAND)]
      .filter(Boolean)
      .join(" ") || "zero";
  return `${words.charAt(0).toUpperCase()}${words.slice(1)} and ${String(cents).padStart(2, "0")}/100 dollars`;
}
A dollar amount written out the way it goes on a check

More articles