Skip to content

Hero Demo

Enterprise demo-request hero: copy + check bullets + quote on the left, a bordered lead form (name, work email, company, size, submit) with validation-ready fields and success state on the right.

neo-corporate/section/hero-demo
Open ↗

Source

"use client";

import { useId, useState, type FormEvent } from "react";
import { Check } from "lucide-react";
import { cn } from "@/lib/utils";

export interface HeroDemoProps {
  eyebrow?: string;
  title?: string;
  description?: string;
  bullets?: string[];
  onSubmit?: (data: Record<string, string>) => void | Promise<void>;
  className?: string;
}

/** Enterprise demo-request hero: copy + check bullets + quote on the left, a bordered lead form (name, work email, company, size, submit) with validation-ready fields and success state on the right. */
export function HeroDemo({
  eyebrow = "Ledgerly for Enterprise",
  title = "See how Ledgerly fits your finance stack",
  description = "Get a tailored 30-minute walkthrough with a solutions engineer. We’ll map your entities, ERP and approval flows.",
  bullets = ["Native NetSuite, SAP and Xero sync", "Multi-entity and multi-currency close", "SSO, SCIM and granular roles", "Dedicated implementation manager"],
  onSubmit,
  className,
}: HeroDemoProps) {
  const id = useId();
  const [state, setState] = useState<"idle" | "pending" | "done">("idle");
  const submit = async (e: FormEvent<HTMLFormElement>) => {
    e.preventDefault();
    setState("pending");
    await onSubmit?.(Object.fromEntries(new FormData(e.currentTarget)) as Record<string, string>);
    setState("done");
  };
  const field = "da-focus da-stroke h-11 w-full rounded-da-md bg-da-input px-3 text-[15px] placeholder:text-da-muted-fg hover:border-da-border-strong";

  return (
    <section className={cn("bg-da-surface-2 py-16 text-da-fg sm:py-24", className)}>
      <div className="da-container grid items-start gap-12 lg:grid-cols-2">
        <div>
          <p className="text-xs font-semibold tracking-da-label text-da-primary uppercase">{eyebrow}</p>
          <h1 className="mt-4 font-da-display text-[clamp(2.25rem,5vw,3.5rem)] leading-[1.06] font-extrabold tracking-da-display text-balance">{title}</h1>
          <p className="mt-5 max-w-lg text-lg text-da-muted-fg">{description}</p>
          <ul className="mt-8 space-y-3">
            {bullets.map((b) => (
              <li key={b} className="flex items-center gap-3">
                <span aria-hidden className="grid size-6 place-items-center rounded-full bg-da-primary text-da-primary-fg">
                  <Check className="size-3.5" strokeWidth={3} />
                </span>
                {b}
              </li>
            ))}
          </ul>
          <figure className="mt-10 border-l-2 border-da-primary pl-5">
            <blockquote className="text-da-muted-fg">“We went from a 15-day close to 4 days across 11 entities in one quarter.”</blockquote>
            <figcaption className="mt-2 text-sm font-semibold">Dana Whitfield, Controller at Oakridge</figcaption>
          </figure>
        </div>
        <div className="da-stroke rounded-da-lg bg-da-surface p-6 text-da-surface-fg shadow-da-md sm:p-8">
          {state === "done" ? (
            <div role="status" className="py-10 text-center">
              <span aria-hidden className="mx-auto grid size-12 place-items-center rounded-full bg-da-success text-da-success-fg">
                <Check className="size-6" />
              </span>
              <p className="mt-4 font-da-display text-xl font-bold">Thanks — we’ll be in touch within one business day.</p>
            </div>
          ) : (
            <form onSubmit={submit} className="grid gap-4 sm:grid-cols-2">
              <p className="font-da-display text-xl font-bold sm:col-span-2">Request a demo</p>
              <div className="grid gap-1.5">
                <label htmlFor={`${id}-fn`} className="text-sm font-medium">
                  First name
                </label>
                <input id={`${id}-fn`} name="firstName" required autoComplete="given-name" className={field} />
              </div>
              <div className="grid gap-1.5">
                <label htmlFor={`${id}-ln`} className="text-sm font-medium">
                  Last name
                </label>
                <input id={`${id}-ln`} name="lastName" required autoComplete="family-name" className={field} />
              </div>
              <div className="grid gap-1.5 sm:col-span-2">
                <label htmlFor={`${id}-em`} className="text-sm font-medium">
                  Work email
                </label>
                <input id={`${id}-em`} name="email" type="email" required autoComplete="email" placeholder="name@company.com" className={field} />
              </div>
              <div className="grid gap-1.5">
                <label htmlFor={`${id}-co`} className="text-sm font-medium">
                  Company
                </label>
                <input id={`${id}-co`} name="company" required autoComplete="organization" className={field} />
              </div>
              <div className="grid gap-1.5">
                <label htmlFor={`${id}-sz`} className="text-sm font-medium">
                  Company size
                </label>
                <select id={`${id}-sz`} name="size" className={field} defaultValue="201-1000">
                  <option>1-50</option>
                  <option>51-200</option>
                  <option>201-1000</option>
                  <option>1000+</option>
                </select>
              </div>
              <button
                type="submit"
                disabled={state === "pending"}
                className="da-focus da-transition mt-2 h-12 rounded-da-md bg-da-primary font-semibold text-da-primary-fg hover:bg-da-primary/90 disabled:opacity-60 sm:col-span-2"
              >
                {state === "pending" ? "Sending…" : "Book my demo"}
              </button>
              <p className="text-xs text-da-muted-fg sm:col-span-2">
                By submitting you agree to our{" "}
                <a href="#privacy" className="da-focus rounded-da-sm underline">
                  Privacy Policy
                </a>
                .
              </p>
            </form>
          )}
        </div>
      </div>
    </section>
  );
}

export default HeroDemo;

modules/neo-corporate/section/hero-demo/index.tsx

Props

PropTypeDefaultDescription
eyebrowstring—Small label above the heading.
titlestring—Heading.
descriptionstring—Supporting text.
bulletsstring[]—Bullets.
onSubmit(data: Record<string, string>) => void | Promise<void>—Callback.
classNamestring—Extra classes on the root.

Other hero variants in Neo Corporate

Hero in other art directions

Hero Poster

Poster-style centered hero: gigantic stacked headline alternating solid and outlined words, colored feature stickers scattered around it, two pressable CTAs and a ruled wordmark strip of customer logos.

BrutalistHero

Hero Signup

Conversion hero with the signup form in the fold: headline with a blue highlighted phrase, boxed email capture with pending/success states, checkmark reassurance list and three staggered colored step cards.

BrutalistHero

Hero Stacked

Split hero with a huge stacked uppercase headline (one line boxed in yellow), two pressable CTAs, a stats strip and a changelog window mock with a rotated sticker.

BrutalistHero

Hero Terminal

Developer-first hero: full-width uppercase headline, copyable install command button, and an ink terminal window that replays a git merge → publish session line by line with a blinking yellow cursor.

BrutalistHero

Hero Centered

Centered hero over the mesh: frosted badge, headline with gradient-text ending, gradient + frosted CTAs, then a wide glass ‘live call’ window with four video tiles, live transcript and an AI capture chip.

GlassHero

Hero Mesh

Split hero over the glass mesh: frosted announcement pill, headline with gradient-text second half, gradient + frosted CTAs, and a layered composition of glass cards (AI meeting recap, floating video update, recording pill) gently bobbing.

GlassHero

Hero Stack

Split hero with a fanned 3D stack of three glass cards (AI recap, async video, synced tasks) tilted in perspective, spreading apart with a spring on hover.

GlassHero

Hero Waitlist

Minimal waitlist hero with a central glow: badge, big headline, a glass pill email form with gradient submit (pending, success, error states) and a stack of gradient avatars with the waitlist count.

GlassHero

Hero Cli

Developer-first centered hero on a dotted grid: version badge, headline, an install command field with copy-to-clipboard, a docs button and a terminal window showing the command output.

MinimalHero

Hero Glow

Centered hero with announcement pill, gradient-ink headline, two CTAs, a single soft indigo glow over a masked hairline grid, and an HTML product window (incident list) fading out at the bottom.

MinimalHero

Hero Metrics

Editorial left-aligned hero with an oversized tight headline, copy and CTAs on one baseline, a row of three hairline-separated mono metrics and a text wordmark strip of customers.

MinimalHero

Hero Split

Two-column hero: eyebrow, headline, copy, checklist and two CTAs on the left; on the right a hairline card showing a live incident timeline with colored status dots and a resolved badge.

MinimalHero

Hero Browser

Split hero: copy on the left, a large monochrome browser frame on the right showing a mock studio portfolio (nav, giant name, image grid with mono captions) and a signal-dot “Published” badge.

Mono CleanHero

Hero Giant

Type-led hero: a mono label, an enormous tightly-tracked headline across the full width, then a 12-col row with copy + ink button on the left and mono key facts on the right, over a full-bleed gray image frame with caption.

Mono CleanHero

Hero Grid

Visible-grid hero: hairline 12-column guides behind the content, headline + copy + ink CTA in the left columns, and a ruled index list of featured templates on the right whose rows invert on hover.

Mono CleanHero

Hero Statement

Quiet manifesto hero: a single large statement set in the display face with generous line height and an orange signal dot after a key word, bottom-anchored mono footnotes and a scroll cue; nearly full-height.

Mono CleanHero

Hero Arch

Split hero: eyebrow with sprout icon, large serif headline with an italic sage highlight, calm copy, pill CTAs; on the right a tall arch-topped illustration (sun + rolling hills) with a floating stat chip.

Organic SoftHero

Hero Centered

Centered serif hero floating over two soft organic blobs (sage and clay), a hand-drawn underline under the italic highlight, pill CTAs and a row of three calm stats.

Organic SoftHero

Hero Editorial

Magazine-style hero: oversized serif headline across the width with an italic line, a collage of three organic shapes (arch, circle with leaf, pebble) and a pull-quote column; scroll cue.

Organic SoftHero

Hero Footprint

Product hero: copy + CTAs on the left, a soft rounded footprint card on the right with a donut chart of emissions by source, legend with percentages and a gentle “biggest lever” tip.

Organic SoftHero

Hero Illustrated

Split hero: butter badge, rounded headline, pill CTAs and avatar-dot social proof on the left; a flat pastel kanban illustration made of shapes (columns, tinted cards, circles) with a floating “done” chip on the right.

Soft FlatHero

Hero Planner

Centered hero with a big rounded headline and pill CTAs above a full-width weekly planner mock-up: five day columns with date numbers and pastel task chips (fewer columns on small screens).

Soft FlatHero

Hero Signup

Sign-up hero on a large butter panel: headline with a peach marker-highlighted phrase, white pill email form with success state, check perks and a 5-star rating line.

Soft FlatHero

Hero Tiles

Hero with a left headline block and ink CTA next to a 2×2 grid of pastel feature tiles (peach, mint, lavender, butter) with white icon squares, the right column offset downward.

Soft FlatHero