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

164 lines
6.4 KiB
TypeScript

import Link from "next/link";
import { Navbar } from "@/components/marketing/Navbar";
import { NewsletterForm } from "@/components/marketing/NewsletterForm";
import {
INDEPENDENT_PRODUCT_DISCLOSURE,
LEGAL_CONTACT_EMAIL,
} from "@/components/marketing/LegalPage";
import { getLaunchPosture } from "@/src/shared/launch-posture/server";
import { WAITLIST_ANCHOR } from "@/lib/waitlist";
import { getTranslations } from "@/lib/i18n/server";
import type { TranslationKey } from "@/lib/i18n/translator";
import { BRAND_HANDLES } from "@/lib/seo/entity";
type FooterLink =
| { readonly href: string; readonly labelKey: TranslationKey }
| { readonly href: string; readonly label: string };
const BASE_FOOTER_LINKS: readonly FooterLink[] = [
{ href: "/#how-it-works", labelKey: "footer.howItWorks" },
{ href: "/styles", label: "Styles" },
{ href: "/pricing", labelKey: "footer.pricing" },
{ href: "/for", labelKey: "footer.platforms" },
{ href: "/make", labelKey: "footer.make" },
{ href: "/video-ads", label: "Video ads by business" },
{ href: "/from-app-store", label: "Video ads from your App Store listing" },
{ href: "/tools", labelKey: "footer.tools" },
{ href: "/guides", labelKey: "footer.guides" },
{ href: "/features", labelKey: "footer.features" },
{ href: "/providers", labelKey: "footer.providers" },
{ href: "/integrations", label: "Integrations" },
{ href: "/mcp", label: "MCP server" },
{ href: "/made-with-menivor", label: "Made with Menivor" },
{ href: "/creator-contract", label: "Creator Contract" },
{ href: "/terms", labelKey: "footer.terms" },
{ href: "/privacy", labelKey: "footer.privacy" },
{ href: "/refunds", labelKey: "footer.refunds" },
{ href: "/legal/acceptable-use", label: "Acceptable use" },
{ href: "/contact", labelKey: "footer.contact" },
{ href: "/llms.txt", label: "llms.txt" },
];
// While the waitlist is the only working entry point, don't advertise a dead
// sign-in page; the link returns once the launch status leaves waitlist mode.
function footerLinks(waitlist: boolean): readonly FooterLink[] {
return [
...BASE_FOOTER_LINKS,
waitlist
? { href: `/#${WAITLIST_ANCHOR}`, labelKey: "footer.waitlist" }
: { href: "/sign-in", labelKey: "footer.signIn" },
];
}
/**
* Shared chrome for the public marketing surface. Wraps every marketing page
* with the responsive navbar and a flat, ruled footer index while the root
* layout supplies ClerkProvider and global styles.
*/
export default async function MarketingLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
const t = await getTranslations();
const posture = await getLaunchPosture();
return (
<div className="flex min-h-dvh flex-col">
<Navbar launchMode={posture.mode} />
<main className="flex-1">{children}</main>
<footer className="border-t border-white/[0.08] bg-black/25">
<div className="container flex flex-col gap-6 py-10 sm:flex-row sm:items-start sm:justify-between">
<div className="flex flex-col gap-2">
<Link
href="/"
className="font-display text-sm font-bold tracking-tight text-foreground"
>
Menivor
</Link>
<p className="kicker text-muted-foreground">{t("footer.tagline")}</p>
<NewsletterForm className="mt-4" />
<a
href="https://foundrlist.com/product/menivor"
target="_blank"
rel="noopener"
className="mt-4 inline-block"
>
<img
src="https://foundrlist.com/api/badge/menivor"
alt="Featured on FoundrList"
width={150}
height={48}
/>
</a>
<a
href="https://www.producthunt.com/products/menivor?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-menivor"
target="_blank"
rel="noopener noreferrer"
className="mt-3 inline-block"
>
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1313368&theme=neutral"
alt="Menivor - Paste a link, get a vertical demo reel with captions | Product Hunt"
width={180}
height={39}
style={{ width: 180, height: 39 }}
loading="lazy"
/>
</a>
</div>
<nav className="grid grid-cols-2 gap-x-10 gap-y-2 sm:grid-cols-3">
{footerLinks(posture.mode === "waitlist").map((link) => (
<Link
key={link.href}
href={link.href}
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
>
{"label" in link ? link.label : t(link.labelKey)}
</Link>
))}
</nav>
<span className="text-xs text-muted-foreground">
&copy; {new Date().getFullYear()} Menivor
</span>
</div>
<div className="container flex flex-col gap-2 border-t border-white/[0.06] py-6 text-xs text-muted-foreground sm:flex-row sm:items-center sm:justify-between">
<p className="max-w-2xl">{INDEPENDENT_PRODUCT_DISCLOSURE}</p>
<div className="flex items-center gap-4">
<a
href="https://scribase.com/?ref=menivor"
target="_blank"
rel="noopener noreferrer"
className="transition-colors hover:text-foreground"
>
Built on Scribase
</a>
<a
href="https://rithub.dev/caelum0x/menivor"
target="_blank"
rel="noopener noreferrer"
className="transition-colors hover:text-foreground"
>
Code on Rithub
</a>
{BRAND_HANDLES.filter((h) => h.live).map((h) => (
<a
key={h.url}
href={h.url}
rel="noopener noreferrer me"
className="transition-colors hover:text-foreground"
>
Follow on {h.platform}
</a>
))}
<a
href={`mailto:${LEGAL_CONTACT_EMAIL}`}
className="transition-colors hover:text-foreground"
>
{LEGAL_CONTACT_EMAIL}
</a>
</div>
</div>
</footer>
</div>
);
}