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.
148 lines
6.2 KiB
TypeScript
148 lines
6.2 KiB
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import { CheckCircle2, XCircle } from "lucide-react";
|
|
import { Input } from "@/components/ui/input";
|
|
import {
|
|
APP_PREVIEW_DEVICES,
|
|
APP_PREVIEW_LIMITS,
|
|
GOOGLE_PLAY_FEATURE_GRAPHIC,
|
|
GOOGLE_PLAY_PROMO_VIDEO,
|
|
matchingAppPreviewDevices,
|
|
} from "@/lib/seo/free-tools/app-preview-specs";
|
|
import { AppListingPreviewRunner } from "@/components/marketing/app-listing/AppListingPreviewRunner";
|
|
import { ToolPanel, fieldLabel } from "./shared";
|
|
|
|
function num(value: string): number {
|
|
const parsed = Number(value);
|
|
return Number.isFinite(parsed) ? parsed : 0;
|
|
}
|
|
|
|
/**
|
|
* Free App Store / Google Play video spec checker: an exact-match lookup
|
|
* against Apple's published App Preview device resolutions, plus static
|
|
* reference tables for duration/file-size limits and Google Play's feature
|
|
* graphic and promo-video rules. Ends with the real anonymous app-listing
|
|
* preview (`AppListingPreviewRunner`), so someone checking a spec sees the
|
|
* actual product one scroll later, no signup required for either.
|
|
*/
|
|
export function AppPreviewSpecChecker() {
|
|
const [width, setWidth] = useState("1080");
|
|
const [height, setHeight] = useState("1920");
|
|
|
|
const w = num(width);
|
|
const h = num(height);
|
|
const matches = w > 0 && h > 0 ? matchingAppPreviewDevices(w, h) : [];
|
|
const checked = w > 0 && h > 0;
|
|
|
|
return (
|
|
<ToolPanel>
|
|
<h3 className="text-lg font-semibold">Check your video's pixel size</h3>
|
|
<div className="mt-3 grid gap-3 sm:grid-cols-2">
|
|
<div>
|
|
<label htmlFor="aps-w" className={fieldLabel}>Width (px)</label>
|
|
<Input id="aps-w" type="number" min={1} value={width} onChange={(event) => setWidth(event.target.value)} />
|
|
</div>
|
|
<div>
|
|
<label htmlFor="aps-h" className={fieldLabel}>Height (px)</label>
|
|
<Input id="aps-h" type="number" min={1} value={height} onChange={(event) => setHeight(event.target.value)} />
|
|
</div>
|
|
</div>
|
|
|
|
{checked && (
|
|
<div className="mt-4 rounded-md border border-border px-4 py-3">
|
|
{matches.length > 0 ? (
|
|
<p className="flex items-start gap-2 text-sm">
|
|
<CheckCircle2 className="mt-0.5 size-4 shrink-0 text-primary" aria-hidden />
|
|
<span>
|
|
{w} x {h} is an accepted App Preview size for:{" "}
|
|
<span className="font-medium text-foreground">
|
|
{matches.map((m) => `${m.device.label} (${m.orientation})`).join(", ")}
|
|
</span>
|
|
.
|
|
</span>
|
|
</p>
|
|
) : (
|
|
<p className="flex items-start gap-2 text-sm">
|
|
<XCircle className="mt-0.5 size-4 shrink-0 text-destructive" aria-hidden />
|
|
<span>
|
|
{w} x {h} does not exactly match any of Apple's accepted App Preview sizes below. Apple
|
|
does not scale an unaccepted size up or down — re-export at one of the exact sizes in the
|
|
table.
|
|
</span>
|
|
</p>
|
|
)}
|
|
</div>
|
|
)}
|
|
|
|
<div className="mt-8 overflow-x-auto">
|
|
<table className="w-full text-left text-sm">
|
|
<caption className="mb-3 text-left text-lg font-semibold text-foreground">
|
|
Apple App Preview: accepted sizes by device
|
|
</caption>
|
|
<thead className="text-muted-foreground">
|
|
<tr>
|
|
<th className="py-2 pr-4">Device / display</th>
|
|
<th className="py-2 pr-4">Portrait</th>
|
|
<th className="py-2">Landscape</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{APP_PREVIEW_DEVICES.map((device) => (
|
|
<tr key={device.key} className="border-t border-border">
|
|
<td className="py-2 pr-4 font-medium">{device.label}</td>
|
|
<td className="py-2 pr-4 tabular-nums">
|
|
{device.portrait ? `${device.portrait.width} x ${device.portrait.height}` : "—"}
|
|
</td>
|
|
<td className="py-2 tabular-nums">
|
|
{device.landscape ? `${device.landscape.width} x ${device.landscape.height}` : "—"}
|
|
</td>
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
<p className="mt-3 text-sm text-muted-foreground">
|
|
Duration: {APP_PREVIEW_LIMITS.minDurationSec}-{APP_PREVIEW_LIMITS.maxDurationSec} seconds. Max
|
|
file size: {APP_PREVIEW_LIMITS.maxFileSizeMB} MB. Up to {APP_PREVIEW_LIMITS.maxPerLanguage} previews
|
|
per device size and language. Formats: {APP_PREVIEW_LIMITS.formats.join(", ")}.
|
|
</p>
|
|
</div>
|
|
|
|
<div className="mt-10 overflow-x-auto">
|
|
<table className="w-full text-left text-sm">
|
|
<caption className="mb-3 text-left text-lg font-semibold text-foreground">
|
|
Google Play: feature graphic and promo video
|
|
</caption>
|
|
<tbody>
|
|
<tr className="border-t border-border">
|
|
<td className="py-2 pr-4 font-medium">Feature graphic size</td>
|
|
<td className="py-2 tabular-nums">
|
|
{GOOGLE_PLAY_FEATURE_GRAPHIC.width} x {GOOGLE_PLAY_FEATURE_GRAPHIC.height} ({GOOGLE_PLAY_FEATURE_GRAPHIC.format})
|
|
</td>
|
|
</tr>
|
|
<tr className="border-t border-border">
|
|
<td className="py-2 pr-4 font-medium">Promo video hosting</td>
|
|
<td className="py-2">{GOOGLE_PLAY_PROMO_VIDEO.hosting}</td>
|
|
</tr>
|
|
<tr className="border-t border-border">
|
|
<td className="py-2 pr-4 font-medium">Promo video rules</td>
|
|
<td className="py-2">{GOOGLE_PLAY_PROMO_VIDEO.requirements.join(", ")}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div className="mt-10 border-t border-border pt-8">
|
|
<h3 className="text-lg font-semibold">Making a new preview instead of fixing an export?</h3>
|
|
<p className="mt-2 text-sm text-muted-foreground">
|
|
Paste your app's App Store or Google Play link for a free, no-signup preview: a live listing
|
|
card and three opening hooks written from that listing.
|
|
</p>
|
|
<div className="mt-4">
|
|
<AppListingPreviewRunner />
|
|
</div>
|
|
</div>
|
|
</ToolPanel>
|
|
);
|
|
}
|