caelum0x d56639a594
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
Menivor — open source release (MIT), free to use and fork
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.
2026-12-04 02:10:26 +03:00

116 lines
4.1 KiB
TypeScript

import type { Metadata } from "next";
import Link from "next/link";
import { LivePackPreview } from "@/components/marketing/LivePackPreview";
import { WaitlistForm } from "@/components/marketing/WaitlistForm";
import { PRICING_PLANS } from "@/components/marketing/plans";
import { PerReelPrice } from "./PerReelPrice";
import { PricingCheckout } from "./PricingCheckout";
import { PricingViewedPing } from "./PricingViewedPing";
import { WAITLIST_FALLBACK_EMAIL } from "@/lib/waitlist";
import { WAITLIST_MODE } from "@/lib/clerk";
import { getTranslations } from "@/lib/i18n/server";
import type { Translator } from "@/lib/i18n/translator";
import { loadCatalogForRender } from "@/src/features/plans/api";
import { SITE_URL } from "@/lib/seo";
const DESCRIPTION =
"Menivor pricing: monthly plans for regular posting, or one-time credit packs that never expire. A failed render refunds its credit automatically.";
export const metadata: Metadata = {
title: "Pricing",
description: DESCRIPTION,
alternates: { canonical: "/pricing" },
openGraph: {
type: "website",
url: `${SITE_URL}/pricing`,
siteName: "Menivor",
title: "Pricing | Menivor",
description: DESCRIPTION,
},
};
/**
* Pricing page. Credit-pack pricing is real, but while WAITLIST_MODE is on
* nothing is purchasable — so the packs render as a preview whose only CTA is
* the waitlist, clearly labeled as opening with early access. With a real
* auth instance, the interactive checkout (provider toggle + hosted checkout
* redirect) takes over unchanged.
*/
export default async function PricingPage() {
// Read the live monthly catalog on the server so the HTML already shows
// "Start Creator" when the plans are on sale (null -> display fallback).
const [t, monthlyCatalog] = await Promise.all([
getTranslations(),
WAITLIST_MODE ? Promise.resolve(null) : loadCatalogForRender(),
]);
return (
<div className="container py-16 lg:py-24">
<PricingViewedPing />
<div className="mb-14 max-w-2xl">
<p className="kicker text-muted-foreground">{t("pricing.kicker")}</p>
<h1 className="mt-4 text-display-lg font-bold">{t("pricing.title")}</h1>
<p className="mt-4 text-pretty text-lg leading-relaxed text-muted-foreground">
{t("pricing.intro")}
</p>
</div>
{WAITLIST_MODE ? (
<WaitlistPricing t={t} />
) : (
<PricingCheckout plans={PRICING_PLANS} monthlyCatalog={monthlyCatalog} />
)}
<PerReelPrice plans={PRICING_PLANS} />
<section className="mt-14 max-w-3xl space-y-4 border-t border-border pt-10 text-muted-foreground">
<h2 className="text-2xl font-semibold text-foreground">
{t("pricing.howHeading")}
</h2>
<p>
{t("pricing.howPara1")}{" "}
<Link href="/creator-contract" className="text-primary underline underline-offset-4">
Read the Creator Contract
</Link>
.
</p>
<p>{t("pricing.howPara2")}</p>
<p>{t("pricing.howPara3")}</p>
</section>
<p className="mt-12 text-sm text-muted-foreground">
{t("pricing.volumeQuestion")}{" "}
<a
href={`mailto:${WAITLIST_FALLBACK_EMAIL}?subject=Menivor%20volume%20pricing`}
className="font-medium text-primary underline underline-offset-4"
>
{WAITLIST_FALLBACK_EMAIL}
</a>
.
</p>
</div>
);
}
/** Static pack preview shown while checkout is gated behind early access. */
function WaitlistPricing({ t }: Readonly<{ t: Translator }>) {
return (
<div className="flex flex-col gap-10">
<LivePackPreview
plans={PRICING_PLANS}
ctaLabel={t("pricing.waitlistCtaLabel")}
ctaHref="/#waitlist"
/>
<div className="max-w-xl border-t border-border pt-8">
<p className="kicker text-muted-foreground">{t("pricing.waitlistKicker")}</p>
<p className="mt-3 text-sm leading-relaxed text-muted-foreground">
{t("pricing.waitlistBody")}
</p>
<div className="mt-4">
<WaitlistForm source="pricing" />
</div>
</div>
</div>
);
}