Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

6.2 KB
Raw Blame
import Link from "next/link";

import { SUPPORTED_INVOICE_PDF_LANGUAGES } from "@/app/schema";
import { FaqAccordion, FaqAccordionItem } from "@/components/ui/faq-accordion";

import {
  SeoContentHeading,
  SeoContentLead,
  SeoContentList,
  SeoContentOrderedList,
  SeoContentParagraph,
} from "./seo-content-text";
import { StripeTemplateSwitchSentence } from "./stripe-template-switch-sentence";

/**
 * Plain, server-rendered copy below the invoice editor on `/stripe-template`.
 *
 * The route has its own canonical URL and title ("Stripe Invoice Template"), so it is
 * indexed as a page of its own, but the editor renders on the client: without this, its
 * prerendered HTML is a loading skeleton and the footer. `HomeSeoContent` solves the same
 * problem on `/`.
 *
 * Written for "Stripe invoice template": what the layout looks like and how to fill it
 * in. The general pitch (free, no login, open source) is `/`'s, and "Stripe invoice
 * generator" belongs to `/stripe-invoice-alternative`, so this links to both rather than
 * repeating them.
 */
export function StripeTemplateSeoContent() {
  return (
    <section
      className="w-full bg-gray-100 px-4 pb-12 pt-8 md:pb-16"
      aria-labelledby="stripe-template-seo-content-heading"
      data-testid="stripe-template-seo-content"
    >
      <div className="mx-auto max-w-3xl space-y-10 text-slate-800">
        <div>
          <SeoContentHeading id="stripe-template-seo-content-heading">
            A free Stripe-style invoice template
          </SeoContentHeading>
          <SeoContentLead>
            The Stripe invoice template follows the layout of the invoices
            Stripe sends. The amount due and its due date sit in bold above a
            single table of line items, with a short summary of totals below.
            Fill in the form and the preview redraws as you type, then download
            the PDF.
          </SeoContentLead>
          <SeoContentLead>
            You don&apos;t need a Stripe account. It is a layout you fill in,
            not a payments service: no products to set up and no dashboard. The
            invoice is built in your browser, and{" "}
            <Link
              href="/invoice-generator-no-login"
              className="font-medium text-slate-900 underline underline-offset-4"
            >
              there is no signup
            </Link>
            .
          </SeoContentLead>
        </div>

        <div>
          <SeoContentHeading>What&apos;s on the template</SeoContentHeading>
          <SeoContentList>
            {TEMPLATE_PARTS.map((part) => {
              return (
                <li key={part} className="text-pretty">
                  {part}
                </li>
              );
            })}
            <li className="text-pretty">
              Labels in{" "}
              <Link
                href="/multi-language-invoice-generator"
                className="font-medium text-slate-900 underline underline-offset-4"
              >
                {SUPPORTED_INVOICE_PDF_LANGUAGES.length} languages
              </Link>
              , with your own tax label such as VAT, GST or Sales Tax
            </li>
          </SeoContentList>
        </div>

        <div>
          <SeoContentHeading>
            How to fill in the Stripe invoice template
          </SeoContentHeading>
          <SeoContentOrderedList>
            {HOW_TO_STEPS.map((step) => {
              return (
                <li key={step} className="text-pretty">
                  {step}
                </li>
              );
            })}
          </SeoContentOrderedList>
          <SeoContentParagraph>
            <StripeTemplateSwitchSentence />
          </SeoContentParagraph>
        </div>

        <div>
          <SeoContentHeading className="mb-3">FAQ</SeoContentHeading>
          <FaqAccordion>
            {FAQ.map((item) => {
              return (
                <FaqAccordionItem key={item.question} question={item.question}>
                  {item.answer}
                </FaqAccordionItem>
              );
            })}
          </FaqAccordion>
          <SeoContentParagraph className="mt-6">
            Comparing it with billing through Stripe itself? See the{" "}
            <Link
              href="/stripe-invoice-alternative"
              className="font-medium text-slate-900 underline underline-offset-4"
            >
              Stripe invoice generator
            </Link>{" "}
            page.
          </SeoContentParagraph>
        </div>
      </div>
    </section>
  );
}

const TEMPLATE_PARTS = [
  "The amount due and the due date in bold, above the line items",
  "An optional Pay online link under the amount, pointing to any payment page you use",
  "A line-item table with quantity and unit price, then subtotal, tax and total",
  "Your logo beside the invoice title, and your details next to your client's",
  "A footer on every page with the invoice number, the amount due and page numbers",
  "An optional QR code with any text you choose, such as a payment link",
  "US Letter page size",
] as const;

const HOW_TO_STEPS = [
  "Add your details as the seller and your client's as the buyer",
  "Set the invoice number, issue date and due date",
  "Add a line for each product or service, with quantity and price",
  "Paste a payment link into Pay online if you want one on the invoice",
  "Download the PDF, or copy a link that opens the same invoice",
] as const;

const FAQ = [
  {
    question: "Do I need a Stripe account to use this template?",
    answer:
      "No. The template copies the look of a Stripe invoice, but nothing here connects to Stripe. You type the details and download a PDF.",
  },
  {
    question: "Can my client pay from the invoice?",
    answer:
      "Only through a link you add. Paste any payment URL, such as a Stripe Payment Link, PayPal or your bank's page, into Pay online and it becomes a clickable link in the PDF. You can put the same link in the QR code field too.",
  },
  {
    question: "Is the Stripe invoice template free?",
    answer:
      "Yes. There is no paid plan, no watermark and no limit on how many invoices you download.",
  },
  {
    question: "Can I add my logo?",
    answer:
      "Yes. Upload a JPEG, PNG or WebP and it appears at the top of the invoice.",
  },
] as const;