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.
65 lines
2.2 KiB
TypeScript
65 lines
2.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Link from "next/link";
|
|
import { MyCharacters } from "@/src/features/my-characters";
|
|
import { NewThisWeek } from "@/src/features/preset-drops";
|
|
import { PresetShelf, PresetUse } from "@/src/features/presets-shelf";
|
|
import { SITE_URL } from "@/lib/seo";
|
|
|
|
const DESCRIPTION =
|
|
"Camera moves, looks and effects for your reels. Tap one, add your topic or link, and see the price before you make it.";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Presets",
|
|
description: DESCRIPTION,
|
|
alternates: { canonical: "/presets-gallery" },
|
|
openGraph: {
|
|
type: "website",
|
|
url: `${SITE_URL}/presets-gallery`,
|
|
siteName: "Menivor",
|
|
title: "Presets | Menivor",
|
|
description: DESCRIPTION,
|
|
},
|
|
};
|
|
|
|
type PresetsSearchParams = {
|
|
use?: string | string[];
|
|
image?: string | string[];
|
|
characters?: string | string[];
|
|
};
|
|
|
|
function first(value: string | string[] | undefined): string {
|
|
return ((Array.isArray(value) ? value[0] : value) ?? "").trim();
|
|
}
|
|
|
|
/** `/presets-gallery` (MH2): the public preset shelf; `?use=<id>` opens one preset. */
|
|
export default async function PresetsGalleryPage({
|
|
searchParams,
|
|
}: Readonly<{ searchParams: Promise<PresetsSearchParams> }>) {
|
|
const query = await searchParams;
|
|
const use = first(query.use).slice(0, 64);
|
|
const characters = first(query.characters) === "1";
|
|
return (
|
|
<div className="container py-12 lg:py-16">
|
|
<h1 className="mb-2 text-3xl font-bold tracking-tight">{characters ? "My characters and brands" : "Presets"}</h1>
|
|
<p className="mb-8 text-muted-foreground">
|
|
{characters
|
|
? "Create a character or brand kit once and use it in every preset."
|
|
: "Tap a preset, add your topic or link, and make it."}{" "}
|
|
<Link className="underline underline-offset-4" href={characters ? "/presets-gallery" : "/presets-gallery?characters=1"}>
|
|
{characters ? "Back to presets" : "My characters and brands"}
|
|
</Link>
|
|
</p>
|
|
{characters ? (
|
|
<MyCharacters />
|
|
) : use ? (
|
|
<PresetUse presetId={use} imageKey={first(query.image).slice(0, 512)} />
|
|
) : (
|
|
<>
|
|
<NewThisWeek />
|
|
<PresetShelf />
|
|
</>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|