Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
61 lines
2.1 KiB
TypeScript
61 lines
2.1 KiB
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
import { usePathname } from "next/navigation";
|
|
import { ArrowRight } from "lucide-react";
|
|
import { SignedIn, SignedOut } from "@/components/auth/clerk-safe";
|
|
import { Button } from "@/components/ui/button";
|
|
import { PRIMARY_CTA, SECONDARY_CTA } from "@/lib/seo";
|
|
import { track } from "@/lib/track";
|
|
|
|
/**
|
|
* Shared closing call-to-action band for the programmatic pages. Flat, ruled,
|
|
* and truthful: the primary action comes from lib/seo's PRIMARY_CTA, which is
|
|
* the waitlist when WAITLIST_MODE is on and free signup otherwise.
|
|
* Signed-in visitors are routed to the reel builder instead.
|
|
*/
|
|
interface CtaBandProps {
|
|
readonly heading: string;
|
|
readonly subheading?: string;
|
|
}
|
|
|
|
export function CtaBand({ heading, subheading }: CtaBandProps) {
|
|
const pathname = usePathname();
|
|
return (
|
|
<section className="mt-16 rounded-md border border-border bg-card">
|
|
<div className="flex flex-col items-start gap-5 px-6 py-10 sm:px-10">
|
|
<h2 className="max-w-2xl text-balance text-2xl font-bold tracking-tight sm:text-3xl">
|
|
{heading}
|
|
</h2>
|
|
{subheading ? (
|
|
<p className="max-w-xl text-pretty text-muted-foreground">
|
|
{subheading}
|
|
</p>
|
|
) : null}
|
|
<div className="flex flex-wrap items-center gap-3">
|
|
<SignedOut>
|
|
<Button asChild size="lg">
|
|
<Link
|
|
href={PRIMARY_CTA.href}
|
|
onClick={() => track("signup_click", { source: pathname ?? "cta-band" })}
|
|
>
|
|
{PRIMARY_CTA.label} <ArrowRight className="size-4" />
|
|
</Link>
|
|
</Button>
|
|
</SignedOut>
|
|
<SignedIn>
|
|
<Button asChild size="lg">
|
|
<Link href="/new">
|
|
New reel <ArrowRight className="size-4" />
|
|
</Link>
|
|
</Button>
|
|
</SignedIn>
|
|
<Button asChild variant="outline" size="lg">
|
|
<Link href={SECONDARY_CTA.href}>{SECONDARY_CTA.label}</Link>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|