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.
88 lines
3.7 KiB
TypeScript
88 lines
3.7 KiB
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import Link from "next/link";
|
|
import { ArrowRight, Play } from "lucide-react";
|
|
import { Button } from "@/components/ui/button";
|
|
import { StyleChips } from "@/components/marketing/styles/StylePick";
|
|
import { VARIANT_COUNT } from "@/src/features/create-compose/one-flow/plan";
|
|
import { isStoreLink } from "@/src/features/app-audit/api";
|
|
import { parseSource } from "@/src/features/create-compose/one-flow/plan";
|
|
import { AppAuditRunner } from "@/components/marketing/app-audit/AppAuditRunner";
|
|
import { ReelPreviewRunner } from "@/components/marketing/reel-preview/ReelPreviewRunner";
|
|
import { track } from "@/lib/track";
|
|
import { HeroLinkInput } from "./HeroLinkInput";
|
|
|
|
/**
|
|
* The landing box: paste any link (site, app, social post or profile) or type
|
|
* a topic. The primary action is the free, anonymous reel preview (real
|
|
* opening hook + a real frame from the page/listing, no sign-in) -- it
|
|
* renders directly under the input the moment a link is pasted, with its own
|
|
* one-step "sign up to get your 3 reels" CTA once the preview is shown. The
|
|
* form's own submit button (plain GET into /sign-up, works before any
|
|
* JavaScript loads) stays as a secondary, skip-the-preview path for visitors
|
|
* who already want to sign up -- it never replaces the preview's CTA, it
|
|
* just no longer outranks it. When the link is an App Store/Play app, the
|
|
* separate free packaging audit (Menivor Growth phase 1) also appears.
|
|
*/
|
|
export function SignupBox({ note }: Readonly<{ note: string }>) {
|
|
const [link, setLink] = useState("");
|
|
const [runRequest, setRunRequest] = useState(0);
|
|
// With JS loaded and a link pasted, the hero's primary action is the free,
|
|
// no-signup preview; topics (and no-JS visitors) still go straight to /sign-up.
|
|
const isLink = parseSource(link)?.kind === "link";
|
|
return (
|
|
<div className="w-full">
|
|
<form
|
|
id="make"
|
|
action="/sign-up"
|
|
method="get"
|
|
onSubmit={(event) => {
|
|
if (isLink) {
|
|
event.preventDefault();
|
|
setRunRequest((n) => n + 1);
|
|
return;
|
|
}
|
|
track("signup_click", { source: "homepage-hero" });
|
|
}}
|
|
className="glass flex w-full scroll-mt-24 flex-col gap-3 rounded-2xl p-3 sm:p-4"
|
|
>
|
|
<label htmlFor="hero-create-input" className="sr-only">
|
|
Any link (your website, app, or a social post or profile) or a topic
|
|
</label>
|
|
<div className="flex w-full flex-col gap-2 sm:flex-row sm:items-start">
|
|
<HeroLinkInput value={link} onValueChange={setLink} />
|
|
{isLink ? (
|
|
<Button type="submit" size="md">
|
|
<Play className="size-4" aria-hidden /> See a free preview
|
|
</Button>
|
|
) : (
|
|
<Button
|
|
type="submit"
|
|
variant="outline"
|
|
size="md"
|
|
data-copy-source="src/features/create-compose/one-flow/plan.ts"
|
|
>
|
|
{/* copy-source: src/features/create-compose/one-flow/plan.ts VARIANT_COUNT */}
|
|
Make {VARIANT_COUNT} reels <ArrowRight className="size-4" aria-hidden />
|
|
</Button>
|
|
)}
|
|
</div>
|
|
<ReelPreviewRunner url={link} runRequest={runRequest} hideRunButton />
|
|
<StyleChips />
|
|
<p className="px-1 text-sm text-muted-foreground">
|
|
{note ? <>{note} </> : null}
|
|
<Link href="/creator-contract" className="underline underline-offset-4">
|
|
Our Creator Contract
|
|
</Link>
|
|
</p>
|
|
</form>
|
|
{isStoreLink(link) ? (
|
|
<div className="mt-3">
|
|
<AppAuditRunner initialUrl={link} showInput={false} />
|
|
</div>
|
|
) : null}
|
|
</div>
|
|
);
|
|
}
|