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

91 lines
3.4 KiB
TypeScript

import type { Metadata } from "next";
import Link from "next/link";
import { redirect } from "next/navigation";
import { OneFlowCreate } from "@/src/features/create-compose";
import { AppTopBar } from "@/components/app-shell/AppTopBar";
import { AupNotice } from "@/components/legal/AupNotice";
export const metadata: Metadata = {
title: "Make 3 reels from a topic or link",
description:
"Type a topic or paste a product page link and Menivor renders three 9:16 reel variants, each with a different opening hook, ready to pick, edit, publish or download.",
alternates: { canonical: "/create" },
};
type CreateSearchParams = {
template?: string | string[];
q?: string | string[];
preset?: string | string[];
auto?: string | string[];
/** A free, no-sign-in reel preview's id (`ReelPreviewRunner`'s sign-up CTA),
* carried through sign-up so this account's first run can be attributed to
* the preview that led to it. */
preview?: string | string[];
};
function first(value: string | string[] | undefined): string {
return ((Array.isArray(value) ? value[0] : value) ?? "").trim();
}
/**
* `/create` — the ONE default create flow. Topic or link in, three reel
* variants out. The hands-on tools (own narration, AI clip, templates, the
* step-by-step wizard) stay one click away under "More ways to create".
*/
export default async function CreateReelPage({
searchParams,
}: Readonly<{
searchParams: Promise<CreateSearchParams>;
}>) {
// Template deep links (`/create?template=slug`, used by older links and
// shared URLs) belong to the template compose flow.
const query = await searchParams;
const template = first(query.template);
if (template) {
redirect(`/create/templates?template=${encodeURIComponent(template)}`);
}
return (
<main className="min-h-dvh">
<AppTopBar />
<section className="container max-w-3xl py-10">
<div className="mb-8 text-center">
<h1 className="text-3xl font-bold tracking-tight">
One topic or link. Three reels.
</h1>
<p className="mt-2 text-muted-foreground">
Paste it below. We write, voice and cut three versions for you.
</p>
</div>
<OneFlowCreate
initialInput={first(query.q).slice(0, 600)}
initialPreset={first(query.preset)}
autoStart={first(query.auto) === "1" && Boolean(first(query.q))}
previewId={first(query.preview).slice(0, 36)}
/>
<AupNotice className="mt-4 text-center text-xs text-muted-foreground" />
<p className="mt-10 text-center text-xs text-muted-foreground">
<Link href="/month" className="underline underline-offset-4">
A month of posts from your website
</Link>
{" · "}
<Link href="/create/advanced" className="underline underline-offset-4">
More ways to create
</Link>
{" · "}
<Link href="/very-time" className="underline underline-offset-4">Very ___ Time</Link>
{" · "}
<Link href="/presets-gallery" className="underline underline-offset-4">Presets</Link>
{" · "}
Credits never expire, failed renders are refunded automatically, and we
never train on your content.{" "}
<Link href="/creator-contract" className="underline underline-offset-4">
Read the Creator Contract
</Link>
.
</p>
</section>
</main>
);
}