Compare commits
25
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbd9595352 | ||
|
|
0386e2fd9f | ||
|
|
2a8a61697f | ||
|
|
8c732ab38e | ||
|
|
2912c8b608 | ||
|
|
5ec34e89ca | ||
|
|
645e971b99 | ||
|
|
1764e4b590 | ||
|
|
75d8004d1b | ||
|
|
28762f51c5 | ||
|
|
32d4a741f9 | ||
|
|
2f4221da56 | ||
|
|
60d8c0fd5f | ||
|
|
637f777135 | ||
|
|
a1b4c4f362 | ||
|
|
b6b24eef6c | ||
|
|
37dcab4db5 | ||
|
|
b9a769fdc4 | ||
|
|
2b127b6230 | ||
|
|
73ed977811 | ||
|
|
e81f0bb94b | ||
|
|
c3050a33f2 | ||
|
|
df9654fed9 | ||
|
|
239ae4ada2 | ||
|
|
33d50851b0 |
No files matched your search
@@ -68,8 +68,9 @@ Then read values where they're used:
|
||||
The panel picks up new groups automatically — no panel changes needed.
|
||||
Registered groups: Intro (page-intro choreography beats; `src/lib/intro.ts`),
|
||||
Wordmark (logo-A optics, blade tuck, contrast scrim;
|
||||
`src/components/landing/hero-wordmark.tsx`), Galaxy layout, Galaxy motion,
|
||||
Galaxy pointer, Galaxy look (hero galaxy;
|
||||
`src/components/landing/hero-wordmark.tsx`), Galaxy layout, Galaxy mobile
|
||||
(small-screen spiral profile — replaces the layout dials below its area
|
||||
threshold), Galaxy motion, Galaxy pointer, Galaxy look (hero galaxy;
|
||||
`src/components/landing/hero-galaxy-tunables.ts`) and Ruler layout, Ruler
|
||||
motion, Ruler look (scroll ruler;
|
||||
`src/components/ruler/ruler-tunables.ts`).
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
// Marketing routes the nav/footer reference but this app doesn't serve yet.
|
||||
// They bounce to the currently shipping site (same dependency as MEDIA_BASE —
|
||||
// this app already assumes the Vite site stays live) so no link dead-ends.
|
||||
// Delete a route from this list when its page migrates here.
|
||||
const LEGACY_ROUTES = [
|
||||
"download",
|
||||
"pricing",
|
||||
"tutorials",
|
||||
"news",
|
||||
"faq",
|
||||
"press-kit",
|
||||
"support",
|
||||
];
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
reactStrictMode: true,
|
||||
// Pin the project root: the repo has lockfiles both here and in the Nx
|
||||
@@ -22,11 +8,17 @@ const nextConfig: NextConfig = {
|
||||
turbopack: { root: __dirname },
|
||||
outputFileTracingRoot: __dirname,
|
||||
async redirects() {
|
||||
return LEGACY_ROUTES.map((route) => ({
|
||||
source: `/${route}`,
|
||||
destination: `https://getartcraft.com/${route}`,
|
||||
permanent: false,
|
||||
}));
|
||||
// Legacy Stripe return paths from the Vite site; checkout now lives in
|
||||
// the webapp, which serves the canonical slash forms.
|
||||
return ["checkout_success", "checkout_cancel", "portal_closed"].map(
|
||||
(route) => ({
|
||||
source: `/${route}`,
|
||||
destination: `https://app.getartcraft.com/checkout/${
|
||||
route === "checkout_success" ? "success" : "cancel"
|
||||
}`,
|
||||
permanent: false,
|
||||
}),
|
||||
);
|
||||
},
|
||||
// Same-origin proxies for large media served from other origins. The hero
|
||||
// wall draws its clips as WebGL video textures, which need CORS-clean
|
||||
|
||||
+52
-40
@@ -15,7 +15,7 @@
|
||||
"gsap": "3.15.0",
|
||||
"lenis": "1.3.23",
|
||||
"lucide-react": "^1.31.0",
|
||||
"next": "16.2.6",
|
||||
"next": "^16.2.12",
|
||||
"react": "19.2.6",
|
||||
"react-dom": "19.2.6",
|
||||
"tailwind-merge": "^3.6.0",
|
||||
@@ -608,15 +608,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/env": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-16.2.6.tgz",
|
||||
"integrity": "sha512-gd8HoHN4ufj73WmR3JmVolrpJR47ILK6LouP5xElPglaVxir6e1a7VzvTvDWkOoPXT9rkkTzyCxBu4yeZfZwcw==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-16.2.12.tgz",
|
||||
"integrity": "sha512-d0Z5Bc13Fa4nR8pFAKx2jay2yhJM16vlfHbTzYnUQAxlNb6B6lmn4hjt69lYNt4kRtyYP6gEM49lPRHNbIyneg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@next/swc-darwin-arm64": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.6.tgz",
|
||||
"integrity": "sha512-ZJGkkcNfYgrrMkqOdZ7zoLa1TOy0qpcMfk/z4Mh/FKUz40gVO+HNQWqmLxf67Z5WB64DRp0dhEbyHfel+6sJUg==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.12.tgz",
|
||||
"integrity": "sha512-0W1R0teHWJrqKX0FH20IzzIWAOuGtBxPGuObrxy1lE8hQvCFj49KE8a3WUg0D7sq6rn6zkM4c7YGUnhudBS6oA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -630,9 +630,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-darwin-x64": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.6.tgz",
|
||||
"integrity": "sha512-v/YLBHIY132Ced3puBJ7YJKw1lqsCrgcNo2aRJlCEyQrrCeRJlvGlnmxhPxNQI3KE3N1DN5r9TPNPvka3nq5RQ==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.12.tgz",
|
||||
"integrity": "sha512-Hy5Ls099+aFUmOLmIgPfLqNi6iCwhL3uQCssz5rWk+5Nkc6TUKCE83DY5BbNylfm3+mfwcSFnLRfrZDJhVxdtw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -646,12 +646,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-arm64-gnu": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.6.tgz",
|
||||
"integrity": "sha512-RPOvqlYBbcQjkz9VQQDZ2T2bARIjXZV1KFlt+V2Mr6SW/e4I9fcKsaA0hdyf2FHoTlsV2xnBd5Y912rP/1Ce6w==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.12.tgz",
|
||||
"integrity": "sha512-+YqU2h1cQkHsGfvjAsrSmst8UIFBibBGm5x3Xgel8NLMiDQtNOM4sM2GOEMvG5YiOBNeN/Ykk8cQC2S0Xrqljg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -662,12 +665,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-arm64-musl": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.6.tgz",
|
||||
"integrity": "sha512-URUTu1+dMkxJsPFgm+OeEvq9wf5sujw0EvgYy80TDGHTSLTnIHeqb0Eu8A3sC95IRgjejQL+kC4mw+4yPxiAXA==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.12.tgz",
|
||||
"integrity": "sha512-0qjhiYBaKAqF63LA1ZWAAnKTzFUguAaZiRa5etMLGGPj/B6uEVjtIZldIzFEp3wHlB0koK6aTzqPtSdplTCjoA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -678,12 +684,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-x64-gnu": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.6.tgz",
|
||||
"integrity": "sha512-DOj182mPV8G3UkrayLoREM5YEYI+Dk5wv7Ox9xl1fFibAELEsFD0lDPfHIeILlutMMfdyhlzYPELG3peuKaurw==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.12.tgz",
|
||||
"integrity": "sha512-7A3q26W+h7gnA15uqBToNuDqBEFZZcqh0mW2mn4AJh/G5pdg2RVE3n4slzLEliASZFG3NmsbEzng/x2Sh09mBg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -694,12 +703,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-x64-musl": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.6.tgz",
|
||||
"integrity": "sha512-HKQ5SP/V/ub73UvF7n/zeJlxk2kLmtL7Wzrg4WfmkjmNos5onJ2tKu7yZOPdL18A6Svfn3max29ym+ry7NkK4g==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.12.tgz",
|
||||
"integrity": "sha512-qSjL/uppm+cbh21s72Ss8gkiOhQ4dExWHNGOWy6eZV7STj5WsKehgxT61beSsOj+YYQuTplL376lOCdMQU5T8w==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -710,9 +722,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-win32-arm64-msvc": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.6.tgz",
|
||||
"integrity": "sha512-LZXpTlPyS5v7HhSmnvsLGP3iIYgYOBnc8r8ArlT55sGHV89bR2HlDdBjWQ+PY6SJMmk8TuVGFuxalnP3k/0Dwg==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.12.tgz",
|
||||
"integrity": "sha512-X6hzsOUJac/e7AWSbn9gQ9nzHld1xWP5iyjHpYWvud8pufB679O1xg4JDyKr8Xd69Jvd+kM2Der6uftiZCmjYA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -726,9 +738,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-win32-x64-msvc": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.6.tgz",
|
||||
"integrity": "sha512-F0+4i0h9J6C4eE3EAPWsoCk7UW/dbzOjyzxY0qnDUOYFu6FFmdZ6l97/XdV3/Nz3VYyO7UWjyEJUXkGqcoXfMA==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.12.tgz",
|
||||
"integrity": "sha512-F6fakeHuFTLOPt0bslQJdf+xtT+WIP9DVn/m4y1w1mRnVPyh3D/cNvzlRkxM444xfm+IvvYNSOrKiA2CDJ0Uxw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -2209,12 +2221,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/next": {
|
||||
"version": "16.2.6",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-16.2.6.tgz",
|
||||
"integrity": "sha512-qOVgKJg1+At15NpeUP+eJgCHvTCgXsogweq87Ri/Ix7PkqQHg4sdaXmSFqKlgaIXE4kW0g25LE68W87UANlHtw==",
|
||||
"version": "16.2.12",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-16.2.12.tgz",
|
||||
"integrity": "sha512-iD59eYQWmbFcEbX7v/acG5DRym9iw1DdaPoD0WTA920naWsE25wShzJW4+UvAs8MK9EC2kBfIH6vtto1H1PHGw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@next/env": "16.2.6",
|
||||
"@next/env": "16.2.12",
|
||||
"@swc/helpers": "0.5.15",
|
||||
"baseline-browser-mapping": "^2.9.19",
|
||||
"caniuse-lite": "^1.0.30001579",
|
||||
@@ -2228,14 +2240,14 @@
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@next/swc-darwin-arm64": "16.2.6",
|
||||
"@next/swc-darwin-x64": "16.2.6",
|
||||
"@next/swc-linux-arm64-gnu": "16.2.6",
|
||||
"@next/swc-linux-arm64-musl": "16.2.6",
|
||||
"@next/swc-linux-x64-gnu": "16.2.6",
|
||||
"@next/swc-linux-x64-musl": "16.2.6",
|
||||
"@next/swc-win32-arm64-msvc": "16.2.6",
|
||||
"@next/swc-win32-x64-msvc": "16.2.6",
|
||||
"@next/swc-darwin-arm64": "16.2.12",
|
||||
"@next/swc-darwin-x64": "16.2.12",
|
||||
"@next/swc-linux-arm64-gnu": "16.2.12",
|
||||
"@next/swc-linux-arm64-musl": "16.2.12",
|
||||
"@next/swc-linux-x64-gnu": "16.2.12",
|
||||
"@next/swc-linux-x64-musl": "16.2.12",
|
||||
"@next/swc-win32-arm64-msvc": "16.2.12",
|
||||
"@next/swc-win32-x64-msvc": "16.2.12",
|
||||
"sharp": "^0.34.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"gsap": "3.15.0",
|
||||
"lenis": "1.3.23",
|
||||
"lucide-react": "^1.31.0",
|
||||
"next": "16.2.6",
|
||||
"next": "^16.2.12",
|
||||
"react": "19.2.6",
|
||||
"react-dom": "19.2.6",
|
||||
"tailwind-merge": "^3.6.0",
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
import type { Metadata } from "next";
|
||||
import { CheckIcon } from "lucide-react";
|
||||
import BetaForm from "@/components/beta/beta-form";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent } from "@/components/page/page-header";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Beta Signup",
|
||||
description:
|
||||
"Apply for early access to new ArtCraft features. Test unreleased models and tools before anyone else, and help shape the fastest open desktop app for AI video and images.",
|
||||
alternates: { canonical: "/beta" },
|
||||
openGraph: { title: "Join the ArtCraft Beta" },
|
||||
};
|
||||
|
||||
const PERKS = [
|
||||
{
|
||||
title: "First access to new tools",
|
||||
description: "Try unreleased models and features before they ship.",
|
||||
},
|
||||
{
|
||||
title: "A direct line to the team",
|
||||
description: "Report issues and requests straight to the people building ArtCraft.",
|
||||
},
|
||||
{
|
||||
title: "Shape the roadmap",
|
||||
description: "Your feedback decides what we build next.",
|
||||
},
|
||||
];
|
||||
|
||||
export default function BetaPage() {
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
<SectionShell id="beta">
|
||||
<SectionEyebrow index="01" label="ArtCraft beta" annotation="Takes about thirty seconds" />
|
||||
<div className="grid gap-px bg-line lg:grid-cols-[1fr_minmax(0,480px)]">
|
||||
<div className="bg-bg px-6 py-14 md:px-10 md:py-20">
|
||||
<h1
|
||||
data-reveal
|
||||
className="max-w-3xl font-display text-4xl font-medium leading-[1.02] tracking-[-0.035em] text-ink-strong sm:text-5xl md:text-6xl"
|
||||
>
|
||||
Get new features <Accent>before anyone else</Accent>.
|
||||
</h1>
|
||||
<p data-reveal className="mt-5 max-w-xl text-lg leading-relaxed text-muted">
|
||||
We invite a small group of creators to test what we’re
|
||||
building next. Tell us a bit about yourself and we’ll reach
|
||||
out when a spot opens up.
|
||||
</p>
|
||||
|
||||
<ul data-reveal-group className="mt-12 flex flex-col gap-px bg-line">
|
||||
{PERKS.map((perk, i) => (
|
||||
<li key={perk.title} data-reveal className="flex gap-4 bg-bg py-5">
|
||||
<span className="mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center border border-line text-accent-ink">
|
||||
<CheckIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
</span>
|
||||
<div className="flex-1">
|
||||
<p className="font-medium text-ink-strong">{perk.title}</p>
|
||||
<p className="mt-1 text-sm leading-relaxed text-muted">
|
||||
{perk.description}
|
||||
</p>
|
||||
</div>
|
||||
<p className="hud-label text-faint">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className="relative bg-bg-raised p-6 md:p-10">
|
||||
<p className="hud-label text-faint">Apply for the beta</p>
|
||||
<p className="mt-2 mb-8 text-sm text-muted">
|
||||
No spam, ever.
|
||||
</p>
|
||||
<BetaForm />
|
||||
</div>
|
||||
</div>
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import { FilmIcon, LayersIcon, PlayIcon, ScrollTextIcon } from "lucide-react";
|
||||
import { InstagramIcon } from "@/components/icons";
|
||||
import CampaignCta from "@/components/campaign/campaign-cta";
|
||||
import CampaignHero from "@/components/campaign/campaign-hero";
|
||||
import { CampaignSection, ClosingCta, TipGrid } from "@/components/campaign/sections";
|
||||
import { Accent } from "@/components/page/page-header";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { Button } from "@/components/ui";
|
||||
import {
|
||||
JBOOGX,
|
||||
JBOOGX_CRAFT,
|
||||
JBOOGX_CREDITS,
|
||||
JBOOGX_FEATURED,
|
||||
JBOOGX_FEED,
|
||||
type InstagramPost,
|
||||
} from "@/lib/campaign-data";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Jboogx Creative × ArtCraft. Seedance AI Video Creator Spotlight.",
|
||||
description:
|
||||
"Tyler Bernabe (@jboogxcreative) makes AI, VFX, and mixed-media work for nearly a million followers, and he directs his Seedance videos in ArtCraft, home of Seedance 2.5. Watch the work, then make your own with the same tools.",
|
||||
alternates: { canonical: "/creators/jboogxcreative" },
|
||||
openGraph: { title: "Jboogx Creative × ArtCraft" },
|
||||
};
|
||||
|
||||
// Person schema so search engines connect this page to his own profiles.
|
||||
const JSON_LD = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "ProfilePage",
|
||||
mainEntity: {
|
||||
"@type": "Person",
|
||||
name: "Tyler M. Bernabe",
|
||||
alternateName: "jboogxcreative",
|
||||
description: "Digital taste maker working across AI, VFX, and mixed media.",
|
||||
sameAs: [JBOOGX.instagramUrl, JBOOGX.siteUrl],
|
||||
},
|
||||
};
|
||||
|
||||
const CRAFT_ICONS = [ScrollTextIcon, FilmIcon, LayersIcon].map((Icon, i) => (
|
||||
<Icon key={i} aria-hidden className="h-5 w-5" />
|
||||
));
|
||||
|
||||
export default function CreatorJboogxPage() {
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(JSON_LD) }}
|
||||
/>
|
||||
|
||||
<CampaignHero
|
||||
id="creator"
|
||||
label="Creator spotlight"
|
||||
annotation="Made with ArtCraft"
|
||||
title={
|
||||
<>
|
||||
jboogxcreative, digital <Accent>taste maker</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Nearly a million people follow Tyler Bernabe for AI, VFX, and mixed-media work that treats the feed like a screening room. His Seedance pieces are made in ArtCraft, the same app you can open right now."
|
||||
>
|
||||
<div className="flex flex-wrap items-center justify-center gap-3">
|
||||
<CampaignCta webLabel="Create now" webIcon="sparkles" />
|
||||
<Button
|
||||
href={JBOOGX.instagramUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
variant="secondary"
|
||||
size="lg"
|
||||
>
|
||||
<InstagramIcon className="h-4 w-4" />
|
||||
Follow @jboogxcreative
|
||||
</Button>
|
||||
</div>
|
||||
</CampaignHero>
|
||||
|
||||
{/* Reel triptych: his three newest reels; the center card is the newest. */}
|
||||
<section className="border-t border-line">
|
||||
<div className="mx-auto max-w-[1280px] border-x border-line">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-10">
|
||||
<p className="hud-label text-muted">Fresh from the feed</p>
|
||||
<p className="hud-label text-faint">Tap a frame to watch on Instagram</p>
|
||||
</div>
|
||||
<ul data-reveal-group className="grid gap-px bg-line sm:grid-cols-3">
|
||||
{JBOOGX_FEATURED.map((post, i) => (
|
||||
<li key={post.path} data-reveal className="bg-bg p-6 md:p-8">
|
||||
<div className="relative aspect-[9/16] w-full overflow-hidden bg-bg-sunken">
|
||||
<ReelCard post={post} eager index={String(i + 1).padStart(2, "0")} />
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Selected credits marquee, names from his Instagram bio. */}
|
||||
<div className="marquee border-t border-line">
|
||||
{[0, 1].map((copy) => (
|
||||
<ul key={copy} aria-hidden={copy === 1 || undefined} className="marquee-track items-center">
|
||||
{[...JBOOGX_CREDITS, ...JBOOGX_CREDITS].map((name, i) => (
|
||||
<li key={`${name}-${i}`} className="flex items-center whitespace-nowrap px-6 py-4">
|
||||
<span
|
||||
className={
|
||||
i % 2
|
||||
? "font-serif text-3xl italic text-muted"
|
||||
: "font-display text-3xl font-medium tracking-[-0.02em] text-faint"
|
||||
}
|
||||
>
|
||||
{name}
|
||||
</span>
|
||||
<span aria-hidden className="ml-12 h-1.5 w-1.5 bg-accent" />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<CampaignSection
|
||||
id="the-work"
|
||||
index="02"
|
||||
label="The work"
|
||||
annotation="Each one opens on Instagram"
|
||||
title={
|
||||
<>
|
||||
Straight from the <Accent>feed</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Recent drops from @jboogxcreative, all made with ArtCraft."
|
||||
>
|
||||
<ul className="grid grid-cols-2 gap-px border-t border-line bg-line lg:grid-cols-4">
|
||||
{JBOOGX_FEED.map((post, i) => (
|
||||
<li key={post.path} className="bg-bg p-3 md:p-4">
|
||||
<div className="relative aspect-[9/16] w-full overflow-hidden bg-bg-sunken">
|
||||
<ReelCard post={post} index={String(i + 1).padStart(2, "0")} />
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className="flex justify-center border-t border-line px-6 py-6">
|
||||
<Button
|
||||
href={JBOOGX.instagramUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
variant="secondary"
|
||||
>
|
||||
<InstagramIcon className="h-4 w-4" />
|
||||
See more on Instagram
|
||||
</Button>
|
||||
</div>
|
||||
</CampaignSection>
|
||||
|
||||
<CampaignSection
|
||||
id="craft"
|
||||
index="03"
|
||||
label="The craft"
|
||||
annotation="Seedance 2.5 in ArtCraft"
|
||||
title={
|
||||
<>
|
||||
The prompt is the <Accent>craft</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Tyler's videos are generated with Seedance 2.5 in ArtCraft, and the magic is in the writing. His prompts run long and read like shot lists, because the model gives back exactly as much direction as you put in. Learn the writing and the same studio answers to you."
|
||||
>
|
||||
<TipGrid items={JBOOGX_CRAFT} columns={3} icons={CRAFT_ICONS} />
|
||||
<p className="border-t border-line px-6 py-5 text-center text-sm leading-relaxed text-muted md:px-10">
|
||||
Everything above runs in the same ArtCraft anyone can open: same{" "}
|
||||
<Link href="/seedance2-5" className="text-ink underline underline-offset-4 decoration-line-strong hover:decoration-current">
|
||||
Seedance 2.5
|
||||
</Link>
|
||||
, same tools, no private build. The writing is a skill, and you can
|
||||
start learning it today.
|
||||
</p>
|
||||
</CampaignSection>
|
||||
|
||||
<ClosingCta
|
||||
eyebrow="Free to start · Web or desktop"
|
||||
title={
|
||||
<>
|
||||
Make something worth a <Accent>follow</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Everything in Tyler's toolkit ships in ArtCraft: Seedance 2.5, the canvas, the whole studio."
|
||||
footnote="Your first drop is one prompt away."
|
||||
>
|
||||
<CampaignCta webLabel="Create now" webIcon="sparkles" />
|
||||
</ClosingCta>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
// Reel card: hosted thumbnail linking out to the post on Instagram.
|
||||
function ReelCard({
|
||||
post,
|
||||
index,
|
||||
eager = false,
|
||||
}: {
|
||||
post: InstagramPost;
|
||||
index: string;
|
||||
eager?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<a
|
||||
href={`https://www.instagram.com/${post.path}/`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label={`${post.title}. Watch on Instagram.`}
|
||||
className="group absolute inset-0 block"
|
||||
>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={post.image}
|
||||
alt={post.title}
|
||||
loading={eager ? "eager" : "lazy"}
|
||||
decoding="async"
|
||||
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.02]"
|
||||
/>
|
||||
<span className="absolute inset-0 bg-black/20 transition-colors group-hover:bg-black/10" />
|
||||
<span className="hud-label absolute top-3 right-3 text-white/80">{index}</span>
|
||||
<span className="hud-label absolute bottom-3 left-3 flex items-center gap-1.5 bg-invert-bg px-3 py-1.5 font-bold text-invert-fg">
|
||||
<PlayIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Instagram
|
||||
</span>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import type { Metadata } from "next";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import DownloadPage from "@/components/download/download-page";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Download ArtCraft — Windows and macOS",
|
||||
description:
|
||||
"Download ArtCraft for Windows and macOS. Start creating AI artwork today.",
|
||||
alternates: { canonical: "/download" },
|
||||
};
|
||||
|
||||
export default function Download() {
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
<DownloadPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound } from "next/navigation";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell } from "@/components/landing/section-shell";
|
||||
import {
|
||||
ArticleBody,
|
||||
BackLink,
|
||||
PageHeader,
|
||||
} from "@/components/page/page-header";
|
||||
import { getFaqItemBySlug, getFaqItems } from "@/lib/content";
|
||||
import { mediaUrl } from "@/lib/links";
|
||||
import { markdownToHtml } from "@/lib/markdown";
|
||||
|
||||
type Params = Promise<{ slug: string }>;
|
||||
|
||||
export const dynamicParams = false;
|
||||
|
||||
export function generateStaticParams() {
|
||||
return getFaqItems().map((item) => ({ slug: item.slug }));
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Params;
|
||||
}): Promise<Metadata> {
|
||||
const { slug } = await params;
|
||||
const item = getFaqItemBySlug(slug);
|
||||
if (!item) return {};
|
||||
return {
|
||||
title: item.title,
|
||||
description: item.description,
|
||||
alternates: { canonical: `/faq/${item.slug}` },
|
||||
};
|
||||
}
|
||||
|
||||
export default async function FaqArticlePage({ params }: { params: Params }) {
|
||||
const { slug } = await params;
|
||||
const item = getFaqItemBySlug(slug);
|
||||
if (!item) notFound();
|
||||
|
||||
const html = markdownToHtml(item.body, "/faq/");
|
||||
const jsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Article",
|
||||
headline: item.title,
|
||||
description: item.description,
|
||||
articleBody: item.body,
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||
/>
|
||||
|
||||
<PageHeader
|
||||
id="faq"
|
||||
index="01"
|
||||
label="FAQ"
|
||||
annotation="Guide"
|
||||
title={item.title}
|
||||
lede={item.description || undefined}
|
||||
>
|
||||
<div className="mt-8">
|
||||
<BackLink href="/faq">Back to FAQ</BackLink>
|
||||
</div>
|
||||
</PageHeader>
|
||||
|
||||
<SectionShell id="articles">
|
||||
{item.thumbnail && (
|
||||
<figure className="border-b border-line bg-bg-sunken">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={mediaUrl(item.thumbnail)}
|
||||
alt={item.title}
|
||||
className="mx-auto block h-auto w-full max-w-3xl"
|
||||
/>
|
||||
</figure>
|
||||
)}
|
||||
<ArticleBody html={html} />
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import { ArrowRightIcon } from "lucide-react";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent, PageHeader } from "@/components/page/page-header";
|
||||
import { getFaqItems } from "@/lib/content";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Frequently Asked Questions",
|
||||
description:
|
||||
"Explore ArtCraft FAQs: guides on AI image generation, editing, and workflows.",
|
||||
alternates: { canonical: "/faq" },
|
||||
};
|
||||
|
||||
export default function FaqIndexPage() {
|
||||
const items = getFaqItems();
|
||||
|
||||
const jsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "FAQPage",
|
||||
mainEntity: items.map((item) => ({
|
||||
"@type": "Question",
|
||||
name: item.title,
|
||||
acceptedAnswer: { "@type": "Answer", text: item.description },
|
||||
})),
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||
/>
|
||||
|
||||
<PageHeader
|
||||
id="faq"
|
||||
index="01"
|
||||
label="FAQ"
|
||||
annotation={`${items.length} guides`}
|
||||
title={
|
||||
<>
|
||||
Frequently asked <Accent>questions</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Deep-dive guides and answers about ArtCraft."
|
||||
/>
|
||||
|
||||
<SectionShell id="articles">
|
||||
<SectionEyebrow index="02" label="Guides" annotation="Read in order or jump around" />
|
||||
<ol data-reveal-group className="grid gap-px bg-line md:grid-cols-2">
|
||||
{items.map((item, i) => (
|
||||
<li key={item.slug} data-reveal className="bg-bg">
|
||||
<Link
|
||||
href={`/faq/${item.slug}`}
|
||||
className="group flex h-full flex-col p-6 hover:bg-bg-raised md:p-8"
|
||||
>
|
||||
<p className="hud-label text-faint">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</p>
|
||||
<h2 className="mt-6 flex items-start gap-2 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
<span className="flex-1">{item.title}</span>
|
||||
<ArrowRightIcon
|
||||
aria-hidden
|
||||
className="mt-1.5 h-4 w-4 shrink-0 text-faint transition-transform group-hover:translate-x-1 group-hover:text-ink"
|
||||
/>
|
||||
</h2>
|
||||
<p className="mt-2 leading-relaxed text-muted">
|
||||
{item.description}
|
||||
</p>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
{items.length % 2 === 1 && (
|
||||
<li aria-hidden className="hidden bg-bg md:block" />
|
||||
)}
|
||||
</ol>
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -248,6 +248,12 @@ html[data-intro] .wm-letter {
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
}
|
||||
/* Half tick for marks sitting ON a top edge: the upper arm of the cross
|
||||
is dropped so nothing pokes above the boundary (into the sticky
|
||||
eyebrow band) — crossbar plus downward stem only. */
|
||||
.tick-half::before {
|
||||
top: 5px;
|
||||
}
|
||||
.tick::after {
|
||||
top: 5px;
|
||||
left: 0;
|
||||
@@ -288,6 +294,178 @@ html[data-ruler="on"]::-webkit-scrollbar {
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
/* Pricing plan color identities (the original table's green / purple /
|
||||
orange / blue). `--plan` is the saturated brand color for surfaces
|
||||
(index tabs, buttons, frames); `--plan-ink` is the contrast-safe text
|
||||
shade, darker on paper and lighter on the dark viewport. */
|
||||
.plan-basic { --plan: #00a873; --plan-ink: #007a54; }
|
||||
.plan-pro { --plan: #9d4cff; --plan-ink: #7a2fe0; }
|
||||
.plan-max { --plan: #d97700; --plan-ink: #b35f00; }
|
||||
.plan-enterprise { --plan: #3568c9; --plan-ink: #2a55a8; }
|
||||
:root[data-theme="dark"] .plan-basic { --plan-ink: #2fd39c; }
|
||||
:root[data-theme="dark"] .plan-pro { --plan-ink: #c08fff; }
|
||||
:root[data-theme="dark"] .plan-max { --plan-ink: #ffb347; }
|
||||
:root[data-theme="dark"] .plan-enterprise { --plan-ink: #7ea3ee; }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) .plan-basic { --plan-ink: #2fd39c; }
|
||||
:root:not([data-theme="light"]) .plan-pro { --plan-ink: #c08fff; }
|
||||
:root:not([data-theme="light"]) .plan-max { --plan-ink: #ffb347; }
|
||||
:root:not([data-theme="light"]) .plan-enterprise { --plan-ink: #7ea3ee; }
|
||||
}
|
||||
|
||||
/* Plan cell: a color wash pooling under the index tab and fading into the
|
||||
page surface; highlighted plans get a 2px frame in their color. */
|
||||
.plan-card {
|
||||
background:
|
||||
linear-gradient(
|
||||
to bottom,
|
||||
color-mix(in srgb, var(--plan) 14%, transparent),
|
||||
transparent 50%
|
||||
),
|
||||
var(--bg);
|
||||
}
|
||||
.plan-card[data-highlight] {
|
||||
box-shadow: inset 0 0 0 2px var(--plan);
|
||||
background:
|
||||
linear-gradient(
|
||||
to bottom,
|
||||
color-mix(in srgb, var(--plan) 22%, transparent),
|
||||
color-mix(in srgb, var(--plan) 4%, transparent)
|
||||
),
|
||||
var(--bg);
|
||||
}
|
||||
.plan-check {
|
||||
background: color-mix(in srgb, var(--plan) 16%, transparent);
|
||||
color: var(--plan-ink);
|
||||
}
|
||||
|
||||
/* Rendered markdown (FAQ, tutorials, news). Same hairline/mono vocabulary
|
||||
as the rest of the site: display headings, token colors, no radius. */
|
||||
.article-content {
|
||||
line-height: 1.75;
|
||||
color: var(--ink);
|
||||
}
|
||||
.article-content > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.article-content h1,
|
||||
.article-content h2,
|
||||
.article-content h3,
|
||||
.article-content h4 {
|
||||
font-family: var(--font-display);
|
||||
font-stretch: 118%;
|
||||
font-weight: 620;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.1;
|
||||
color: var(--ink-strong);
|
||||
}
|
||||
.article-content h1 {
|
||||
font-size: 2rem;
|
||||
margin: 2.5rem 0 1rem;
|
||||
}
|
||||
.article-content h2 {
|
||||
font-size: 1.625rem;
|
||||
margin: 2.5rem 0 0.875rem;
|
||||
padding-top: 1.25rem;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.article-content h3 {
|
||||
font-size: 1.25rem;
|
||||
margin: 1.75rem 0 0.625rem;
|
||||
}
|
||||
.article-content h4 {
|
||||
font-size: 1.0625rem;
|
||||
margin: 1.5rem 0 0.5rem;
|
||||
}
|
||||
.article-content p {
|
||||
margin: 1rem 0;
|
||||
font-size: 1.0625rem;
|
||||
}
|
||||
.article-content ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
.article-content li {
|
||||
position: relative;
|
||||
padding-left: 1.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.article-content li::before {
|
||||
content: "▪";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--accent-ink);
|
||||
}
|
||||
.article-content a {
|
||||
color: var(--accent-ink);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
text-decoration-color: var(--line-strong);
|
||||
}
|
||||
.article-content a:hover {
|
||||
text-decoration-color: currentColor;
|
||||
}
|
||||
.article-content strong {
|
||||
color: var(--ink-strong);
|
||||
font-weight: 600;
|
||||
}
|
||||
.article-content blockquote {
|
||||
margin: 1.5rem 0;
|
||||
padding-left: 1.25rem;
|
||||
border-left: 2px solid var(--accent);
|
||||
color: var(--muted);
|
||||
font-family: var(--font-serif);
|
||||
font-style: italic;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
.article-content code {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.875em;
|
||||
padding: 0.1em 0.35em;
|
||||
background: var(--bg-sunken);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.article-content pre {
|
||||
margin: 1.5rem 0;
|
||||
padding: 1rem;
|
||||
overflow-x: auto;
|
||||
background: var(--bg-sunken);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.article-content pre code {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.article-content img,
|
||||
.article-content .video-embed {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin: 2rem 0;
|
||||
border: 1px solid var(--line);
|
||||
background: var(--bg-sunken);
|
||||
}
|
||||
.article-content .youtube-embed {
|
||||
position: relative;
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
||||
.article-content .youtube-embed iframe {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
}
|
||||
.article-content .video-embed video {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: 70vh;
|
||||
}
|
||||
|
||||
/* Mono capability marquee. Duplicated track scrolls -50%; the reduced-motion
|
||||
* blanket below freezes it in place. */
|
||||
.marquee {
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
import SiteNav from "@/components/site-nav";
|
||||
import SiteFooter from "@/components/site-footer";
|
||||
import IntroConductor from "@/components/intro-conductor";
|
||||
import LandingContext from "@/components/landing-context";
|
||||
import MotionProvider from "@/components/motion-provider";
|
||||
import ScrollRuler from "@/components/ruler/scroll-ruler";
|
||||
import TunerPanel from "@/components/dev/tuner-panel";
|
||||
@@ -101,11 +102,13 @@ const JSON_LD = {
|
||||
// full word flashes for the frames between paint and hydration, then
|
||||
// snaps into the logo-only formation start.
|
||||
//
|
||||
// Also reloads on back/forward-cache restores: Firefox freezes the JS heap
|
||||
// and discards the WebGL context, so a restored page shows a dead galaxy
|
||||
// canvas and stalled instruments. The listener is attached here (pre-paint)
|
||||
// so it lives inside the frozen page and fires on the restore; the intro is
|
||||
// seen-flagged by then, so the reload comes back settled.
|
||||
// Also reloads on back/forward-cache restores (pageshow with persisted):
|
||||
// a bfcache-restored page thaws with its WebGL context discarded in some
|
||||
// browsers, leaving a dead galaxy canvas — a reload swaps it for a clean
|
||||
// load, and the intro is seen-flagged by then so it comes back settled.
|
||||
// (The Firefox back-navigation hydration failure was a different bug:
|
||||
// Next's router crashed on back_forward loads — "Router action dispatched
|
||||
// before initialization" — fixed by the Next 16.2.12 patch bump.)
|
||||
const THEME_SCRIPT = `(function(){try{var t=localStorage.getItem("artcraft-theme");if(t==="light"||t==="dark"){document.documentElement.setAttribute("data-theme",t);}}catch(e){}try{if(!matchMedia("(prefers-reduced-motion: reduce)").matches){document.documentElement.setAttribute("data-intro","");}}catch(e){}addEventListener("pageshow",function(e){if(e.persisted)location.reload();});})();`;
|
||||
|
||||
export default function RootLayout({
|
||||
@@ -135,6 +138,7 @@ export default function RootLayout({
|
||||
<ScrollRuler />
|
||||
</MotionProvider>
|
||||
<TunerPanel />
|
||||
<LandingContext />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
import type { Metadata } from "next";
|
||||
import {
|
||||
AudioLinesIcon,
|
||||
CameraIcon,
|
||||
ClockIcon,
|
||||
FilmIcon,
|
||||
LayersIcon,
|
||||
PaintbrushIcon,
|
||||
} from "lucide-react";
|
||||
import CampaignHero from "@/components/campaign/campaign-hero";
|
||||
import ExampleVideos from "@/components/campaign/example-videos";
|
||||
import H3PromptBox from "@/components/campaign/h3-promptbox";
|
||||
import {
|
||||
CampaignSection,
|
||||
ClosingCta,
|
||||
FaqAccordion,
|
||||
Prose,
|
||||
TipGrid,
|
||||
} from "@/components/campaign/sections";
|
||||
import { Accent } from "@/components/page/page-header";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { Button } from "@/components/ui";
|
||||
import {
|
||||
H3,
|
||||
H3_EXAMPLES,
|
||||
H3_FAQ,
|
||||
H3_HIGHLIGHTS,
|
||||
H3_OVERVIEW,
|
||||
H3_TIPS,
|
||||
} from "@/lib/campaign-data";
|
||||
import { webappUrl } from "@/lib/links";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "MiniMax H3 Free in ArtCraft. AI Video with Native Sound. Try It Now.",
|
||||
description:
|
||||
"Generate MiniMax H3 videos for free in ArtCraft. Up to 15 seconds of 2K AI video with native stereo sound. Type a prompt and try MiniMax's new multimodal model right on the page.",
|
||||
alternates: { canonical: "/minimax-h3" },
|
||||
openGraph: { title: "MiniMax H3, Free in ArtCraft" },
|
||||
};
|
||||
|
||||
const HIGHLIGHT_ICONS = [
|
||||
CameraIcon,
|
||||
ClockIcon,
|
||||
AudioLinesIcon,
|
||||
LayersIcon,
|
||||
PaintbrushIcon,
|
||||
FilmIcon,
|
||||
].map((Icon, i) => <Icon key={i} aria-hidden className="h-5 w-5" />);
|
||||
|
||||
export default function MinimaxH3Page() {
|
||||
const faqJsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "FAQPage",
|
||||
mainEntity: H3_FAQ.map((item) => ({
|
||||
"@type": "Question",
|
||||
name: item.question,
|
||||
acceptedAnswer: { "@type": "Answer", text: item.answer },
|
||||
})),
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(faqJsonLd) }}
|
||||
/>
|
||||
|
||||
<CampaignHero
|
||||
id="minimax-h3"
|
||||
label={H3.name}
|
||||
annotation="Generations are free right now"
|
||||
title={
|
||||
<>
|
||||
Try {H3.name}, <Accent>free</Accent> in ArtCraft.
|
||||
</>
|
||||
}
|
||||
lede="MiniMax's new multimodal model generates up to 15 seconds of 2K video with native stereo sound. Type a prompt and see for yourself: no credits, no charge."
|
||||
>
|
||||
<div className="flex justify-center">
|
||||
<H3PromptBox />
|
||||
</div>
|
||||
</CampaignHero>
|
||||
|
||||
<CampaignSection
|
||||
id="overview"
|
||||
index="02"
|
||||
label="Overview"
|
||||
annotation="From MiniMax's announcement"
|
||||
title={
|
||||
<>
|
||||
What is <Accent>{H3.name}</Accent>?
|
||||
</>
|
||||
}
|
||||
>
|
||||
<Prose paragraphs={H3_OVERVIEW} />
|
||||
</CampaignSection>
|
||||
|
||||
<CampaignSection
|
||||
id="highlights"
|
||||
index="03"
|
||||
label="Highlights"
|
||||
title={
|
||||
<>
|
||||
Built as <Accent>one</Accent> model.
|
||||
</>
|
||||
}
|
||||
>
|
||||
<TipGrid items={H3_HIGHLIGHTS} columns={3} icons={HIGHLIGHT_ICONS} />
|
||||
</CampaignSection>
|
||||
|
||||
<CampaignSection
|
||||
id="examples"
|
||||
index="04"
|
||||
label="Examples"
|
||||
annotation="Turn the sound on"
|
||||
title={
|
||||
<>
|
||||
See it <Accent>(and hear it)</Accent> yourself.
|
||||
</>
|
||||
}
|
||||
lede="Sample generations from MiniMax's official H3 announcement. The audio is generated with the picture."
|
||||
>
|
||||
<ExampleVideos
|
||||
examples={H3_EXAMPLES}
|
||||
creditHref={H3.blogUrl}
|
||||
creditLabel="Video: MiniMax"
|
||||
/>
|
||||
</CampaignSection>
|
||||
|
||||
<CampaignSection
|
||||
id="tips"
|
||||
index="05"
|
||||
label="Prompt tips"
|
||||
title={
|
||||
<>
|
||||
Get more out of <Accent>{H3.name}</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="A few habits that pay off with a model that listens this closely."
|
||||
>
|
||||
<TipGrid items={H3_TIPS} />
|
||||
</CampaignSection>
|
||||
|
||||
<CampaignSection
|
||||
id="campaign-faq"
|
||||
index="06"
|
||||
label="FAQ"
|
||||
title={
|
||||
<>
|
||||
Frequently asked <Accent>questions</Accent>.
|
||||
</>
|
||||
}
|
||||
>
|
||||
<FaqAccordion items={H3_FAQ} />
|
||||
</CampaignSection>
|
||||
|
||||
<ClosingCta
|
||||
eyebrow="Every model, one library"
|
||||
title={
|
||||
<>
|
||||
One model down. <Accent>Plenty</Accent> to go.
|
||||
</>
|
||||
}
|
||||
lede={`What you just used is the real thing: the ${H3.name} promptbox, settings and all. The ArtCraft app takes it from there. Run the same shot through Seedance, Veo, Sora, Kling, and every other leading model, keep every take in one library, and pick the winner.`}
|
||||
>
|
||||
<div className="flex flex-wrap items-center justify-center gap-3">
|
||||
<Button href={webappUrl("/create-video")} size="lg">
|
||||
Try more models
|
||||
</Button>
|
||||
<Button href="/" variant="secondary" size="lg">
|
||||
Learn more about ArtCraft
|
||||
</Button>
|
||||
</div>
|
||||
</ClosingCta>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound } from "next/navigation";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell } from "@/components/landing/section-shell";
|
||||
import {
|
||||
ArticleBody,
|
||||
BackLink,
|
||||
PageHeader,
|
||||
} from "@/components/page/page-header";
|
||||
import { getNewsPostBySlug, getNewsPosts } from "@/lib/content";
|
||||
import { mediaUrl } from "@/lib/links";
|
||||
import { markdownToHtml } from "@/lib/markdown";
|
||||
|
||||
type Params = Promise<{ slug: string }>;
|
||||
|
||||
export const dynamicParams = false;
|
||||
|
||||
export function generateStaticParams() {
|
||||
return getNewsPosts().map((post) => ({ slug: post.slug }));
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Params;
|
||||
}): Promise<Metadata> {
|
||||
const { slug } = await params;
|
||||
const post = getNewsPostBySlug(slug);
|
||||
if (!post) return {};
|
||||
return {
|
||||
title: post.title,
|
||||
description: post.description,
|
||||
alternates: { canonical: `/news/${post.slug}` },
|
||||
openGraph: { type: "article", publishedTime: post.date },
|
||||
};
|
||||
}
|
||||
|
||||
export default async function NewsPostPage({ params }: { params: Params }) {
|
||||
const { slug } = await params;
|
||||
const post = getNewsPostBySlug(slug);
|
||||
if (!post) notFound();
|
||||
|
||||
// Post bodies reference images as `./images/blog/…`, relative to the
|
||||
// site root where they are hosted.
|
||||
const html = markdownToHtml(post.body, mediaUrl("/"));
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
<PageHeader
|
||||
id="news"
|
||||
index="01"
|
||||
label="News"
|
||||
annotation={post.date}
|
||||
title={post.title}
|
||||
lede={post.description || undefined}
|
||||
>
|
||||
<div className="mt-8">
|
||||
<BackLink href="/news">Back to News</BackLink>
|
||||
</div>
|
||||
</PageHeader>
|
||||
|
||||
<SectionShell id="articles">
|
||||
{post.thumbnail && (
|
||||
<figure className="border-b border-line bg-bg-sunken">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={mediaUrl(post.thumbnail)}
|
||||
alt={post.title}
|
||||
className="mx-auto block h-auto w-full max-w-3xl"
|
||||
/>
|
||||
</figure>
|
||||
)}
|
||||
<ArticleBody html={html} />
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import { ArrowRightIcon } from "lucide-react";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent, PageHeader } from "@/components/page/page-header";
|
||||
import { getNewsPosts } from "@/lib/content";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "News & Updates",
|
||||
description:
|
||||
"Latest updates, features, and announcements from the ArtCraft team.",
|
||||
alternates: { canonical: "/news" },
|
||||
};
|
||||
|
||||
export default function NewsIndexPage() {
|
||||
const posts = getNewsPosts();
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
<PageHeader
|
||||
id="news"
|
||||
index="01"
|
||||
label="News"
|
||||
annotation={`${posts.length} posts`}
|
||||
title={
|
||||
<>
|
||||
News & <Accent>updates</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Latest updates, features, and announcements from the ArtCraft team."
|
||||
/>
|
||||
|
||||
<SectionShell id="articles">
|
||||
<SectionEyebrow index="02" label="Posts" annotation="Newest first" />
|
||||
<ol data-reveal-group className="flex flex-col gap-px bg-line">
|
||||
{posts.map((post) => (
|
||||
<li key={post.slug} data-reveal className="bg-bg">
|
||||
<Link
|
||||
href={`/news/${post.slug}`}
|
||||
className="group grid gap-4 p-6 hover:bg-bg-raised md:grid-cols-[10rem_1fr] md:p-8"
|
||||
>
|
||||
<p className="hud-label text-faint">{post.date}</p>
|
||||
<div>
|
||||
<h2 className="flex items-start gap-2 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
<span className="flex-1">{post.title}</span>
|
||||
<ArrowRightIcon
|
||||
aria-hidden
|
||||
className="mt-1.5 h-4 w-4 shrink-0 text-faint transition-transform group-hover:translate-x-1 group-hover:text-ink"
|
||||
/>
|
||||
</h2>
|
||||
<p className="mt-2 max-w-2xl leading-relaxed text-muted">
|
||||
{post.description}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
{posts.length === 0 && (
|
||||
<li className="bg-bg p-6 text-muted md:p-8">
|
||||
No updates yet. Check back soon.
|
||||
</li>
|
||||
)}
|
||||
</ol>
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
import type { Metadata } from "next";
|
||||
import { DiscordIcon } from "@/components/icons";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell } from "@/components/landing/section-shell";
|
||||
import { Accent, PageHeader } from "@/components/page/page-header";
|
||||
import PressKitGallery from "@/components/press-kit/press-kit-gallery";
|
||||
import { Button } from "@/components/ui";
|
||||
import { SOCIAL_LINKS } from "@/lib/links";
|
||||
import { PRESS_CONTACT_PHONE } from "@/lib/press-kit-data";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Press Kit",
|
||||
description:
|
||||
"Download ArtCraft press assets including logos, promotional videos, screenshots, and branding materials for media coverage.",
|
||||
alternates: { canonical: "/press-kit" },
|
||||
};
|
||||
|
||||
export default function PressKitPage() {
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
<PageHeader
|
||||
id="press-kit"
|
||||
index="01"
|
||||
label="Press kit"
|
||||
annotation="Logos · Videos · Screenshots"
|
||||
title={
|
||||
<>
|
||||
Press <Accent>kit</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Everything you need for press coverage, reviews, and content creation. Download high-quality assets and promotional materials about the world's only open source precision AI tool for artists."
|
||||
/>
|
||||
|
||||
<PressKitGallery />
|
||||
|
||||
<SectionShell id="contact">
|
||||
<div className="flex flex-col items-center px-6 py-16 text-center md:py-24">
|
||||
<p className="hud-label text-faint">Need something specific?</p>
|
||||
<h2
|
||||
data-reveal
|
||||
className="mt-6 max-w-2xl font-display text-4xl font-medium leading-[1.02] tracking-[-0.035em] text-ink-strong sm:text-5xl"
|
||||
>
|
||||
Talk to a <Accent>human</Accent>.
|
||||
</h2>
|
||||
<p className="mt-5 max-w-lg leading-relaxed text-muted">
|
||||
For specific press inquiries, interview requests, or custom assets,
|
||||
reach out to us on Discord. Or text Brandon at{" "}
|
||||
<a
|
||||
href={`tel:${PRESS_CONTACT_PHONE.tel}`}
|
||||
className="whitespace-nowrap text-ink underline underline-offset-4 decoration-line-strong hover:decoration-current"
|
||||
>
|
||||
{PRESS_CONTACT_PHONE.display}
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
<Button
|
||||
href={SOCIAL_LINKS.DISCORD}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
size="lg"
|
||||
className="mt-8"
|
||||
>
|
||||
<DiscordIcon className="h-4 w-4" />
|
||||
Contact us on Discord
|
||||
</Button>
|
||||
</div>
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
import type { Metadata } from "next";
|
||||
import { TagIcon } from "lucide-react";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent, PageHeader } from "@/components/page/page-header";
|
||||
import CreditsCta from "@/components/pricing/credits-cta";
|
||||
import PricingTable from "@/components/pricing/pricing-table";
|
||||
import { PROMO_PCT } from "@/lib/pricing-data";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Pricing",
|
||||
description:
|
||||
"Simple pricing for ArtCraft. Generate AI video and images with every model in one open desktop app. No subscriptions needed — you own ArtCraft.",
|
||||
alternates: { canonical: "/pricing" },
|
||||
};
|
||||
|
||||
// Referral code that swaps the header for the Seedance early-access pitch
|
||||
// (kept from the Vite site's ?ref=sd2fakeyou campaign links).
|
||||
const SEEDANCE_REF = "sd2fakeyou";
|
||||
const SEEDANCE_VIMEO_URL =
|
||||
"https://player.vimeo.com/video/1169289718?autoplay=1&muted=1&loop=1&background=0&byline=0&portrait=0&title=0";
|
||||
|
||||
type SearchParams = Promise<Record<string, string | string[] | undefined>>;
|
||||
|
||||
export default async function PricingPage({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: SearchParams;
|
||||
}) {
|
||||
const params = await searchParams;
|
||||
const isSeedanceRef = params.ref === SEEDANCE_REF;
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
{isSeedanceRef ? <SeedanceHeader /> : <DefaultHeader />}
|
||||
|
||||
<SectionShell id="plans">
|
||||
<SectionEyebrow
|
||||
index="02"
|
||||
label="Choose your plan"
|
||||
annotation="Every paid plan includes video credits"
|
||||
/>
|
||||
<PricingTable showSeedanceFeatures />
|
||||
</SectionShell>
|
||||
|
||||
<SectionShell id="credits">
|
||||
<div className="grid gap-px bg-line md:grid-cols-2">
|
||||
<div className="bg-bg p-6 md:p-10">
|
||||
<CreditsCta />
|
||||
</div>
|
||||
<div className="bg-bg p-6 md:p-10">
|
||||
<p className="hud-label text-faint">† Footnote</p>
|
||||
<p className="mt-4 max-w-md leading-relaxed text-muted">
|
||||
ArtCraft can be used without paying for a subscription. You can
|
||||
bring your own compute and third-party subscriptions. We hope
|
||||
you’ll subscribe, though, as that helps accelerate our
|
||||
development.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function DefaultHeader() {
|
||||
return (
|
||||
// The ruler's PRICING section spans the promo strip and the header, so
|
||||
// the page reads as one section from its very first pixel.
|
||||
<div id="pricing">
|
||||
{/* Promo strip: the offer is the first thing on the page. */}
|
||||
<div className="border-t border-line bg-accent text-white">
|
||||
<div className="mx-auto flex max-w-[1280px] flex-wrap items-center justify-between gap-x-6 gap-y-1 px-6 py-2.5 md:px-10">
|
||||
<p className="hud-label flex items-center gap-2 font-bold">
|
||||
<TagIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Limited-time offer
|
||||
</p>
|
||||
<p className="text-sm">
|
||||
Save {PROMO_PCT}% on every plan, monthly or yearly — lock in the
|
||||
lowest price today.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<PageHeader
|
||||
index="01"
|
||||
label="Pricing"
|
||||
annotation="Free & open source · Subscriptions optional†"
|
||||
title={
|
||||
<>
|
||||
Create without <Accent>limits</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Get a ton of generations and invest in a tool you'll always own. Your subscription helps keep ArtCraft free and open for everyone."
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function SeedanceHeader() {
|
||||
return (
|
||||
<>
|
||||
<PageHeader
|
||||
id="pricing"
|
||||
index="01"
|
||||
label="Early access"
|
||||
annotation="Available today in ArtCraft"
|
||||
title={
|
||||
<>
|
||||
Seedance 2.0 is <Accent>here</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Generate jaw-dropping AI videos with Seedance 2.0 before it's available anywhere else. Every paid plan includes video credits, so you can start creating right now."
|
||||
/>
|
||||
<SectionShell>
|
||||
<div className="grid gap-px bg-line lg:grid-cols-[3fr_2fr]">
|
||||
<figure className="bg-bg">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-8">
|
||||
<figcaption className="hud-label text-muted">
|
||||
Seedance in ArtCraft
|
||||
</figcaption>
|
||||
<p className="hud-label text-faint">Reel</p>
|
||||
</div>
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-bg-sunken">
|
||||
<iframe
|
||||
src={SEEDANCE_VIMEO_URL}
|
||||
className="absolute inset-0 h-full w-full"
|
||||
allow="autoplay; fullscreen; picture-in-picture"
|
||||
allowFullScreen
|
||||
title="Seedance in ArtCraft"
|
||||
/>
|
||||
</div>
|
||||
</figure>
|
||||
<div className="grid gap-px bg-line sm:grid-cols-2 lg:grid-cols-1">
|
||||
<div className="bg-bg p-6 md:p-8">
|
||||
<p className="hud-label text-accent-ink">Seedance video credits</p>
|
||||
<p className="mt-3 leading-relaxed text-muted">
|
||||
Included with every paid ArtCraft plan.
|
||||
</p>
|
||||
</div>
|
||||
<div className="bg-bg p-6 md:p-8">
|
||||
<p className="hud-label text-muted">First in the world</p>
|
||||
<p className="mt-3 leading-relaxed text-muted">
|
||||
Seedance launches in ArtCraft ahead of anywhere else.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
import type { Metadata } from "next";
|
||||
import CampaignCta from "@/components/campaign/campaign-cta";
|
||||
import CampaignHero, { VimeoEmbed } from "@/components/campaign/campaign-hero";
|
||||
import Reasons from "@/components/campaign/reasons";
|
||||
import { ClosingCta, CommunityCta } from "@/components/campaign/sections";
|
||||
import Features from "@/components/landing/features";
|
||||
import MadeWith from "@/components/landing/made-with";
|
||||
import Ownership from "@/components/landing/ownership";
|
||||
import { Accent } from "@/components/page/page-header";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { HERO_VIMEO_URL } from "@/lib/campaign-data";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Seedance 2.0 in ArtCraft. AI Video Generation. Fast and Open Desktop App.",
|
||||
description:
|
||||
"Seedance 2.0 is available now in ArtCraft. Generate jaw-dropping AI videos with the fastest open desktop app for artists.",
|
||||
alternates: { canonical: "/seedance-2" },
|
||||
};
|
||||
|
||||
export default function SeedanceTwoPage() {
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
<CampaignHero
|
||||
id="seedance-2"
|
||||
label="Seedance 2.0"
|
||||
annotation="Available today in ArtCraft"
|
||||
title={
|
||||
<>
|
||||
Seedance 2.0, now in <Accent>ArtCraft</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Generate jaw-dropping AI videos with Seedance 2.0 before it's available anywhere else."
|
||||
media={<VimeoEmbed src={HERO_VIMEO_URL} title="Seedance in ArtCraft" />}
|
||||
mediaCaption="Seedance 2.0 in ArtCraft"
|
||||
>
|
||||
<CampaignCta webLabel="Get now" webIcon="sparkles" />
|
||||
</CampaignHero>
|
||||
|
||||
<Features index="02" />
|
||||
<Ownership index="03" />
|
||||
<Reasons index="04" />
|
||||
<MadeWith index="05" />
|
||||
<CommunityCta />
|
||||
|
||||
<ClosingCta
|
||||
eyebrow="Free to use"
|
||||
title={
|
||||
<>
|
||||
Ready to <Accent>create</Accent>?
|
||||
</>
|
||||
}
|
||||
lede="Join thousands of artists and filmmakers using ArtCraft to bring their vision to life."
|
||||
>
|
||||
<CampaignCta webLabel="Get now" webIcon="sparkles" />
|
||||
</ClosingCta>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
import type { Metadata } from "next";
|
||||
import CampaignCta from "@/components/campaign/campaign-cta";
|
||||
import CampaignHero, { VimeoEmbed } from "@/components/campaign/campaign-hero";
|
||||
import Manifesto from "@/components/campaign/manifesto";
|
||||
import Reasons from "@/components/campaign/reasons";
|
||||
import {
|
||||
CampaignSection,
|
||||
ClosingCta,
|
||||
CommunityCta,
|
||||
FaqAccordion,
|
||||
Prose,
|
||||
TipGrid,
|
||||
} from "@/components/campaign/sections";
|
||||
import Features from "@/components/landing/features";
|
||||
import MadeWith from "@/components/landing/made-with";
|
||||
import Ownership from "@/components/landing/ownership";
|
||||
import { Accent } from "@/components/page/page-header";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import {
|
||||
HERO_VIMEO_URL,
|
||||
SD25_DISCLAIMER,
|
||||
SD25_FAQ,
|
||||
SD25_OVERVIEW,
|
||||
SD25_TIPS,
|
||||
} from "@/lib/campaign-data";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Seedance 2.5 in ArtCraft. AI Video Generation. Fast and Open Desktop App.",
|
||||
description:
|
||||
"Seedance 2.5 is ByteDance's anticipated next-generation AI video model. Reports point to 4K, real-time generation, longer clips, and persistent characters. See what's expected, and create with Seedance in ArtCraft today.",
|
||||
alternates: { canonical: "/seedance2-5" },
|
||||
openGraph: { title: "Seedance 2.5" },
|
||||
};
|
||||
|
||||
export default function SeedanceTwoFivePage() {
|
||||
const faqJsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "FAQPage",
|
||||
mainEntity: SD25_FAQ.map((item) => ({
|
||||
"@type": "Question",
|
||||
name: item.question,
|
||||
acceptedAnswer: { "@type": "Answer", text: item.answer },
|
||||
})),
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(faqJsonLd) }}
|
||||
/>
|
||||
|
||||
<CampaignHero
|
||||
id="seedance-2-5"
|
||||
label="Seedance 2.5"
|
||||
annotation="Coming to ArtCraft first"
|
||||
title={
|
||||
<>
|
||||
Seedance 2.5, soon in <Accent>ArtCraft</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Generate jaw-dropping AI videos with Seedance 2.5 before it's available anywhere else."
|
||||
media={<VimeoEmbed src={HERO_VIMEO_URL} title="Seedance 2.5 in ArtCraft" />}
|
||||
mediaCaption="Seedance in ArtCraft today"
|
||||
>
|
||||
<CampaignCta />
|
||||
</CampaignHero>
|
||||
|
||||
<CampaignSection
|
||||
id="overview"
|
||||
index="02"
|
||||
label="Overview"
|
||||
annotation="Rumor vs. fact, flagged"
|
||||
title={
|
||||
<>
|
||||
What is <Accent>Seedance 2.5</Accent>?
|
||||
</>
|
||||
}
|
||||
>
|
||||
<Prose paragraphs={SD25_OVERVIEW} note={SD25_DISCLAIMER} />
|
||||
</CampaignSection>
|
||||
|
||||
<CampaignSection
|
||||
id="tips"
|
||||
index="03"
|
||||
label="Prompt tips"
|
||||
annotation="Carries over to 2.5"
|
||||
title={
|
||||
<>
|
||||
Get more out of <Accent>Seedance</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="A few habits that pay off with Seedance today, and will carry right over to 2.5 when it arrives."
|
||||
>
|
||||
<TipGrid items={SD25_TIPS} />
|
||||
</CampaignSection>
|
||||
|
||||
<CampaignSection
|
||||
id="campaign-faq"
|
||||
index="04"
|
||||
label="FAQ"
|
||||
title={
|
||||
<>
|
||||
Frequently asked <Accent>questions</Accent>.
|
||||
</>
|
||||
}
|
||||
>
|
||||
<FaqAccordion items={SD25_FAQ} />
|
||||
</CampaignSection>
|
||||
|
||||
<Manifesto />
|
||||
|
||||
<Features index="05" />
|
||||
<Ownership index="06" />
|
||||
<Reasons index="07" />
|
||||
<MadeWith index="08" />
|
||||
<CommunityCta />
|
||||
|
||||
<ClosingCta
|
||||
eyebrow="Free to download"
|
||||
title={
|
||||
<>
|
||||
Ready to <Accent>craft</Accent>?
|
||||
</>
|
||||
}
|
||||
lede="Join thousands of artists and filmmakers using ArtCraft to bring their vision to life."
|
||||
>
|
||||
<CampaignCta />
|
||||
</ClosingCta>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,15 +1,42 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
import { getFaqItems, getNewsPosts, getTutorialItems } from "@/lib/content";
|
||||
|
||||
const SITE_URL = "https://getartcraft.com";
|
||||
|
||||
// Only routes this app actually serves. Grows as marketing pages migrate
|
||||
// over from the Vite site.
|
||||
type Entry = MetadataRoute.Sitemap[number];
|
||||
|
||||
const STATIC_ROUTES: { path: string; priority: number; changeFrequency: Entry["changeFrequency"] }[] = [
|
||||
{ path: "/", priority: 1, changeFrequency: "weekly" },
|
||||
{ path: "/pricing", priority: 0.9, changeFrequency: "weekly" },
|
||||
{ path: "/download", priority: 0.9, changeFrequency: "weekly" },
|
||||
{ path: "/tutorials", priority: 0.7, changeFrequency: "weekly" },
|
||||
{ path: "/news", priority: 0.7, changeFrequency: "weekly" },
|
||||
{ path: "/faq", priority: 0.7, changeFrequency: "monthly" },
|
||||
{ path: "/support", priority: 0.5, changeFrequency: "monthly" },
|
||||
{ path: "/press-kit", priority: 0.5, changeFrequency: "monthly" },
|
||||
{ path: "/beta", priority: 0.5, changeFrequency: "monthly" },
|
||||
{ path: "/seedance-2", priority: 0.8, changeFrequency: "weekly" },
|
||||
{ path: "/seedance2-5", priority: 0.8, changeFrequency: "weekly" },
|
||||
{ path: "/minimax-h3", priority: 0.8, changeFrequency: "weekly" },
|
||||
{ path: "/creators/jboogxcreative", priority: 0.6, changeFrequency: "monthly" },
|
||||
];
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
return [
|
||||
{
|
||||
url: `${SITE_URL}/`,
|
||||
changeFrequency: "weekly",
|
||||
priority: 1,
|
||||
},
|
||||
];
|
||||
const staticEntries: Entry[] = STATIC_ROUTES.map((route) => ({
|
||||
url: `${SITE_URL}${route.path}`,
|
||||
changeFrequency: route.changeFrequency,
|
||||
priority: route.priority,
|
||||
}));
|
||||
|
||||
const articleEntries: Entry[] = [
|
||||
...getFaqItems().map((item) => `/faq/${item.slug}`),
|
||||
...getTutorialItems().map((item) => `/tutorials/${item.slug}`),
|
||||
...getNewsPosts().map((post) => `/news/${post.slug}`),
|
||||
].map((path) => ({
|
||||
url: `${SITE_URL}${path}`,
|
||||
changeFrequency: "monthly" as const,
|
||||
priority: 0.6,
|
||||
}));
|
||||
|
||||
return [...staticEntries, ...articleEntries];
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
import type { Metadata } from "next";
|
||||
import type { ReactNode } from "react";
|
||||
import Link from "next/link";
|
||||
import { ArrowRightIcon, CircleHelpIcon, MailIcon } from "lucide-react";
|
||||
import { DiscordIcon } from "@/components/icons";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent, PageHeader } from "@/components/page/page-header";
|
||||
import { SOCIAL_LINKS, SUPPORT_EMAIL } from "@/lib/links";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Support",
|
||||
description:
|
||||
"Get help with ArtCraft: browse the FAQ, join our Discord community, or email us directly.",
|
||||
alternates: { canonical: "/support" },
|
||||
};
|
||||
|
||||
type Channel = {
|
||||
index: string;
|
||||
icon: ReactNode;
|
||||
title: string;
|
||||
description: string;
|
||||
href: string;
|
||||
cta: string;
|
||||
external?: boolean;
|
||||
};
|
||||
|
||||
const CHANNELS: Channel[] = [
|
||||
{
|
||||
index: "A",
|
||||
icon: <DiscordIcon className="h-5 w-5" />,
|
||||
title: "Join our Discord",
|
||||
description:
|
||||
"The fastest way to reach us. Quick replies from the team and credit refunds if something goes wrong.",
|
||||
href: SOCIAL_LINKS.DISCORD,
|
||||
cta: "Open Discord",
|
||||
external: true,
|
||||
},
|
||||
{
|
||||
index: "B",
|
||||
icon: <MailIcon aria-hidden className="h-5 w-5" />,
|
||||
title: "Email us",
|
||||
description: SUPPORT_EMAIL,
|
||||
href: `mailto:${SUPPORT_EMAIL}`,
|
||||
cta: "Write to us",
|
||||
external: true,
|
||||
},
|
||||
{
|
||||
index: "C",
|
||||
icon: <CircleHelpIcon aria-hidden className="h-5 w-5" />,
|
||||
title: "Browse the FAQ",
|
||||
description: "Answers to common questions about ArtCraft.",
|
||||
href: "/faq",
|
||||
cta: "Read the FAQ",
|
||||
},
|
||||
];
|
||||
|
||||
export default function SupportPage() {
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
<PageHeader
|
||||
id="support"
|
||||
index="01"
|
||||
label="Support"
|
||||
annotation="We're happy to help"
|
||||
title={
|
||||
<>
|
||||
Get <Accent>help</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Find answers, join the community, or reach us directly."
|
||||
/>
|
||||
|
||||
<SectionShell id="contact">
|
||||
<SectionEyebrow index="02" label="Channels" annotation="Pick one" />
|
||||
<ul data-reveal-group className="grid gap-px bg-line md:grid-cols-3">
|
||||
{CHANNELS.map((channel) => (
|
||||
<li key={channel.index} data-reveal className="bg-bg">
|
||||
<ChannelLink channel={channel}>
|
||||
<div className="flex items-center justify-between gap-4">
|
||||
<span className="flex h-10 w-10 items-center justify-center border border-line text-ink transition-colors group-hover:bg-invert-bg group-hover:text-invert-fg">
|
||||
{channel.icon}
|
||||
</span>
|
||||
<p className="hud-label text-faint">{channel.index}</p>
|
||||
</div>
|
||||
<h2 className="mt-6 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{channel.title}
|
||||
</h2>
|
||||
<p className="mt-2 leading-relaxed text-muted">
|
||||
{channel.description}
|
||||
</p>
|
||||
<span className="hud-label mt-6 flex items-center gap-1.5 text-muted group-hover:text-ink">
|
||||
{channel.cta}
|
||||
<ArrowRightIcon
|
||||
aria-hidden
|
||||
className="h-3.5 w-3.5 transition-transform group-hover:translate-x-1"
|
||||
/>
|
||||
</span>
|
||||
</ChannelLink>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function ChannelLink({
|
||||
channel,
|
||||
children,
|
||||
}: {
|
||||
channel: Channel;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
const className = "group flex h-full flex-col p-6 hover:bg-bg-raised md:p-8";
|
||||
if (!channel.external) {
|
||||
return (
|
||||
<Link href={channel.href} className={className}>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
const isMailto = channel.href.startsWith("mailto:");
|
||||
return (
|
||||
<a
|
||||
href={channel.href}
|
||||
target={isMailto ? undefined : "_blank"}
|
||||
rel={isMailto ? undefined : "noopener noreferrer"}
|
||||
className={className}
|
||||
>
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound, permanentRedirect } from "next/navigation";
|
||||
import LiteYouTube from "@/components/lite-youtube";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell } from "@/components/landing/section-shell";
|
||||
import {
|
||||
ArticleBody,
|
||||
BackLink,
|
||||
PageHeader,
|
||||
} from "@/components/page/page-header";
|
||||
import { getTutorialItemBySlug, getTutorialItems } from "@/lib/content";
|
||||
import { extractYouTubeId, markdownToHtml } from "@/lib/markdown";
|
||||
|
||||
type Params = Promise<{ slug: string }>;
|
||||
|
||||
export const dynamicParams = false;
|
||||
|
||||
// Aliases are served too, then redirected to the canonical slug below.
|
||||
export function generateStaticParams() {
|
||||
return getTutorialItems().flatMap((item) =>
|
||||
[item.slug, ...item.aliases].map((slug) => ({ slug })),
|
||||
);
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Params;
|
||||
}): Promise<Metadata> {
|
||||
const { slug } = await params;
|
||||
const item = getTutorialItemBySlug(slug);
|
||||
if (!item) return {};
|
||||
return {
|
||||
title: item.title,
|
||||
description: item.abstract,
|
||||
alternates: { canonical: `/tutorials/${item.slug}` },
|
||||
};
|
||||
}
|
||||
|
||||
export default async function TutorialArticlePage({
|
||||
params,
|
||||
}: {
|
||||
params: Params;
|
||||
}) {
|
||||
const { slug } = await params;
|
||||
const item = getTutorialItemBySlug(slug);
|
||||
if (!item) notFound();
|
||||
if (item.slug !== slug.toLowerCase()) {
|
||||
permanentRedirect(`/tutorials/${item.slug}`);
|
||||
}
|
||||
|
||||
const videoId = item.youtubeId ?? (item.videoUrl ? extractYouTubeId(item.videoUrl) : null);
|
||||
const html = markdownToHtml(item.body);
|
||||
const jsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Article",
|
||||
headline: item.title,
|
||||
description: item.abstract,
|
||||
articleBody: item.body,
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||
/>
|
||||
|
||||
<PageHeader
|
||||
id="tutorials"
|
||||
index="01"
|
||||
label="Tutorials"
|
||||
annotation={item.category ? `${item.category} editor` : "Tutorial"}
|
||||
title={item.title}
|
||||
lede={item.abstract || undefined}
|
||||
>
|
||||
<div className="mt-8">
|
||||
<BackLink href="/tutorials">Back to Tutorials</BackLink>
|
||||
</div>
|
||||
</PageHeader>
|
||||
|
||||
<SectionShell id="articles">
|
||||
{videoId && (
|
||||
<figure className="border-b border-line">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-10">
|
||||
<figcaption className="hud-label text-muted">Video</figcaption>
|
||||
<p className="hud-label text-faint">Click to play</p>
|
||||
</div>
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-bg-sunken">
|
||||
<LiteYouTube videoId={videoId} title={item.title} />
|
||||
</div>
|
||||
</figure>
|
||||
)}
|
||||
{html.trim() && <ArticleBody html={html} />}
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import type { Metadata } from "next";
|
||||
import RevealManager from "@/components/reveal-manager";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent, PageHeader } from "@/components/page/page-header";
|
||||
import TutorialGrid from "@/components/tutorials/tutorial-grid";
|
||||
import { getTutorialItems } from "@/lib/content";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Tutorials",
|
||||
description: "Learn tips, tricks, and workflows for ArtCraft.",
|
||||
alternates: { canonical: "/tutorials" },
|
||||
};
|
||||
|
||||
export default function TutorialsPage() {
|
||||
// Only the fields the client grid renders cross the server boundary.
|
||||
const items = getTutorialItems().map(({ slug, title, category, thumbnail }) => ({
|
||||
slug,
|
||||
title,
|
||||
category,
|
||||
thumbnail,
|
||||
}));
|
||||
|
||||
return (
|
||||
<>
|
||||
<RevealManager />
|
||||
|
||||
<PageHeader
|
||||
id="tutorials"
|
||||
index="01"
|
||||
label="Tutorials"
|
||||
annotation="Video walkthroughs"
|
||||
title={
|
||||
<>
|
||||
Learn the <Accent>craft</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="Learn tips, tricks, and workflows for ArtCraft."
|
||||
/>
|
||||
|
||||
<SectionShell id="articles">
|
||||
<SectionEyebrow index="02" label="Library" annotation="Filter by editor" />
|
||||
<TutorialGrid items={items} />
|
||||
</SectionShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
"use client";
|
||||
|
||||
import { useState, type FormEvent } from "react";
|
||||
import { CheckIcon } from "lucide-react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import { Button, Input, Label } from "@/components/ui";
|
||||
import { webappUrl } from "@/lib/links";
|
||||
|
||||
// Submissions go to a Google Form whose responses land in a Google Sheet.
|
||||
// The form URL and field IDs are public by nature (they ship in the bundle).
|
||||
const FORM_RESPONSE_URL =
|
||||
"https://docs.google.com/forms/d/e/1FAIpQLSfjRVkOzfBlR0uefebHWSaoEm7R0DRLhUKqwHQlNvBE8bmd-w/formResponse";
|
||||
|
||||
const FORM_FIELD_IDS = {
|
||||
name: "entry.666666785",
|
||||
company: "entry.121325393",
|
||||
email: "entry.467034813",
|
||||
type: "entry.2139364913",
|
||||
typeDetail: "entry.1914395461",
|
||||
page: "entry.709868934",
|
||||
referrer: "entry.617211358",
|
||||
} as const;
|
||||
|
||||
const USER_TYPES = ["Business", "Hobbyist", "Film maker", "Agency", "Other"] as const;
|
||||
type UserType = (typeof USER_TYPES)[number];
|
||||
|
||||
const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||
|
||||
type FieldErrors = Partial<Record<"name" | "email" | "type" | "typeOther", string>>;
|
||||
|
||||
export default function BetaForm() {
|
||||
const [name, setName] = useState("");
|
||||
const [company, setCompany] = useState("");
|
||||
const [email, setEmail] = useState("");
|
||||
const [userType, setUserType] = useState<UserType | null>(null);
|
||||
const [typeOther, setTypeOther] = useState("");
|
||||
// Honeypot: hidden from humans; bots that fill it are silently dropped.
|
||||
const [website, setWebsite] = useState("");
|
||||
|
||||
const [errors, setErrors] = useState<FieldErrors>({});
|
||||
const [submitError, setSubmitError] = useState<string | null>(null);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [submitted, setSubmitted] = useState(false);
|
||||
|
||||
const validate = (): FieldErrors => {
|
||||
const next: FieldErrors = {};
|
||||
if (!name.trim()) next.name = "Please enter your name.";
|
||||
if (!email.trim()) next.email = "Please enter your email.";
|
||||
else if (!EMAIL_PATTERN.test(email.trim())) {
|
||||
next.email = "That doesn't look like a valid email address.";
|
||||
}
|
||||
if (userType === null) next.type = "Please pick the option closest to you.";
|
||||
else if (userType === "Other" && !typeOther.trim()) {
|
||||
next.typeOther = "Tell us a little about what you do.";
|
||||
}
|
||||
return next;
|
||||
};
|
||||
|
||||
const onSubmit = async (e: FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
setSubmitError(null);
|
||||
const next = validate();
|
||||
setErrors(next);
|
||||
if (Object.keys(next).length) return;
|
||||
|
||||
if (website.trim()) {
|
||||
// Bot filled the honeypot. Pretend everything worked.
|
||||
setSubmitted(true);
|
||||
return;
|
||||
}
|
||||
|
||||
setLoading(true);
|
||||
try {
|
||||
const body = new URLSearchParams({
|
||||
[FORM_FIELD_IDS.name]: name.trim(),
|
||||
[FORM_FIELD_IDS.company]: company.trim(),
|
||||
[FORM_FIELD_IDS.email]: email.trim(),
|
||||
[FORM_FIELD_IDS.type]: userType ?? "",
|
||||
[FORM_FIELD_IDS.typeDetail]: userType === "Other" ? typeOther.trim() : "",
|
||||
[FORM_FIELD_IDS.page]: window.location.href,
|
||||
[FORM_FIELD_IDS.referrer]: document.referrer,
|
||||
});
|
||||
// Google Forms sends no CORS headers, so this is fire-and-forget: the
|
||||
// response is opaque and "request completed" counts as success.
|
||||
await fetch(FORM_RESPONSE_URL, { method: "POST", mode: "no-cors", body });
|
||||
setSubmitted(true);
|
||||
} catch {
|
||||
setSubmitError(
|
||||
"Something went wrong sending your application. Please try again in a moment.",
|
||||
);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const selectType = (type: UserType) => {
|
||||
setUserType(type);
|
||||
setErrors((prev) => ({ ...prev, type: undefined, typeOther: undefined }));
|
||||
};
|
||||
|
||||
if (submitted) {
|
||||
return (
|
||||
<div className="flex flex-col items-center py-10 text-center" role="status" aria-live="polite">
|
||||
<span className="flex h-12 w-12 items-center justify-center bg-invert-bg text-invert-fg">
|
||||
<CheckIcon aria-hidden className="h-5 w-5" />
|
||||
</span>
|
||||
<h2 className="mt-6 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
You’re on the list
|
||||
</h2>
|
||||
<p className="mt-3 max-w-xs leading-relaxed text-muted">
|
||||
Thanks, {name.trim().split(/\s+/)[0]}. We review applications
|
||||
regularly and will reach out at{" "}
|
||||
<span className="text-ink">{email.trim()}</span> when your spot
|
||||
opens.
|
||||
</p>
|
||||
<Button href="/" variant="secondary" className="mt-8">
|
||||
Back to the homepage
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<form className="flex flex-col gap-5" onSubmit={onSubmit} noValidate>
|
||||
{submitError && (
|
||||
<p className="border border-danger px-4 py-3 text-sm text-danger">
|
||||
{submitError}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<Input
|
||||
id="beta-name"
|
||||
label="Name"
|
||||
type="text"
|
||||
autoComplete="name"
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
placeholder="Ada Lovelace"
|
||||
isError={!!errors.name}
|
||||
errorMessage={errors.name}
|
||||
/>
|
||||
|
||||
<Input
|
||||
id="beta-company"
|
||||
label="Company (optional)"
|
||||
type="text"
|
||||
autoComplete="organization"
|
||||
value={company}
|
||||
onChange={(e) => setCompany(e.target.value)}
|
||||
placeholder="Studio or company name"
|
||||
/>
|
||||
|
||||
<Input
|
||||
id="beta-email"
|
||||
label="Email"
|
||||
type="email"
|
||||
autoComplete="email"
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
placeholder="you@example.com"
|
||||
isError={!!errors.email}
|
||||
errorMessage={errors.email}
|
||||
/>
|
||||
|
||||
<div className="flex flex-col">
|
||||
<Label htmlFor="beta-type-Business">I am a…</Label>
|
||||
<div className="flex flex-wrap gap-px bg-line" role="radiogroup" aria-label="I am a…">
|
||||
{USER_TYPES.map((type) => {
|
||||
const selected = userType === type;
|
||||
return (
|
||||
<button
|
||||
key={type}
|
||||
id={`beta-type-${type}`}
|
||||
type="button"
|
||||
role="radio"
|
||||
aria-checked={selected}
|
||||
onClick={() => selectType(type)}
|
||||
className={twMerge(
|
||||
"hud-label h-10 px-4 transition-colors",
|
||||
selected
|
||||
? "bg-invert-bg text-invert-fg"
|
||||
: "bg-bg text-muted hover:bg-bg-raised hover:text-ink",
|
||||
)}
|
||||
>
|
||||
{type}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
{errors.type && (
|
||||
<p className="mt-1 font-mono text-[10px] uppercase tracking-[0.1em] text-danger">
|
||||
{errors.type}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{userType === "Other" && (
|
||||
<Input
|
||||
id="beta-type-other"
|
||||
label="What best describes you?"
|
||||
type="text"
|
||||
value={typeOther}
|
||||
onChange={(e) => setTypeOther(e.target.value)}
|
||||
placeholder="Game developer, educator, …"
|
||||
autoFocus
|
||||
isError={!!errors.typeOther}
|
||||
errorMessage={errors.typeOther}
|
||||
/>
|
||||
)}
|
||||
|
||||
<div aria-hidden="true" className="absolute -left-[9999px] top-auto h-px w-px overflow-hidden">
|
||||
<label htmlFor="beta-website">Website</label>
|
||||
<input
|
||||
id="beta-website"
|
||||
type="text"
|
||||
tabIndex={-1}
|
||||
autoComplete="off"
|
||||
value={website}
|
||||
onChange={(e) => setWebsite(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Button type="submit" size="lg" loading={loading} className="mt-1 w-full">
|
||||
Request access
|
||||
</Button>
|
||||
|
||||
<p className="text-center text-xs leading-relaxed text-faint">
|
||||
We only use this to contact you about the beta. Already have access?{" "}
|
||||
<a href={webappUrl("/login")} className="text-muted underline underline-offset-2 hover:text-ink">
|
||||
Log in
|
||||
</a>
|
||||
</p>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,245 @@
|
||||
"use client";
|
||||
|
||||
import { useState, type FormEvent } from "react";
|
||||
import { CheckIcon, EyeIcon, EyeOffIcon } from "lucide-react";
|
||||
import { Button, Input, Modal } from "@/components/ui";
|
||||
import { login, signup } from "@/lib/api";
|
||||
import {
|
||||
getLandingUrl,
|
||||
getReferralCode,
|
||||
getReferralUsername,
|
||||
getReferrer,
|
||||
} from "@/lib/referral";
|
||||
|
||||
// Soft auth gate for campaign pages, ported from the Vite site: keeps the
|
||||
// visitor on the page, letting them create an account or log in inline and
|
||||
// then continue whatever action triggered the gate. Email/password only;
|
||||
// the Google SSO button needs the OAuth provider this app does not mount.
|
||||
export default function AuthGateModal({
|
||||
isOpen,
|
||||
onClose,
|
||||
onAuthed,
|
||||
signupSource,
|
||||
headline,
|
||||
subtitle,
|
||||
perks,
|
||||
}: {
|
||||
isOpen: boolean;
|
||||
onClose: () => void;
|
||||
/** Called after a successful signup OR login; the session is already set. */
|
||||
onAuthed: () => void;
|
||||
/** Attribution string passed to the signup endpoint. */
|
||||
signupSource: string;
|
||||
headline: string;
|
||||
subtitle: string;
|
||||
perks?: string[];
|
||||
}) {
|
||||
const [mode, setMode] = useState<"signup" | "login">("signup");
|
||||
|
||||
return (
|
||||
<Modal isOpen={isOpen} onClose={onClose} childPadding={false} accessibleTitle={headline}>
|
||||
<div className="border-b border-line px-6 py-6 md:px-8">
|
||||
<p className="hud-label text-faint">
|
||||
{mode === "signup" ? "Create a free account" : "Welcome back"}
|
||||
</p>
|
||||
<h2 className="mt-3 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{headline}
|
||||
</h2>
|
||||
<p className="mt-2 text-sm leading-relaxed text-muted">{subtitle}</p>
|
||||
{perks && perks.length > 0 && (
|
||||
<ul className="mt-5 flex flex-col gap-2">
|
||||
{perks.map((perk) => (
|
||||
<li key={perk} className="flex items-start gap-2.5 text-sm text-ink">
|
||||
<CheckIcon aria-hidden className="mt-0.5 h-4 w-4 shrink-0 text-accent-ink" />
|
||||
{perk}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="px-6 py-6 md:px-8">
|
||||
{mode === "signup" ? (
|
||||
<SignupForm onSuccess={onAuthed} signupSource={signupSource} />
|
||||
) : (
|
||||
<LoginForm onSuccess={onAuthed} />
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setMode(mode === "signup" ? "login" : "signup")}
|
||||
className="mt-5 block w-full text-center text-sm text-muted hover:text-ink"
|
||||
>
|
||||
{mode === "signup" ? (
|
||||
<>
|
||||
Already have an account? <span className="text-ink underline underline-offset-4">Log in</span>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
New to ArtCraft? <span className="text-ink underline underline-offset-4">Create a free account</span>
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
|
||||
function SignupForm({
|
||||
onSuccess,
|
||||
signupSource,
|
||||
}: {
|
||||
onSuccess: () => void;
|
||||
signupSource: string;
|
||||
}) {
|
||||
const [email, setEmail] = useState("");
|
||||
const [password, setPassword] = useState("");
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault();
|
||||
setError(null);
|
||||
if (!email || !password) return setError("All fields are required");
|
||||
if (password.length < 8) return setError("Password must be at least 8 characters");
|
||||
|
||||
setLoading(true);
|
||||
// Username generated from the email, same scheme as the Vite form:
|
||||
// up to 7 alphanumerics from the local part plus a 3-digit suffix.
|
||||
const prefix = email.split("@")[0].replace(/[^a-zA-Z0-9]/g, "").slice(0, 7);
|
||||
const username = `${prefix}${Math.floor(Math.random() * 900) + 100}`;
|
||||
const result = await signup({
|
||||
username,
|
||||
email,
|
||||
password,
|
||||
signupSource,
|
||||
maybeReferralUrl: getReferrer(),
|
||||
maybeLandingUrl: getLandingUrl(),
|
||||
maybeReferralUsername: getReferralUsername(),
|
||||
maybeReferralCode: getReferralCode(),
|
||||
});
|
||||
setLoading(false);
|
||||
if (result.success) onSuccess();
|
||||
else setError(result.errorMessage || "Failed to create account");
|
||||
};
|
||||
|
||||
return (
|
||||
<form className="flex flex-col gap-4" onSubmit={submit} noValidate>
|
||||
{error && <FormError>{error}</FormError>}
|
||||
<Input
|
||||
id="gate-email"
|
||||
label="Email"
|
||||
type="email"
|
||||
autoComplete="email"
|
||||
autoFocus
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
placeholder="you@example.com"
|
||||
/>
|
||||
<PasswordInput
|
||||
id="gate-signup-password"
|
||||
autoComplete="new-password"
|
||||
value={password}
|
||||
onChange={setPassword}
|
||||
placeholder="Min. 8 characters"
|
||||
/>
|
||||
<Button type="submit" size="lg" loading={loading} className="mt-1 w-full">
|
||||
Create account
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
||||
function LoginForm({ onSuccess }: { onSuccess: () => void }) {
|
||||
const [usernameOrEmail, setUsernameOrEmail] = useState("");
|
||||
const [password, setPassword] = useState("");
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const submit = async (e: FormEvent) => {
|
||||
e.preventDefault();
|
||||
setError(null);
|
||||
if (!usernameOrEmail || !password) return setError("All fields are required");
|
||||
setLoading(true);
|
||||
const result = await login({ usernameOrEmail, password });
|
||||
setLoading(false);
|
||||
if (result.success) onSuccess();
|
||||
else setError(result.errorMessage || "Invalid credentials");
|
||||
};
|
||||
|
||||
return (
|
||||
<form className="flex flex-col gap-4" onSubmit={submit} noValidate>
|
||||
{error && <FormError>{error}</FormError>}
|
||||
<Input
|
||||
id="gate-login-user"
|
||||
label="Email or username"
|
||||
type="text"
|
||||
autoComplete="username"
|
||||
autoFocus
|
||||
value={usernameOrEmail}
|
||||
onChange={(e) => setUsernameOrEmail(e.target.value)}
|
||||
placeholder="you@example.com"
|
||||
/>
|
||||
<PasswordInput
|
||||
id="gate-login-password"
|
||||
autoComplete="current-password"
|
||||
value={password}
|
||||
onChange={setPassword}
|
||||
placeholder="Your password"
|
||||
/>
|
||||
<Button type="submit" size="lg" loading={loading} className="mt-1 w-full">
|
||||
Log in
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
||||
function PasswordInput({
|
||||
id,
|
||||
value,
|
||||
onChange,
|
||||
placeholder,
|
||||
autoComplete,
|
||||
}: {
|
||||
id: string;
|
||||
value: string;
|
||||
onChange: (v: string) => void;
|
||||
placeholder: string;
|
||||
autoComplete: string;
|
||||
}) {
|
||||
const [show, setShow] = useState(false);
|
||||
return (
|
||||
<div className="relative">
|
||||
<Input
|
||||
id={id}
|
||||
label="Password"
|
||||
type={show ? "text" : "password"}
|
||||
autoComplete={autoComplete}
|
||||
value={value}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
placeholder={placeholder}
|
||||
inputClassName="pr-11"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setShow((v) => !v)}
|
||||
tabIndex={-1}
|
||||
aria-label={show ? "Hide password" : "Show password"}
|
||||
className="absolute right-3 bottom-2.5 text-faint hover:text-ink"
|
||||
>
|
||||
{show ? (
|
||||
<EyeOffIcon aria-hidden className="h-4 w-4" />
|
||||
) : (
|
||||
<EyeIcon aria-hidden className="h-4 w-4" />
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function FormError({ children }: { children: string }) {
|
||||
return (
|
||||
<p role="alert" className="border border-danger px-4 py-3 text-sm text-danger">
|
||||
{children}
|
||||
</p>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { AppleIcon, GlobeIcon, SparklesIcon } from "lucide-react";
|
||||
import { WindowsIcon } from "@/components/icons";
|
||||
import DownloadModal from "@/components/download/download-modal";
|
||||
import { Button } from "@/components/ui";
|
||||
import { DOWNLOADS_ENABLED } from "@/lib/download-links";
|
||||
import { webappUrl } from "@/lib/links";
|
||||
import { useAccount } from "@/lib/use-account";
|
||||
import { markDownloadInitiated, useDetectedPlatform } from "@/lib/use-platform";
|
||||
|
||||
// Campaign CTA pair, ported from the Vite landing pages: a primary "use on
|
||||
// web" button that routes subscribers straight into the webapp and everyone
|
||||
// else to /pricing, plus the OS-detected desktop download (with the
|
||||
// post-download signup modal for logged-out visitors). Mobile visitors get
|
||||
// a disabled download and the web button only.
|
||||
export default function CampaignCta({
|
||||
webLabel = "Use on web",
|
||||
webIcon = "globe",
|
||||
className,
|
||||
}: {
|
||||
webLabel?: string;
|
||||
webIcon?: "globe" | "sparkles";
|
||||
className?: string;
|
||||
}) {
|
||||
const { user, activePlanSlug } = useAccount();
|
||||
const detected = useDetectedPlatform();
|
||||
const [modalOpen, setModalOpen] = useState(false);
|
||||
|
||||
const hasSubscription = !!user && !!activePlanSlug;
|
||||
const WebIcon = webIcon === "sparkles" ? SparklesIcon : GlobeIcon;
|
||||
const OsIcon = detected?.platform === "macos" ? AppleIcon : WindowsIcon;
|
||||
|
||||
const onDownloadClick = () => {
|
||||
if (user) return;
|
||||
setModalOpen(true);
|
||||
markDownloadInitiated();
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
<div className="flex flex-wrap items-center justify-center gap-3">
|
||||
<Button
|
||||
href={hasSubscription ? webappUrl("/") : "/pricing"}
|
||||
size="lg"
|
||||
title="Use ArtCraft in your browser"
|
||||
>
|
||||
<WebIcon aria-hidden className="h-4 w-4" />
|
||||
{webLabel}
|
||||
</Button>
|
||||
{detected?.mobile ? (
|
||||
<Button size="lg" variant="secondary" disabled>
|
||||
Download on a desktop
|
||||
</Button>
|
||||
) : (
|
||||
DOWNLOADS_ENABLED && (
|
||||
<Button
|
||||
href={detected?.downloadUrl ?? "/download"}
|
||||
external={!!detected}
|
||||
onClick={onDownloadClick}
|
||||
size="lg"
|
||||
variant="secondary"
|
||||
>
|
||||
<OsIcon aria-hidden className="h-4 w-4" />
|
||||
Download for {detected?.short ?? "desktop"}
|
||||
</Button>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
<DownloadModal isOpen={modalOpen} onClose={() => setModalOpen(false)} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
|
||||
// Campaign page hero: the interior PageHeader frame, centered, with a CTA
|
||||
// slot and an optional embedded reel beneath (Vimeo iframe or any figure).
|
||||
export default function CampaignHero({
|
||||
id,
|
||||
label,
|
||||
annotation,
|
||||
title,
|
||||
lede,
|
||||
children,
|
||||
media,
|
||||
mediaCaption,
|
||||
}: {
|
||||
id: string;
|
||||
label: string;
|
||||
annotation?: string;
|
||||
title: ReactNode;
|
||||
lede: ReactNode;
|
||||
children?: ReactNode;
|
||||
media?: ReactNode;
|
||||
mediaCaption?: string;
|
||||
}) {
|
||||
return (
|
||||
<SectionShell id={id}>
|
||||
<SectionEyebrow index="01" label={label} annotation={annotation} />
|
||||
<div data-reveal-group className="flex flex-col items-center px-6 py-14 text-center md:px-10 md:py-20">
|
||||
<h1
|
||||
data-reveal
|
||||
className="max-w-4xl font-display text-4xl font-medium leading-[1.02] tracking-[-0.035em] text-ink-strong sm:text-5xl md:text-6xl lg:text-7xl"
|
||||
>
|
||||
{title}
|
||||
</h1>
|
||||
<p data-reveal className="mt-6 max-w-xl text-lg leading-relaxed text-muted">
|
||||
{lede}
|
||||
</p>
|
||||
{children && (
|
||||
<div data-reveal className="mt-8 w-full">
|
||||
{children}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{media && (
|
||||
<figure className="border-t border-line">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2 md:px-10">
|
||||
<figcaption className="hud-label text-faint">{mediaCaption}</figcaption>
|
||||
<p className="hud-label text-faint">Reel</p>
|
||||
</div>
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-bg-sunken">
|
||||
{media}
|
||||
<span aria-hidden className="tick top-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick top-2 right-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 right-2 opacity-60" />
|
||||
</div>
|
||||
</figure>
|
||||
)}
|
||||
</SectionShell>
|
||||
);
|
||||
}
|
||||
|
||||
export function VimeoEmbed({ src, title }: { src: string; title: string }) {
|
||||
return (
|
||||
<iframe
|
||||
src={src}
|
||||
className="absolute inset-0 h-full w-full"
|
||||
allow="autoplay; fullscreen; picture-in-picture"
|
||||
allowFullScreen
|
||||
title={title}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { PlayIcon } from "lucide-react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import type { ExampleVideo } from "@/lib/campaign-data";
|
||||
|
||||
// Click-to-play facades: the mp4s (several MB each) are only requested
|
||||
// once the visitor presses play.
|
||||
export default function ExampleVideos({
|
||||
examples,
|
||||
creditHref,
|
||||
creditLabel,
|
||||
}: {
|
||||
examples: ExampleVideo[];
|
||||
creditHref: string;
|
||||
creditLabel: string;
|
||||
}) {
|
||||
return (
|
||||
<ul className="grid gap-px border-t border-line bg-line sm:grid-cols-2 lg:grid-cols-6">
|
||||
{examples.map((example, i) => (
|
||||
<li key={example.src} className={twMerge("bg-bg", example.spanClass)}>
|
||||
<ExampleCard
|
||||
example={example}
|
||||
index={String(i + 1).padStart(2, "0")}
|
||||
creditHref={creditHref}
|
||||
creditLabel={creditLabel}
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
|
||||
function ExampleCard({
|
||||
example,
|
||||
index,
|
||||
creditHref,
|
||||
creditLabel,
|
||||
}: {
|
||||
example: ExampleVideo;
|
||||
index: string;
|
||||
creditHref: string;
|
||||
creditLabel: string;
|
||||
}) {
|
||||
const [active, setActive] = useState(false);
|
||||
return (
|
||||
<figure className="flex h-full flex-col">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5">
|
||||
<figcaption className="hud-label truncate text-muted">{example.label}</figcaption>
|
||||
<p className="hud-label shrink-0 text-faint">{index}</p>
|
||||
</div>
|
||||
<div
|
||||
className="relative w-full overflow-hidden bg-bg-sunken"
|
||||
style={{ aspectRatio: example.wide ? "92 / 39" : "16 / 9" }}
|
||||
>
|
||||
{active ? (
|
||||
<video
|
||||
src={example.src}
|
||||
poster={example.poster}
|
||||
controls
|
||||
autoPlay
|
||||
playsInline
|
||||
className="absolute inset-0 h-full w-full"
|
||||
/>
|
||||
) : (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setActive(true)}
|
||||
aria-label={`Play example: ${example.label}`}
|
||||
className="group absolute inset-0 h-full w-full"
|
||||
>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={example.poster}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
<span className="absolute inset-0 bg-black/20 transition-colors group-hover:bg-black/10" />
|
||||
<span className="hud-label absolute bottom-3 left-3 flex items-center gap-1.5 bg-invert-bg px-3 py-1.5 font-bold text-invert-fg">
|
||||
<PlayIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Play with sound
|
||||
</span>
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
<a
|
||||
href={creditHref}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="hud-label mt-auto border-t border-line px-6 py-2.5 text-faint hover:text-ink"
|
||||
>
|
||||
{creditLabel}
|
||||
</a>
|
||||
</figure>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,344 @@
|
||||
"use client";
|
||||
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import {
|
||||
ArrowRightIcon,
|
||||
AudioLinesIcon,
|
||||
LoaderCircleIcon,
|
||||
SparklesIcon,
|
||||
XIcon,
|
||||
} from "lucide-react";
|
||||
import { Button, Select, Switch } from "@/components/ui";
|
||||
import { generateVideo, getVideoJob } from "@/lib/api";
|
||||
import { H3, H3_GATE_PERKS, H3_SAMPLE_PROMPTS } from "@/lib/campaign-data";
|
||||
import { webappUrl } from "@/lib/links";
|
||||
import { useAccount } from "@/lib/use-account";
|
||||
import AuthGateModal from "./auth-gate-modal";
|
||||
|
||||
// Interactive hero for the MiniMax H3 page, ported from the Vite site: a
|
||||
// real promptbox that enqueues an H3 generation through the omni-gen API,
|
||||
// polls the job, and plays the result inline. Logged-out visitors hit the
|
||||
// inline auth gate and the prompt they typed runs the moment they're in.
|
||||
// Keyframe/reference uploads (which need the media upload API) are left to
|
||||
// the full app.
|
||||
|
||||
const ASPECT_RATIOS = [
|
||||
{ value: "wide_sixteen_by_nine", label: "16:9" },
|
||||
{ value: "tall_nine_by_sixteen", label: "9:16" },
|
||||
{ value: "square", label: "1:1" },
|
||||
];
|
||||
const RESOLUTIONS = [
|
||||
{ value: "two_k", label: "2K" },
|
||||
{ value: "seven_twenty_p", label: "720p" },
|
||||
];
|
||||
const DURATIONS = [5, 8, 10, 12, 15].map((s) => ({ value: String(s), label: `${s}s` }));
|
||||
const MAX_PROMPT_LENGTH = 2000;
|
||||
|
||||
const POLL_INTERVAL_MS = 4000;
|
||||
const POLL_MAX_ATTEMPTS = 180; // 12 min; video takes longer than images
|
||||
|
||||
type Generation = {
|
||||
id: string;
|
||||
prompt: string;
|
||||
status: "pending" | "complete" | "failed";
|
||||
videoUrl?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export default function H3PromptBox() {
|
||||
const { user, loading: accountLoading } = useAccount();
|
||||
// The gate may log the visitor in mid-page; track that locally so the
|
||||
// shared account snapshot (fetched once) doesn't have to be refreshed.
|
||||
const [authed, setAuthed] = useState(false);
|
||||
const loggedIn = !!user || authed;
|
||||
|
||||
const [prompt, setPrompt] = useState("");
|
||||
const [aspectRatio, setAspectRatio] = useState(ASPECT_RATIOS[0].value);
|
||||
const [resolution, setResolution] = useState(RESOLUTIONS[0].value);
|
||||
const [duration, setDuration] = useState("10");
|
||||
const [sound, setSound] = useState(true);
|
||||
const [submitting, setSubmitting] = useState(false);
|
||||
const [gateOpen, setGateOpen] = useState(false);
|
||||
const [generations, setGenerations] = useState<Generation[]>([]);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const resultsRef = useRef<HTMLDivElement>(null);
|
||||
const stops = useRef(new Map<string, () => void>());
|
||||
|
||||
// Stop in-flight polls when the visitor leaves; completed videos are in
|
||||
// their library either way.
|
||||
useEffect(() => {
|
||||
const map = stops.current;
|
||||
return () => {
|
||||
map.forEach((stop) => stop());
|
||||
map.clear();
|
||||
};
|
||||
}, []);
|
||||
|
||||
const patch = useCallback((id: string, p: Partial<Generation>) => {
|
||||
setGenerations((prev) => prev.map((g) => (g.id === id ? { ...g, ...p } : g)));
|
||||
}, []);
|
||||
|
||||
const run = useCallback(async () => {
|
||||
const trimmed = prompt.trim();
|
||||
if (!trimmed) return;
|
||||
setError(null);
|
||||
setSubmitting(true);
|
||||
const id = crypto.randomUUID();
|
||||
setGenerations((prev) => [{ id, prompt: trimmed, status: "pending" }, ...prev]);
|
||||
requestAnimationFrame(() =>
|
||||
resultsRef.current?.scrollIntoView({ behavior: "smooth", block: "center" }),
|
||||
);
|
||||
|
||||
const result = await generateVideo({
|
||||
model: H3.modelId,
|
||||
prompt: trimmed,
|
||||
aspectRatio,
|
||||
resolution,
|
||||
durationSeconds: Number(duration),
|
||||
generateAudio: sound,
|
||||
});
|
||||
setSubmitting(false);
|
||||
if (!result.success) {
|
||||
patch(id, { status: "failed", error: result.errorMessage });
|
||||
return;
|
||||
}
|
||||
|
||||
let attempts = 0;
|
||||
let stopped = false;
|
||||
const poll = async () => {
|
||||
if (stopped) return;
|
||||
attempts += 1;
|
||||
const job = await getVideoJob(result.data.jobToken);
|
||||
if (stopped) return;
|
||||
if (job.status === "complete") {
|
||||
patch(id, { status: "complete", videoUrl: job.videoUrl });
|
||||
stops.current.delete(id);
|
||||
} else if (job.status === "failed") {
|
||||
patch(id, { status: "failed", error: job.error });
|
||||
stops.current.delete(id);
|
||||
} else if (attempts >= POLL_MAX_ATTEMPTS) {
|
||||
patch(id, { status: "failed", error: "Generation timed out" });
|
||||
stops.current.delete(id);
|
||||
} else {
|
||||
setTimeout(poll, POLL_INTERVAL_MS);
|
||||
}
|
||||
};
|
||||
stops.current.set(id, () => {
|
||||
stopped = true;
|
||||
});
|
||||
setTimeout(poll, 3000);
|
||||
}, [prompt, aspectRatio, resolution, duration, sound, patch]);
|
||||
|
||||
const submit = () => {
|
||||
if (!prompt.trim() || submitting) return;
|
||||
if (prompt.length > MAX_PROMPT_LENGTH) {
|
||||
setError(`Prompt exceeds the ${MAX_PROMPT_LENGTH} character limit for this model`);
|
||||
return;
|
||||
}
|
||||
if (!loggedIn) {
|
||||
setGateOpen(true);
|
||||
return;
|
||||
}
|
||||
void run();
|
||||
};
|
||||
|
||||
const dismiss = (id: string) => {
|
||||
stops.current.get(id)?.();
|
||||
stops.current.delete(id);
|
||||
setGenerations((prev) => prev.filter((g) => g.id !== id));
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="w-full max-w-3xl text-left">
|
||||
<div className="border border-line bg-bg-raised">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-4 py-2.5">
|
||||
<p className="hud-label flex items-center gap-2 text-muted">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={H3.icon} alt="" className="themed-logo h-3.5 w-3.5" />
|
||||
{H3.name}
|
||||
<span className="bg-accent px-1.5 py-0.5 font-bold text-white">Free</span>
|
||||
</p>
|
||||
<p className="hud-label text-faint">
|
||||
{prompt.length} / {MAX_PROMPT_LENGTH}
|
||||
</p>
|
||||
</div>
|
||||
<textarea
|
||||
value={prompt}
|
||||
onChange={(e) => setPrompt(e.target.value)}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) submit();
|
||||
}}
|
||||
rows={4}
|
||||
maxLength={MAX_PROMPT_LENGTH}
|
||||
placeholder="Describe the video you want to generate…"
|
||||
className="block w-full resize-none bg-transparent px-4 py-4 text-base leading-relaxed text-ink outline-none placeholder:text-faint"
|
||||
/>
|
||||
<div className="flex flex-wrap items-center gap-3 border-t border-line px-4 py-3">
|
||||
<Select
|
||||
id="h3-aspect"
|
||||
value={aspectRatio}
|
||||
onChange={(v) => setAspectRatio(String(v))}
|
||||
options={ASPECT_RATIOS}
|
||||
className="w-24"
|
||||
/>
|
||||
<Select
|
||||
id="h3-resolution"
|
||||
value={resolution}
|
||||
onChange={(v) => setResolution(String(v))}
|
||||
options={RESOLUTIONS}
|
||||
className="w-24"
|
||||
/>
|
||||
<Select
|
||||
id="h3-duration"
|
||||
value={duration}
|
||||
onChange={(v) => setDuration(String(v))}
|
||||
options={DURATIONS}
|
||||
className="w-24"
|
||||
/>
|
||||
<label className="hud-label flex items-center gap-2 text-muted">
|
||||
<AudioLinesIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Sound
|
||||
<Switch enabled={sound} setEnabled={setSound} aria-label="Generate sound" />
|
||||
</label>
|
||||
<Button
|
||||
type="button"
|
||||
onClick={submit}
|
||||
loading={submitting}
|
||||
disabled={!prompt.trim() || accountLoading}
|
||||
className="ml-auto"
|
||||
>
|
||||
<SparklesIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Generate
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<p role="alert" className="mt-3 font-mono text-[10px] uppercase tracking-[0.1em] text-danger">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="mt-4 flex flex-wrap items-center gap-2">
|
||||
<span className="hud-label text-faint">Try:</span>
|
||||
{H3_SAMPLE_PROMPTS.map((sample) => (
|
||||
<button
|
||||
key={sample}
|
||||
type="button"
|
||||
onClick={() => setPrompt(sample)}
|
||||
title={sample}
|
||||
className="max-w-full truncate border border-line px-3 py-1.5 text-xs text-muted hover:border-line-strong hover:text-ink sm:max-w-[16rem]"
|
||||
>
|
||||
{sample}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
<p className="hud-label mt-4 text-center text-faint">
|
||||
Free {H3.name} generations require a free ArtCraft account. New here?
|
||||
You can sign up when you hit Generate.
|
||||
</p>
|
||||
|
||||
<div ref={resultsRef} className="mt-10 flex flex-col gap-px bg-line empty:hidden">
|
||||
{generations.map((gen) => (
|
||||
<GenerationCard key={gen.id} generation={gen} onDismiss={dismiss} />
|
||||
))}
|
||||
{generations.length > 0 && (
|
||||
<p className="hud-label bg-bg py-3 text-center text-faint">
|
||||
Your videos are also saved to{" "}
|
||||
<a href={webappUrl("/library")} className="text-muted underline underline-offset-4 hover:text-ink">
|
||||
your ArtCraft library
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<AuthGateModal
|
||||
isOpen={gateOpen}
|
||||
onClose={() => setGateOpen(false)}
|
||||
onAuthed={() => {
|
||||
setGateOpen(false);
|
||||
setAuthed(true);
|
||||
void run();
|
||||
}}
|
||||
signupSource={H3.signupSource}
|
||||
headline="Create a free account to generate."
|
||||
subtitle={`Your prompt is ready to go. ${H3.name} generations are free, and signing up takes less than a minute.`}
|
||||
perks={H3_GATE_PERKS}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function GenerationCard({
|
||||
generation,
|
||||
onDismiss,
|
||||
}: {
|
||||
generation: Generation;
|
||||
onDismiss: (id: string) => void;
|
||||
}) {
|
||||
if (generation.status === "complete" && generation.videoUrl) {
|
||||
return (
|
||||
<figure className="bg-bg">
|
||||
<video
|
||||
src={generation.videoUrl}
|
||||
controls
|
||||
playsInline
|
||||
preload="metadata"
|
||||
className="aspect-video w-full bg-bg-sunken object-contain"
|
||||
/>
|
||||
<figcaption className="truncate border-t border-line px-5 py-3 text-sm text-muted" title={generation.prompt}>
|
||||
{generation.prompt}
|
||||
</figcaption>
|
||||
</figure>
|
||||
);
|
||||
}
|
||||
|
||||
if (generation.status === "failed") {
|
||||
return (
|
||||
<div className="flex items-start justify-between gap-4 border border-danger bg-bg px-5 py-4">
|
||||
<div className="min-w-0">
|
||||
<p className="hud-label text-danger">Generation failed</p>
|
||||
<p className="mt-1 text-sm text-muted">
|
||||
{generation.error ?? "Something went wrong. Please try again."}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => onDismiss(generation.id)}
|
||||
aria-label="Dismiss"
|
||||
className="shrink-0 text-faint hover:text-ink"
|
||||
>
|
||||
<XIcon aria-hidden className="h-4 w-4" />
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex aspect-video w-full flex-col items-center justify-center gap-3 bg-bg px-6 text-center">
|
||||
<LoaderCircleIcon aria-hidden className="h-5 w-5 animate-spin text-accent-ink" />
|
||||
<p className="max-w-md truncate text-sm text-ink" title={generation.prompt}>
|
||||
{generation.prompt}
|
||||
</p>
|
||||
<p className="max-w-lg text-xs leading-relaxed text-muted">
|
||||
Generating your video. Free {H3.name} generations share a queue, so this
|
||||
can take a few minutes (longer at peak). Keep this tab open until it
|
||||
finishes; the video also lands in your library.
|
||||
</p>
|
||||
<Button
|
||||
href={webappUrl("/create-video")}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
className="mt-1"
|
||||
>
|
||||
Keep creating in the app while you wait
|
||||
<ArrowRightIcon aria-hidden className="h-3 w-3" />
|
||||
</Button>
|
||||
<p className="hud-label text-faint">Opens in a new tab, so your generation keeps going here.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useRef } from "react";
|
||||
import gsap from "gsap";
|
||||
import { ScrollTrigger } from "gsap/ScrollTrigger";
|
||||
import { MANIFESTO_EMPHASIS, MANIFESTO_WORDS } from "@/lib/campaign-data";
|
||||
|
||||
gsap.registerPlugin(ScrollTrigger);
|
||||
|
||||
// Pinned manifesto: the sentence reveals word by word as the visitor
|
||||
// scrolls, then the accent block sweeps in under the emphasized word and
|
||||
// the section holds a beat before releasing. Scrub-linked and reversible.
|
||||
// Reduced motion / small screens get the static sentence. (The Vite page
|
||||
// also ran a Three.js character and a scroll-scrubbed video here; those
|
||||
// were not carried over.)
|
||||
export default function Manifesto() {
|
||||
const root = useRef<HTMLElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
const mm = gsap.matchMedia();
|
||||
mm.add(
|
||||
"(prefers-reduced-motion: no-preference) and (min-width: 768px)",
|
||||
() => {
|
||||
const section = root.current;
|
||||
if (!section) return;
|
||||
const words = section.querySelectorAll<HTMLElement>("[data-word]");
|
||||
const sweep = section.querySelector<HTMLElement>("[data-sweep]");
|
||||
gsap.set(words, { opacity: 0.15, y: 6 });
|
||||
if (sweep) gsap.set(sweep, { scaleX: 0 });
|
||||
|
||||
const tl = gsap.timeline({
|
||||
scrollTrigger: {
|
||||
trigger: section,
|
||||
start: "top top",
|
||||
end: "bottom bottom",
|
||||
scrub: 0.2,
|
||||
},
|
||||
});
|
||||
words.forEach((word, i) => {
|
||||
tl.to(word, { opacity: 1, y: 0, duration: 0.7, ease: "power2.out" }, i * 0.5);
|
||||
});
|
||||
if (sweep) {
|
||||
tl.to(sweep, { scaleX: 1, duration: 4, ease: "power2.out" }, ">");
|
||||
}
|
||||
tl.to({}, { duration: 4 }); // hold
|
||||
},
|
||||
);
|
||||
return () => mm.revert();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<section
|
||||
ref={root}
|
||||
id="manifesto"
|
||||
className="relative border-t border-line md:h-[300vh]"
|
||||
>
|
||||
<div className="flex items-center justify-center md:sticky md:top-12 md:h-[calc(100vh-3rem)]">
|
||||
<div className="relative mx-auto w-full max-w-[1280px] border-x border-line px-6 py-24 md:px-10">
|
||||
<span aria-hidden className="tick -top-[6px] -left-[6px]" />
|
||||
<span aria-hidden className="tick -top-[6px] -right-[5px]" />
|
||||
<p className="hud-label text-faint">Manifesto</p>
|
||||
<h2 className="mt-8 max-w-4xl font-display text-3xl font-medium leading-[1.2] tracking-[-0.035em] text-ink-strong sm:text-4xl md:text-5xl lg:text-6xl">
|
||||
{MANIFESTO_WORDS.map((word, i) => (
|
||||
<span key={i} data-word className="mr-[0.25em] inline-block">
|
||||
{word === MANIFESTO_EMPHASIS ? (
|
||||
<span className="relative inline-block">
|
||||
<span
|
||||
data-sweep
|
||||
aria-hidden
|
||||
className="absolute inset-x-[-0.1em] bottom-[0.05em] h-[0.35em] origin-left bg-accent/80"
|
||||
/>
|
||||
<span className="relative">{word}</span>
|
||||
</span>
|
||||
) : (
|
||||
word
|
||||
)}
|
||||
</span>
|
||||
))}
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,209 @@
|
||||
import { CameraIcon, FilmIcon, PaintbrushIcon } from "lucide-react";
|
||||
import { GitHubIcon } from "@/components/icons";
|
||||
import { Accent } from "@/components/page/page-header";
|
||||
import { MODEL_BADGES, REASON_IMAGES } from "@/lib/campaign-data";
|
||||
import { SOCIAL_LINKS } from "@/lib/links";
|
||||
import { CampaignSection } from "./sections";
|
||||
|
||||
// "Five reasons" bento from the Seedance pages, rebuilt as a hairline cell
|
||||
// grid: two wide cells, a 1/3 + 2/3 row, and a full-width closer.
|
||||
export default function Reasons({ index }: { index: string }) {
|
||||
return (
|
||||
<CampaignSection
|
||||
id="reasons"
|
||||
index={index}
|
||||
label="Why ArtCraft"
|
||||
annotation="Five reasons"
|
||||
title={
|
||||
<>
|
||||
Five reasons it’s the <Accent>best tool</Accent>.
|
||||
</>
|
||||
}
|
||||
>
|
||||
<div data-reveal-group className="grid gap-px border-t border-line bg-line md:grid-cols-6">
|
||||
{/* 1 — Control beyond text prompting */}
|
||||
<article data-reveal className="flex flex-col bg-bg md:col-span-3">
|
||||
<CellRow label="Control" index="01" />
|
||||
<div className="relative aspect-[21/9] w-full overflow-hidden bg-bg-sunken">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={REASON_IMAGES.canvas}
|
||||
alt="2D canvas and 3D scene side by side"
|
||||
loading="lazy"
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
<div className="p-6 md:p-8">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
Control beyond text prompting
|
||||
</h3>
|
||||
<p className="mt-2 leading-relaxed text-muted">
|
||||
<span className="text-ink">
|
||||
Create images and videos with our easy-to-use AI tool.
|
||||
</span>{" "}
|
||||
Draw on a canvas or work in a 3D space as if you’re playing
|
||||
a video game.
|
||||
</p>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{/* 2 — Desktop app */}
|
||||
<article data-reveal className="flex flex-col bg-bg md:col-span-3">
|
||||
<CellRow label="Desktop" index="02" />
|
||||
<div className="flex flex-1 flex-col p-6 md:p-8">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
Desktop app
|
||||
</h3>
|
||||
<p className="mt-2 leading-relaxed text-muted">
|
||||
<span className="text-ink">No more hunting for the hundredth tab.</span>{" "}
|
||||
Works on Windows, Mac, and soon Linux and tablets. First class
|
||||
experience for real artists.
|
||||
</p>
|
||||
<div className="mt-8 flex flex-1 items-end justify-center gap-8 border-t border-line pt-8">
|
||||
{[
|
||||
[REASON_IMAGES.windows, "Windows"],
|
||||
[REASON_IMAGES.apple, "macOS"],
|
||||
[REASON_IMAGES.linux, "Linux"],
|
||||
].map(([src, alt]) => (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img
|
||||
key={alt}
|
||||
src={src}
|
||||
alt={alt}
|
||||
loading="lazy"
|
||||
draggable={false}
|
||||
className="h-16 w-auto opacity-80 grayscale md:h-20"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{/* 3 — Open source */}
|
||||
<article data-reveal className="flex flex-col bg-bg md:col-span-2">
|
||||
<CellRow label="Open source" index="03" />
|
||||
<div className="flex flex-1 flex-col p-6 md:p-8">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
It’s open source
|
||||
</h3>
|
||||
<p className="mt-2 leading-relaxed text-muted">
|
||||
Our desktop app’s code and infrastructure are all{" "}
|
||||
<a
|
||||
href={SOCIAL_LINKS.GITHUB}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-ink underline underline-offset-4 decoration-line-strong hover:decoration-current"
|
||||
>
|
||||
open source on GitHub
|
||||
</a>
|
||||
. Join us and contribute!
|
||||
</p>
|
||||
<div className="mt-8 flex flex-1 items-center justify-center border-t border-line pt-8">
|
||||
<GitHubIcon className="h-20 w-20 text-ink md:h-24 md:w-24" />
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{/* 4 — Use every model */}
|
||||
<article data-reveal className="flex flex-col overflow-hidden bg-bg md:col-span-4">
|
||||
<CellRow label="Models" index="04" />
|
||||
<div className="p-6 md:p-8">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
Use every model
|
||||
</h3>
|
||||
<p className="mt-2 leading-relaxed text-muted">
|
||||
You’ll be able to use{" "}
|
||||
<span className="text-ink">every image and video model</span> all
|
||||
in one place. Log in with your existing subscriptions.
|
||||
</p>
|
||||
</div>
|
||||
<ModelMarquee />
|
||||
</article>
|
||||
|
||||
{/* 5 — Created by artists */}
|
||||
<article data-reveal className="flex flex-col bg-bg md:col-span-6 md:flex-row md:items-center">
|
||||
<div className="flex-1">
|
||||
<CellRow label="Makers" index="05" />
|
||||
<div className="p-6 md:p-8">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
Created by artists and filmmakers
|
||||
</h3>
|
||||
<p className="mt-2 max-w-2xl leading-relaxed text-muted">
|
||||
<span className="text-ink">
|
||||
The other leading platforms were created by the Google ad
|
||||
team, crypto bros, and other non-artists.
|
||||
</span>{" "}
|
||||
Not us. We’re one of you.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center gap-px border-t border-line bg-line md:border-t-0 md:border-l">
|
||||
{[FilmIcon, PaintbrushIcon, CameraIcon].map((Icon, i) => (
|
||||
<span
|
||||
key={i}
|
||||
className="flex h-20 flex-1 items-center justify-center bg-bg text-ink md:h-full md:w-24 md:flex-none"
|
||||
>
|
||||
<Icon aria-hidden className="h-6 w-6" />
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</CampaignSection>
|
||||
);
|
||||
}
|
||||
|
||||
function CellRow({ label, index }: { label: string; index: string }) {
|
||||
return (
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-8">
|
||||
<p className="hud-label text-muted">{label}</p>
|
||||
<p className="hud-label text-faint">{index}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// Three mono marquee rows of model badges, round-robin so brands mix.
|
||||
// Reuses the landing ticker's .marquee keyframes.
|
||||
function ModelMarquee() {
|
||||
const rows: (typeof MODEL_BADGES)[] = [[], [], []];
|
||||
MODEL_BADGES.forEach((badge, i) => rows[i % 3].push(badge));
|
||||
return (
|
||||
<div className="flex flex-col gap-px border-t border-line bg-line">
|
||||
{rows.map((row, r) => (
|
||||
<div
|
||||
key={r}
|
||||
className="marquee bg-bg"
|
||||
style={{ animationDirection: r % 2 ? "reverse" : "normal" }}
|
||||
>
|
||||
{[0, 1].map((copy) => (
|
||||
<ul
|
||||
key={copy}
|
||||
aria-hidden={copy === 1 || undefined}
|
||||
className="marquee-track items-center"
|
||||
style={{
|
||||
animationDuration: `${[56, 68, 62][r]}s`,
|
||||
animationDirection: r % 2 ? "reverse" : "normal",
|
||||
}}
|
||||
>
|
||||
{row.map((badge) => (
|
||||
<li
|
||||
key={badge.name}
|
||||
className="hud-label flex items-center gap-2 whitespace-nowrap px-5 py-3 text-muted"
|
||||
>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={badge.icon}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
className="themed-logo h-3.5 w-3.5"
|
||||
/>
|
||||
{badge.name}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
))}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { ChevronDownIcon, InfoIcon } from "lucide-react";
|
||||
import { GitHubIcon, DiscordIcon } from "@/components/icons";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent } from "@/components/page/page-header";
|
||||
import { Button } from "@/components/ui";
|
||||
import type { QA, Tip } from "@/lib/campaign-data";
|
||||
import { SOCIAL_LINKS } from "@/lib/links";
|
||||
|
||||
// Building blocks shared by the campaign landing pages, all in the
|
||||
// landing's section language (rails, eyebrow, display heading with one
|
||||
// serif word, hairline cell grids). Server components: no state.
|
||||
|
||||
// Section heading block: eyebrow row + big heading + optional lede.
|
||||
export function CampaignSection({
|
||||
id,
|
||||
index,
|
||||
label,
|
||||
annotation,
|
||||
title,
|
||||
lede,
|
||||
children,
|
||||
}: {
|
||||
id?: string;
|
||||
index: string;
|
||||
label: string;
|
||||
annotation?: string;
|
||||
title: ReactNode;
|
||||
lede?: ReactNode;
|
||||
children?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<SectionShell id={id}>
|
||||
<SectionEyebrow index={index} label={label} annotation={annotation} />
|
||||
<div className="px-6 py-14 md:px-10 md:py-20">
|
||||
<h2
|
||||
data-reveal
|
||||
className="max-w-3xl font-display text-4xl font-medium leading-[1.02] tracking-[-0.035em] text-ink-strong sm:text-5xl md:text-6xl"
|
||||
>
|
||||
{title}
|
||||
</h2>
|
||||
{lede && (
|
||||
<p data-reveal className="mt-5 max-w-xl text-lg leading-relaxed text-muted">
|
||||
{lede}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
{children}
|
||||
</SectionShell>
|
||||
);
|
||||
}
|
||||
|
||||
// Long-form paragraphs (overview copy) with an optional flagged note.
|
||||
export function Prose({
|
||||
paragraphs,
|
||||
note,
|
||||
}: {
|
||||
paragraphs: string[];
|
||||
note?: string;
|
||||
}) {
|
||||
return (
|
||||
<div className="border-t border-line">
|
||||
<div className="mx-auto max-w-3xl px-6 py-12 md:px-10 md:py-16">
|
||||
<div className="flex flex-col gap-5 text-lg leading-relaxed text-muted">
|
||||
{paragraphs.map((p) => (
|
||||
<p key={p.slice(0, 40)}>{p}</p>
|
||||
))}
|
||||
</div>
|
||||
{note && (
|
||||
<p className="mt-10 flex items-start gap-3 border border-line bg-bg-raised px-5 py-4 text-sm leading-relaxed text-muted">
|
||||
<InfoIcon aria-hidden className="mt-0.5 h-4 w-4 shrink-0 text-faint" />
|
||||
{note}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// Numbered tip / highlight cells.
|
||||
export function TipGrid({
|
||||
items,
|
||||
columns = 2,
|
||||
icons,
|
||||
}: {
|
||||
items: Tip[];
|
||||
columns?: 2 | 3;
|
||||
icons?: ReactNode[];
|
||||
}) {
|
||||
return (
|
||||
<ol
|
||||
data-reveal-group
|
||||
className={`grid gap-px border-t border-line bg-line ${
|
||||
columns === 3 ? "md:grid-cols-3" : "md:grid-cols-2"
|
||||
}`}
|
||||
>
|
||||
{items.map((tip, i) => (
|
||||
<li key={tip.title} data-reveal className="bg-bg p-6 md:p-8">
|
||||
<div className="flex items-center justify-between gap-4">
|
||||
{icons?.[i] ? (
|
||||
<span className="flex h-10 w-10 items-center justify-center border border-line text-accent-ink">
|
||||
{icons[i]}
|
||||
</span>
|
||||
) : (
|
||||
<span />
|
||||
)}
|
||||
<p className="hud-label text-faint">{String(i + 1).padStart(2, "0")}</p>
|
||||
</div>
|
||||
<h3 className="mt-6 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{tip.title}
|
||||
</h3>
|
||||
<p className="mt-2 leading-relaxed text-muted">{tip.body}</p>
|
||||
</li>
|
||||
))}
|
||||
{items.length % columns !== 0 && (
|
||||
<li aria-hidden className="hidden bg-bg md:block" />
|
||||
)}
|
||||
</ol>
|
||||
);
|
||||
}
|
||||
|
||||
// Native <details> accordion: complete without JS, hard edges, mono index.
|
||||
export function FaqAccordion({ items }: { items: QA[] }) {
|
||||
return (
|
||||
<div className="flex flex-col gap-px border-t border-line bg-line">
|
||||
{items.map((item, i) => (
|
||||
<details key={item.question} className="group bg-bg">
|
||||
<summary className="flex cursor-pointer list-none items-center gap-4 px-6 py-5 md:px-10 [&::-webkit-details-marker]:hidden">
|
||||
<span className="hud-label w-8 shrink-0 text-faint">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</span>
|
||||
<span className="flex-1 font-display text-xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{item.question}
|
||||
</span>
|
||||
<ChevronDownIcon
|
||||
aria-hidden
|
||||
className="h-4 w-4 shrink-0 text-faint transition-transform group-open:rotate-180"
|
||||
/>
|
||||
</summary>
|
||||
<p className="max-w-3xl px-6 pb-6 pl-[4.5rem] leading-relaxed text-muted md:px-10 md:pl-[5.5rem]">
|
||||
{item.answer}
|
||||
</p>
|
||||
</details>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// Discord + GitHub strip.
|
||||
export function CommunityCta({ id = "community" }: { id?: string }) {
|
||||
return (
|
||||
<SectionShell id={id}>
|
||||
<div className="flex flex-col gap-6 px-6 py-10 md:flex-row md:items-center md:justify-between md:px-10">
|
||||
<div>
|
||||
<p className="hud-label text-faint">Community</p>
|
||||
<h2 className="mt-3 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong sm:text-3xl">
|
||||
Join our <Accent>community</Accent>.
|
||||
</h2>
|
||||
<p className="mt-2 max-w-md leading-relaxed text-muted">
|
||||
ArtCraft is open source and community-driven. Come build with us.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<Button href={SOCIAL_LINKS.DISCORD} target="_blank" rel="noopener noreferrer">
|
||||
<DiscordIcon className="h-4 w-4" />
|
||||
Join Discord
|
||||
</Button>
|
||||
<Button
|
||||
href={SOCIAL_LINKS.GITHUB}
|
||||
variant="secondary"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<GitHubIcon className="h-4 w-4" />
|
||||
Star on GitHub
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</SectionShell>
|
||||
);
|
||||
}
|
||||
|
||||
// Centered closing pitch with the page's CTA slot underneath.
|
||||
export function ClosingCta({
|
||||
id = "start",
|
||||
eyebrow,
|
||||
title,
|
||||
lede,
|
||||
footnote,
|
||||
children,
|
||||
}: {
|
||||
id?: string;
|
||||
eyebrow: string;
|
||||
title: ReactNode;
|
||||
lede: ReactNode;
|
||||
footnote?: string;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<SectionShell id={id}>
|
||||
<div className="flex flex-col items-center px-6 py-20 text-center md:py-28">
|
||||
<p className="hud-label text-faint">{eyebrow}</p>
|
||||
<h2
|
||||
data-reveal
|
||||
className="mt-6 max-w-4xl font-display text-5xl font-medium leading-[0.98] tracking-[-0.04em] text-ink-strong sm:text-6xl md:text-7xl"
|
||||
>
|
||||
{title}
|
||||
</h2>
|
||||
<p className="mt-6 max-w-xl text-lg leading-relaxed text-muted">{lede}</p>
|
||||
<div className="mt-10">{children}</div>
|
||||
{footnote && <p className="hud-label mt-8 text-faint">{footnote}</p>}
|
||||
</div>
|
||||
</SectionShell>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
"use client";
|
||||
|
||||
import { ArrowRightIcon } from "lucide-react";
|
||||
import { Button, Modal } from "@/components/ui";
|
||||
import { webappUrl } from "@/lib/links";
|
||||
|
||||
// Shown right after a desktop download starts: invites the visitor to
|
||||
// create an account while the installer arrives. Downloads themselves
|
||||
// start natively via the anchor that opened this.
|
||||
export default function DownloadModal({
|
||||
isOpen,
|
||||
onClose,
|
||||
}: {
|
||||
isOpen: boolean;
|
||||
onClose: () => void;
|
||||
}) {
|
||||
return (
|
||||
<Modal isOpen={isOpen} onClose={onClose} title="Downloading ArtCraft…">
|
||||
<p className="leading-relaxed text-muted">
|
||||
Your download has started. While you wait, create an account to store
|
||||
your creations.
|
||||
</p>
|
||||
<Button href={webappUrl("/signup")} className="mt-6 w-full">
|
||||
Sign up
|
||||
<ArrowRightIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
</Button>
|
||||
<a
|
||||
href={webappUrl("/login")}
|
||||
className="hud-label mt-4 block text-center text-faint hover:text-ink"
|
||||
>
|
||||
I already have an account
|
||||
</a>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
"use client";
|
||||
|
||||
import { useState, type ReactNode } from "react";
|
||||
import {
|
||||
ArrowDownToLineIcon,
|
||||
FilesIcon,
|
||||
MemoryStickIcon,
|
||||
MonitorIcon,
|
||||
AppleIcon,
|
||||
} from "lucide-react";
|
||||
import { WindowsIcon } from "@/components/icons";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Accent, PageHeader } from "@/components/page/page-header";
|
||||
import { Button } from "@/components/ui";
|
||||
import {
|
||||
DOWNLOAD_LINKS,
|
||||
DOWNLOAD_VERSIONS,
|
||||
DOWNLOADS_ENABLED,
|
||||
} from "@/lib/download-links";
|
||||
import { mediaUrl, webappUrl } from "@/lib/links";
|
||||
import {
|
||||
markDownloadInitiated,
|
||||
useDetectedPlatform,
|
||||
type Platform,
|
||||
} from "@/lib/use-platform";
|
||||
import DownloadModal from "./download-modal";
|
||||
|
||||
type System = {
|
||||
id: Platform;
|
||||
os: string;
|
||||
short: string;
|
||||
icon: ReactNode;
|
||||
link: string;
|
||||
version: string;
|
||||
requirements: { icon: ReactNode; text: string }[];
|
||||
};
|
||||
|
||||
const SYSTEMS: System[] = [
|
||||
{
|
||||
id: "windows",
|
||||
os: "Windows",
|
||||
short: "Windows",
|
||||
icon: <WindowsIcon className="h-5 w-5" />,
|
||||
link: DOWNLOAD_LINKS.WINDOWS,
|
||||
version: DOWNLOAD_VERSIONS.WINDOWS,
|
||||
requirements: [
|
||||
{ icon: <MonitorIcon aria-hidden className="h-4 w-4" />, text: "Windows 10 (64-bit) or newer" },
|
||||
{ icon: <MemoryStickIcon aria-hidden className="h-4 w-4" />, text: "8 GB RAM recommended" },
|
||||
{ icon: <FilesIcon aria-hidden className="h-4 w-4" />, text: "2 GB available storage" },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "macos",
|
||||
os: "macOS",
|
||||
short: "Mac",
|
||||
icon: <AppleIcon aria-hidden className="h-5 w-5" />,
|
||||
link: DOWNLOAD_LINKS.MACOS,
|
||||
version: DOWNLOAD_VERSIONS.MACOS,
|
||||
requirements: [
|
||||
{ icon: <MonitorIcon aria-hidden className="h-4 w-4" />, text: "macOS 12.0 or newer" },
|
||||
{ icon: <MemoryStickIcon aria-hidden className="h-4 w-4" />, text: "8 GB RAM recommended" },
|
||||
{ icon: <FilesIcon aria-hidden className="h-4 w-4" />, text: "2 GB available storage" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const STEPS = [
|
||||
{ title: "Download", description: "Grab the installer for your platform." },
|
||||
{ title: "Install & sign in", description: "Create a free account or log in." },
|
||||
{ title: "Create", description: "Start generating artwork immediately." },
|
||||
];
|
||||
|
||||
export default function DownloadPage() {
|
||||
const detected = useDetectedPlatform();
|
||||
const [modalOpen, setModalOpen] = useState(false);
|
||||
|
||||
const detectedSystem =
|
||||
SYSTEMS.find((s) => s.id === detected?.platform) ?? SYSTEMS[0];
|
||||
const isMobile = detected?.mobile ?? false;
|
||||
|
||||
// Downloads start natively via the anchor; the modal only invites the
|
||||
// visitor to create an account while the installer arrives.
|
||||
const onDownloadClick = () => {
|
||||
setModalOpen(true);
|
||||
markDownloadInitiated();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageHeader
|
||||
id="download"
|
||||
index="01"
|
||||
label="Download"
|
||||
annotation="macOS · Windows · Web"
|
||||
title={
|
||||
<>
|
||||
Download <Accent>ArtCraft</Accent>.
|
||||
</>
|
||||
}
|
||||
lede="AI-powered artwork creation with canvas editing and 3D scene composition — right on your desktop."
|
||||
>
|
||||
<div data-reveal className="mt-8 flex flex-wrap items-center gap-3">
|
||||
<PrimaryDownloadButton
|
||||
system={detectedSystem}
|
||||
isMobile={isMobile}
|
||||
onClick={onDownloadClick}
|
||||
/>
|
||||
<Button href={webappUrl("/")} variant="secondary" size="lg">
|
||||
Use on web
|
||||
</Button>
|
||||
</div>
|
||||
<p data-reveal className="hud-label mt-5 text-faint">
|
||||
Free · Open source · v{detectedSystem.version}
|
||||
</p>
|
||||
</PageHeader>
|
||||
|
||||
<SectionShell>
|
||||
<figure>
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2 md:px-10">
|
||||
<figcaption className="hud-label text-faint">
|
||||
Viewport — 3D scene editor
|
||||
</figcaption>
|
||||
<p className="hud-label text-faint">Desktop app</p>
|
||||
</div>
|
||||
<div className="relative w-full overflow-hidden bg-bg-sunken">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={mediaUrl("/images/3d-interface-preview.jpg")}
|
||||
alt="ArtCraft interface preview"
|
||||
className="block h-auto w-full"
|
||||
/>
|
||||
<span aria-hidden className="tick top-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick top-2 right-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 right-2 opacity-60" />
|
||||
</div>
|
||||
</figure>
|
||||
</SectionShell>
|
||||
|
||||
<SectionShell id="platforms">
|
||||
<SectionEyebrow index="02" label="Platforms" annotation="Universal macOS build · x64 Windows" />
|
||||
<div className="grid gap-px bg-line md:grid-cols-2">
|
||||
{SYSTEMS.map((system, i) => {
|
||||
const isDetected = detected?.platform === system.id && !isMobile;
|
||||
return (
|
||||
<article key={system.id} className="flex flex-col bg-bg">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-8">
|
||||
<p className="hud-label text-muted">
|
||||
{isDetected ? (
|
||||
<span className="text-accent-ink">Your system</span>
|
||||
) : (
|
||||
"Platform"
|
||||
)}
|
||||
</p>
|
||||
<p className="hud-label text-faint">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-1 flex-col p-6 md:p-8">
|
||||
<div className="flex items-center gap-3">
|
||||
<span className="flex h-10 w-10 items-center justify-center border border-line text-ink">
|
||||
{system.icon}
|
||||
</span>
|
||||
<h2 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{system.os}
|
||||
</h2>
|
||||
</div>
|
||||
<ul className="mt-6 flex flex-1 flex-col gap-2.5">
|
||||
{system.requirements.map((req) => (
|
||||
<li key={req.text} className="flex items-center gap-2.5 text-sm text-muted">
|
||||
<span className="text-faint">{req.icon}</span>
|
||||
{req.text}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className="mt-8">
|
||||
{isMobile ? (
|
||||
<Button disabled className="w-full">
|
||||
Desktop only
|
||||
</Button>
|
||||
) : DOWNLOADS_ENABLED ? (
|
||||
<Button
|
||||
href={system.link}
|
||||
onClick={onDownloadClick}
|
||||
variant={isDetected ? "primary" : "secondary"}
|
||||
className="w-full"
|
||||
>
|
||||
<ArrowDownToLineIcon aria-hidden className="h-4 w-4" />
|
||||
Download for {system.short}
|
||||
</Button>
|
||||
) : (
|
||||
<Button disabled className="w-full">
|
||||
Temporarily unavailable
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</SectionShell>
|
||||
|
||||
<SectionShell id="quick-start">
|
||||
<SectionEyebrow index="03" label="Quick start" annotation="Minutes, not hours" />
|
||||
<ol className="grid gap-px bg-line md:grid-cols-3">
|
||||
{STEPS.map((step, i) => (
|
||||
<li key={step.title} className="bg-bg p-6 md:p-8">
|
||||
<p className="hud-label text-faint">Step {i + 1}</p>
|
||||
<h3 className="mt-6 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{step.title}
|
||||
</h3>
|
||||
<p className="mt-2 leading-relaxed text-muted">{step.description}</p>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</SectionShell>
|
||||
|
||||
<DownloadModal isOpen={modalOpen} onClose={() => setModalOpen(false)} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function PrimaryDownloadButton({
|
||||
system,
|
||||
isMobile,
|
||||
onClick,
|
||||
}: {
|
||||
system: System;
|
||||
isMobile: boolean;
|
||||
onClick: () => void;
|
||||
}) {
|
||||
if (isMobile) {
|
||||
return (
|
||||
<Button size="lg" disabled>
|
||||
Download on a desktop
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
if (!DOWNLOADS_ENABLED) {
|
||||
return (
|
||||
<Button size="lg" disabled>
|
||||
Downloads temporarily unavailable
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Button href={system.link} size="lg" onClick={onClick}>
|
||||
{system.icon}
|
||||
Download for {system.short}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
// Brand glyphs lucide no longer ships. Path data from Simple Icons (CC0).
|
||||
export function GitHubIcon({ className }: { className?: string }) {
|
||||
type IconProps = { className?: string };
|
||||
|
||||
export function GitHubIcon({ className }: IconProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
@@ -11,3 +13,48 @@ export function GitHubIcon({ className }: { className?: string }) {
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function DiscordIcon({ className }: IconProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
aria-hidden
|
||||
className={className}
|
||||
>
|
||||
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function InstagramIcon({ className }: IconProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
aria-hidden
|
||||
className={className}
|
||||
>
|
||||
<rect width="20" height="20" x="2" y="2" rx="5" ry="5" />
|
||||
<path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" />
|
||||
<line x1="17.5" x2="17.51" y1="6.5" y2="6.5" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function WindowsIcon({ className }: IconProps) {
|
||||
return (
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
aria-hidden
|
||||
className={className}
|
||||
>
|
||||
<path d="M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { logWebReferral } from "@/lib/api";
|
||||
import { captureLandingContext, getReferrer } from "@/lib/referral";
|
||||
|
||||
const REFERRAL_LOGGED_KEY = "referral_logged";
|
||||
|
||||
// Site-wide attribution bootstrap (ported from the Vite site's main.tsx):
|
||||
// persist the landing context on every page load, and log the referral to
|
||||
// the API once per browser session.
|
||||
export default function LandingContext() {
|
||||
useEffect(() => {
|
||||
captureLandingContext();
|
||||
try {
|
||||
if (sessionStorage.getItem(REFERRAL_LOGGED_KEY)) return;
|
||||
sessionStorage.setItem(REFERRAL_LOGGED_KEY, "1");
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
logWebReferral(getReferrer()).catch(() => {});
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -1,17 +1,22 @@
|
||||
import { FEATURES } from "@/lib/landing-data";
|
||||
import { ArrowUpRightIcon } from "lucide-react";
|
||||
import { FEATURES, HERO_VIDEO_URL } from "@/lib/landing-data";
|
||||
import { WEBAPP_URL } from "@/lib/links";
|
||||
import LazyVideo from "@/components/lazy-video";
|
||||
import HeroViewport from "./hero-viewport";
|
||||
import { SectionShell, SectionEyebrow } from "./section-shell";
|
||||
|
||||
// Feature grid: hairline-separated cells (gap-px over the line color), the
|
||||
// first feature spanning the full row. Every cell is index + label + real
|
||||
// product footage + copy — no illustration, only the actual tool.
|
||||
export default function Features() {
|
||||
const [lead, ...rest] = FEATURES;
|
||||
|
||||
// Feature grid: hairline-separated cells (gap-px over the line color).
|
||||
// The studio demo leads full-width — the announce strip as its header, the
|
||||
// blocking↔render comparator as its body — then the seven features and the
|
||||
// launch-CTA cell split an even two-column grid. Every feature cell is
|
||||
// index + label + real product footage + copy — no illustration, only the
|
||||
// actual tool. `index` is the section's eyebrow number — the section is
|
||||
// reused on other pages where it sits at a different position.
|
||||
export default function Features({ index = "01" }: { index?: string }) {
|
||||
return (
|
||||
<SectionShell id="features">
|
||||
<SectionEyebrow
|
||||
index="01"
|
||||
index={index}
|
||||
label="Crafting features"
|
||||
annotation="Real footage — captured in ArtCraft"
|
||||
/>
|
||||
@@ -31,42 +36,81 @@ export default function Features() {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-px border-t border-line bg-line md:grid-cols-2">
|
||||
<FeatureCell feature={lead} lead />
|
||||
{rest.map((feature) => (
|
||||
<div
|
||||
data-reveal-group
|
||||
className="grid gap-px border-t border-line bg-line md:grid-cols-2"
|
||||
>
|
||||
{/* Lead demo: the studio itself — compose the blocking, mouse across
|
||||
to the AI render. */}
|
||||
<figure data-reveal className="bg-bg md:col-span-2">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-8">
|
||||
<p className="hud-label text-muted">Open-source AI studio</p>
|
||||
<p className="hud-label hidden text-accent-ink sm:block">
|
||||
Now with Seedance 2.5, Nano Banana 2 & more
|
||||
</p>
|
||||
</div>
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-bg-sunken md:aspect-[21/9]">
|
||||
<HeroViewport
|
||||
videoSrc={HERO_VIDEO_URL}
|
||||
videoLabel="ArtCraft product reel: composing 3D scenes and rendering them with AI"
|
||||
/>
|
||||
{/* Cursor hint — meaningful only where the comparator mounts
|
||||
(fine pointers, md+). */}
|
||||
<p
|
||||
aria-hidden
|
||||
className="hud-label absolute right-3 top-3 hidden items-center gap-1.5 bg-invert-bg px-3 py-1.5 font-bold text-invert-fg md:flex"
|
||||
>
|
||||
<span className="inline-block h-1.5 w-1.5 bg-accent" />
|
||||
Blocking ↔ render · move your cursor
|
||||
</p>
|
||||
<span aria-hidden className="tick top-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 right-2 opacity-60" />
|
||||
</div>
|
||||
</figure>
|
||||
|
||||
{FEATURES.map((feature) => (
|
||||
<FeatureCell key={feature.index} feature={feature} />
|
||||
))}
|
||||
{/* Filler cell keeps the hairline grid rectangular with 7 items. */}
|
||||
<div
|
||||
aria-hidden
|
||||
className="hidden items-end justify-between bg-bg p-6 md:flex md:p-8"
|
||||
>
|
||||
<p className="hud-label text-faint">More in the app</p>
|
||||
<p className="hud-label text-faint">07 / 07</p>
|
||||
</div>
|
||||
|
||||
{/* Eighth cell: the launch CTA, full-sized like its siblings — the
|
||||
grid stays even and the section ends on a door into the app. */}
|
||||
<a data-reveal href={WEBAPP_URL} className="group flex flex-col bg-bg">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-8">
|
||||
<p className="hud-label text-muted">More in the app</p>
|
||||
<p className="hud-label text-faint">08</p>
|
||||
</div>
|
||||
<div className="relative flex aspect-video w-full flex-col items-center justify-center gap-4 overflow-hidden bg-bg-sunken">
|
||||
<span className="flex h-14 w-14 items-center justify-center border border-line-strong text-ink transition-colors group-hover:bg-invert-bg group-hover:text-invert-fg">
|
||||
<ArrowUpRightIcon className="h-6 w-6" />
|
||||
</span>
|
||||
<p className="hud-label text-faint">app.getartcraft.com</p>
|
||||
<span aria-hidden className="tick top-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 right-2 opacity-60" />
|
||||
</div>
|
||||
<div className="px-6 py-6 md:px-8">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
Launch the studio
|
||||
</h3>
|
||||
<p className="mt-2 max-w-xl leading-relaxed text-muted">
|
||||
Generate, edit, and compose with every model — right in your
|
||||
browser, no install needed.
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</SectionShell>
|
||||
);
|
||||
}
|
||||
|
||||
function FeatureCell({
|
||||
feature,
|
||||
lead = false,
|
||||
}: {
|
||||
feature: (typeof FEATURES)[number];
|
||||
lead?: boolean;
|
||||
}) {
|
||||
function FeatureCell({ feature }: { feature: (typeof FEATURES)[number] }) {
|
||||
return (
|
||||
<article className={`bg-bg ${lead ? "md:col-span-2" : ""}`}>
|
||||
<article data-reveal className="bg-bg">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5 md:px-8">
|
||||
<p className="hud-label text-muted">{feature.label}</p>
|
||||
<p className="hud-label text-faint">{feature.index}</p>
|
||||
</div>
|
||||
<div
|
||||
className={`relative w-full overflow-hidden bg-bg-sunken ${
|
||||
lead ? "aspect-[21/9]" : "aspect-video"
|
||||
}`}
|
||||
>
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-bg-sunken">
|
||||
<LazyVideo
|
||||
src={feature.video}
|
||||
label={`${feature.title} demo`}
|
||||
|
||||
+161
-9
@@ -47,10 +47,7 @@ export const galaxyLayoutTuner = defineTunables(
|
||||
min: 8,
|
||||
max: 96,
|
||||
step: 1,
|
||||
// 3× the 17-clip showcase pool: the round-robin deal lands every clip
|
||||
// on exactly three cards, and the neighbor-gap sizing grows the cards
|
||||
// to keep the same fill.
|
||||
default: 51,
|
||||
default: 64,
|
||||
info: "Cards riding the arms at the reference viewport size; smaller viewports scale this down proportionally (see Tuned @ Mpx).",
|
||||
},
|
||||
tunedMpx: {
|
||||
@@ -74,9 +71,9 @@ export const galaxyLayoutTuner = defineTunables(
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
// Golden-ratio conjugate: successive arms land at low-discrepancy
|
||||
// phases within a slot gap, so no card count can ring-align them.
|
||||
default: 0.38,
|
||||
// In slot-gap units so no card count can ring-align the arms
|
||||
// (the starfish); user-tuned scatter.
|
||||
default: 0.76,
|
||||
info: "Per-arm conveyor stagger in slot gaps — 0 births all arms in lockstep rings; ~0.38 (golden) scatters them evenly at any card count.",
|
||||
},
|
||||
ticksPerArm: {
|
||||
@@ -95,6 +92,97 @@ export const galaxyLayoutTuner = defineTunables(
|
||||
default: 0.56,
|
||||
info: "Radius of the dashed construction circle in the underlay, as a fraction of the outer radius.",
|
||||
},
|
||||
guideX: {
|
||||
label: "Guide lines ×",
|
||||
min: 1,
|
||||
max: 4,
|
||||
step: 1,
|
||||
default: 1,
|
||||
info: "Underlay line density: guide curves per card arm (2 draws a phantom guide midway between arms). Mobile profile always keeps 1×.",
|
||||
},
|
||||
dedupPx: {
|
||||
label: "Dedup px",
|
||||
min: 0,
|
||||
max: 800,
|
||||
step: 10,
|
||||
default: 300,
|
||||
info: "Two visible cards sharing a clip closer than this on screen trigger a reassignment of the blurrier one (the swap hides inside its birth blur). 0 disables.",
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
// The mobile spiral profile: below the area threshold, these dials REPLACE
|
||||
// their Galaxy-layout counterparts wholesale — small screens get their own
|
||||
// composition (fewer, straighter arms; own count, reach, and card ceiling)
|
||||
// tuned independently of the desktop spiral.
|
||||
export const galaxyMobileTuner = defineTunables(
|
||||
"galaxyMobile",
|
||||
"Galaxy mobile",
|
||||
{
|
||||
mobMpx: {
|
||||
label: "Mobile < Mpx",
|
||||
min: 0,
|
||||
max: 1.2,
|
||||
step: 0.05,
|
||||
default: 0.6,
|
||||
info: "Viewports smaller than this megapixel area use the mobile profile below instead of the Galaxy-layout values. 0 disables the profile.",
|
||||
},
|
||||
mobArms: {
|
||||
label: "Arms",
|
||||
min: 1,
|
||||
max: 6,
|
||||
step: 1,
|
||||
default: 3,
|
||||
info: "Arm count on mobile — fewer arms means less angular crowding on a narrow stage.",
|
||||
},
|
||||
mobTurns: {
|
||||
label: "Turns",
|
||||
min: 0.3,
|
||||
max: 2,
|
||||
step: 0.05,
|
||||
default: 0.7,
|
||||
info: "Spiral windings on mobile — straighter arms space consecutive cards further apart radially, so they can run larger.",
|
||||
},
|
||||
mobCardN: {
|
||||
label: "Card count",
|
||||
min: 4,
|
||||
max: 40,
|
||||
step: 1,
|
||||
default: 14,
|
||||
info: "Cards riding the arms on mobile — a fixed count, not scaled from the desktop knob.",
|
||||
},
|
||||
mobRMax: {
|
||||
label: "Outer radius",
|
||||
min: 0.3,
|
||||
max: 1.2,
|
||||
step: 0.02,
|
||||
default: 0.8,
|
||||
info: "Spiral reach on mobile as a fraction of the half-diagonal — how far the arms extend past the small stage.",
|
||||
},
|
||||
mobCardH: {
|
||||
label: "Card h cap",
|
||||
min: 0.08,
|
||||
max: 0.5,
|
||||
step: 0.005,
|
||||
default: 0.3,
|
||||
info: "Card height ceiling on mobile as a fraction of the viewport height.",
|
||||
},
|
||||
mobBirth: {
|
||||
label: "Birth radius",
|
||||
min: 0.02,
|
||||
max: 0.3,
|
||||
step: 0.005,
|
||||
default: 0.08,
|
||||
info: "Where cards are born on mobile, as a fraction of the outer radius.",
|
||||
},
|
||||
mobDensityX: {
|
||||
label: "Density ×",
|
||||
min: 1,
|
||||
max: 1.6,
|
||||
step: 0.02,
|
||||
default: 1.15,
|
||||
info: "Density multiplier on mobile — lets cards claim more of their (larger) neighbor gaps.",
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
@@ -362,9 +450,9 @@ export const galaxyPointerTuner = defineTunables(
|
||||
boostScale: {
|
||||
label: "Boost scale ×",
|
||||
min: 1.2,
|
||||
max: 3,
|
||||
max: 4,
|
||||
step: 0.1,
|
||||
default: 2,
|
||||
default: 3,
|
||||
info: "Scale multiplier a click toggles onto the held card. Allowed to overlap neighbors; scales back down on leaving the card, and the next hold needs a fresh click.",
|
||||
},
|
||||
boostTau: {
|
||||
@@ -484,4 +572,68 @@ export const galaxyLookTuner = defineTunables("galaxyLook", "Galaxy look", {
|
||||
default: 0.3,
|
||||
info: "Opacity of the tick marks along the arms.",
|
||||
},
|
||||
lineW: {
|
||||
label: "Line px",
|
||||
min: 0.5,
|
||||
max: 3,
|
||||
step: 0.1,
|
||||
default: 2,
|
||||
info: "Base thickness of the arm guide ribbons — the resting hairline weight.",
|
||||
},
|
||||
pulseAlpha: {
|
||||
label: "Pulse alpha",
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.02,
|
||||
default: 0.72,
|
||||
info: "Peak extra opacity of the color pulses traveling along the arm lines (0 = no pulses).",
|
||||
},
|
||||
pulseSpeed: {
|
||||
label: "Pulse speed",
|
||||
min: 0,
|
||||
max: 0.8,
|
||||
step: 0.01,
|
||||
default: 0.19,
|
||||
info: "Pulse travel speed — band cycles per second along each arm, moving outward faster than the conveyor.",
|
||||
},
|
||||
pulseWidth: {
|
||||
label: "Pulse length",
|
||||
min: 0.01,
|
||||
max: 0.25,
|
||||
step: 0.005,
|
||||
default: 0.05,
|
||||
info: "Length of each comet as a fraction of its band — sharp head, longer tail behind.",
|
||||
},
|
||||
pulseW: {
|
||||
label: "Pulse thick px",
|
||||
min: 0,
|
||||
max: 8,
|
||||
step: 0.25,
|
||||
default: 3.5,
|
||||
info: "Extra ribbon thickness at a pulse's peak — the colored part swells above the hairline.",
|
||||
},
|
||||
pulseCount: {
|
||||
label: "Pulses / arm",
|
||||
min: 1,
|
||||
max: 6,
|
||||
step: 1,
|
||||
default: 3,
|
||||
info: "Simultaneous pulses riding each arm.",
|
||||
},
|
||||
pulseHue: {
|
||||
label: "Pulse hue spread",
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.02,
|
||||
default: 0.4,
|
||||
info: "Dark theme only: per-arm hue rotation of the pulse color away from the accent — 0 keeps every arm brand blue, 1 spreads across the wheel. Light theme is always colorless.",
|
||||
},
|
||||
pulseDark: {
|
||||
label: "Pulse gray (light)",
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.02,
|
||||
default: 0.62,
|
||||
info: "Light theme only: darkness of the plain gray pulses (ink mixed over the paper; 1 = ink-black). Light mode carries the pulse with thickness, not color.",
|
||||
},
|
||||
});
|
||||
@@ -4,11 +4,13 @@ import { Component, useEffect, useMemo, useRef, useState, type ReactNode } from
|
||||
import { Canvas, useFrame, useThree } from "@react-three/fiber";
|
||||
import * as THREE from "three";
|
||||
import { SEEDANCE_SHOWCASE } from "@/lib/landing-data";
|
||||
import { webglAvailable } from "@/lib/webgl-support";
|
||||
import { introClock, introTuner } from "@/lib/intro";
|
||||
import { watchThemeColors, type ThemeColors } from "@/lib/theme-colors";
|
||||
import { useTunerStore } from "@/lib/tuner";
|
||||
import {
|
||||
galaxyLayoutTuner,
|
||||
galaxyMobileTuner,
|
||||
galaxyMotionTuner,
|
||||
galaxyLookTuner,
|
||||
galaxyPointerTuner,
|
||||
@@ -220,9 +222,12 @@ export default function HeroGalaxy() {
|
||||
};
|
||||
}, []);
|
||||
|
||||
// Gate: motion allowed and the tab actually foregrounded (a canvas born in
|
||||
// a hidden tab can come up blank).
|
||||
// Gate: WebGL actually available (a failed context creation inside r3f is
|
||||
// an unhandled rejection CanvasBoundary can't catch), motion allowed, and
|
||||
// the tab actually foregrounded (a canvas born in a hidden tab can come up
|
||||
// blank).
|
||||
useEffect(() => {
|
||||
if (!webglAvailable()) return;
|
||||
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
||||
let raf = 0;
|
||||
const tick = () => {
|
||||
@@ -425,10 +430,12 @@ function GalaxyScene({
|
||||
// Layout tunables change the structure — debounce a rebuild.
|
||||
const [layoutVersion, setLayoutVersion] = useState(0);
|
||||
useEffect(() => {
|
||||
let last = JSON.stringify(galaxyLayoutTuner.read());
|
||||
const snapshot = () =>
|
||||
JSON.stringify([galaxyLayoutTuner.read(), galaxyMobileTuner.read()]);
|
||||
let last = snapshot();
|
||||
let timer: ReturnType<typeof setTimeout> | undefined;
|
||||
const unsubscribe = useTunerStore.subscribe(() => {
|
||||
const now = JSON.stringify(galaxyLayoutTuner.read());
|
||||
const now = snapshot();
|
||||
if (now === last) return;
|
||||
last = now;
|
||||
clearTimeout(timer);
|
||||
@@ -444,39 +451,91 @@ function GalaxyScene({
|
||||
// world px (1 unit == 1 CSS px), origin at the viewport center.
|
||||
const layout = useMemo(() => {
|
||||
const t = galaxyLayoutTuner.read();
|
||||
const arms = Math.max(1, Math.round(t.arms));
|
||||
// Responsive count: the knob is tuned at a reference viewport area;
|
||||
// smaller viewports get proportionally fewer cards (the neighbor-gap
|
||||
// sizing then grows the survivors, so the field stays filled).
|
||||
const mb = galaxyMobileTuner.read();
|
||||
const area = (size.width * size.height) / 1e6;
|
||||
const cardN = Math.max(
|
||||
6,
|
||||
Math.min(Math.round(t.cardN), Math.round((t.cardN * area) / t.tunedMpx)),
|
||||
);
|
||||
// Mobile profile: on small viewports the tuned desktop spiral is too
|
||||
// tight — consecutive cards along an arm sit radially close at sharper
|
||||
// angles, so the collision bound forces them small. Below the area
|
||||
// threshold the Galaxy-mobile group's dials replace their layout
|
||||
// counterparts wholesale (own arms/turns/count/reach/card ceiling),
|
||||
// tuned independently on a real phone.
|
||||
const mobile = mb.mobMpx > 0 && area < mb.mobMpx;
|
||||
const arms = Math.max(1, Math.round(mobile ? mb.mobArms : t.arms));
|
||||
// Desktop count scales with viewport area from the tuned reference;
|
||||
// mobile uses its own fixed count.
|
||||
const cardN = mobile
|
||||
? Math.max(4, Math.round(mb.mobCardN))
|
||||
: Math.max(
|
||||
6,
|
||||
Math.min(
|
||||
Math.round(t.cardN),
|
||||
Math.round((t.cardN * area) / t.tunedMpx),
|
||||
),
|
||||
);
|
||||
const halfDiag = Math.hypot(size.width, size.height) / 2;
|
||||
const rMax = t.rMaxFrac * halfDiag;
|
||||
const thetaMax = t.turns * Math.PI * 2;
|
||||
const rMax = (mobile ? mb.mobRMax : t.rMaxFrac) * halfDiag;
|
||||
const thetaMax = (mobile ? mb.mobTurns : t.turns) * Math.PI * 2;
|
||||
const b = rMax / thetaMax;
|
||||
const cardHCap = Math.min(340, Math.max(70, size.height * t.cardHFrac));
|
||||
const cardHCap = Math.min(
|
||||
340,
|
||||
Math.max(70, size.height * (mobile ? mb.mobCardH : t.cardHFrac)),
|
||||
);
|
||||
const slotsPerArm = Math.max(1, Math.ceil(cardN / arms));
|
||||
const thetaBirth = t.birthFrac * thetaMax;
|
||||
const thetaBirth = (mobile ? mb.mobBirth : t.birthFrac) * thetaMax;
|
||||
// Cards travel until fully past the viewport corner (plus a card of
|
||||
// margin) before wrapping — the death is never on screen.
|
||||
const thetaExit = (halfDiag + cardHCap * 1.5) / b;
|
||||
// Arm guide curves, drawn out past the exit so cards never outrun the
|
||||
// linework.
|
||||
// Arm guides as thin RIBBON meshes, not GL lines — WebGL lines are
|
||||
// stuck at 1px, and the pulses need to swell thicker than the
|
||||
// hairline. Each sample extrudes two vertices along the curve normal;
|
||||
// the vertex shader sets the actual width (base hairline + pulse
|
||||
// swell). `guideX` interleaves phantom guides between the card arms
|
||||
// for a denser underlay; the mobile profile keeps 1× (its whole point
|
||||
// is fewer, cheaper elements).
|
||||
const guides = arms * (mobile ? 1 : Math.max(1, Math.round(t.guideX)));
|
||||
const armGeoms: THREE.BufferGeometry[] = [];
|
||||
for (let j = 0; j < arms; j++) {
|
||||
const phase = (j * Math.PI * 2) / arms;
|
||||
const pts: number[] = [];
|
||||
const steps = 160;
|
||||
for (let j = 0; j < guides; j++) {
|
||||
const phase = (j * Math.PI * 2) / guides;
|
||||
const pos: number[] = [];
|
||||
const nrm: number[] = [];
|
||||
const sides: number[] = [];
|
||||
const ts: number[] = [];
|
||||
const armIdx: number[] = [];
|
||||
const idx: number[] = [];
|
||||
const steps = 200;
|
||||
for (let k = 0; k <= steps; k++) {
|
||||
const theta = thetaBirth * 0.3 + (k / steps) * (thetaExit - thetaBirth * 0.3);
|
||||
const r = b * theta;
|
||||
pts.push(r * Math.cos(theta + phase), r * Math.sin(theta + phase), -2);
|
||||
const a = theta + phase;
|
||||
const x = r * Math.cos(a);
|
||||
const y = r * Math.sin(a);
|
||||
// Archimedean tangent: d/dθ of (bθ·cos a, bθ·sin a).
|
||||
const tx = b * Math.cos(a) - r * Math.sin(a);
|
||||
const ty = b * Math.sin(a) + r * Math.cos(a);
|
||||
const tl = Math.hypot(tx, ty) || 1;
|
||||
const nx = -ty / tl;
|
||||
const ny = tx / tl;
|
||||
for (const s of [-1, 1]) {
|
||||
pos.push(x, y, -2);
|
||||
nrm.push(nx, ny);
|
||||
sides.push(s);
|
||||
ts.push(k / steps);
|
||||
armIdx.push(j);
|
||||
}
|
||||
if (k < steps) {
|
||||
const v = k * 2;
|
||||
idx.push(v, v + 1, v + 2, v + 1, v + 3, v + 2);
|
||||
}
|
||||
}
|
||||
const g = new THREE.BufferGeometry();
|
||||
g.setAttribute("position", new THREE.Float32BufferAttribute(pts, 3));
|
||||
g.setAttribute("position", new THREE.Float32BufferAttribute(pos, 3));
|
||||
g.setAttribute("aN", new THREE.Float32BufferAttribute(nrm, 2));
|
||||
g.setAttribute("aSide", new THREE.Float32BufferAttribute(sides, 1));
|
||||
g.setAttribute("aT", new THREE.Float32BufferAttribute(ts, 1));
|
||||
g.setAttribute("aArm", new THREE.Float32BufferAttribute(armIdx, 1));
|
||||
g.setIndex(idx);
|
||||
armGeoms.push(g);
|
||||
}
|
||||
|
||||
@@ -533,6 +592,8 @@ function GalaxyScene({
|
||||
cardHCap,
|
||||
armJitter: t.armJitter,
|
||||
slotsPerArm,
|
||||
mobile,
|
||||
mobDensityX: mb.mobDensityX,
|
||||
armGeoms,
|
||||
tickGeom,
|
||||
circGeom,
|
||||
@@ -628,6 +689,115 @@ function GalaxyScene({
|
||||
}),
|
||||
[],
|
||||
);
|
||||
// Arm lines get their own shader so color pulses can travel along them:
|
||||
// each vertex carries its arc fraction (aT) and arm index (aArm); the
|
||||
// fragment lifts a moving gaussian band toward the accent color, hue-
|
||||
// rotated per arm for the "colorful" spread. Everything else about the
|
||||
// hairline (base color/alpha, intro draw-up) matches lineMat via the
|
||||
// frame loop's uniform writes.
|
||||
const pulseMat = useMemo(
|
||||
() =>
|
||||
new THREE.ShaderMaterial({
|
||||
transparent: true,
|
||||
depthTest: false,
|
||||
depthWrite: false,
|
||||
side: THREE.DoubleSide,
|
||||
uniforms: {
|
||||
uTime: { value: 0 },
|
||||
uColor: { value: new THREE.Color("#888888") },
|
||||
uAlpha: { value: 0 },
|
||||
uPulseColor: { value: new THREE.Color("#2d81ff") },
|
||||
uPulseAlpha: { value: 0 },
|
||||
uSpeed: { value: 0.22 },
|
||||
uWidth: { value: 0.035 },
|
||||
uCount: { value: 2 },
|
||||
uHue: { value: 0.35 },
|
||||
uBaseW: { value: 1.2 },
|
||||
uPulseW: { value: 3.5 },
|
||||
uWaveR: { value: 1e6 },
|
||||
uWaveBand: { value: 220 },
|
||||
},
|
||||
vertexShader: /* glsl */ `
|
||||
attribute vec2 aN;
|
||||
attribute float aSide;
|
||||
attribute float aT;
|
||||
attribute float aArm;
|
||||
uniform float uTime;
|
||||
uniform float uSpeed;
|
||||
uniform float uWidth;
|
||||
uniform float uCount;
|
||||
uniform float uBaseW;
|
||||
uniform float uPulseW;
|
||||
uniform float uWaveR;
|
||||
uniform float uWaveBand;
|
||||
varying float vG;
|
||||
varying float vSide;
|
||||
varying float vArm;
|
||||
void main() {
|
||||
// Band coordinate: comets travel outward (increasing aT),
|
||||
// arms dephased by the golden conjugate so they never flash
|
||||
// in lockstep. Asymmetric falloff: sharp head, longer tail
|
||||
// trailing behind the direction of travel.
|
||||
float d = fract(aT * uCount - uTime * uSpeed + aArm * 0.618);
|
||||
float s = d - 0.5;
|
||||
float sig = uWidth * (s < 0.0 ? 1.7 : 0.55);
|
||||
float g = exp(-0.5 * (s / sig) * (s / sig));
|
||||
// Fade pulses out over the blurred birth zone.
|
||||
g *= smoothstep(0.04, 0.14, aT);
|
||||
// Intro choreography: pulses are uncovered by the same radial
|
||||
// reveal wave that uncovers the cards (trailing band), so they
|
||||
// appear rolling outward with the field. Post-intro the wave
|
||||
// radius saturates past every arm; a tuner replay rewinds it.
|
||||
g *= clamp((uWaveR - length(position.xy)) / uWaveBand, 0.0, 1.0);
|
||||
vG = g;
|
||||
vSide = aSide;
|
||||
vArm = aArm;
|
||||
// Ribbon width: resting hairline plus the pulse swell.
|
||||
float w = uBaseW + uPulseW * g;
|
||||
vec3 p = position;
|
||||
p.xy += aN * aSide * w * 0.5;
|
||||
gl_Position = projectionMatrix * modelViewMatrix * vec4(p, 1.0);
|
||||
}
|
||||
`,
|
||||
fragmentShader: /* glsl */ `
|
||||
precision highp float;
|
||||
uniform vec3 uColor;
|
||||
uniform float uAlpha;
|
||||
uniform vec3 uPulseColor;
|
||||
uniform float uPulseAlpha;
|
||||
uniform float uHue;
|
||||
varying float vG;
|
||||
varying float vSide;
|
||||
varying float vArm;
|
||||
|
||||
// Hue rotation in YIQ — cheap and good enough for glow accents.
|
||||
vec3 hueRotate(vec3 color, float a) {
|
||||
const mat3 toYIQ = mat3(
|
||||
0.299, 0.587, 0.114,
|
||||
0.596, -0.274, -0.322,
|
||||
0.211, -0.523, 0.312);
|
||||
const mat3 toRGB = mat3(
|
||||
1.0, 0.956, 0.621,
|
||||
1.0, -0.272, -0.647,
|
||||
1.0, -1.106, 1.703);
|
||||
vec3 yiq = color * toYIQ;
|
||||
float h = atan(yiq.z, yiq.y) + a;
|
||||
float c = length(yiq.yz);
|
||||
return clamp(vec3(yiq.x, c * cos(h), c * sin(h)) * toRGB, 0.0, 1.0);
|
||||
}
|
||||
|
||||
void main() {
|
||||
// Soft ribbon edges — the cross-fade doubles as antialiasing.
|
||||
float edge = 1.0 - smoothstep(0.45, 1.0, abs(vSide));
|
||||
float g = clamp(vG, 0.0, 1.0);
|
||||
vec3 pulseCol = hueRotate(uPulseColor, vArm * uHue * 6.28318);
|
||||
vec3 col = mix(uColor, pulseCol, g);
|
||||
gl_FragColor = vec4(col, (uAlpha + uPulseAlpha * vG) * edge);
|
||||
}
|
||||
`,
|
||||
}),
|
||||
[],
|
||||
);
|
||||
const tickMat = useMemo(
|
||||
() =>
|
||||
new THREE.LineBasicMaterial({
|
||||
@@ -641,8 +811,9 @@ function GalaxyScene({
|
||||
() => () => {
|
||||
lineMat.dispose();
|
||||
tickMat.dispose();
|
||||
pulseMat.dispose();
|
||||
},
|
||||
[lineMat, tickMat],
|
||||
[lineMat, tickMat, pulseMat],
|
||||
);
|
||||
|
||||
// Theme colors follow imperatively — recreating materials on a theme flip
|
||||
@@ -654,20 +825,38 @@ function GalaxyScene({
|
||||
bg: new THREE.Vector3(0.9, 0.9, 0.9),
|
||||
frame: new THREE.Vector3(0.5, 0.5, 0.5),
|
||||
line: new THREE.Color("#888888"),
|
||||
accent: new THREE.Color("#2d81ff"),
|
||||
ink: new THREE.Color("#101014"),
|
||||
/** 1 on the light theme, 0 on dark — drives the pulse darkening. */
|
||||
light: 0,
|
||||
/** Scratch for the per-frame pulse color mix (no allocation). */
|
||||
pulse: new THREE.Color("#2d81ff"),
|
||||
tBg: new THREE.Vector3(0.9, 0.9, 0.9),
|
||||
tFrame: new THREE.Vector3(0.5, 0.5, 0.5),
|
||||
tLine: new THREE.Color("#888888"),
|
||||
tAccent: new THREE.Color("#2d81ff"),
|
||||
tInk: new THREE.Color("#101014"),
|
||||
tLight: 0,
|
||||
});
|
||||
useEffect(() => {
|
||||
const cs = colorState.current;
|
||||
cs.tBg.copy(hexToVec3(colors.bg));
|
||||
cs.tFrame.copy(hexToVec3(colors.lineStrong));
|
||||
cs.tLine.set(colors.lineStrong);
|
||||
cs.tAccent.set(colors.accent);
|
||||
cs.tInk.set(colors.ink);
|
||||
// Light theme detection from the actual background luminance, so the
|
||||
// pulse darkening tracks a theme cross-fade instead of snapping.
|
||||
cs.tLight =
|
||||
0.2126 * cs.tBg.x + 0.7152 * cs.tBg.y + 0.0722 * cs.tBg.z > 0.5 ? 1 : 0;
|
||||
if (!cs.init) {
|
||||
cs.init = true;
|
||||
cs.bg.copy(cs.tBg);
|
||||
cs.frame.copy(cs.tFrame);
|
||||
cs.line.copy(cs.tLine);
|
||||
cs.accent.copy(cs.tAccent);
|
||||
cs.ink.copy(cs.tInk);
|
||||
cs.light = cs.tLight;
|
||||
}
|
||||
}, [colors]);
|
||||
|
||||
@@ -679,11 +868,11 @@ function GalaxyScene({
|
||||
// it collides with the SVG element), ticks and circle as segments.
|
||||
const underlay = useMemo(
|
||||
() => [
|
||||
...layout.armGeoms.map((g) => new THREE.Line(g, lineMat)),
|
||||
...layout.armGeoms.map((g) => new THREE.Mesh(g, pulseMat)),
|
||||
new THREE.LineSegments(layout.circGeom, lineMat),
|
||||
new THREE.LineSegments(layout.tickGeom, tickMat),
|
||||
],
|
||||
[layout, lineMat, tickMat],
|
||||
[layout, lineMat, tickMat, pulseMat],
|
||||
);
|
||||
|
||||
// Per-card scratch state reused every frame so the loop allocates
|
||||
@@ -799,8 +988,26 @@ function GalaxyScene({
|
||||
cs.bg.lerp(cs.tBg, themeK);
|
||||
cs.frame.lerp(cs.tFrame, themeK);
|
||||
cs.line.lerp(cs.tLine, themeK);
|
||||
cs.accent.lerp(cs.tAccent, themeK);
|
||||
cs.ink.lerp(cs.tInk, themeK);
|
||||
cs.light += (cs.tLight - cs.light) * themeK;
|
||||
lineMat.color.copy(cs.line);
|
||||
tickMat.color.copy(cs.line);
|
||||
(pulseMat.uniforms.uColor.value as THREE.Color).copy(cs.line);
|
||||
// Pulse color per theme: dark keeps the luminous accent (hue-spread in
|
||||
// the shader); light drops color entirely for a plain dark gray —
|
||||
// ink mixed over the paper by pulseDark — carried by thickness alone.
|
||||
// cs.light cross-fades both the color and the hue spread with the
|
||||
// theme transition instead of snapping.
|
||||
cs.pulse.setRGB(
|
||||
cs.bg.x + (cs.ink.r - cs.bg.x) * lk.pulseDark,
|
||||
cs.bg.y + (cs.ink.g - cs.bg.y) * lk.pulseDark,
|
||||
cs.bg.z + (cs.ink.b - cs.bg.z) * lk.pulseDark,
|
||||
);
|
||||
(pulseMat.uniforms.uPulseColor.value as THREE.Color)
|
||||
.copy(cs.accent)
|
||||
.lerp(cs.pulse, cs.light);
|
||||
pulseMat.uniforms.uHue.value = lk.pulseHue * (1 - cs.light);
|
||||
// Perf governor: EMA of the real frame time. Sustained drops below the
|
||||
// FPS floor shed cards (and their decode pressure) quickly; recovery
|
||||
// regrows slowly so it never oscillates. The first seconds are a grace
|
||||
@@ -1076,7 +1283,11 @@ function GalaxyScene({
|
||||
// Inner cards stay smaller than outer ones even when space would
|
||||
// allow more: the size ceiling itself ramps up over the journey.
|
||||
const capEff = L.cardHCap * (lk.innerCap + (1 - lk.innerCap) * c);
|
||||
const goalH = Math.min(capEff, lk.density * sep, capVsHeld);
|
||||
const goalH = Math.min(
|
||||
capEff,
|
||||
lk.density * (L.mobile ? L.mobDensityX : 1) * sep,
|
||||
capVsHeld,
|
||||
);
|
||||
if (tk > 0.3) {
|
||||
cardH[i] += (goalH - cardH[i]) * (1 - Math.exp(-6 * dt));
|
||||
} else {
|
||||
@@ -1252,6 +1463,16 @@ function GalaxyScene({
|
||||
);
|
||||
lineMat.opacity = lk.lineAlpha * lineIntro;
|
||||
tickMat.opacity = lk.tickAlpha * lineIntro;
|
||||
pulseMat.uniforms.uTime.value = st.time;
|
||||
pulseMat.uniforms.uAlpha.value = lk.lineAlpha * lineIntro;
|
||||
pulseMat.uniforms.uPulseAlpha.value = lk.pulseAlpha * lineIntro;
|
||||
pulseMat.uniforms.uSpeed.value = lk.pulseSpeed;
|
||||
pulseMat.uniforms.uWidth.value = lk.pulseWidth;
|
||||
pulseMat.uniforms.uCount.value = Math.round(lk.pulseCount);
|
||||
pulseMat.uniforms.uBaseW.value = lk.lineW;
|
||||
pulseMat.uniforms.uPulseW.value = lk.pulseW;
|
||||
pulseMat.uniforms.uWaveR.value = waveEase * L.b * L.thetaExit;
|
||||
pulseMat.uniforms.uWaveBand.value = Math.max(1, mv.waveBand);
|
||||
|
||||
st.cullTimer -= dt;
|
||||
if (st.cullTimer <= 0) {
|
||||
@@ -1264,6 +1485,65 @@ function GalaxyScene({
|
||||
lk.playFrac,
|
||||
CULL_TICK_S,
|
||||
);
|
||||
|
||||
// Proximity dedup: rebirth's least-recently-shown pick spreads clip
|
||||
// repeats over TIME, but cross-arm neighbors at similar radii can
|
||||
// still surface the same clip side by side (their angular offset is
|
||||
// constant, so the pair persists). Sweep on the cull cadence: for
|
||||
// any visible pair sharing a clip closer than dedupPx, reassign the
|
||||
// blurrier card (the swap hides inside its birth blur) to the clip
|
||||
// whose current users sit furthest away, recency as tiebreak.
|
||||
const dedupPx = galaxyLayoutTuner.read().dedupPx;
|
||||
if (dedupPx > 0 && rollT >= 1) {
|
||||
const dedup2 = dedupPx * dedupPx;
|
||||
for (let a = 0; a < liveN; a++) {
|
||||
const i = liveOrder[a];
|
||||
if ((materials[i].uniforms.uAlpha.value as number) < 0.3) continue;
|
||||
for (let bIdx = a + 1; bIdx < liveN; bIdx++) {
|
||||
const j = liveOrder[bIdx];
|
||||
if (cards[i].clip !== cards[j].clip) continue;
|
||||
if ((materials[j].uniforms.uAlpha.value as number) < 0.3) continue;
|
||||
const dx = cardPos[i * 2] - cardPos[j * 2];
|
||||
const dy = cardPos[i * 2 + 1] - cardPos[j * 2 + 1];
|
||||
if (dx * dx + dy * dy > dedup2) continue;
|
||||
// Victim: the younger (more inner, more blurred) card.
|
||||
const v = cardCyc[i] < cardCyc[j] ? i : j;
|
||||
const vx = cardPos[v * 2];
|
||||
const vy = cardPos[v * 2 + 1];
|
||||
// Best replacement: maximize distance to the nearest visible
|
||||
// card already showing that clip; least-recently-shown breaks
|
||||
// ties (and wins outright for clips nobody shows).
|
||||
let best = -1;
|
||||
let bestScore = -Infinity;
|
||||
for (let cl = 0; cl < clipLastUsed.length; cl++) {
|
||||
if (cl === cards[v].clip) continue;
|
||||
let minD2 = Infinity;
|
||||
for (let k = 0; k < liveN; k++) {
|
||||
const o = liveOrder[k];
|
||||
if (o === v || cards[o].clip !== cl) continue;
|
||||
if ((materials[o].uniforms.uAlpha.value as number) < 0.15)
|
||||
continue;
|
||||
const ox = cardPos[o * 2] - vx;
|
||||
const oy = cardPos[o * 2 + 1] - vy;
|
||||
const d2 = ox * ox + oy * oy;
|
||||
if (d2 < minD2) minD2 = d2;
|
||||
}
|
||||
// Distance dominates; recency nudges within similar bands.
|
||||
const score =
|
||||
Math.min(minD2, 4 * dedup2) - clipLastUsed[cl] * 1e-4;
|
||||
if (score > bestScore) {
|
||||
bestScore = score;
|
||||
best = cl;
|
||||
}
|
||||
}
|
||||
if (best >= 0) {
|
||||
cards[v].clip = best;
|
||||
clipLastUsed[best] = ++st.useCounter;
|
||||
materials[v].uniforms.uMap.value = textures[best];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import { Component, useEffect, useRef, useState } from "react";
|
||||
import type { ReactNode } from "react";
|
||||
import LazyVideo from "@/components/lazy-video";
|
||||
import { watchThemeColors, type ThemeColors } from "@/lib/theme-colors";
|
||||
import { webglAvailable } from "@/lib/webgl-support";
|
||||
|
||||
// Plain code-split dynamic import — NOT `ssr: false`. It never renders during
|
||||
// SSR (gated by `ready`, false on the server), so WebGL stays off the server
|
||||
@@ -40,9 +41,12 @@ export default function HeroViewport({
|
||||
const insideRef = useRef(false);
|
||||
const targetPctRef = useRef(IDLE_CENTER);
|
||||
|
||||
// Gate: capable device, motion allowed, tab actually foregrounded.
|
||||
// Gate: WebGL available (r3f's context-creation failure is an unhandled
|
||||
// rejection CanvasBoundary can't catch — the footage below is the
|
||||
// fallback), capable device, motion allowed, tab actually foregrounded.
|
||||
useEffect(() => {
|
||||
const capable =
|
||||
webglAvailable() &&
|
||||
window.matchMedia("(pointer: fine) and (min-width: 768px)").matches &&
|
||||
window.matchMedia("(prefers-reduced-motion: no-preference)").matches;
|
||||
if (!capable) return;
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { AppleIcon, MonitorIcon } from "lucide-react";
|
||||
import { SOCIAL_LINKS, WEBAPP_URL } from "@/lib/links";
|
||||
import { HERO_VIDEO_URL } from "@/lib/landing-data";
|
||||
import { GitHubIcon } from "@/components/icons";
|
||||
import { Button } from "@/components/ui";
|
||||
import HeroMasthead, { HeroScrim } from "./hero-wordmark";
|
||||
import HeroGalaxy from "./hero-galaxy";
|
||||
import HeroViewport from "./hero-viewport";
|
||||
|
||||
export default function Hero() {
|
||||
return (
|
||||
@@ -22,7 +20,7 @@ export default function Hero() {
|
||||
masthead's own z-40 is capped by it — the hero letters must
|
||||
outrank the ruler's fixed z-39 contrast pools at root level.
|
||||
No border-x here: the poster viewport stays immersive edge to
|
||||
edge — the structural rails begin at the announce strip. */}
|
||||
edge — the structural rails begin below the poster. */}
|
||||
<div className="pointer-events-none relative z-40 mx-auto flex w-full max-w-[1280px] flex-1 flex-col items-center justify-center px-6 py-10 md:px-10">
|
||||
<div
|
||||
data-reveal-group
|
||||
@@ -87,40 +85,8 @@ export default function Hero() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto max-w-[1280px] border-x border-line">
|
||||
{/* Announce strip — the fold line under the poster. */}
|
||||
<div className="relative flex items-center justify-between gap-4 border-y border-line px-6 py-3 md:px-10">
|
||||
<span aria-hidden className="tick -top-[6px] -left-[6px]" />
|
||||
<span aria-hidden className="tick -top-[6px] -right-[5px]" />
|
||||
<p className="hud-label text-muted">Open-source AI studio</p>
|
||||
<p className="hud-label text-accent-ink">
|
||||
Now with Seedance 2.5, Nano Banana 2 & more
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Viewport frame — the product-demo stage: blocking vs. AI render. */}
|
||||
<figure className="relative">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2 md:px-10">
|
||||
<figcaption className="hud-label text-faint">
|
||||
Viewport — scene 01
|
||||
</figcaption>
|
||||
<p aria-hidden className="hud-label text-faint">
|
||||
<span className="mr-1.5 inline-block h-1.5 w-1.5 bg-accent align-middle" />
|
||||
Blocking ↔ render · move your cursor
|
||||
</p>
|
||||
</div>
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-bg-sunken">
|
||||
<HeroViewport
|
||||
videoSrc={HERO_VIDEO_URL}
|
||||
videoLabel="ArtCraft product reel: composing 3D scenes and rendering them with AI"
|
||||
/>
|
||||
<span aria-hidden className="tick top-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick top-2 right-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 left-2 opacity-60" />
|
||||
<span aria-hidden className="tick bottom-2 right-2 opacity-60" />
|
||||
</div>
|
||||
</figure>
|
||||
</div>
|
||||
{/* The poster IS the hero — the studio demo (announce strip +
|
||||
blocking↔render comparator) now leads the Features section. */}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -2,10 +2,10 @@ import { MADE_WITH_YOUTUBE_IDS } from "@/lib/landing-data";
|
||||
import LiteYouTube from "@/components/lite-youtube";
|
||||
import { SectionShell, SectionEyebrow } from "./section-shell";
|
||||
|
||||
export default function MadeWith() {
|
||||
export default function MadeWith({ index = "03" }: { index?: string }) {
|
||||
return (
|
||||
<SectionShell id="made-with">
|
||||
<SectionEyebrow index="03" label="Proof" annotation="From the community" />
|
||||
<SectionEyebrow index={index} label="Proof" annotation="From the community" />
|
||||
|
||||
<div className="px-6 py-14 md:px-10 md:py-20">
|
||||
<h2
|
||||
|
||||
@@ -22,10 +22,10 @@ const PILLARS = [
|
||||
},
|
||||
];
|
||||
|
||||
export default function Ownership() {
|
||||
export default function Ownership({ index = "02" }: { index?: string }) {
|
||||
return (
|
||||
<SectionShell id="ownership">
|
||||
<SectionEyebrow index="02" label="Ownership" annotation="Free & open source" />
|
||||
<SectionEyebrow index={index} label="Ownership" annotation="Free & open source" />
|
||||
|
||||
<div className="px-6 py-14 md:px-10 md:py-20">
|
||||
<h2
|
||||
|
||||
@@ -3,6 +3,11 @@ import type { ReactNode } from "react";
|
||||
// Structural frame shared by every landing section: a full-bleed top rule,
|
||||
// content constrained between two continuous side rails, and crosshair ticks
|
||||
// straddling the rail intersections.
|
||||
//
|
||||
// The top rule and ticks are scroll-choreographed (see reveal-manager.tsx):
|
||||
// as a section enters the viewport its rule DRAWS across and the ticks pop
|
||||
// in — scrub-linked, so scrolling back un-draws them. They render complete
|
||||
// in the server HTML; only motion-capable visitors get the choreography.
|
||||
export function SectionShell({
|
||||
id,
|
||||
children,
|
||||
@@ -15,12 +20,28 @@ export function SectionShell({
|
||||
ticks?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<section id={id} className={`border-t border-line ${className}`}>
|
||||
<section id={id} data-choreo className={`relative ${className}`}>
|
||||
<span
|
||||
aria-hidden
|
||||
data-draw-rule
|
||||
className="absolute inset-x-0 top-0 h-px origin-left bg-line"
|
||||
/>
|
||||
<div className="relative mx-auto max-w-[1280px] border-x border-line">
|
||||
{ticks && (
|
||||
<>
|
||||
<span aria-hidden className="tick -top-[6px] -left-[6px]" />
|
||||
<span aria-hidden className="tick -top-[6px] -right-[5px]" />
|
||||
{/* -top-[5px] centers the crossbar on the section's top
|
||||
hairline; z-[31] keeps the downward stems above the frosted
|
||||
eyebrow band (z-30), which otherwise swallows them. */}
|
||||
<span
|
||||
aria-hidden
|
||||
data-draw-tick
|
||||
className="tick tick-half z-[31] -top-[5px] -left-[6px]"
|
||||
/>
|
||||
<span
|
||||
aria-hidden
|
||||
data-draw-tick
|
||||
className="tick tick-half z-[31] -top-[5px] -right-[5px]"
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
{children}
|
||||
@@ -29,8 +50,10 @@ export function SectionShell({
|
||||
);
|
||||
}
|
||||
|
||||
// Mono eyebrow row used at the top of a section: index + label on the left,
|
||||
// optional annotation on the right.
|
||||
// Mono eyebrow row at the top of a section: index + label left, optional
|
||||
// annotation right. Sticky while its section scrolls (pushed away by the
|
||||
// next section — never stacking), frosted like the ruler rail so content
|
||||
// ghosts through beneath the label.
|
||||
export function SectionEyebrow({
|
||||
index,
|
||||
label,
|
||||
@@ -41,17 +64,26 @@ export function SectionEyebrow({
|
||||
annotation?: string;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-3 md:px-10">
|
||||
<p className="hud-label text-muted">
|
||||
<span className="text-faint">{index}</span>
|
||||
<span aria-hidden className="mx-2 text-faint">
|
||||
/
|
||||
</span>
|
||||
{label}
|
||||
</p>
|
||||
{annotation && (
|
||||
<p className="hud-label hidden text-faint sm:block">{annotation}</p>
|
||||
)}
|
||||
// The band owns BOTH hairlines: the top one keeps the eyebrow edged
|
||||
// while it floats stuck mid-section (and coincides with the section's
|
||||
// drawn rule at rest, so they read as one line). The whole band fades
|
||||
// with the draw choreography — frost, rules, and contents together.
|
||||
<div
|
||||
data-draw-eyebrow
|
||||
className="sticky top-12 z-30 border-y border-line bg-bg/60 backdrop-blur-md"
|
||||
>
|
||||
<div className="flex items-center justify-between gap-4 px-6 py-3 md:px-10">
|
||||
<p className="hud-label text-muted">
|
||||
<span className="text-faint">{index}</span>
|
||||
<span aria-hidden className="mx-2 text-faint">
|
||||
/
|
||||
</span>
|
||||
{label}
|
||||
</p>
|
||||
{annotation && (
|
||||
<p className="hud-label hidden text-faint sm:block">{annotation}</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
import type { ReactNode } from "react";
|
||||
import Link from "next/link";
|
||||
import { ChevronLeftIcon } from "lucide-react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
|
||||
// Header block shared by every interior marketing page: the landing's
|
||||
// section frame (rails, ticks, mono eyebrow) around a display headline with
|
||||
// one italic serif contrast word, plus an optional lede. Pages compose their
|
||||
// body sections beneath it with further SectionShells.
|
||||
export function PageHeader({
|
||||
id,
|
||||
index,
|
||||
label,
|
||||
annotation,
|
||||
title,
|
||||
lede,
|
||||
children,
|
||||
align = "left",
|
||||
className,
|
||||
}: {
|
||||
/** Ruler anchor — must be listed in RULER_SECTIONS (landing-data.ts). */
|
||||
id?: string;
|
||||
index: string;
|
||||
label: string;
|
||||
annotation?: string;
|
||||
title: ReactNode;
|
||||
lede?: ReactNode;
|
||||
/** Extra content under the lede (CTAs, back links, …). */
|
||||
children?: ReactNode;
|
||||
align?: "left" | "center";
|
||||
className?: string;
|
||||
}) {
|
||||
const centered = align === "center";
|
||||
return (
|
||||
<SectionShell id={id} className={className}>
|
||||
<SectionEyebrow index={index} label={label} annotation={annotation} />
|
||||
<div
|
||||
className={twMerge(
|
||||
"px-6 py-14 md:px-10 md:py-20",
|
||||
centered && "flex flex-col items-center text-center",
|
||||
)}
|
||||
>
|
||||
<h1
|
||||
data-reveal
|
||||
className="max-w-3xl font-display text-4xl font-medium leading-[1.02] tracking-[-0.035em] text-ink-strong sm:text-5xl md:text-6xl"
|
||||
>
|
||||
{title}
|
||||
</h1>
|
||||
{lede && (
|
||||
<p
|
||||
data-reveal
|
||||
className="mt-5 max-w-xl text-lg leading-relaxed text-muted"
|
||||
>
|
||||
{lede}
|
||||
</p>
|
||||
)}
|
||||
{children}
|
||||
</div>
|
||||
</SectionShell>
|
||||
);
|
||||
}
|
||||
|
||||
// The headline's single serif-italic contrast word.
|
||||
export function Accent({ children }: { children: ReactNode }) {
|
||||
return <span className="font-serif italic font-normal">{children}</span>;
|
||||
}
|
||||
|
||||
// Mono "back to index" link used at the top of article pages.
|
||||
export function BackLink({ href, children }: { href: string; children: ReactNode }) {
|
||||
return (
|
||||
<Link
|
||||
href={href}
|
||||
className="hud-label inline-flex items-center gap-1.5 text-muted hover:text-ink"
|
||||
>
|
||||
<ChevronLeftIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
// Rendered markdown body. Styled by `.article-content` in globals.css.
|
||||
export function ArticleBody({ html }: { html: string }) {
|
||||
return (
|
||||
<article
|
||||
className="article-content mx-auto max-w-3xl px-6 py-12 md:px-10 md:py-16"
|
||||
dangerouslySetInnerHTML={{ __html: html }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
// Shared "not found" body for missing slugs.
|
||||
export function NotFoundBody({
|
||||
what,
|
||||
backHref,
|
||||
backLabel,
|
||||
}: {
|
||||
what: string;
|
||||
backHref: string;
|
||||
backLabel: string;
|
||||
}) {
|
||||
return (
|
||||
<PageHeader
|
||||
index="00"
|
||||
label="Not found"
|
||||
title={
|
||||
<>
|
||||
Nothing <Accent>here</Accent>.
|
||||
</>
|
||||
}
|
||||
lede={`We couldn't find this ${what}.`}
|
||||
>
|
||||
<div className="mt-8">
|
||||
<BackLink href={backHref}>{backLabel}</BackLink>
|
||||
</div>
|
||||
</PageHeader>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import {
|
||||
ArrowDownToLineIcon,
|
||||
FileArchiveIcon,
|
||||
ImageIcon,
|
||||
PlayIcon,
|
||||
VideoIcon,
|
||||
} from "lucide-react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import { SectionShell, SectionEyebrow } from "@/components/landing/section-shell";
|
||||
import { Button, Modal } from "@/components/ui";
|
||||
import { mediaUrl } from "@/lib/links";
|
||||
import {
|
||||
PRESS_KIT_CATEGORIES,
|
||||
type PressKitAsset,
|
||||
type PressKitAssetType,
|
||||
} from "@/lib/press-kit-data";
|
||||
|
||||
const TYPE_ICONS: Record<PressKitAssetType, typeof ImageIcon> = {
|
||||
video: VideoIcon,
|
||||
embed: VideoIcon,
|
||||
image: ImageIcon,
|
||||
link: FileArchiveIcon,
|
||||
};
|
||||
|
||||
const isPlayable = (asset: PressKitAsset) =>
|
||||
asset.type === "video" || (asset.type === "embed" && !!asset.embedUrl);
|
||||
|
||||
// Site-relative asset paths resolve against the media host; absolute URLs
|
||||
// (YouTube thumbnails, R2) pass through.
|
||||
const assetUrl = (path: string) => (/^https?:\/\//.test(path) ? path : mediaUrl(path));
|
||||
|
||||
export default function PressKitGallery() {
|
||||
const [active, setActive] = useState<PressKitAsset | null>(null);
|
||||
const categories = PRESS_KIT_CATEGORIES.filter((c) => c.assets.length > 0);
|
||||
|
||||
return (
|
||||
<>
|
||||
{categories.map((category, ci) => (
|
||||
<SectionShell key={category.name} id={ci === 0 ? "articles" : undefined}>
|
||||
<SectionEyebrow
|
||||
index={String(ci + 2).padStart(2, "0")}
|
||||
label={category.name}
|
||||
annotation={category.description}
|
||||
/>
|
||||
<ul className="grid gap-px bg-line md:grid-cols-2 lg:grid-cols-3">
|
||||
{category.assets.map((asset, i) => (
|
||||
<li key={asset.title} className="bg-bg">
|
||||
<AssetCard
|
||||
asset={asset}
|
||||
index={String(i + 1).padStart(2, "0")}
|
||||
onPlay={() => setActive(asset)}
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</SectionShell>
|
||||
))}
|
||||
|
||||
<Modal
|
||||
isOpen={active !== null}
|
||||
onClose={() => setActive(null)}
|
||||
childPadding={false}
|
||||
accessibleTitle={active?.title}
|
||||
className="max-w-5xl overflow-hidden bg-black"
|
||||
>
|
||||
{active && (
|
||||
<div className="relative aspect-video w-full">
|
||||
{active.type === "embed" && active.embedUrl ? (
|
||||
<iframe
|
||||
src={`${active.embedUrl}?autoplay=1`}
|
||||
title={active.title}
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
allowFullScreen
|
||||
className="absolute inset-0 h-full w-full"
|
||||
/>
|
||||
) : (
|
||||
<video
|
||||
src={active.videoUrl ?? active.downloadUrl}
|
||||
className="absolute inset-0 h-full w-full"
|
||||
controls
|
||||
autoPlay
|
||||
playsInline
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function AssetCard({
|
||||
asset,
|
||||
index,
|
||||
onPlay,
|
||||
}: {
|
||||
asset: PressKitAsset;
|
||||
index: string;
|
||||
onPlay: () => void;
|
||||
}) {
|
||||
const TypeIcon = TYPE_ICONS[asset.type];
|
||||
const playable = isPlayable(asset);
|
||||
const typeLabel = asset.type === "embed" ? "Video" : asset.type;
|
||||
|
||||
const thumbnail = (
|
||||
<>
|
||||
{asset.thumbnail ? (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img
|
||||
src={assetUrl(asset.thumbnail)}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
className={twMerge(
|
||||
"absolute inset-0 h-full w-full transition-transform duration-500 group-hover:scale-[1.02]",
|
||||
asset.containThumbnail ? "object-contain p-8" : "object-cover",
|
||||
)}
|
||||
/>
|
||||
) : (
|
||||
<span className="absolute inset-0 flex items-center justify-center text-faint">
|
||||
<TypeIcon aria-hidden className="h-8 w-8" />
|
||||
</span>
|
||||
)}
|
||||
{playable && (
|
||||
<span className="hud-label absolute bottom-3 left-3 flex items-center gap-1.5 bg-invert-bg px-3 py-1.5 font-bold text-invert-fg">
|
||||
<PlayIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Play
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
return (
|
||||
<article className="flex h-full flex-col">
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5">
|
||||
<p className="hud-label flex items-center gap-1.5 capitalize text-muted">
|
||||
<TypeIcon aria-hidden className="h-3 w-3" />
|
||||
{typeLabel}
|
||||
</p>
|
||||
<p className="hud-label text-faint">{index}</p>
|
||||
</div>
|
||||
|
||||
{playable ? (
|
||||
<button
|
||||
type="button"
|
||||
onClick={onPlay}
|
||||
aria-label={`Play ${asset.title}`}
|
||||
className="group relative aspect-video w-full overflow-hidden bg-bg-sunken"
|
||||
>
|
||||
{thumbnail}
|
||||
</button>
|
||||
) : (
|
||||
<div className="group relative aspect-video w-full overflow-hidden bg-bg-sunken">
|
||||
{thumbnail}
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="flex flex-1 flex-col px-6 py-5">
|
||||
<h3 className="font-display text-xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{asset.title}
|
||||
</h3>
|
||||
{asset.description && (
|
||||
<p className="mt-1.5 text-sm leading-relaxed text-muted">
|
||||
{asset.description}
|
||||
</p>
|
||||
)}
|
||||
<div className="mt-auto pt-5">
|
||||
{asset.downloadUrl ? (
|
||||
<Button
|
||||
href={assetUrl(asset.downloadUrl)}
|
||||
external
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
variant="secondary"
|
||||
className="w-full"
|
||||
>
|
||||
<ArrowDownToLineIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
{asset.downloadLabel ?? "Download"}
|
||||
{asset.fileSize && (
|
||||
<span className="font-normal opacity-60">{asset.fileSize}</span>
|
||||
)}
|
||||
</Button>
|
||||
) : (
|
||||
<Button disabled variant="secondary" className="w-full">
|
||||
Download coming soon
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { CoinsIcon } from "lucide-react";
|
||||
import { Button } from "@/components/ui";
|
||||
import { webappUrl } from "@/lib/links";
|
||||
import { useAccount } from "@/lib/use-account";
|
||||
import CreditsModal from "./credits-modal";
|
||||
|
||||
// Credit-pack cell on the pricing page. Logged-in visitors buy directly via
|
||||
// Stripe (the modal); everyone else is sent to the app to sign in first.
|
||||
export default function CreditsCta() {
|
||||
const { user, loading } = useAccount();
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
<p className="hud-label text-faint">
|
||||
{user ? `Signed in as ${user.display_name}` : "Already have an account?"}
|
||||
</p>
|
||||
<h2 className="mt-4 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
One-time credit packs
|
||||
</h2>
|
||||
<p className="mt-2 max-w-md leading-relaxed text-muted">
|
||||
Top up without changing your plan. Credit packs never expire.
|
||||
</p>
|
||||
{user ? (
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
onClick={() => setOpen(true)}
|
||||
className="mt-6"
|
||||
>
|
||||
<CoinsIcon aria-hidden className="h-3.5 w-3.5 text-accent-ink" />
|
||||
Buy credits
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
href={webappUrl("/pricing")}
|
||||
variant="secondary"
|
||||
loading={loading}
|
||||
className="mt-6"
|
||||
>
|
||||
Sign in to buy credits
|
||||
</Button>
|
||||
)}
|
||||
{user && <CreditsModal isOpen={open} onClose={() => setOpen(false)} />}
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { CoinsIcon } from "lucide-react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import { Button, Modal } from "@/components/ui";
|
||||
import { creditsPackCheckout } from "@/lib/api";
|
||||
|
||||
type CreditPack = {
|
||||
id: string;
|
||||
total: number;
|
||||
priceUsd: number;
|
||||
badge?: string;
|
||||
};
|
||||
|
||||
// One-time packs, ported from the Vite site's credits modal. Ids are the
|
||||
// Stripe product slugs the API expects.
|
||||
const CREDIT_PACKS: CreditPack[] = [
|
||||
{ id: "artcraft_1000", total: 1000, priceUsd: 10 },
|
||||
{ id: "artcraft_2500", total: 2500, priceUsd: 25 },
|
||||
{ id: "artcraft_5000", total: 5000, priceUsd: 50, badge: "Popular" },
|
||||
{ id: "artcraft_10000", total: 10000, priceUsd: 100 },
|
||||
];
|
||||
|
||||
export default function CreditsModal({
|
||||
isOpen,
|
||||
onClose,
|
||||
}: {
|
||||
isOpen: boolean;
|
||||
onClose: () => void;
|
||||
}) {
|
||||
const [purchasingId, setPurchasingId] = useState<string | null>(null);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const purchase = async (pack: CreditPack) => {
|
||||
setPurchasingId(pack.id);
|
||||
setError(null);
|
||||
const result = await creditsPackCheckout(pack.id);
|
||||
if (result.success) {
|
||||
window.location.href = result.data.checkoutUrl;
|
||||
return;
|
||||
}
|
||||
setError(result.errorMessage);
|
||||
setPurchasingId(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<Modal
|
||||
isOpen={isOpen}
|
||||
onClose={onClose}
|
||||
childPadding={false}
|
||||
className="max-w-2xl"
|
||||
accessibleTitle="Buy credits"
|
||||
>
|
||||
<div className="border-b border-line px-6 py-5 md:px-8">
|
||||
<p className="hud-label text-faint">Credit packs</p>
|
||||
<h2 className="mt-3 font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
Buy credits
|
||||
</h2>
|
||||
<p className="mt-1 text-sm text-muted">
|
||||
One-time packs. No subscription required, never expire.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul className="grid gap-px bg-line sm:grid-cols-2">
|
||||
{CREDIT_PACKS.map((pack) => {
|
||||
const busy = purchasingId !== null;
|
||||
return (
|
||||
<li key={pack.id} className="bg-bg-raised">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => purchase(pack)}
|
||||
disabled={busy}
|
||||
className={twMerge(
|
||||
"group flex h-full w-full flex-col p-6 text-left transition-colors hover:bg-bg disabled:cursor-not-allowed disabled:opacity-60 md:p-8",
|
||||
)}
|
||||
>
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<span className="flex items-center gap-2 font-display text-3xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
<CoinsIcon aria-hidden className="h-5 w-5 text-accent-ink" />
|
||||
{pack.total.toLocaleString()}
|
||||
</span>
|
||||
{pack.badge && (
|
||||
<span className="hud-label bg-accent px-2 py-1 font-bold text-white">
|
||||
{pack.badge}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<p className="hud-label mt-2 text-faint">credits</p>
|
||||
<div className="mt-6 flex items-center justify-between gap-3">
|
||||
<span className="font-display text-xl font-medium text-ink">
|
||||
${pack.priceUsd}
|
||||
</span>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
loading={purchasingId === pack.id}
|
||||
className="pointer-events-none"
|
||||
tabIndex={-1}
|
||||
>
|
||||
Purchase
|
||||
</Button>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
|
||||
{error && (
|
||||
<p className="border-t border-line px-6 py-3 font-mono text-[10px] uppercase tracking-[0.1em] text-danger md:px-8">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,397 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import {
|
||||
ArrowRightIcon,
|
||||
CheckIcon,
|
||||
CopyIcon,
|
||||
GemIcon,
|
||||
MailIcon,
|
||||
StarIcon,
|
||||
} from "lucide-react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import { Badge, Button, TabSelector } from "@/components/ui";
|
||||
import {
|
||||
getPortalUrl,
|
||||
subscriptionCheckout,
|
||||
switchPlan,
|
||||
userSignupSubscriptionCheckout,
|
||||
} from "@/lib/api";
|
||||
import {
|
||||
CONTACT_EMAIL,
|
||||
ENTERPRISE_FEATURES,
|
||||
PROMO_PCT,
|
||||
SUBSCRIPTION_PLANS,
|
||||
TRUST_POINTS,
|
||||
planPricing,
|
||||
type BillingCadence,
|
||||
type SubscriptionPlan,
|
||||
} from "@/lib/pricing-data";
|
||||
import {
|
||||
getLandingUrl,
|
||||
getReferralCode,
|
||||
getReferralUsername,
|
||||
getReferrer,
|
||||
} from "@/lib/referral";
|
||||
import { useAccount } from "@/lib/use-account";
|
||||
|
||||
const BILLING_TABS: { id: BillingCadence; label: string }[] = [
|
||||
{ id: "yearly", label: "Yearly" },
|
||||
{ id: "monthly", label: "Monthly" },
|
||||
];
|
||||
|
||||
const HIGHLIGHT_ICONS = {
|
||||
"Most popular": StarIcon,
|
||||
"Best value": GemIcon,
|
||||
} as const;
|
||||
|
||||
// Solid plan-colored CTA: overrides the primary variant's invert colors.
|
||||
const PLAN_BUTTON_CLASSES =
|
||||
"w-full bg-(--plan) text-white hover:opacity-90";
|
||||
|
||||
// Plan grid in the landing's hairline-cell language, color-coded per plan
|
||||
// (the original table's green / purple / orange / blue via `.plan-*`
|
||||
// tokens): a solid color index tab, a wash pooling beneath it, plan-colored
|
||||
// checks and CTA, and a 2px frame on the highlighted tiers.
|
||||
//
|
||||
// Checkout is the Vite table's flow, ported: logged out → Stripe signup
|
||||
// checkout (with referral attribution); logged in without a plan → Stripe
|
||||
// subscription checkout; logged in with a plan → Stripe portal plan switch.
|
||||
// The server HTML renders the logged-out state; hydration upgrades it.
|
||||
export default function PricingTable({
|
||||
showSeedanceFeatures = false,
|
||||
}: {
|
||||
showSeedanceFeatures?: boolean;
|
||||
}) {
|
||||
const [cadence, setCadence] = useState<BillingCadence>("yearly");
|
||||
const { user, activePlanSlug, loading } = useAccount();
|
||||
const [processingPlan, setProcessingPlan] = useState<string | null>(null);
|
||||
const [managing, setManaging] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const hasActivePlan = !!activePlanSlug && activePlanSlug !== "free";
|
||||
|
||||
const redirect = (result: { success: true; data: { checkoutUrl: string } | { portalUrl: string } } | { success: false; errorMessage: string }) => {
|
||||
if (!result.success) {
|
||||
setError(result.errorMessage);
|
||||
return false;
|
||||
}
|
||||
window.location.href =
|
||||
"checkoutUrl" in result.data ? result.data.checkoutUrl : result.data.portalUrl;
|
||||
return true;
|
||||
};
|
||||
|
||||
const choosePlan = async (plan: SubscriptionPlan) => {
|
||||
if (plan.slug === activePlanSlug) return;
|
||||
setProcessingPlan(plan.slug);
|
||||
setError(null);
|
||||
const body = { plan: plan.slug, cadence };
|
||||
const redirected = redirect(
|
||||
!user
|
||||
? await userSignupSubscriptionCheckout({
|
||||
...body,
|
||||
maybeReferralUrl: getReferrer(),
|
||||
maybeLandingUrl: getLandingUrl(),
|
||||
maybeReferralUsername: getReferralUsername(),
|
||||
maybeReferralCode: getReferralCode(),
|
||||
})
|
||||
: hasActivePlan
|
||||
? await switchPlan(body)
|
||||
: await subscriptionCheckout(body),
|
||||
);
|
||||
if (!redirected) setProcessingPlan(null);
|
||||
};
|
||||
|
||||
const managePlan = async () => {
|
||||
setManaging(true);
|
||||
setError(null);
|
||||
if (!redirect(await getPortalUrl())) setManaging(false);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-wrap items-center justify-between gap-4 border-b border-line px-6 py-4 md:px-10">
|
||||
<div className="flex items-center gap-3">
|
||||
<TabSelector
|
||||
tabs={BILLING_TABS}
|
||||
activeTab={cadence}
|
||||
onTabChange={(id) => setCadence(id as BillingCadence)}
|
||||
tabClassName="w-24"
|
||||
/>
|
||||
<Badge
|
||||
label={`${PROMO_PCT}% off · ends soon`}
|
||||
className="border-transparent bg-accent text-white"
|
||||
/>
|
||||
<p className="hud-label hidden text-accent-ink sm:block">
|
||||
{cadence === "yearly" ? "2 months free" : "Switch to yearly, save 20%"}
|
||||
</p>
|
||||
</div>
|
||||
<p className="hud-label hidden text-faint sm:block">
|
||||
{user ? `Signed in as ${user.display_name}` : "Prices in USD"}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<p
|
||||
role="alert"
|
||||
className="border-b border-line px-6 py-3 font-mono text-[10px] uppercase tracking-[0.1em] text-danger md:px-10"
|
||||
>
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div
|
||||
data-reveal-group
|
||||
className="grid gap-px bg-line md:grid-cols-2 xl:grid-cols-4"
|
||||
>
|
||||
{SUBSCRIPTION_PLANS.map((plan, i) => (
|
||||
<PlanCell
|
||||
key={plan.slug}
|
||||
plan={plan}
|
||||
index={String(i + 1).padStart(2, "0")}
|
||||
cadence={cadence}
|
||||
showSeedanceFeatures={showSeedanceFeatures}
|
||||
isCurrent={plan.slug === activePlanSlug}
|
||||
ctaLabel={
|
||||
plan.slug === activePlanSlug
|
||||
? "Current plan"
|
||||
: hasActivePlan
|
||||
? `Switch to ${plan.name}`
|
||||
: `Get ${plan.name}`
|
||||
}
|
||||
disabled={loading || processingPlan !== null}
|
||||
processing={processingPlan === plan.slug}
|
||||
onChoose={() => choosePlan(plan)}
|
||||
/>
|
||||
))}
|
||||
<EnterpriseCell index={String(SUBSCRIPTION_PLANS.length + 1).padStart(2, "0")} />
|
||||
</div>
|
||||
|
||||
<div className="flex flex-wrap items-center justify-between gap-x-8 gap-y-2 border-t border-line px-6 py-4 md:px-10">
|
||||
<ul className="flex flex-wrap items-center gap-x-8 gap-y-2">
|
||||
{TRUST_POINTS.map((point) => (
|
||||
<li key={point} className="hud-label flex items-center gap-2 text-muted">
|
||||
<CheckIcon aria-hidden className="h-3.5 w-3.5 text-accent-ink" />
|
||||
{point}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
{hasActivePlan && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={managePlan}
|
||||
disabled={managing}
|
||||
className="hud-label text-muted underline underline-offset-4 hover:text-ink disabled:opacity-50"
|
||||
>
|
||||
{managing ? "Opening portal…" : "Manage plan"}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function PlanCell({
|
||||
plan,
|
||||
index,
|
||||
cadence,
|
||||
showSeedanceFeatures,
|
||||
isCurrent,
|
||||
ctaLabel,
|
||||
disabled,
|
||||
processing,
|
||||
onChoose,
|
||||
}: {
|
||||
plan: SubscriptionPlan;
|
||||
index: string;
|
||||
cadence: BillingCadence;
|
||||
showSeedanceFeatures: boolean;
|
||||
isCurrent: boolean;
|
||||
ctaLabel: string;
|
||||
disabled: boolean;
|
||||
processing: boolean;
|
||||
onChoose: () => void;
|
||||
}) {
|
||||
const { current, basePrice, yearlySavings } = planPricing(plan, cadence);
|
||||
const HighlightIcon = plan.highlight ? HIGHLIGHT_ICONS[plan.highlight] : null;
|
||||
const features = plan.features.filter(
|
||||
(f) => !f.seedanceOnly || showSeedanceFeatures,
|
||||
);
|
||||
|
||||
return (
|
||||
<article
|
||||
data-reveal
|
||||
data-highlight={plan.highlight || isCurrent ? "" : undefined}
|
||||
className={`plan-card plan-${plan.color} flex flex-col`}
|
||||
>
|
||||
<CellIndexRow index={index}>
|
||||
{isCurrent ? (
|
||||
<>
|
||||
<CheckIcon aria-hidden className="h-3 w-3" />
|
||||
Your plan
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
{HighlightIcon && <HighlightIcon aria-hidden className="h-3 w-3" />}
|
||||
{plan.highlight ?? "Plan"}
|
||||
</>
|
||||
)}
|
||||
</CellIndexRow>
|
||||
|
||||
<div className="flex flex-1 flex-col p-6 md:p-8">
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{plan.name}
|
||||
</h3>
|
||||
<span className="hud-label bg-(--plan) px-2 py-1 font-bold text-white">
|
||||
{PROMO_PCT}% off
|
||||
</span>
|
||||
</div>
|
||||
<p className="mt-1 text-sm text-muted">{plan.tagline}</p>
|
||||
|
||||
<div className="mt-5 flex items-baseline gap-2">
|
||||
<span className="font-mono text-base text-danger/80 line-through">
|
||||
${basePrice}
|
||||
</span>
|
||||
<span className="font-display text-5xl font-medium tracking-[-0.03em] text-ink-strong">
|
||||
${current}
|
||||
</span>
|
||||
<span className="text-muted">/mo</span>
|
||||
</div>
|
||||
<p className="hud-label mt-2 text-faint">
|
||||
{cadence === "yearly" ? (
|
||||
<>
|
||||
${plan.yearlyPrice} billed yearly ·{" "}
|
||||
<span className="text-(--plan-ink)">Save ${yearlySavings}</span>
|
||||
</>
|
||||
) : (
|
||||
"Billed monthly · cancel anytime"
|
||||
)}
|
||||
</p>
|
||||
|
||||
<Button
|
||||
type="button"
|
||||
size="lg"
|
||||
onClick={onChoose}
|
||||
disabled={disabled || isCurrent}
|
||||
loading={processing}
|
||||
className={twMerge(PLAN_BUTTON_CLASSES, "mt-6", isCurrent && "opacity-60")}
|
||||
>
|
||||
{ctaLabel}
|
||||
{!isCurrent && <ArrowRightIcon aria-hidden className="h-3.5 w-3.5" />}
|
||||
</Button>
|
||||
|
||||
<p className="hud-label mt-8 text-faint">What you get</p>
|
||||
<FeatureList items={features.map((f) => f.text)} className="mt-3" />
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
function EnterpriseCell({ index }: { index: string }) {
|
||||
return (
|
||||
<article
|
||||
id="enterprise"
|
||||
data-reveal
|
||||
className="plan-card plan-enterprise flex flex-col"
|
||||
>
|
||||
<CellIndexRow index={index}>For teams</CellIndexRow>
|
||||
|
||||
<div className="flex flex-1 flex-col p-6 md:p-8">
|
||||
<h3 className="font-display text-2xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
Enterprise
|
||||
</h3>
|
||||
<div className="mt-5 flex items-baseline gap-2">
|
||||
<span className="font-display text-5xl font-medium tracking-[-0.03em] text-ink-strong">
|
||||
Custom
|
||||
</span>
|
||||
</div>
|
||||
<p className="hud-label mt-2 text-faint">Bespoke volume & terms</p>
|
||||
|
||||
<ContactButtons className="mt-6" />
|
||||
|
||||
<p className="hud-label mt-8 text-faint">Everything in Max, plus</p>
|
||||
<FeatureList items={ENTERPRISE_FEATURES} className="mt-3" />
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
// Solid plan-colored index strip at the top of every cell.
|
||||
function CellIndexRow({
|
||||
index,
|
||||
children,
|
||||
}: {
|
||||
index: string;
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex items-center justify-between gap-4 bg-(--plan) px-6 py-2.5 text-white md:px-8">
|
||||
<p className="hud-label flex items-center gap-1.5 font-bold">{children}</p>
|
||||
<p className="hud-label opacity-70">{index}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function FeatureList({
|
||||
items,
|
||||
className,
|
||||
}: {
|
||||
items: string[];
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<ul className={twMerge("flex flex-col gap-2.5", className)}>
|
||||
{items.map((text) => (
|
||||
<li key={text} className="flex items-start gap-2.5 text-sm text-ink">
|
||||
<span className="plan-check mt-px flex h-4 w-4 shrink-0 items-center justify-center">
|
||||
<CheckIcon aria-hidden className="h-3 w-3" />
|
||||
</span>
|
||||
{text}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
|
||||
// Mailto plus copy-to-clipboard, so visitors without a configured mail
|
||||
// client can still grab the address.
|
||||
function ContactButtons({ className }: { className?: string }) {
|
||||
const [copied, setCopied] = useState(false);
|
||||
|
||||
const copy = async () => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(CONTACT_EMAIL);
|
||||
setCopied(true);
|
||||
setTimeout(() => setCopied(false), 1500);
|
||||
} catch {
|
||||
// Clipboard unavailable (insecure context) — the mailto still works.
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={twMerge("flex gap-px bg-white/30", className)}>
|
||||
<Button
|
||||
href={`mailto:${CONTACT_EMAIL}`}
|
||||
size="lg"
|
||||
className={twMerge(PLAN_BUTTON_CLASSES, "flex-1")}
|
||||
>
|
||||
<MailIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Contact us
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
size="lg"
|
||||
onClick={copy}
|
||||
aria-label={copied ? "Email copied" : "Copy email address"}
|
||||
className={twMerge(PLAN_BUTTON_CLASSES, "w-12 px-0")}
|
||||
>
|
||||
{copied ? (
|
||||
<CheckIcon aria-hidden className="h-4 w-4" />
|
||||
) : (
|
||||
<CopyIcon aria-hidden className="h-4 w-4" />
|
||||
)}
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -31,6 +31,50 @@ export default function RevealManager() {
|
||||
const mm = gsap.matchMedia();
|
||||
|
||||
mm.add("(prefers-reduced-motion: no-preference)", () => {
|
||||
// Structural draw-up, one-shot like everything else: as a section
|
||||
// first enters, its top rule draws across, the eyebrow settles in,
|
||||
// and the corner ticks pop — then the frame is built and stays
|
||||
// built. (An earlier scrub-linked version un-drew on scroll-back;
|
||||
// it read as inconsistent against the one-shot content.)
|
||||
gsap.utils.toArray<HTMLElement>("[data-choreo]").forEach((sec) => {
|
||||
const rule = sec.querySelector<HTMLElement>("[data-draw-rule]");
|
||||
const ticks = sec.querySelectorAll<HTMLElement>("[data-draw-tick]");
|
||||
const eyebrow = sec.querySelector<HTMLElement>("[data-draw-eyebrow]");
|
||||
if (rule) gsap.set(rule, { scaleX: 0 });
|
||||
if (ticks.length) gsap.set(ticks, { scale: 0, opacity: 0 });
|
||||
if (eyebrow) gsap.set(eyebrow, HIDDEN);
|
||||
ScrollTrigger.create({
|
||||
trigger: sec,
|
||||
start: "top 88%",
|
||||
once: true,
|
||||
onEnter: () => {
|
||||
const tl = gsap.timeline();
|
||||
if (rule) {
|
||||
tl.to(
|
||||
rule,
|
||||
{ scaleX: 1, duration: 0.7, ease: "power2.out", clearProps: "all" },
|
||||
0,
|
||||
);
|
||||
}
|
||||
if (eyebrow) tl.to(eyebrow, { ...SHOWN }, 0.15);
|
||||
if (ticks.length) {
|
||||
tl.to(
|
||||
ticks,
|
||||
{
|
||||
scale: 1,
|
||||
opacity: 1,
|
||||
duration: 0.35,
|
||||
ease: "power3.out",
|
||||
stagger: 0.06,
|
||||
clearProps: "all",
|
||||
},
|
||||
0.35,
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
gsap.utils
|
||||
.toArray<HTMLElement>(
|
||||
"[data-reveal]:not([data-reveal-group] [data-reveal])",
|
||||
@@ -77,11 +121,27 @@ export default function RevealManager() {
|
||||
});
|
||||
return;
|
||||
}
|
||||
ScrollTrigger.create({
|
||||
trigger: group,
|
||||
start: "top 85%",
|
||||
once: true,
|
||||
onEnter: () => gsap.to(children, { ...SHOWN, stagger: 0.08 }),
|
||||
// Per-CHILD triggers, not one for the whole group: a tall grid's
|
||||
// single trigger revealed every cell the moment the grid's top
|
||||
// entered, so everything below the fold animated unseen and the
|
||||
// section read as static against the drawn frames. Each cell now
|
||||
// assembles as it arrives; cells sharing a row cascade left to
|
||||
// right (delay from their horizontal position), which keeps the
|
||||
// old stagger feel without a group-wide clock.
|
||||
const groupRect = group.getBoundingClientRect();
|
||||
children.forEach((child) => {
|
||||
const delay =
|
||||
groupRect.width > 0
|
||||
? ((child.getBoundingClientRect().left - groupRect.left) /
|
||||
groupRect.width) *
|
||||
0.18
|
||||
: 0;
|
||||
ScrollTrigger.create({
|
||||
trigger: child,
|
||||
start: "top 88%",
|
||||
once: true,
|
||||
onEnter: () => gsap.to(child, { ...SHOWN, delay }),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -125,6 +125,23 @@ export default function HeadingFlow({
|
||||
[layoutVersion],
|
||||
);
|
||||
|
||||
// When the flow stops driving the hero letters (the ruler unmounts on a
|
||||
// resize below the capability boundary, or the mode changes), release
|
||||
// every inline style this component wrote so the wordmark stands in its
|
||||
// natural resting state — a frozen mid-flip transform would strand it.
|
||||
useEffect(
|
||||
() => () => {
|
||||
for (const el of heroWordmark.els) {
|
||||
el.style.transform = "";
|
||||
el.style.fontWeight = "";
|
||||
el.style.fontStretch = "";
|
||||
el.style.color = "";
|
||||
el.style.opacity = "1";
|
||||
}
|
||||
},
|
||||
[mode],
|
||||
);
|
||||
|
||||
// Re-render on any tuner change so render-applied look values (the
|
||||
// contrast pools) respond to their sliders live. The letters' per-frame
|
||||
// imperative styles survive re-renders — React only patches JSX
|
||||
@@ -189,7 +206,7 @@ export default function HeadingFlow({
|
||||
// Phase pass: flip/detach progress per word. Anchors increase with
|
||||
// index, so stacked words are always a prefix and at most one word is
|
||||
// mid-flip at a time.
|
||||
const phases = sections.map((s) => {
|
||||
const phases = sections.map((s, wi) => {
|
||||
const m =
|
||||
s.isHero && heroWordmark.ready
|
||||
? heroWordmark.metrics
|
||||
@@ -201,7 +218,16 @@ export default function HeadingFlow({
|
||||
// Some flips run in scroll space instead of anchor space; snap
|
||||
// resolves those against these bounds.
|
||||
let scrollFlip: { start: number; end: number } | null = null;
|
||||
if (s.isHero) {
|
||||
if (wi === 0 && !s.isHero) {
|
||||
// Interior pages: the first section is the page's own title
|
||||
// block, already under the nav at load. Like the hero it is the
|
||||
// current section from the first frame — stacked, never queued
|
||||
// or ridden — instead of a flip whose progress at scroll 0
|
||||
// depends on the viewport height (partially flipped on short
|
||||
// windows, hidden entirely on tall ones).
|
||||
flipP = 1;
|
||||
detachP = 1;
|
||||
} else if (s.isHero) {
|
||||
// The hero IS the current section from load — its heading goes
|
||||
// STRAIGHT to the top slot (no queue, no ride): the whole
|
||||
// lifecycle is one flip, driven by the wordmark about to duck
|
||||
@@ -242,7 +268,8 @@ export default function HeadingFlow({
|
||||
{
|
||||
let below = 0;
|
||||
for (let wi = sections.length - 1; wi >= 0; wi--) {
|
||||
if (sections[wi].isHero) continue; // no queue home, detachP = 1
|
||||
// Hero and interior page titles have no queue home (detachP = 1).
|
||||
if (sections[wi].isHero || wi === 0) continue;
|
||||
const ph = phases[wi];
|
||||
ph.yq = yQueueLine - lay.queueSlot * below;
|
||||
ph.detachP = clamp01(
|
||||
|
||||
@@ -84,17 +84,40 @@ export default function ScrollRuler() {
|
||||
});
|
||||
fs.current.geom = geom;
|
||||
|
||||
// Capability gate. Media changes mid-session are rare enough that a
|
||||
// reload is the supported way to re-evaluate.
|
||||
// Capability gate, LIVE: small screens and coarse pointers get no
|
||||
// instrument at all (native scrollbar, no heading choreography), and
|
||||
// resizing across the boundary mounts/unmounts the whole ruler in
|
||||
// place — growing a window mid-session brings it up settled, shrinking
|
||||
// returns the native scrollbar.
|
||||
useEffect(() => {
|
||||
const fine = window.matchMedia(
|
||||
"(pointer: fine) and (min-width: 768px)",
|
||||
).matches;
|
||||
if (!fine) return;
|
||||
const motionOk = window.matchMedia(
|
||||
// Desktop only: a hover-capable fine pointer on a laptop-class
|
||||
// viewport, and never on a phone/tablet UA (tablets with a mouse
|
||||
// attached still report a fine pointer). The UA never changes
|
||||
// mid-session; the media queries are watched live.
|
||||
const mobileUa = /Android|iPhone|iPad|iPod|Mobile/i.test(
|
||||
navigator.userAgent,
|
||||
);
|
||||
const fineMq = window.matchMedia(
|
||||
"(pointer: fine) and (hover: hover) and (min-width: 1024px)",
|
||||
);
|
||||
const motionMq = window.matchMedia(
|
||||
"(prefers-reduced-motion: no-preference)",
|
||||
).matches;
|
||||
setMode(motionOk ? "full" : "static");
|
||||
);
|
||||
const apply = () =>
|
||||
setMode(
|
||||
!mobileUa && fineMq.matches
|
||||
? motionMq.matches
|
||||
? "full"
|
||||
: "static"
|
||||
: null,
|
||||
);
|
||||
apply();
|
||||
fineMq.addEventListener("change", apply);
|
||||
motionMq.addEventListener("change", apply);
|
||||
return () => {
|
||||
fineMq.removeEventListener("change", apply);
|
||||
motionMq.removeEventListener("change", apply);
|
||||
};
|
||||
}, []);
|
||||
|
||||
// Reset the shared zoom state (and its pending intent timer) on unmount
|
||||
@@ -242,6 +265,14 @@ export default function ScrollRuler() {
|
||||
let tl: gsap.core.Timeline | null = null;
|
||||
const runCascade = () => {
|
||||
tl?.kill();
|
||||
// Late mount (a resize across the capability boundary after the
|
||||
// page intro finished): come up settled instantly — an intro
|
||||
// cascade firing on a window resize reads as a glitch.
|
||||
if (introClock.done) {
|
||||
gsap.set(els, { scaleX: 1, opacity: 1 });
|
||||
fs.current.introDone = true;
|
||||
return;
|
||||
}
|
||||
fs.current.introDone = false;
|
||||
const mt = rulerMotionTuner.read();
|
||||
gsap.set(els, { scaleX: 0, opacity: 0 });
|
||||
@@ -547,6 +578,10 @@ export default function ScrollRuler() {
|
||||
}
|
||||
};
|
||||
|
||||
// Incapable device (or shrunk below the boundary): render nothing —
|
||||
// the stamp effect above has already released the native scrollbar.
|
||||
if (!mode) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* The rail: interactive scrollbar strip at the viewport edge. */}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
"use client";
|
||||
|
||||
import { useMemo, useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { PlayIcon } from "lucide-react";
|
||||
import { Badge, TabSelector } from "@/components/ui";
|
||||
import { mediaUrl } from "@/lib/links";
|
||||
|
||||
// Serializable subset of TutorialItem the server page hands down.
|
||||
export type TutorialCard = {
|
||||
slug: string;
|
||||
title: string;
|
||||
category?: string;
|
||||
thumbnail?: string;
|
||||
};
|
||||
|
||||
const ALL = "All";
|
||||
const FALLBACK_THUMBNAIL = "/images/tutorial-thumbnails/2D_Editor_Basics.jpg";
|
||||
|
||||
// Category filter + card grid. Filtering is the only client state on the
|
||||
// tutorials page, so it is isolated here and the index stays a server page.
|
||||
export default function TutorialGrid({ items }: { items: TutorialCard[] }) {
|
||||
const [category, setCategory] = useState(ALL);
|
||||
|
||||
const tabs = useMemo(() => {
|
||||
const categories = new Set<string>();
|
||||
for (const item of items) if (item.category) categories.add(item.category);
|
||||
return [ALL, ...categories].map((c) => ({ id: c, label: c }));
|
||||
}, [items]);
|
||||
|
||||
const visible =
|
||||
category === ALL ? items : items.filter((t) => t.category === category);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-wrap items-center justify-between gap-4 border-b border-line px-6 py-4 md:px-10">
|
||||
<TabSelector tabs={tabs} activeTab={category} onTabChange={setCategory} />
|
||||
<p className="hud-label hidden text-faint sm:block">
|
||||
{visible.length} {visible.length === 1 ? "video" : "videos"}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ul className="grid gap-px bg-line md:grid-cols-2 lg:grid-cols-3">
|
||||
{visible.map((item, i) => (
|
||||
<li key={item.slug} className="bg-bg">
|
||||
<Link
|
||||
href={`/tutorials/${item.slug}`}
|
||||
className="group block h-full"
|
||||
>
|
||||
<div className="flex items-center justify-between gap-4 border-b border-line px-6 py-2.5">
|
||||
<p className="hud-label text-muted">
|
||||
{item.category ?? "Tutorial"}
|
||||
</p>
|
||||
<p className="hud-label text-faint">
|
||||
{String(i + 1).padStart(2, "0")}
|
||||
</p>
|
||||
</div>
|
||||
<div className="relative aspect-video w-full overflow-hidden bg-bg-sunken">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={mediaUrl(item.thumbnail ?? FALLBACK_THUMBNAIL)}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.02]"
|
||||
/>
|
||||
<span className="hud-label absolute bottom-3 left-3 flex items-center gap-1.5 bg-invert-bg px-3 py-1.5 font-bold text-invert-fg">
|
||||
<PlayIcon aria-hidden className="h-3.5 w-3.5" />
|
||||
Watch
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-start justify-between gap-3 px-6 py-5">
|
||||
<h2 className="font-display text-xl font-medium tracking-[-0.02em] text-ink-strong">
|
||||
{item.title}
|
||||
</h2>
|
||||
{item.category && <Badge label={item.category} />}
|
||||
</div>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: 2D Canvas — Draw and Generate
|
||||
seoTitle: 2D Canvas — Sketch, mask, and guide AI generation
|
||||
abstract: Draw, lay out references, and inpaint precisely to get the image you intended.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: 2d-canvas
|
||||
---
|
||||
|
||||
## Draw first, generate second
|
||||
|
||||
The 2D Canvas is a lightweight drawing and layout tool that the model respects. Sketch shapes, block the background, and mask areas to protect or change. When you generate, the structure you drew stays intact—only the fidelity improves.
|
||||
|
||||
## What it’s great for
|
||||
|
||||
- Storyboards, thumbnails, product mockups.
|
||||
- Replacing elements in a scene without moving the rest.
|
||||
- Fast “idea to image” iterations.
|
||||
|
||||
## Tips
|
||||
|
||||
- Use high‑contrast sketches for clearer guidance.
|
||||
- Mask small areas for better local edits (logos, eyes, hands, reflections).
|
||||
- Keep prompts short; the canvas already supplies structure.
|
||||
|
||||
See also: [Text to Image](../text-to-image) · [Edit Image](../edit-image) · [3D Editor](../3d-editor)
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
title: 3D Editor — Pose, Compose, and Generate
|
||||
seoTitle: 3D Editor — Block scenes, pose characters, and render with AI
|
||||
abstract: Build shots like a game, then render them consistently across angles and takes.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: 3d-editor
|
||||
---
|
||||
|
||||
## Compose scenes like a playable set
|
||||
|
||||
The 3D Editor lets you place subjects, and cameras in a real‑time scene. Add objects and characters, pose characters, and orbit the camera until the shot feels right. When you generate, the AI keeps your framing and pose intact.
|
||||
|
||||
## Why 3D matters
|
||||
|
||||
- Consistency across multiple shots and angles.
|
||||
- Natural camera motion and depth cues.
|
||||
- Character posing that matches your vision.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Choose a preset from ArtCraft presets by clicking the + button above or import images to build the scene.
|
||||
2. Place the subject, set the camera height and focal length.
|
||||
3. Add a concise prompt for style and materials.
|
||||
4. Generate, compare, and tweak until it clicks.
|
||||
|
||||
See also: [Text to Image](../text-to-image) · [Image to Video](../image-to-video) · [2D Canvas](../2d-canvas)
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: AI Image Generation on ArtCraft
|
||||
seoTitle: AI Image Generation on ArtCraft
|
||||
abstract: Explore ArtCraft's AI generation capabilities: features, workflows, and best practices.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: ai-image-generation-on-artcraft
|
||||
---
|
||||
|
||||
## What is AI image generation in ArtCraft?
|
||||
|
||||
ArtCraft brings modern AI image generation into a creator-first workflow that runs locally. You compose your idea on a 2D canvas or in a 3D scene, then guide the model to render the final image with consistency and control. The result is a fast loop for exploration, iteration, and polished outputs.
|
||||
|
||||
## Core capabilities
|
||||
|
||||
- 2D Canvas guidance: sketch layouts, place references, mask areas, and refine with inpainting.
|
||||
- 3D Scene composition: set camera, lighting, and subject placement for consistent multi-shot renders.
|
||||
- Structure-preserving generation: keep the arrangement you designed while improving detail and lighting.
|
||||
- Revisions that respect intent: re-run specific regions to fix details without losing the overall look.
|
||||
|
||||
## A simple workflow
|
||||
|
||||
- Plan the shot: define focal point, subject scale, angle, and background (2D) or block out a scene (3D).
|
||||
- Add guidance: references, masks, or prompts that clarify style, mood, and key details.
|
||||
- Generate and iterate: compare candidates, refine regions, and lock in the final composition.
|
||||
|
||||
## Quality and consistency tips
|
||||
|
||||
- Favor clear subjects and readable silhouettes; the model follows strong structure best.
|
||||
- Use concise prompts; describe style, lighting, and subject specifics with minimal filler.
|
||||
- For multi-image sets, keep camera, distance, and lighting consistent between shots.
|
||||
- Iterate locally on regions that need corrections (eyes, hands, logos, or textures).
|
||||
|
||||
## Responsible use
|
||||
|
||||
Only generate content you have the rights to create. Avoid infringing on other artists’ styles or producing deceptive media. When sharing, be transparent about AI involvement and follow relevant community and platform guidelines.
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: Edit Image — Inpaint and Replace
|
||||
seoTitle: Edit Image — Remove, replace, and restyle without Photoshop
|
||||
abstract: Paint masks, describe the change, and let AI update only what you selected.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: edit-image
|
||||
---
|
||||
|
||||
## Precise edits without leaving ArtCraft
|
||||
|
||||
Edit Image lets you remove objects, fix details, or restyle parts of an image. Paint a mask, write a brief instruction, and generate. Only the masked region changes; the rest stays locked.
|
||||
|
||||
## Common uses
|
||||
|
||||
- Clean plates: remove cables, signage, or passers‑by.
|
||||
- Product swaps: change colorways, logos, or materials.
|
||||
- Portrait touch‑ups: hairline fixes, reflections, and lighting tweaks.
|
||||
|
||||
## Tips
|
||||
|
||||
- Keep masks tight around the area you want to change.
|
||||
- Use short, clear instructions (e.g., “replace with polished chrome”).
|
||||
- For multi‑step edits, work from big to small changes.
|
||||
|
||||
See also: [2D Canvas](../2d-canvas) · [Text to Image](../text-to-image)
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
---
|
||||
title: Generate AI photos and videos of yourself
|
||||
seoTitle: Generate AI photos and videos of yourself in ArtCraft
|
||||
abstract: Create photorealistic images of yourself by combining reference inputs with ArtCraft workflows.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: generate-ai-photos-and-videos-of-yourself
|
||||
---
|
||||
|
||||
## Create AI portraits and short videos with strong likeness
|
||||
|
||||
With ArtCraft you can generate images and short video clips of yourself while keeping control over pose, lighting, and style. The workflow combines good references with structure-aware generation so the results look like you—and stay consistent across shots.
|
||||
|
||||
## What you need
|
||||
|
||||
- A handful of clear photos that show your face from multiple angles, plus at least one full-body reference.
|
||||
- Neutral lighting and no heavy filters. Avoid sunglasses or occlusions for the face.
|
||||
|
||||
## Step-by-step
|
||||
|
||||
1. Prepare references: choose 4–8 images that cover front, 3/4, and profile views; include one where your outfit and background match the vibe you want.
|
||||
2. Set the composition: on the 2D canvas, sketch layout and subject scale, or use the 3D scene to place camera and lighting.
|
||||
3. Guide the model: add a concise prompt describing mood, setting, and attire; use masks to protect areas you don’t want to change.
|
||||
4. Generate and refine: compare candidates, then fix details with inpainting (eyes, hairlines, hands, accessories).
|
||||
5. Make it move: for short clips, render a small set of frames from slight camera or pose variations, then export as a looping video.
|
||||
|
||||
## Likeness and safety tips
|
||||
|
||||
- Keep hair outline and eye region sharp in references; it improves identity consistency.
|
||||
- Reuse the same camera distance and angle for a set; consistency beats variety for multi-shot galleries.
|
||||
- Be mindful of where and how you publish. When sharing AI portraits, add context so viewers understand how they were made.
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
title: Image to Video in ArtCraft
|
||||
seoTitle: Image to Video — Animate your images with AI video models
|
||||
abstract: Turn a single image into a short, cinematic clip with controllable motion and style.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: image-to-video
|
||||
---
|
||||
|
||||
## From still to motion in minutes
|
||||
|
||||
Image to Video converts any image—your Text to Image result or a photo—into a short clip. Choose a video model, set duration and motion, then add a concise prompt to guide style and mood.
|
||||
|
||||
## Best practices
|
||||
|
||||
- Start from a clean, well‑lit image with a readable subject.
|
||||
- Keep motion subtle for realism: camera drift, gentle parallax, or small pose changes.
|
||||
- Use consistent prompts if you create a series of clips.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Pick a video model and duration.
|
||||
2. Adjust motion options (camera, subject, or both).
|
||||
3. Add a brief prompt for style and atmosphere.
|
||||
4. Render, review, and export.
|
||||
|
||||
See also: [Text to Image](../text-to-image) · [3D Editor](../3d-editor) · [Edit Image](../edit-image)
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
title: What image and video models does ArtCraft support?
|
||||
seoTitle: ArtCraft models — Image and Video generation models
|
||||
abstract: A quick overview of image and video models available in ArtCraft.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: models-supported
|
||||
---
|
||||
|
||||
## Image models
|
||||
|
||||
- Grok
|
||||
- Midjourney
|
||||
- Flux Pro 1.1 Ultra
|
||||
- Flux Pro 1.1
|
||||
- Flux 1 Dev
|
||||
- Flux 1 Schnell
|
||||
- Nano Banana
|
||||
- Nano Banana Pro
|
||||
- GPT Image 1 (GPT-4o)
|
||||
- GPT Image 1.5
|
||||
- Seedream 4
|
||||
- Seedream 4.5
|
||||
- Flux Pro Kontext Max (editing)
|
||||
- Flux Pro Inpaint (editing)
|
||||
- Flux Dev Juggernaut Inpaint (editing)
|
||||
|
||||
## Video models
|
||||
|
||||
- Grok Video
|
||||
- Kling 1.6 Pro
|
||||
- Kling 2.1 Pro
|
||||
- Kling 2.1 Master
|
||||
- Kling 2.5 Turbo Pro
|
||||
- Kling 2.6 Pro
|
||||
- Seedance 1.0 Lite
|
||||
- Seedance 2.0
|
||||
- Sora 2
|
||||
- Sora 2 Pro
|
||||
- Google Veo 2
|
||||
- Google Veo 3
|
||||
- Google Veo 3 Fast
|
||||
- Google Veo 3.1
|
||||
- Google Veo 3.1 Fast
|
||||
|
||||
See also: [Text to Image](../text-to-image) · [Image to Video](../image-to-video)
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
title: Text to Image in ArtCraft
|
||||
seoTitle: Text to Image — Prompt and generate with top AI models
|
||||
abstract: Turn ideas into images with clean prompts, model choices, and consistent structure.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
slug: text-to-image
|
||||
---
|
||||
|
||||
## Turn prompts into polished images
|
||||
|
||||
Text to Image in ArtCraft lets you move quickly from idea to result. Choose a model, write a clear prompt, and render. If you need more control, sketch a loose layout on the 2D canvas or block a scene in 3D first—generation will respect your composition.
|
||||
|
||||
## Tips for great prompts
|
||||
|
||||
- Be specific about subject, action, and style (lighting, lens, materials).
|
||||
- Prefer short, descriptive phrases over long paragraphs.
|
||||
- Use negative cues sparingly (e.g., “no text, no watermark”).
|
||||
|
||||
## Choose the right model
|
||||
|
||||
Different models excel at different looks. For photorealism, use a high‑fidelity model. For design and branding, choose a model that handles flat color and typography well. If speed matters, start with a fast model to explore options, then switch to a higher‑quality model for final renders.
|
||||
|
||||
## Iterate with structure
|
||||
|
||||
If the result is close but not perfect, keep the composition and re‑render small regions with inpainting. This preserves the framing while fixing details like hands, logos, or textures.
|
||||
|
||||
See also: [2D Canvas](../2d-canvas) · [3D Editor](../3d-editor) · [Edit Image](../edit-image)
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: Welcome to the ArtCraft Blog
|
||||
abstract: We are excited to launch our new blog where we will share updates, tutorials, and behind-the-scenes content.
|
||||
date: 2026-01-16
|
||||
---
|
||||
|
||||
# Hello World!
|
||||
|
||||
Welcome to the official **ArtCraft Blog**. This is where we'll be posting about:
|
||||
|
||||
- **New Features**: Be the first to know about the latest tools and capabilities added to ArtCraft.
|
||||
- **Tutorials**: Learn how to get the most out of our AI generation and editing suite.
|
||||
- **Community Showcases**: Highlighting amazing work created by our users.
|
||||
- **Development Updates**: Insights into what we are building next.
|
||||
|
||||
## Stay Tuned
|
||||
|
||||
We have a lot of exciting things in the pipeline. Make sure to check back regularly!
|
||||
|
||||
Happy Crafting!
|
||||
|
||||
The ArtCraft Team
|
||||
@@ -0,0 +1,236 @@
|
||||
---
|
||||
title: Machinima 2.0: World Models for Consistent AI Filmmaking
|
||||
abstract: How to use World Models and 3D Rendering to Get Consistent AI Film Locations and better AI Films.
|
||||
date: 2026-01-30
|
||||
---
|
||||
|
||||
# The "AI Film Trailer" Era
|
||||
|
||||
You've seen a lot of these:
|
||||
|
||||
@youtube(pGn-1BKo3nY)
|
||||
|
||||
For the past year, it been relatively easy to make montages, "clip shows", and trailers
|
||||
like this. While they serve as fun proof-of-concepts and visual eyecandy, you'd be hard
|
||||
pressed to get a "good story" out of this video style.
|
||||
|
||||
Good stories have characters that occupy real spaces. They have room to live, breathe, and interact.
|
||||
|
||||
You don't just fast track everyone through a journey from point A to B and have that be the end of things
|
||||
(unless you're Game of Thrones). Characters need to spend time in places, to explore interpersonal relationships,
|
||||
to overcome challenges. They need places to think, talk, fight and argue, process emotions, grow, and sometimes
|
||||
do absolutely nothing at all.
|
||||
|
||||
Stories need locations. They're a first class citizen in storytelling.
|
||||
|
||||
# Location and Blocking
|
||||
|
||||
We're all filmmakers at ArtCraft. The old school, photons-on-glass kind.
|
||||
|
||||
One of the biggest problems we've had over the past few years with AI video is giving our characters room to occupy.
|
||||
Setting them up on set, precisely controlling what's on screen, and maintaining consistency with their location.
|
||||
The majority of AI video right now looks like a series of disconnected clips, which results in
|
||||
AI film having that "film trailer" montage feel to it. Lots of jumping around, very little
|
||||
continuity.
|
||||
|
||||
We've figured out how to overcome this problem. And in the spirit of "Show, Don't Tell",
|
||||
let me show you what we've discovered. You'll intuit how this technique works immediately:
|
||||
|
||||
@youtube(kzvQMdg66Go)
|
||||
|
||||
Now let me break down the rationale and the technique...
|
||||
|
||||
# Moving the Camera is Important
|
||||
|
||||
In *"film language"*, the camera's relationship to the characters conveys meaning. Sometimes we want to give the
|
||||
viewer a warm and friendly perspective, or perhaps frame the relationship between two different characters and
|
||||
imply a certain power dynamic.
|
||||
|
||||
Sometimes it's just important to show the location so the viewer can settle in. So the setting feels lived in and
|
||||
the viewer is immersed in it alongside our characters.
|
||||
|
||||
# Text is a Coarse-Grained Representation
|
||||
|
||||
Here's a simple Nano Banana Pro prompt:
|
||||
|
||||
> Sam Altman in a room. He sits at a desk, looking towards a desktop computer on the left.
|
||||
> The room is dimly lit. The glow of a computer terminal, sitting in front of him bathes the room in blue light.
|
||||
> Behind him, there is a wall with a poster. There’s an AC/DC poster on the left, and a window on the right.
|
||||
> Through the window, there’s a view of moonlit trees.
|
||||
|
||||
And the results:
|
||||
|
||||

|
||||
|
||||
What happened to the location here? Why are none of these the same? Why are the locations of the poster,
|
||||
computer, window, and so forth so imprecise?
|
||||
|
||||
Moreover, how do we adjust this? Iteratively prompting?
|
||||
|
||||
You already know the answer: text is a poor serialization of the physical world. Text-to-Image is coarse
|
||||
grained. It lacks the ability to precisely convey physical attributes and spatial relationships. You can try,
|
||||
but you'll only get so much precision, and it'll never match the vision in your head.
|
||||
|
||||
# Images are Incomplete
|
||||
|
||||
There are multiple ways to move a camera in an image-to-image workflow. You can use a ControlNet, a LoRA, or even
|
||||
ask an instructive model nicely:
|
||||
|
||||
> Rotate the camera behind Sam Altman to show him from behind. Show the desk, computer screen,
|
||||
> and wall behind the desk. Show the door to the room.
|
||||
|
||||

|
||||
|
||||
While the lighting and scene elements remain somewhat consistent, we're still ultimately left with the same
|
||||
issues we had with text-to-image. We can iterate on editing with words, but it's slow, tedious, and still
|
||||
imprecise.
|
||||
|
||||
(Why does the desk block the door? What is it even trying to do with that poster?)
|
||||
|
||||
# 3D to the Rescue!
|
||||
|
||||
One of the best tools for consistency is 3D. You can position your characters and props in a "3D set" exactly as you want them,
|
||||
and then move the "camera" to any angle, maintaining strong consistency throughout.
|
||||
|
||||

|
||||
|
||||
Pick a "smart" model like GPT Image 1.5 or Nano Banana Pro to convert this previz into a photorealistic render (or any style - anime, sci-fi, whatever):
|
||||
|
||||
> Suspense movie - live action - night time. Make a photorealistic picture of Sam Altman sitting at a fancy office desk.
|
||||
> Use the previz scene as the layout and posing of the shot. The camera and pose of Sam should match this shot.
|
||||
> Nighttime shot, moonlit glow.
|
||||
|
||||

|
||||
|
||||
If desired, you can also attach additional reference images for character designs, wardrobe choices, etc.
|
||||
|
||||
After Nano Banana Pro lighting adjustments and upscaling (and showing it the previz again to restore the missing desk pad), we get this:
|
||||
|
||||
> Make this look more photorealistic. Suspenseful night in the office
|
||||
|
||||

|
||||
|
||||
It's a great starting composition before calling "action" with a video model. (I'm no Roger Deakins. I would adjust the framing, but I wanted to show under the desk as well as bookcase features. I was also up late writing this.)
|
||||
|
||||
# 3D Kit Bashing
|
||||
|
||||
You can use 3D kits found online, many of which are free or low cost, to "kit bash" a scene. Synty, CGTrader, ... there are hundreds of sites for locations, objects, characters, and more. With these assets, you can provide exact blocking and layout you want - but more importantly, you can reuse them for additional shots and camera angles. Your characters need to be seen from multiple angles, and your props need to be consistent throughout the scene.
|
||||
|
||||
> Action movie - live action - day. Turn this previz scene into a photorealistic desert island. Keep the tree, boxes, and treasure chest in place.
|
||||
|
||||

|
||||
|
||||
And the render, with one extra NBP 4K upscale (I did ask it to change the clouds on the second pass):
|
||||
|
||||

|
||||
|
||||
Image editing models are also surprisingly robust at changing the composition controllably if you give it enough structure to start with.
|
||||
|
||||
# Greyboxing
|
||||
|
||||
But kit bashing can be slow. You have to find and curate a selection of assets.
|
||||
If you need to go faster, you can use 3D primitive shapes to "greybox" a scene:
|
||||
|
||||

|
||||
|
||||
> Historical epic - live action - sunset. Use this previz scene for the composition.
|
||||
> An ancient greek temple with ruined concrete and marble columns. The pink and orange sunset bathes the concrete and marble.
|
||||
> In the distance, there are rolling green hills and valleys. Bright pink sky.
|
||||
|
||||

|
||||
|
||||
You can drop 3D assets in alongside the greybox to position existing props or characters. You can even greybox just a single element, like a TV.
|
||||
|
||||
# Billboards and Matte Plates
|
||||
|
||||
If you want to add a dramatic backdrop behind characters and a foreground, you can use the old Hollywood technique of creating a background plate (think the "matte paintings" used in Star Wars). In video game parlance, this is called using flat or billboard textures.
|
||||
|
||||
It's quick and easy, though you do lose your ability to rotate the camera. Use it for depth and backdrops:
|
||||
|
||||

|
||||
|
||||
> Sports footage - live action - day. Woman is hiking in the mountains. She is dressed in sporty warm winter wear.
|
||||
> She’s standing at the peak, with a mountain forest behind her. Use this previz image to upscale the photo into a
|
||||
> fully lifelike and photorealistic cinematic image.
|
||||
|
||||

|
||||
|
||||
|
||||
# Object Generation for Props
|
||||
|
||||
You can turn images into 3D prop objects using models such as Hunyuan 3D. This is useful if you need angles and
|
||||
precision posing for a complicated object, or if you intend to use the asset over and over and need consistency.
|
||||
|
||||
I generated a quick photo of an FJ Cruiser SUV:
|
||||
|
||||

|
||||
|
||||
Turning this into a 3D object and instancing it around all over the place:
|
||||
|
||||

|
||||
|
||||
Then prompt, followed by a 4K upscale (with a few more fixes):
|
||||
|
||||
> An artistic collage of fj cruiser SUVs floating in a pixelated desert.
|
||||
> Match their pose and orientations exactly, including the ones that are flipped and rotated.
|
||||
> Make the low poly fj cruisers look photorealistic and high resolution.
|
||||
|
||||

|
||||
|
||||
|
||||
# World Models Make This Easy
|
||||
|
||||
The real stars of the modern 3D compositing workflow are image-to-Gaussian Splat models, such as World Labs' Marble or Apple's Sharp.
|
||||
|
||||
You can very quickly create a pleasing image of an intracate set in MidJourney, edit it in Nano Banana,
|
||||
then turn it into a fully navigable 3D scene. This gives your characters room to move, your camera places
|
||||
to go, and your location opportunities to shine.
|
||||
|
||||
@loop_autoplay(https://pub-f7441936e5804042a1ea2bdc92e4dc71.r2.dev/Fantasy_Gif_One.mp4)
|
||||
@loop_autoplay(https://pub-f7441936e5804042a1ea2bdc92e4dc71.r2.dev/Beach_Gif_One.mp4)
|
||||
@loop_autoplay(https://pub-f7441936e5804042a1ea2bdc92e4dc71.r2.dev/SciFi_Gif_One.mp4)
|
||||
|
||||
Finally, we have set pieces. And they're easy to build and iterate on.
|
||||
|
||||
# Combining Techniques
|
||||
|
||||
You can use MidJourney to quickly generate brilliant scenes with high detail and magazine photoshoot quality layout, or you can draw a sketch or greybox a scene you'd like to build, iterate, then turn that into a world.
|
||||
|
||||
This is less like "prompting" and more like "crafting", with lots of different visual tools used in quick succession and coordination.
|
||||
|
||||
Need something? Generate it, turn it into 3D, edit, manipulate it. Stick it into something else. Rinse, cycle, repeat. Highly tangible,
|
||||
like an artist molding clay - except now we're moving closer to the speed of thoughts.
|
||||
|
||||
We're still being largely intentional. If there's something we want to see, we now have the tool to make it real. It's *What You See Is What You Get*.
|
||||
|
||||
We're painting with pictures. We're not prompters, but rather auteurs of crafting.
|
||||
|
||||
# Machinima 2.0
|
||||
|
||||
Do you remember "Machinima"? It's a niche, indie genre of filmmaking that was popular in the early 2000's. Creators would pilot video game characters, carefully controlling for the camera, character movements, and on-screen details in order to tell stories. They would then dub over the footage to breathe life into the narrative.
|
||||
|
||||
Popular Machinima series include "Red vs. Blue", from Rooster Teeth Productions, which was filmed using the Halo video game series. Other notable Machinima include "The Strangerhood" (which used The Sims) and "Skibidi Toilet" (which leverages Source Filmmaker).
|
||||
|
||||
I mention this obscure artform because as a former Machinima creator myself, it feels like Image-to-Video is the new Machinima. There's the character posting, keyframing, and dubbing, of course, but there's also this notion of using pixels created by someone else's engine. And it's very much in the spirit of machinima to carve new creativity out of these engines by operating at a higher level.
|
||||
|
||||
Image-to-image, 3D, and World Models make an entirely new form of Machinima possible:
|
||||
|
||||
@youtube(tAAiiKteM-U)
|
||||
|
||||
|
||||
# ArtCraft: Free and Open 3D Filmmaking
|
||||
|
||||
ArtCraft is a crafting engine and is available in its entirety on [Github (please star us!)](https://github.com/storytold/artcraft), or try it today on [Mac or Windows](/download).
|
||||
|
||||
You generate images and videos in app using a wide selection of models and providers
|
||||
such as Midjourney, Google, Sora, Grok, WorldLabs, and more - or you can bring your own keys!
|
||||
|
||||
Over the coming weeks, we'll be adding FAL, Replicate, and Google Gemini. Local GPU support and RunPod support
|
||||
is also coming soon (subscribe to stay updated, or better yet, [join our Discord](https://discord.gg/artcraft)).
|
||||
|
||||
If you're a blogger, podcaster, or creator we've got a [ton of CC-BY-SA content here](/press-kit#top) if you'd like to help us let people know about ArtCraft.
|
||||
|
||||
If you're a creative, please enjoy ArtCraft. We built it for ourselves and for you. Please join the community and let us know if there's any way we can help.
|
||||
|
||||
— Brandon Thomas
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: 2D Editor Basics
|
||||
seoTitle: 2D Editor Basics in ArtCraft
|
||||
abstract: Learn the canvas tools, arrange elements, and generate from layouts.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
thumbnail: /images/tutorial-thumbnails/2D_Editor_Basics.jpg
|
||||
slug: 2d-editor-basics
|
||||
category: 2D
|
||||
videoUrl: https://youtu.be/ZASPqlqUBQc?si=U9yRn6KETNJKaUAo
|
||||
---
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: 3D Editor Basics
|
||||
seoTitle: 3D Editor Basics in ArtCraft
|
||||
abstract: Position camera and objects, compose shots, maintain character consistency.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
thumbnail: /images/tutorial-thumbnails/3D_Editor_Basics.jpg
|
||||
slug: 3d-editor-basics
|
||||
aliases: 3d-editor-basics
|
||||
category: 3D
|
||||
videoUrl: https://youtu.be/pM4CxN-isrY?si=XDyG5C1aMIL4KK5O
|
||||
---
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: Turn Images into 3D Objects
|
||||
seoTitle: Turn Images into 3D Objects in ArtCraft
|
||||
abstract: Import images, convert them to scene elements, compose and render.
|
||||
isPublished: true
|
||||
publishedOn: 2025-10-06
|
||||
thumbnail: /images/tutorial-thumbnails/Turn_Images_Into_Objects.jpg
|
||||
slug: turn-images-into-objects
|
||||
aliases: turn-images-into-3d-objects
|
||||
category: 3D
|
||||
videoUrl: https://youtu.be/t8F-sy_zyK4?si=P8lSzuiwSgdRttKa
|
||||
---
|
||||
@@ -0,0 +1,332 @@
|
||||
// Minimal Storyteller API client, ported from the @storyteller/api lib's
|
||||
// ApiManager / UsersApi / BillingApi for the pieces the marketing site
|
||||
// needs (session detection and Stripe billing flows). BROWSER ONLY: every
|
||||
// call sends cookies (`credentials: include`) plus the signed-session
|
||||
// header fallback for browsers that block the third-party cookie.
|
||||
//
|
||||
// Endpoints, request bodies, and response envelopes match the lib exactly
|
||||
// so the same backend handlers serve both sites.
|
||||
|
||||
export const API_HOST =
|
||||
process.env.NEXT_PUBLIC_API_HOST ?? "https://api.storyteller.ai";
|
||||
|
||||
// Same key the shared lib uses, so a session stored by the webapp's login
|
||||
// on this origin (dev) is honored here too.
|
||||
const SESSION_STORAGE_KEY = "artcraft_signed_session";
|
||||
|
||||
export type ApiResult<T> =
|
||||
| { success: true; data: T }
|
||||
| { success: false; errorMessage: string };
|
||||
|
||||
export type SessionUser = {
|
||||
user_token: string;
|
||||
username: string;
|
||||
display_name: string;
|
||||
email_address?: string;
|
||||
};
|
||||
|
||||
export type Session = {
|
||||
loggedIn: boolean;
|
||||
user?: SessionUser;
|
||||
};
|
||||
|
||||
export type ActiveSubscription = {
|
||||
namespace: string;
|
||||
product_slug: string;
|
||||
};
|
||||
|
||||
export type BillingCadence = "monthly" | "yearly";
|
||||
|
||||
export function getSession(): Promise<ApiResult<Session>> {
|
||||
return request<{ logged_in: boolean; user?: SessionUser }>("/v1/session").then(
|
||||
(r) =>
|
||||
r.success
|
||||
? { success: true, data: { loggedIn: r.data.logged_in, user: r.data.user } }
|
||||
: r,
|
||||
);
|
||||
}
|
||||
|
||||
export function listActiveSubscriptions(): Promise<
|
||||
ApiResult<ActiveSubscription[]>
|
||||
> {
|
||||
return request<{ active_subscriptions?: ActiveSubscription[] }>(
|
||||
"/v1/billing/active_subscriptions",
|
||||
).then((r) =>
|
||||
r.success ? { success: true, data: r.data.active_subscriptions ?? [] } : r,
|
||||
);
|
||||
}
|
||||
|
||||
// Not logged in: Stripe Checkout creates the account and the subscription
|
||||
// together. Referral attribution rides along.
|
||||
export function userSignupSubscriptionCheckout(body: {
|
||||
plan: string;
|
||||
cadence: BillingCadence;
|
||||
maybeReferralUrl?: string;
|
||||
maybeLandingUrl?: string;
|
||||
maybeReferralUsername?: string;
|
||||
maybeReferralCode?: string;
|
||||
}): Promise<ApiResult<{ checkoutUrl: string }>> {
|
||||
return checkoutRequest("/v1/stripe_artcraft/user_signup_subscription_checkout", {
|
||||
plan: body.plan,
|
||||
cadence: body.cadence,
|
||||
...(body.maybeReferralUrl && { maybe_referral_url: body.maybeReferralUrl }),
|
||||
...(body.maybeLandingUrl && { maybe_landing_url: body.maybeLandingUrl }),
|
||||
...(body.maybeReferralUsername && {
|
||||
maybe_referral_username: body.maybeReferralUsername,
|
||||
}),
|
||||
...(body.maybeReferralCode && { maybe_referral_code: body.maybeReferralCode }),
|
||||
});
|
||||
}
|
||||
|
||||
// Logged in, no active plan: attach a subscription to the existing account.
|
||||
export function subscriptionCheckout(body: {
|
||||
plan: string;
|
||||
cadence: BillingCadence;
|
||||
}): Promise<ApiResult<{ checkoutUrl: string }>> {
|
||||
return checkoutRequest("/v1/stripe_artcraft/checkout/subscription", body);
|
||||
}
|
||||
|
||||
// Logged in with an active plan: Stripe portal flow to change plans.
|
||||
export function switchPlan(body: {
|
||||
plan: string;
|
||||
cadence: BillingCadence;
|
||||
}): Promise<ApiResult<{ portalUrl: string }>> {
|
||||
return portalRequest("/v1/stripe_artcraft/portal/switch_plan", body);
|
||||
}
|
||||
|
||||
export function getPortalUrl(): Promise<ApiResult<{ portalUrl: string }>> {
|
||||
return portalRequest("/v1/stripe_artcraft/portal/manage_plan", {});
|
||||
}
|
||||
|
||||
export function creditsPackCheckout(
|
||||
creditsPack: string,
|
||||
): Promise<ApiResult<{ checkoutUrl: string }>> {
|
||||
return checkoutRequest("/v1/stripe_artcraft/checkout/credits_pack", {
|
||||
credits_pack: creditsPack,
|
||||
});
|
||||
}
|
||||
|
||||
// Email/password login. Stores the signed session so auth survives where
|
||||
// the cross-site cookie is blocked (Safari ITP), mirroring the shared lib.
|
||||
export function login(body: {
|
||||
usernameOrEmail: string;
|
||||
password: string;
|
||||
}): Promise<ApiResult<{ signedSession?: string }>> {
|
||||
return request<{ signed_session?: string }>("/v1/login", {
|
||||
method: "POST",
|
||||
body: { username_or_email: body.usernameOrEmail, password: body.password },
|
||||
}).then((r) => {
|
||||
if (!r.success) return r;
|
||||
storeSignedSession(r.data.signed_session);
|
||||
return { success: true, data: { signedSession: r.data.signed_session } };
|
||||
});
|
||||
}
|
||||
|
||||
export function signup(body: {
|
||||
username: string;
|
||||
email: string;
|
||||
password: string;
|
||||
signupSource: string;
|
||||
maybeReferralUrl?: string;
|
||||
maybeLandingUrl?: string;
|
||||
maybeReferralUsername?: string;
|
||||
maybeReferralCode?: string;
|
||||
}): Promise<ApiResult<{ signedSession?: string }>> {
|
||||
return request<{
|
||||
signed_session?: string;
|
||||
error_fields?: Record<string, string>;
|
||||
}>("/v1/create_account", {
|
||||
method: "POST",
|
||||
body: {
|
||||
username: body.username,
|
||||
email_address: body.email,
|
||||
password: body.password,
|
||||
password_confirmation: body.password,
|
||||
signup_source: body.signupSource,
|
||||
...(body.maybeReferralUrl && { maybe_referral_url: body.maybeReferralUrl }),
|
||||
...(body.maybeLandingUrl && { maybe_landing_url: body.maybeLandingUrl }),
|
||||
...(body.maybeReferralUsername && {
|
||||
maybe_referral_username: body.maybeReferralUsername,
|
||||
}),
|
||||
...(body.maybeReferralCode && { maybe_referral_code: body.maybeReferralCode }),
|
||||
},
|
||||
}).then((r) => {
|
||||
if (!r.success) return r;
|
||||
storeSignedSession(r.data.signed_session);
|
||||
return { success: true, data: { signedSession: r.data.signed_session } };
|
||||
});
|
||||
}
|
||||
|
||||
// Omni-gen video generation. Only the fields the campaign promptbox sets;
|
||||
// nulls let the server apply model defaults, same as the Vite page.
|
||||
export function generateVideo(body: {
|
||||
model: string;
|
||||
prompt: string;
|
||||
aspectRatio?: string;
|
||||
resolution?: string;
|
||||
durationSeconds?: number;
|
||||
generateAudio?: boolean;
|
||||
}): Promise<ApiResult<{ jobToken: string }>> {
|
||||
return request<{ inference_job_token?: string }>("/v1/omni_gen/generate/video", {
|
||||
method: "POST",
|
||||
body: {
|
||||
model: body.model,
|
||||
prompt: body.prompt,
|
||||
idempotency_token: crypto.randomUUID(),
|
||||
aspect_ratio: body.aspectRatio ?? null,
|
||||
resolution: body.resolution ?? null,
|
||||
duration_seconds: body.durationSeconds ?? null,
|
||||
generate_audio: body.generateAudio ?? null,
|
||||
video_batch_count: 1,
|
||||
start_frame_image_media_token: null,
|
||||
end_frame_image_media_token: null,
|
||||
reference_image_media_tokens: null,
|
||||
reference_video_media_tokens: null,
|
||||
reference_audio_media_tokens: null,
|
||||
reference_character_tokens: null,
|
||||
},
|
||||
}).then((r) => {
|
||||
if (!r.success) return r;
|
||||
return r.data.inference_job_token
|
||||
? { success: true, data: { jobToken: r.data.inference_job_token } }
|
||||
: { success: false, errorMessage: "Generation failed" };
|
||||
});
|
||||
}
|
||||
|
||||
export type JobPoll =
|
||||
| { status: "pending" }
|
||||
| { status: "complete"; videoUrl: string }
|
||||
| { status: "failed"; error: string };
|
||||
|
||||
export function getVideoJob(jobToken: string): Promise<JobPoll> {
|
||||
return request<{
|
||||
state?: {
|
||||
status?: {
|
||||
status?: string;
|
||||
maybe_failure_message?: string;
|
||||
maybe_extra_status_description?: string;
|
||||
};
|
||||
maybe_result?: { media_links?: { cdn_url?: string } };
|
||||
};
|
||||
}>(`/v1/jobs/job/${jobToken}`).then((r) => {
|
||||
if (!r.success) return { status: "pending" };
|
||||
const state = r.data.state;
|
||||
const status = state?.status?.status?.toLowerCase() ?? "";
|
||||
if (status === "complete_success" || status === "complete") {
|
||||
const url = state?.maybe_result?.media_links?.cdn_url;
|
||||
return url ? { status: "complete", videoUrl: url } : { status: "pending" };
|
||||
}
|
||||
if (status.includes("fail") || status.includes("error") || status === "dead") {
|
||||
return {
|
||||
status: "failed",
|
||||
error:
|
||||
state?.status?.maybe_failure_message ??
|
||||
state?.status?.maybe_extra_status_description ??
|
||||
"Generation failed",
|
||||
};
|
||||
}
|
||||
return { status: "pending" };
|
||||
});
|
||||
}
|
||||
|
||||
// Fire-and-forget referral log, once per browser session (mirrors the Vite
|
||||
// site's main.tsx bootstrap).
|
||||
export function logWebReferral(maybeReferralUrl?: string): Promise<void> {
|
||||
return request("/v1/web_referrals/record", {
|
||||
method: "POST",
|
||||
body: { maybe_referral_url: maybeReferralUrl ?? null },
|
||||
}).then(() => undefined);
|
||||
}
|
||||
|
||||
function checkoutRequest(
|
||||
path: string,
|
||||
body: unknown,
|
||||
): Promise<ApiResult<{ checkoutUrl: string }>> {
|
||||
return request<{ stripe_checkout_redirect_url?: string }>(path, {
|
||||
method: "POST",
|
||||
body,
|
||||
}).then((r) => {
|
||||
if (!r.success) return r;
|
||||
return r.data.stripe_checkout_redirect_url
|
||||
? { success: true, data: { checkoutUrl: r.data.stripe_checkout_redirect_url } }
|
||||
: { success: false, errorMessage: "Failed to initiate checkout" };
|
||||
});
|
||||
}
|
||||
|
||||
function portalRequest(
|
||||
path: string,
|
||||
body: unknown,
|
||||
): Promise<ApiResult<{ portalUrl: string }>> {
|
||||
return request<{ stripe_portal_url?: string }>(path, {
|
||||
method: "POST",
|
||||
body,
|
||||
}).then((r) => {
|
||||
if (!r.success) return r;
|
||||
return r.data.stripe_portal_url
|
||||
? { success: true, data: { portalUrl: r.data.stripe_portal_url } }
|
||||
: { success: false, errorMessage: "Failed to open the billing portal" };
|
||||
});
|
||||
}
|
||||
|
||||
type Envelope = { success: boolean; error_message?: string; message?: string };
|
||||
|
||||
async function request<T extends object>(
|
||||
path: string,
|
||||
init: { method?: "GET" | "POST"; body?: unknown } = {},
|
||||
): Promise<ApiResult<T>> {
|
||||
try {
|
||||
const headers: Record<string, string> = {
|
||||
Accept: "application/json",
|
||||
"Content-Type": "application/json",
|
||||
};
|
||||
const session = readSignedSession();
|
||||
if (session) headers.session = session;
|
||||
|
||||
const response = await fetch(`${API_HOST}${path}`, {
|
||||
method: init.method ?? "GET",
|
||||
headers,
|
||||
credentials: "include",
|
||||
body: init.body === undefined ? undefined : JSON.stringify(init.body),
|
||||
});
|
||||
|
||||
const payload = (await response.json().catch(() => null)) as
|
||||
| (Envelope & T)
|
||||
| null;
|
||||
if (!response.ok) {
|
||||
return {
|
||||
success: false,
|
||||
errorMessage:
|
||||
payload?.message ?? payload?.error_message ?? `Request failed (${response.status})`,
|
||||
};
|
||||
}
|
||||
if (!payload?.success) {
|
||||
return {
|
||||
success: false,
|
||||
errorMessage: payload?.error_message ?? "Request failed",
|
||||
};
|
||||
}
|
||||
return { success: true, data: payload };
|
||||
} catch (err) {
|
||||
return {
|
||||
success: false,
|
||||
errorMessage: err instanceof Error ? err.message : "Network error",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function storeSignedSession(signedSession: string | undefined): void {
|
||||
if (!signedSession) return;
|
||||
try {
|
||||
localStorage.setItem(SESSION_STORAGE_KEY, signedSession);
|
||||
} catch {
|
||||
// Storage unavailable; the cookie still carries the session.
|
||||
}
|
||||
}
|
||||
|
||||
function readSignedSession(): string | null {
|
||||
try {
|
||||
return localStorage.getItem(SESSION_STORAGE_KEY);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,329 @@
|
||||
// Copy and data for the campaign landing pages (Seedance 2.0, Seedance
|
||||
// 2.5, MiniMax H3, creator spotlight), ported verbatim from the Vite site.
|
||||
// Approved marketing copy; edit deliberately.
|
||||
|
||||
import { mediaUrl } from "./links";
|
||||
|
||||
export const HERO_VIMEO_URL =
|
||||
"https://player.vimeo.com/video/1169289718?autoplay=1&muted=1&loop=1&background=0&byline=0&portrait=0&title=0";
|
||||
|
||||
export type QA = { question: string; answer: string };
|
||||
export type Tip = { title: string; body: string };
|
||||
|
||||
// ── Five reasons (Seedance 2.0 / 2.5) ─────────────────────────────────────
|
||||
|
||||
export const REASON_IMAGES = {
|
||||
canvas: mediaUrl("/images/2d-3d.png"),
|
||||
windows: mediaUrl("/images/windows-logo.png"),
|
||||
apple: mediaUrl("/images/apple-logo.png"),
|
||||
linux: mediaUrl("/images/linux-logo.png"),
|
||||
};
|
||||
|
||||
// Every model in the studio, for the "Use every model" marquee. Names from
|
||||
// the shared model list; brand marks are the services SVGs on the live site.
|
||||
const service = (file: string) => mediaUrl(`/images/services/${file}`);
|
||||
|
||||
export type ModelBadge = { name: string; icon: string };
|
||||
|
||||
export const MODEL_BADGES: ModelBadge[] = [
|
||||
{ name: "Seedance 2.0", icon: service("bytedance.svg") },
|
||||
{ name: "Nano Banana Pro", icon: service("google.svg") },
|
||||
{ name: "Kling 3.0 Pro", icon: service("kling.svg") },
|
||||
{ name: "GPT Image 2", icon: service("openai.svg") },
|
||||
{ name: "Flux Pro 1.1 Ultra", icon: service("blackforestlabs.svg") },
|
||||
{ name: "Google Veo 3.1", icon: service("google.svg") },
|
||||
{ name: "Sora 2 Pro", icon: service("openai.svg") },
|
||||
{ name: "Seedream 4.5", icon: service("bytedance.svg") },
|
||||
{ name: "Midjourney", icon: service("midjourney.svg") },
|
||||
{ name: "Grok Video", icon: service("grok.svg") },
|
||||
{ name: "Marble 0.1 Plus", icon: service("worldlabs.svg") },
|
||||
{ name: "Kling 2.6 Pro", icon: service("kling.svg") },
|
||||
{ name: "Nano Banana 2", icon: service("google.svg") },
|
||||
{ name: "Hunyuan 3D 3.0", icon: service("tencent.svg") },
|
||||
{ name: "Seedance 1.5 Pro", icon: service("bytedance.svg") },
|
||||
{ name: "GPT Image 1.5", icon: service("openai.svg") },
|
||||
{ name: "Flux Pro Kontext Max", icon: service("blackforestlabs.svg") },
|
||||
{ name: "Google Veo 3 Fast", icon: service("google.svg") },
|
||||
{ name: "Qwen Edit 2511", icon: service("alibaba.svg") },
|
||||
{ name: "MiniMax H3", icon: service("minimax.svg") },
|
||||
{ name: "Kling 2.5 Turbo Pro", icon: service("kling.svg") },
|
||||
{ name: "Grok Imagine 1.5", icon: service("grok.svg") },
|
||||
];
|
||||
|
||||
// ── Seedance 2.5 ──────────────────────────────────────────────────────────
|
||||
|
||||
export const SD25_OVERVIEW: string[] = [
|
||||
"Seedance 2.5 is shaping up to be the most anticipated release in AI video. It's the expected next step for ByteDance's Seedance line, the same line whose 2.0 release took the #1 spot on the Artificial Analysis Video Arena in early 2026, leading both text-to-video and image-to-video at once. ByteDance still hasn't put out an official 2.5 spec as of mid-2026, but between the reporting, the leaks, and the obvious 1.0 → 1.5 → 2.0 march, the direction is hard to miss: a real step up, not a minor patch.",
|
||||
"What people are hearing is that 2.5 blows past today's ceiling. The chatter points to as much as 4K output, where current generations top out around 720p and 1080p; generation quick enough to feel near-instant; clips that run past the roughly 15-second wall; characters that stay consistent from one session to the next without you re-uploading references every time; and a lot more you can feed in at once: many reference images plus audio and video, all in a single pass.",
|
||||
"The part that isn't a rumor is the ground it stands on, and you can put it to work in ArtCraft right now through Seedance 2.0: audio that's generated jointly with the picture and lands in sync, accurate lip-sync across languages, multi-shot stories that keep a character and a style intact through every cut, precise camera control, and a reference mode that anchors a generation to your own images, video, and audio. Every one of those is exactly what 2.5 is expected to push further, and the moment it's out, it'll be in ArtCraft.",
|
||||
"One thing worth remembering through all of this: in ArtCraft a video model is never a black box you toss a sentence into and cross your fingers. It's one stage of a pipeline you direct: set up the scene, place your references, frame the camera, then hand the shot off. A better model just makes that last step better. The control is still yours.",
|
||||
];
|
||||
|
||||
export const SD25_DISCLAIMER =
|
||||
"To be clear: Seedance 2.5 isn't out. Anything specific on this page (numbers, speeds, lengths) is our read on the rumors, not a promise from ByteDance, and it can change the day it actually ships.";
|
||||
|
||||
export const SD25_FAQ: QA[] = [
|
||||
{
|
||||
question: "Is Seedance 2.5 real, or just hype?",
|
||||
answer:
|
||||
"Both, a little. The Seedance line is real and very good, so a 2.5 is a safe bet eventually. But as of now there's no official announcement and no published spec. Everything you've read about it, including on this page, is informed speculation. We've flagged it as such rather than dress rumors up as a feature list.",
|
||||
},
|
||||
{
|
||||
question: "When can I actually use it?",
|
||||
answer:
|
||||
"We don't know, and anyone giving you a hard date is guessing. The moment ByteDance ships it and we can integrate it, it goes into ArtCraft, and we'll update this page. Until then, you're not waiting on us: the current Seedance is already here.",
|
||||
},
|
||||
{
|
||||
question: "What should I do in the meantime?",
|
||||
answer:
|
||||
"Build the workflow now so you're fast when 2.5 lands. Seedance 2.0 is in ArtCraft today with the features 2.5 is expected to extend: synced audio generated with the video, multi-language lip-sync, multi-shot scenes that hold a character and style across cuts, precise camera control, and reference mode. Direct your shots with those instead of one-off prompts, and the habits transfer straight to the next model.",
|
||||
},
|
||||
{
|
||||
question: "Why use Seedance in ArtCraft instead of a website?",
|
||||
answer:
|
||||
"Because a browser tab gives you a prompt box and a paywall. ArtCraft gives you the whole stage: compose with images and 3D, lock your characters, frame the camera, then generate. You also keep your work. It's a desktop app you own, not a subscription you rent.",
|
||||
},
|
||||
{
|
||||
question: "Will my older Seedance projects still work when 2.5 arrives?",
|
||||
answer:
|
||||
"Yes. New models are added alongside the ones you already use. Nothing you've made disappears, and you choose which model runs each generation. When 2.5 is available you can switch to it where it helps and keep everything else exactly as it is.",
|
||||
},
|
||||
];
|
||||
|
||||
export const SD25_TIPS: Tip[] = [
|
||||
{
|
||||
title: "Direct it, don't describe it",
|
||||
body: "Treat the prompt like notes to a crew. Call the shot, the move, and the action separately, a short beat at a time, instead of one long wish that the model has to untangle.",
|
||||
},
|
||||
{
|
||||
title: "Make your references do the work",
|
||||
body: "Bring in your own images and footage and be explicit about what each is for. A reference you've chosen beats a paragraph of adjectives trying to conjure the same thing.",
|
||||
},
|
||||
{
|
||||
title: "Start from a real frame",
|
||||
body: "Compose your opening shot in ArtCraft first (layout, characters, camera) and let the model animate from something solid. Generations grounded in an actual frame drift far less.",
|
||||
},
|
||||
{
|
||||
title: "Keep characters on a leash",
|
||||
body: "Give the model clear, consistent looks at your subject from a few angles. The more grounded it is up front, the better your character holds together across a multi-shot sequence.",
|
||||
},
|
||||
];
|
||||
|
||||
export const MANIFESTO_WORDS: string[] = [
|
||||
"ArtCraft",
|
||||
"brings",
|
||||
"control",
|
||||
"to",
|
||||
"AI",
|
||||
"image",
|
||||
"and",
|
||||
"video",
|
||||
"generation,",
|
||||
"giving",
|
||||
"artists",
|
||||
"like",
|
||||
"you",
|
||||
"full",
|
||||
"power",
|
||||
"over",
|
||||
"every",
|
||||
"shot.",
|
||||
];
|
||||
|
||||
export const MANIFESTO_EMPHASIS = "control";
|
||||
|
||||
// ── MiniMax H3 ────────────────────────────────────────────────────────────
|
||||
|
||||
export const H3 = {
|
||||
modelId: "minimax_h3",
|
||||
name: "MiniMax H3",
|
||||
signupSource: "minimax_h3_landing",
|
||||
blogUrl: "https://www.minimax.io/blog/minimax-h3",
|
||||
icon: service("minimax.svg"),
|
||||
};
|
||||
|
||||
export const H3_SAMPLE_PROMPTS: string[] = [
|
||||
"Slow dolly-in on a barista pouring latte art, morning light, soft cafe ambience and the hiss of the steam wand",
|
||||
"A humpback whale breaches at golden hour, seabirds calling, waves crashing in stereo, drone shot pulling back",
|
||||
'Neon-lit storefront at night, rain on the glass, a flickering sign that reads "OPEN ALL NIGHT", distant traffic hum',
|
||||
];
|
||||
|
||||
export const H3_HIGHLIGHTS: Tip[] = [
|
||||
{ title: "Native 2K", body: "Sharp 2K output by default, with a faster 768p mode when you want quick drafts." },
|
||||
{ title: "Up to 15 seconds", body: "Enough room for an actual beat: setup, action, payoff, instead of a four-second loop." },
|
||||
{ title: "Stereo sound built in", body: "Audio is generated together with the picture, so ambience and effects land in sync." },
|
||||
{ title: "Truly multimodal", body: "One model that understands text, images, video, and audio as unified input." },
|
||||
{ title: "Text that reads", body: "Unusually accurate text and logo rendering for signs, packaging, and title cards." },
|
||||
{ title: "Multi-shot scenes", body: "Holds characters and style across cuts for short sequences, not just single shots." },
|
||||
];
|
||||
|
||||
export const H3_OVERVIEW: string[] = [
|
||||
"MiniMax H3 is the newest generation model from MiniMax, the lab behind the Hailuo video family. Rather than a video-only specialist, H3 is a general-purpose multimodal model: it understands text, images, video, and audio as one unified input, and generates video with native stereo sound in a single pass.",
|
||||
"In practice, that shows up as a model that follows instructions unusually well. It renders on-screen text and brand marks accurately, transfers motion from reference footage, keeps characters and style consistent across multi-shot sequences, and produces clips up to 15 seconds at 2K by default, with a faster 768p mode for drafts.",
|
||||
"MiniMax is positioning H3 for commercial work (advertising, e-commerce, product design, game content) where control and accuracy matter more than lucky rolls. It is also priced aggressively: MiniMax says 2K output costs less than a third of comparable mainstream models.",
|
||||
"On ArtCraft you don't have to take anyone's word for it. H3 generations are free right now: type a prompt at the top of this page and judge the model on your own footage.",
|
||||
];
|
||||
|
||||
export type ExampleVideo = {
|
||||
label: string;
|
||||
src: string;
|
||||
poster: string;
|
||||
/** Ultra-wide 92:39 source. */
|
||||
wide?: boolean;
|
||||
spanClass?: string;
|
||||
};
|
||||
|
||||
// Sample generations from MiniMax's announcement, streamed from their CDN;
|
||||
// only the poster thumbnails are re-hosted on the live site.
|
||||
export const H3_EXAMPLES: ExampleVideo[] = [
|
||||
{
|
||||
label: "Native stereo sound, generated with the picture",
|
||||
src: "https://filecdn.minimax.chat/public/h3-en-v2-video-005-1785473681635.mp4",
|
||||
poster: mediaUrl("/videos/minimax-h3/posters/stereo-sound.jpg"),
|
||||
wide: true,
|
||||
spanClass: "sm:col-span-2 lg:col-span-6",
|
||||
},
|
||||
{
|
||||
label: "2K performance",
|
||||
src: "https://filecdn.minimax.chat/public/h3-en-v2-video-004-1785473649727.mp4",
|
||||
poster: mediaUrl("/videos/minimax-h3/posters/2k-performance.jpg"),
|
||||
spanClass: "lg:col-span-2",
|
||||
},
|
||||
{
|
||||
label: "Film opening titles",
|
||||
src: "https://filecdn.minimax.chat/public/h3-en-v2-video-006-1785473655612.mp4",
|
||||
poster: mediaUrl("/videos/minimax-h3/posters/film-opening-titles.jpg"),
|
||||
spanClass: "lg:col-span-2",
|
||||
},
|
||||
{
|
||||
label: "Product website",
|
||||
src: "https://filecdn.minimax.chat/public/h3-en-v2-video-007-1785473658537.mp4",
|
||||
poster: mediaUrl("/videos/minimax-h3/posters/product-website.jpg"),
|
||||
spanClass: "lg:col-span-2",
|
||||
},
|
||||
{
|
||||
label: "Animated poster",
|
||||
src: "https://filecdn.minimax.chat/public/h3-en-v2-video-008-1785473649742.mp4",
|
||||
poster: mediaUrl("/videos/minimax-h3/posters/animated-poster.jpg"),
|
||||
spanClass: "lg:col-span-3",
|
||||
},
|
||||
{
|
||||
label: "Advertising and e-commerce",
|
||||
src: "https://filecdn.minimax.chat/public/h3-en-v2-video-009-1785473658745.mp4",
|
||||
poster: mediaUrl("/videos/minimax-h3/posters/advertising-ecommerce.jpg"),
|
||||
spanClass: "sm:col-span-2 lg:col-span-3",
|
||||
},
|
||||
];
|
||||
|
||||
export const H3_TIPS: Tip[] = [
|
||||
{
|
||||
title: "Write the soundtrack too",
|
||||
body: "H3 generates audio with the picture, so tell it what you want to hear: room tone, footsteps, a distant siren, a music cue. Prompts that describe sound get noticeably better mixes.",
|
||||
},
|
||||
{
|
||||
title: "Call the shots like a director",
|
||||
body: 'Name the shot type, the camera move, and the action as separate short beats. "Slow dolly-in on..." beats one long run-on wish the model has to untangle.',
|
||||
},
|
||||
{
|
||||
title: "Use real text deliberately",
|
||||
body: "H3 is unusually good at rendering words. If you want a sign, a label, or a title card in the shot, put the exact text in quotes in your prompt.",
|
||||
},
|
||||
{
|
||||
title: "One scene, one idea",
|
||||
body: "Fifteen seconds is a moment, not a movie. Give the clip a single clear action with a beginning and an end, then iterate on the takes you like.",
|
||||
},
|
||||
];
|
||||
|
||||
export const H3_FAQ: QA[] = [
|
||||
{
|
||||
question: "Is MiniMax H3 really free on ArtCraft?",
|
||||
answer:
|
||||
"Yes. MiniMax H3 generations are currently free for everyone with an ArtCraft account, and creating an account is free too. You can generate right here on this page. If that ever changes, the cost will be shown on the Generate button before you run anything.",
|
||||
},
|
||||
{
|
||||
question: "What is MiniMax H3?",
|
||||
answer:
|
||||
"H3 is MiniMax's general-purpose multimodal generation model, from the lab behind the Hailuo video family. It takes text, images, video, and audio as unified input and generates video with native stereo sound, with strong instruction following and accurate on-screen text rendering.",
|
||||
},
|
||||
{
|
||||
question: "How long and what resolution are the videos?",
|
||||
answer:
|
||||
"H3 generates clips up to 15 seconds and is built for 2K output, with a faster 768p mode also available. This page uses the model's default settings to keep things simple; the full ArtCraft app gives you control over resolution, duration, and aspect ratio.",
|
||||
},
|
||||
{
|
||||
question: "Does it generate sound?",
|
||||
answer:
|
||||
"Yes. H3 generates stereo audio jointly with the video, so ambience, effects, and music land in sync instead of being bolted on afterward. Describe the sound you want in your prompt and it becomes part of the shot.",
|
||||
},
|
||||
{
|
||||
question: "Where do my videos go?",
|
||||
answer:
|
||||
"Every generation is saved to your ArtCraft library. You can watch and download it right here on this page, or open the ArtCraft app to organize your takes and use them in bigger projects.",
|
||||
},
|
||||
{
|
||||
question: "Can I use my own images or footage?",
|
||||
answer:
|
||||
"Yes. The full ArtCraft app unlocks the rest of H3: start and end frames, reference images, video, and audio, plus every other leading model in one place.",
|
||||
},
|
||||
];
|
||||
|
||||
export const H3_GATE_PERKS: string[] = [
|
||||
"MiniMax H3 generations are free right now",
|
||||
"Every video is saved to your personal library",
|
||||
"One account for the web app and the desktop app",
|
||||
];
|
||||
|
||||
// ── Creator spotlight: jboogxcreative ─────────────────────────────────────
|
||||
|
||||
export const JBOOGX = {
|
||||
instagramUrl: "https://www.instagram.com/jboogxcreative/",
|
||||
siteUrl: "https://www.jboogxcreative.com/",
|
||||
};
|
||||
|
||||
export type InstagramPost = { path: string; title: string; image: string };
|
||||
|
||||
// Locally hosted thumbnails (live site, named by shortcode) linking out to
|
||||
// the reel on Instagram: no embeds, so the page stays fast and on-theme.
|
||||
const igPost = (path: string, title: string): InstagramPost => ({
|
||||
path,
|
||||
title,
|
||||
image: mediaUrl(`/images/creators/jboogx/${path.split("/")[1]}.jpg`),
|
||||
});
|
||||
|
||||
// Hero stage, in left / center / right order; the center card is the newest.
|
||||
export const JBOOGX_FEATURED: InstagramPost[] = [
|
||||
igPost("reel/DZAO9_LBFw3", "Reel by @jboogxcreative, May 31, 2026"),
|
||||
igPost("reel/DXMXQZmBAqW", "Reel by @jboogxcreative, Apr 16, 2026"),
|
||||
igPost("reel/Dcvs75lhrn8", "Reel by @jboogxcreative, Sep 1, 2026"),
|
||||
];
|
||||
|
||||
export const JBOOGX_FEED: InstagramPost[] = [
|
||||
igPost("reel/Dcn-hmHh3p-", "Reel by @jboogxcreative, Aug 29, 2026"),
|
||||
igPost("reel/DcdrZI1hauI", "Reel by @jboogxcreative with @askvenice, Aug 25, 2026"),
|
||||
igPost("reel/DclZyHHBZYW", "Reel by @jboogxcreative, Aug 25, 2026"),
|
||||
igPost("reel/DcbGmARh2nL", "Reel by @jboogxcreative with @askvenice, Aug 24, 2026"),
|
||||
];
|
||||
|
||||
// Names straight from his Instagram bio, presented as his credits, not ours.
|
||||
export const JBOOGX_CREDITS: string[] = [
|
||||
"Will Smith",
|
||||
"Coachella",
|
||||
"Wu-Tang Clan",
|
||||
"Anyma",
|
||||
"Grimes",
|
||||
];
|
||||
|
||||
export const JBOOGX_CRAFT: Tip[] = [
|
||||
{
|
||||
title: "Long prompts, on purpose",
|
||||
body: "These aren't one-liners. A finished prompt reads like a shot list: subject, wardrobe, lighting, lens, camera move. Every beat is written out so the model has nothing left to guess.",
|
||||
},
|
||||
{
|
||||
title: "Seedance 2.5 takes direction",
|
||||
body: "All that writing pays off: @ tags for style, precise camera moves, multi-shot sequences that keep characters consistent, and dialogue, music, and effects rendered in sync with the picture.",
|
||||
},
|
||||
{
|
||||
title: "Rewrite, re-roll, refine",
|
||||
body: "Generations land in a working library. Tweak a line, re-run the shot, keep what works. Taste is a loop, not a lottery.",
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,130 @@
|
||||
import { readdirSync, readFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { parseFrontmatter } from "./markdown";
|
||||
|
||||
// Markdown content loaders, ported from @storyteller/markdown-content.
|
||||
//
|
||||
// Platform difference: the Vite site pulled these files in with
|
||||
// `import.meta.glob(..., { eager: true })`, which bundles every article into
|
||||
// the client. Next has no glob import; instead these run on the server (build
|
||||
// time for the static pages, via generateStaticParams) and read the files
|
||||
// straight from disk. SERVER ONLY — never import this module from a
|
||||
// "use client" component; pass the resulting plain objects down as props.
|
||||
|
||||
const CONTENT_ROOT = join(process.cwd(), "src", "content");
|
||||
|
||||
export type NewsPost = {
|
||||
slug: string;
|
||||
title: string;
|
||||
description: string;
|
||||
date: string;
|
||||
body: string;
|
||||
thumbnail?: string;
|
||||
};
|
||||
|
||||
export type FaqItem = {
|
||||
slug: string;
|
||||
title: string;
|
||||
description: string;
|
||||
body: string;
|
||||
isPublished: boolean;
|
||||
thumbnail?: string;
|
||||
};
|
||||
|
||||
export type TutorialItem = {
|
||||
slug: string;
|
||||
title: string;
|
||||
abstract: string;
|
||||
category?: string;
|
||||
thumbnail?: string;
|
||||
videoUrl?: string;
|
||||
youtubeId?: string;
|
||||
aliases: string[];
|
||||
body: string;
|
||||
isPublished: boolean;
|
||||
};
|
||||
|
||||
export function getNewsPosts(): NewsPost[] {
|
||||
return readCollection("news")
|
||||
.map(({ slug, frontmatter, body }) => ({
|
||||
slug,
|
||||
title: frontmatter.title || slug,
|
||||
description: frontmatter.abstract || "",
|
||||
date: frontmatter.date || "",
|
||||
thumbnail: frontmatter.thumbnail,
|
||||
body,
|
||||
}))
|
||||
.sort((a, b) => {
|
||||
if (a.date && b.date) {
|
||||
return new Date(b.date).getTime() - new Date(a.date).getTime();
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
export function getNewsPostBySlug(slug: string): NewsPost | null {
|
||||
return getNewsPosts().find((post) => post.slug === slug) ?? null;
|
||||
}
|
||||
|
||||
export function getFaqItems(): FaqItem[] {
|
||||
return readCollection("faq")
|
||||
.map(({ slug, frontmatter, body }) => ({
|
||||
slug,
|
||||
title: frontmatter.title || slug,
|
||||
description: frontmatter.abstract || "",
|
||||
body,
|
||||
isPublished: frontmatter.isPublished !== "false",
|
||||
thumbnail: frontmatter.thumbnail,
|
||||
}))
|
||||
.filter((item) => item.isPublished);
|
||||
}
|
||||
|
||||
export function getFaqItemBySlug(slug: string): FaqItem | null {
|
||||
return getFaqItems().find((item) => item.slug === slug) ?? null;
|
||||
}
|
||||
|
||||
export function getTutorialItems(): TutorialItem[] {
|
||||
return readCollection("tutorials")
|
||||
.map(({ slug, frontmatter, body }) => ({
|
||||
slug: (frontmatter.slug || slug).trim().toLowerCase(),
|
||||
title: frontmatter.title || slug,
|
||||
abstract: frontmatter.abstract || "",
|
||||
category: frontmatter.category,
|
||||
thumbnail: frontmatter.thumbnail,
|
||||
videoUrl: frontmatter.videoUrl,
|
||||
youtubeId: frontmatter.youtubeId,
|
||||
aliases: frontmatter.aliases
|
||||
? frontmatter.aliases
|
||||
.split(/[\s,]+/)
|
||||
.map((s) => s.trim().toLowerCase())
|
||||
.filter(Boolean)
|
||||
: [],
|
||||
body,
|
||||
isPublished: frontmatter.isPublished !== "false",
|
||||
}))
|
||||
.filter((item) => item.isPublished);
|
||||
}
|
||||
|
||||
export function getTutorialItemBySlug(slug: string): TutorialItem | null {
|
||||
const wanted = slug.toLowerCase();
|
||||
return (
|
||||
getTutorialItems().find(
|
||||
(item) => item.slug === wanted || item.aliases.includes(wanted),
|
||||
) ?? null
|
||||
);
|
||||
}
|
||||
|
||||
// Reads every .md file in a content folder, sorted by filename so output is
|
||||
// deterministic across platforms (readdir order is not guaranteed).
|
||||
function readCollection(folder: "news" | "faq" | "tutorials") {
|
||||
const dir = join(CONTENT_ROOT, folder);
|
||||
return readdirSync(dir)
|
||||
.filter((file) => file.endsWith(".md"))
|
||||
.sort()
|
||||
.map((file) => {
|
||||
const { frontmatter, body } = parseFrontmatter(
|
||||
readFileSync(join(dir, file), "utf8"),
|
||||
);
|
||||
return { slug: file.replace(/\.md$/, ""), frontmatter, body };
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
// Desktop installer links, ported from the Vite site's
|
||||
// config/github_download_links.ts. Keep previous releases in the history
|
||||
// when adding new downloads, newest first.
|
||||
const DOWNLOAD_HISTORY = {
|
||||
"0.37.0": githubDownloadLinks("0.37.0"),
|
||||
"0.32.0": githubDownloadLinks("0.32.0"),
|
||||
"0.28.0": githubDownloadLinks("0.28.0"),
|
||||
"0.23.0": githubDownloadLinks("0.23.0"), // 2026-04-03 Characters + prompt box
|
||||
"0.20.0": githubDownloadLinks("0.20.0"), // 2026-03-24 Reprompt, performance
|
||||
"0.14.0": githubDownloadLinks("0.14.0"), // 2026-03-10 WorldLabs native, Angles
|
||||
"0.11.0": githubDownloadLinks("0.11.0"), // 2026-03-02 Credits accounting
|
||||
"0.7.0": githubDownloadLinks("0.7.0"), // 2026-02-23 Seedance
|
||||
} as const;
|
||||
|
||||
// To roll back either platform, select a version from DOWNLOAD_HISTORY.
|
||||
const WINDOWS_VERSION: keyof typeof DOWNLOAD_HISTORY = "0.37.0";
|
||||
const MAC_VERSION: keyof typeof DOWNLOAD_HISTORY = "0.37.0";
|
||||
|
||||
// Set false to temporarily hide desktop downloads throughout the website.
|
||||
export const DOWNLOADS_ENABLED = true;
|
||||
|
||||
export const DOWNLOAD_LINKS = {
|
||||
WINDOWS: DOWNLOAD_HISTORY[WINDOWS_VERSION].WINDOWS,
|
||||
MACOS: DOWNLOAD_HISTORY[MAC_VERSION].MACOS,
|
||||
} as const;
|
||||
|
||||
export const DOWNLOAD_VERSIONS = {
|
||||
WINDOWS: WINDOWS_VERSION,
|
||||
MACOS: MAC_VERSION,
|
||||
} as const;
|
||||
|
||||
function githubDownloadLinks(version: string) {
|
||||
const baseUrl = `https://github.com/storytold/artcraft/releases/download/artcraft-v${version}`;
|
||||
return {
|
||||
WINDOWS: `${baseUrl}/ArtCraft_${version}_x64-setup.exe`,
|
||||
MACOS: `${baseUrl}/ArtCraft_${version}_universal.dmg`,
|
||||
} as const;
|
||||
}
|
||||
@@ -77,12 +77,12 @@ export const HERO_VIDEO_URL =
|
||||
// wall adapts to any count and mix of aspects, so the count below is the
|
||||
// only thing to change when clips are added or dropped.
|
||||
//
|
||||
// Sources live on the FakeYou CDN as /videos/001.mp4 .. /videos/017.mp4 and
|
||||
// Sources live on the FakeYou CDN as /videos/001.mp4 .. /videos/035.mp4 and
|
||||
// reach the page through the same-origin /cdn-media proxy, since WebGL video
|
||||
// textures require CORS-clean sources. When more clips are uploaded, raising
|
||||
// this count is the only change needed — every card/clip ratio works (cards
|
||||
// share clip textures; repeats are spread by least-recently-shown rebirth).
|
||||
const SHOWCASE_CLIP_COUNT = 17;
|
||||
const SHOWCASE_CLIP_COUNT = 35;
|
||||
|
||||
export type SeedanceClip = {
|
||||
src: string;
|
||||
@@ -108,12 +108,49 @@ export type RulerSection = {
|
||||
|
||||
export const HERO_SECTION_ID = "hero";
|
||||
|
||||
// ORDER MATTERS: the ruler assumes anchors increase with roster index, and
|
||||
// each page mounts only its own ids (the rest are skipped), so one roster
|
||||
// serves the whole site as long as every page's sections appear here in
|
||||
// the order they appear in that page's DOM. Page-header ids (01) come
|
||||
// before the interior section ids they precede.
|
||||
export const RULER_SECTIONS: RulerSection[] = [
|
||||
{ id: HERO_SECTION_ID, label: "ARTCRAFT" },
|
||||
// Campaign page heroes, then their own sections, then the landing
|
||||
// sections they reuse (features/ownership/made-with/start).
|
||||
{ id: "seedance-2", label: "SEEDANCE 2.0" },
|
||||
{ id: "seedance-2-5", label: "SEEDANCE 2.5" },
|
||||
{ id: "minimax-h3", label: "MINIMAX H3" },
|
||||
{ id: "creator", label: "SPOTLIGHT" },
|
||||
{ id: "overview", label: "OVERVIEW" },
|
||||
{ id: "highlights", label: "HIGHLIGHTS" },
|
||||
{ id: "examples", label: "EXAMPLES" },
|
||||
{ id: "tips", label: "PROMPT TIPS" },
|
||||
{ id: "campaign-faq", label: "FAQ" },
|
||||
{ id: "manifesto", label: "MANIFESTO" },
|
||||
{ id: "the-work", label: "THE WORK" },
|
||||
{ id: "craft", label: "THE CRAFT" },
|
||||
{ id: "features", label: "FEATURES" },
|
||||
{ id: "ownership", label: "OWNERSHIP" },
|
||||
{ id: "reasons", label: "WHY ARTCRAFT" },
|
||||
{ id: "made-with", label: "COMMUNITY" },
|
||||
{ id: "community", label: "JOIN US" },
|
||||
{ id: "start", label: "GET STARTED" },
|
||||
// Interior marketing pages.
|
||||
{ id: "pricing", label: "PRICING" },
|
||||
{ id: "download", label: "DOWNLOAD" },
|
||||
{ id: "tutorials", label: "TUTORIALS" },
|
||||
{ id: "news", label: "NEWS" },
|
||||
{ id: "faq", label: "FAQ" },
|
||||
{ id: "support", label: "SUPPORT" },
|
||||
{ id: "press-kit", label: "PRESS KIT" },
|
||||
{ id: "beta", label: "BETA" },
|
||||
{ id: "plans", label: "PLANS" },
|
||||
{ id: "enterprise", label: "ENTERPRISE" },
|
||||
{ id: "credits", label: "CREDITS" },
|
||||
{ id: "platforms", label: "PLATFORMS" },
|
||||
{ id: "quick-start", label: "QUICK START" },
|
||||
{ id: "articles", label: "ARTICLES" },
|
||||
{ id: "contact", label: "CONTACT" },
|
||||
];
|
||||
|
||||
export const MADE_WITH_YOUTUBE_IDS = [
|
||||
|
||||
@@ -0,0 +1,240 @@
|
||||
// Minimal markdown renderer, ported from @storyteller/markdown-content. It
|
||||
// covers exactly the subset our content files use (ATX headings, paragraphs,
|
||||
// "- " lists, blockquotes, bold/italic, links, images, and the @youtube /
|
||||
// @video / @loop_autoplay / @image directives). Output is styled by the
|
||||
// `.article-content` rules in globals.css — no inline styling here, so the
|
||||
// same markup renders correctly in both themes.
|
||||
|
||||
export type Frontmatter = Record<string, string>;
|
||||
|
||||
export type FrontmatterResult = {
|
||||
frontmatter: Frontmatter;
|
||||
body: string;
|
||||
};
|
||||
|
||||
const VIDEO_EXTENSIONS = [".mp4", ".webm", ".ogg", ".mov", ".m4v", ".avi"];
|
||||
|
||||
const YOUTUBE_PATTERNS = [
|
||||
/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/|youtube\.com\/v\/)([a-zA-Z0-9_-]{11})/,
|
||||
/youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/,
|
||||
];
|
||||
|
||||
export function parseFrontmatter(raw: string): FrontmatterResult {
|
||||
const text = raw.replace(/\r\n/g, "\n");
|
||||
if (!text.startsWith("---\n")) {
|
||||
return { frontmatter: {}, body: text };
|
||||
}
|
||||
const end = text.indexOf("\n---\n", 4);
|
||||
if (end === -1) return { frontmatter: {}, body: text };
|
||||
const header = text.slice(4, end);
|
||||
const body = text.slice(end + 5);
|
||||
const frontmatter: Frontmatter = {};
|
||||
for (const line of header.split("\n")) {
|
||||
const idx = line.indexOf(":");
|
||||
if (idx === -1) continue;
|
||||
const key = line.slice(0, idx).trim();
|
||||
const value = line
|
||||
.slice(idx + 1)
|
||||
.trim()
|
||||
.replace(/^"|^'|"$|'$/g, "");
|
||||
if (key) frontmatter[key] = value;
|
||||
}
|
||||
return { frontmatter, body };
|
||||
}
|
||||
|
||||
// Extracts a YouTube video id from a bare id or any common YouTube URL form.
|
||||
export function extractYouTubeId(input: string): string | null {
|
||||
const trimmed = input.trim();
|
||||
if (/^[a-zA-Z0-9_-]{11}$/.test(trimmed)) return trimmed;
|
||||
for (const pattern of YOUTUBE_PATTERNS) {
|
||||
const match = trimmed.match(pattern);
|
||||
if (match) return match[1];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export function markdownToHtml(markdown: string, basePath = ""): string {
|
||||
const lines = markdown.replace(/\r\n/g, "\n").split("\n");
|
||||
const html: string[] = [];
|
||||
let inList = false;
|
||||
let blockquoteLines: string[] = [];
|
||||
let paragraphLines: string[] = [];
|
||||
|
||||
const isAbsolute = (url: string) => /^(?:[a-z]+:)?\/\//i.test(url);
|
||||
const normalizeLink = (url: string): string => {
|
||||
if (!basePath || !url) return url;
|
||||
if (url.startsWith("#") || url.startsWith("/") || isAbsolute(url)) {
|
||||
return url;
|
||||
}
|
||||
return basePath + url.replace(/^\.\.?\//, "");
|
||||
};
|
||||
|
||||
const isVideoUrl = (url: string) => {
|
||||
const lower = url.toLowerCase().split("?")[0];
|
||||
return VIDEO_EXTENSIONS.some((ext) => lower.endsWith(ext));
|
||||
};
|
||||
|
||||
const videoMimeType = (url: string) => {
|
||||
const lower = url.toLowerCase().split("?")[0];
|
||||
if (lower.endsWith(".webm")) return "webm";
|
||||
if (lower.endsWith(".ogg")) return "ogg";
|
||||
return "mp4";
|
||||
};
|
||||
|
||||
const escapeAttr = (value: string) => value.replace(/"/g, """);
|
||||
|
||||
const renderYouTube = (videoId: string) =>
|
||||
`<div class="video-embed youtube-embed"><iframe src="https://www.youtube-nocookie.com/embed/${videoId}" loading="lazy" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></div>`;
|
||||
|
||||
const renderVideo = (url: string, loop: boolean) => {
|
||||
const src = escapeAttr(normalizeLink(url));
|
||||
const attrs = loop
|
||||
? "autoplay loop muted playsinline"
|
||||
: 'controls preload="metadata"';
|
||||
return `<div class="video-embed"><video ${attrs}><source src="${src}" type="video/${videoMimeType(url)}">Your browser does not support the video tag.</video></div>`;
|
||||
};
|
||||
|
||||
// Optional "WIDTHxHEIGHT" / "WIDTH" size suffix (from ``
|
||||
// or `@image(url, 300)`); bare numbers are pixels.
|
||||
const renderImage = (url: string, alt = "", sizeStr = "") => {
|
||||
const src = escapeAttr(normalizeLink(url.trim()));
|
||||
const [width, height] = sizeStr.toLowerCase().split("x");
|
||||
const toCss = (v?: string) =>
|
||||
v ? (v.endsWith("%") || v.endsWith("px") ? v : `${v}px`) : undefined;
|
||||
const style = [
|
||||
toCss(width) && `width:${toCss(width)}`,
|
||||
toCss(height) && `height:${toCss(height)}`,
|
||||
width && width !== "100%" && "margin-left:auto;margin-right:auto",
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(";");
|
||||
return `<img src="${src}" alt="${escapeAttr(alt)}" loading="lazy"${style ? ` style="${style}"` : ""} />`;
|
||||
};
|
||||
|
||||
const renderInline = (text: string): string => {
|
||||
let out = text.replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>");
|
||||
out = out.replace(/\*([^*]+)\*/g, "<em>$1</em>");
|
||||
out = out.replace(/!\[([^\]]*)\]\(([^)]+)\)/g, (_m, alt, urlAndSize) => {
|
||||
const [url, size] = String(urlAndSize).split("|");
|
||||
const safeUrl = String(url ?? "").trim();
|
||||
return isVideoUrl(safeUrl)
|
||||
? renderVideo(safeUrl, false)
|
||||
: renderImage(safeUrl, alt, size ?? "");
|
||||
});
|
||||
out = out.replace(/\[([^\]]+)\]\(([^)]+)\)/g, (_m, label, url) => {
|
||||
const href = escapeAttr(normalizeLink(String(url ?? "")));
|
||||
const external = isAbsolute(href);
|
||||
return `<a href="${href}"${external ? ' target="_blank" rel="noopener noreferrer"' : ""}>${escapeAttr(String(label ?? ""))}</a>`;
|
||||
});
|
||||
return out;
|
||||
};
|
||||
|
||||
const closeList = () => {
|
||||
if (inList) {
|
||||
html.push("</ul>");
|
||||
inList = false;
|
||||
}
|
||||
};
|
||||
const flushParagraph = () => {
|
||||
if (paragraphLines.length) {
|
||||
html.push(`<p>${paragraphLines.map(renderInline).join(" ")}</p>`);
|
||||
paragraphLines = [];
|
||||
}
|
||||
};
|
||||
const flushBlockquote = () => {
|
||||
if (blockquoteLines.length) {
|
||||
html.push(`<blockquote>${renderInline(blockquoteLines.join(" "))}</blockquote>`);
|
||||
blockquoteLines = [];
|
||||
}
|
||||
};
|
||||
const startBlock = () => {
|
||||
flushParagraph();
|
||||
closeList();
|
||||
};
|
||||
|
||||
for (const raw of lines) {
|
||||
const line = raw.trimEnd();
|
||||
const ltrim = line.replace(/^\s+/, "");
|
||||
|
||||
const blockquote = line.match(/^>\s?(.*)$/);
|
||||
if (blockquote) {
|
||||
startBlock();
|
||||
blockquoteLines.push(blockquote[1]);
|
||||
continue;
|
||||
}
|
||||
flushBlockquote();
|
||||
|
||||
const youtube = ltrim.match(/^@youtube\(([^)]+)\)\s*$/);
|
||||
if (youtube) {
|
||||
startBlock();
|
||||
const id = extractYouTubeId(youtube[1]);
|
||||
html.push(id ? renderYouTube(id) : `<p>Invalid YouTube video: ${youtube[1]}</p>`);
|
||||
continue;
|
||||
}
|
||||
|
||||
const video = ltrim.match(/^@video\(([^)]+)\)\s*$/);
|
||||
if (video) {
|
||||
startBlock();
|
||||
html.push(renderVideo(video[1], false));
|
||||
continue;
|
||||
}
|
||||
|
||||
const loop = ltrim.match(/^@loop_autoplay\(([^)]+)\)\s*$/);
|
||||
if (loop) {
|
||||
startBlock();
|
||||
html.push(renderVideo(loop[1], true));
|
||||
continue;
|
||||
}
|
||||
|
||||
const image = ltrim.match(/^@(image|gif)\(([^,)]+)(?:,\s*([^)]+))?\)\s*$/);
|
||||
if (image) {
|
||||
startBlock();
|
||||
html.push(renderImage(image[2], "", image[3]?.trim() ?? ""));
|
||||
continue;
|
||||
}
|
||||
|
||||
const heading = ltrim.match(/^(#{1,6})\s*(.*)$/);
|
||||
if (heading) {
|
||||
startBlock();
|
||||
const level = Math.min(heading[1].length, 6);
|
||||
html.push(`<h${level}>${renderInline(heading[2] ?? "")}</h${level}>`);
|
||||
continue;
|
||||
}
|
||||
|
||||
const standaloneImage = line.match(/^!\[([^\]]*)\]\(([^)]+)\)\s*$/);
|
||||
if (standaloneImage) {
|
||||
startBlock();
|
||||
const [url, size] = standaloneImage[2].split("|");
|
||||
const safeUrl = String(url ?? "").trim();
|
||||
html.push(
|
||||
isVideoUrl(safeUrl)
|
||||
? renderVideo(safeUrl, false)
|
||||
: renderImage(safeUrl, standaloneImage[1] ?? "", size ?? ""),
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.startsWith("- ")) {
|
||||
flushParagraph();
|
||||
if (!inList) {
|
||||
inList = true;
|
||||
html.push("<ul>");
|
||||
}
|
||||
html.push(`<li>${renderInline(line.slice(2))}</li>`);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.trim() === "") {
|
||||
startBlock();
|
||||
continue;
|
||||
}
|
||||
|
||||
closeList();
|
||||
paragraphLines.push(line);
|
||||
}
|
||||
|
||||
flushParagraph();
|
||||
flushBlockquote();
|
||||
closeList();
|
||||
return html.join("\n");
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
// Press kit assets, ported from the Vite site. To add one, copy an existing
|
||||
// entry:
|
||||
// - type: "video" | "image" | "embed" | "link"
|
||||
// - thumbnail: site-relative image path (served via mediaUrl) or absolute URL
|
||||
// - embedUrl: YouTube embed URL for type "embed"
|
||||
// - videoUrl: direct video URL for type "video" (defaults to downloadUrl)
|
||||
// - downloadUrl: the downloadable file (e.g. Cloudflare R2 URL)
|
||||
// - containThumbnail: letterbox the thumbnail with padding (good for logos)
|
||||
|
||||
export type PressKitAssetType = "video" | "image" | "embed" | "link";
|
||||
|
||||
export type PressKitAsset = {
|
||||
type: PressKitAssetType;
|
||||
title: string;
|
||||
description?: string;
|
||||
thumbnail?: string;
|
||||
embedUrl?: string;
|
||||
videoUrl?: string;
|
||||
downloadUrl: string;
|
||||
downloadLabel?: string;
|
||||
fileSize?: string;
|
||||
containThumbnail?: boolean;
|
||||
};
|
||||
|
||||
export type PressKitCategory = {
|
||||
name: string;
|
||||
description?: string;
|
||||
assets: PressKitAsset[];
|
||||
};
|
||||
|
||||
export const PRESS_CONTACT_PHONE = { display: "(678) 744-6080", tel: "678-744-6080" };
|
||||
|
||||
const R2 = "https://pub-f7441936e5804042a1ea2bdc92e4dc71.r2.dev";
|
||||
|
||||
export const PRESS_KIT_CATEGORIES: PressKitCategory[] = [
|
||||
{
|
||||
name: "Promotional videos",
|
||||
description: "High-quality promotional videos for press coverage",
|
||||
assets: [
|
||||
{
|
||||
type: "video",
|
||||
title: "ArtCraft Commercial",
|
||||
description: "Official ArtCraft commercial showcasing the app",
|
||||
thumbnail: "/images/video-thumbnails/artcraft-commercial.png",
|
||||
downloadUrl: `${R2}/artcraft_website_v2.mp4`,
|
||||
fileSize: "125 MB",
|
||||
},
|
||||
{
|
||||
type: "video",
|
||||
title: "ArtCraft 3D Sci-Fi Animation",
|
||||
description: "3D pre-viz workflow demonstrates precision control",
|
||||
thumbnail: "/images/video-thumbnails/artcraft-sci-fi.png",
|
||||
downloadUrl: `${R2}/ArtCraft_SciFi_Horror.mp4`,
|
||||
fileSize: "14.5 MB",
|
||||
},
|
||||
{
|
||||
type: "video",
|
||||
title: "ArtCraft x WorldLabs Pirate Demo",
|
||||
description: "ArtCraft with Gaussian splats can be used to quickly create sets",
|
||||
thumbnail: "/images/video-thumbnails/artcraft-pirate.png",
|
||||
downloadUrl: `${R2}/ArtCraft_World_Pirate.mp4`,
|
||||
fileSize: "88.5 MB",
|
||||
},
|
||||
{
|
||||
type: "video",
|
||||
title: "ArtCraft Posing and Blocking",
|
||||
description: "More examples of detailed posing and blocking in 3D",
|
||||
thumbnail: "/images/video-thumbnails/artcraft-knight-pose.png",
|
||||
downloadUrl: `${R2}/ArtCraft_Pose_Ad.mp4`,
|
||||
fileSize: "60.6 MB",
|
||||
},
|
||||
{
|
||||
type: "video",
|
||||
title: "ArtCraft x WorldLabs Ad",
|
||||
description: "Several shots crafted using WorldLabs' advanced Marble model",
|
||||
thumbnail: "/images/video-thumbnails/artcraft-worldlabs-ad.png",
|
||||
downloadUrl: `${R2}/ArtCraft_WorldLabs_Ad.mp4`,
|
||||
fileSize: "23.7 MB",
|
||||
},
|
||||
{
|
||||
type: "embed",
|
||||
title: "Grinch: The Anime",
|
||||
description: "Made using ArtCraft",
|
||||
thumbnail: "https://img.youtube.com/vi/oqoCWdOwr2U/maxresdefault.jpg",
|
||||
embedUrl: "https://www.youtube-nocookie.com/embed/oqoCWdOwr2U",
|
||||
downloadUrl: `${R2}/ArtCraft_Grinch_Anime.mp4`,
|
||||
fileSize: "56.3 MB",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Logos & branding",
|
||||
description: "Official ArtCraft logos and branding assets",
|
||||
assets: [
|
||||
{
|
||||
type: "image",
|
||||
title: "ArtCraft Logo (PNG)",
|
||||
thumbnail: "/images/artcraft-logo.png",
|
||||
downloadUrl: "/images/artcraft-logo.png",
|
||||
containThumbnail: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Screenshots & media",
|
||||
description: "High-resolution screenshots and promotional images",
|
||||
assets: [],
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,137 @@
|
||||
// Subscription plan roster, ported from @storyteller/subscription and the
|
||||
// pricing table's promo math. Prices and features are the approved
|
||||
// marketing numbers — keep them in sync with the webapp's plan data.
|
||||
//
|
||||
// Checkout itself (Stripe, session detection, plan switching) lives in the
|
||||
// webapp; every plan CTA here links there.
|
||||
|
||||
export type BillingCadence = "monthly" | "yearly";
|
||||
|
||||
export type PlanFeature = {
|
||||
text: string;
|
||||
seedanceOnly?: boolean;
|
||||
};
|
||||
|
||||
// Per-plan color identity (green/purple/orange/blue from the original
|
||||
// table). Each maps to a `.plan-*` class in globals.css that sets the
|
||||
// `--plan` / `--plan-ink` tokens for both themes.
|
||||
export type PlanColor = "basic" | "pro" | "max" | "enterprise";
|
||||
|
||||
export type SubscriptionPlan = {
|
||||
slug: string;
|
||||
name: string;
|
||||
tagline: string;
|
||||
color: PlanColor;
|
||||
monthlyPrice: number;
|
||||
yearlyPrice: number;
|
||||
features: PlanFeature[];
|
||||
/** Callout tab rendered above the card. */
|
||||
highlight?: "Most popular" | "Best value";
|
||||
};
|
||||
|
||||
// Every plan is shown at this single discount off a higher "before" price, on
|
||||
// BOTH cadences. The charged prices are unchanged — this only drives the
|
||||
// "% off" pills, the crossed-out anchor, and the banner copy.
|
||||
export const PROMO_PCT = 20;
|
||||
|
||||
export const CONTACT_EMAIL = "hello@storyteller.ai";
|
||||
|
||||
export const SUBSCRIPTION_PLANS: SubscriptionPlan[] = [
|
||||
{
|
||||
slug: "artcraft_basic",
|
||||
name: "Basic",
|
||||
tagline: "For getting started",
|
||||
color: "basic",
|
||||
monthlyPrice: 10,
|
||||
yearlyPrice: 96,
|
||||
features: [
|
||||
{ text: "1,000 credits / month" },
|
||||
{ text: "~250 Nano Banana images" },
|
||||
{ text: "~67 Nano Banana Pro images" },
|
||||
{ text: "~33 Nano Banana Pro 4K images" },
|
||||
{ text: "~200 GPT-Image-1.5 images" },
|
||||
{ text: "~63 seconds Seedance 2.0 video", seedanceOnly: true },
|
||||
{ text: "~45 seconds Kling 3.0 Pro video" },
|
||||
{ text: "You own ArtCraft forever" },
|
||||
],
|
||||
},
|
||||
{
|
||||
slug: "artcraft_pro",
|
||||
name: "Pro",
|
||||
tagline: "For serious creators",
|
||||
color: "pro",
|
||||
monthlyPrice: 35,
|
||||
yearlyPrice: 336,
|
||||
highlight: "Most popular",
|
||||
features: [
|
||||
{ text: "3,750 credits / month" },
|
||||
{ text: "~938 Nano Banana images" },
|
||||
{ text: "~250 Nano Banana Pro images" },
|
||||
{ text: "~125 Nano Banana Pro 4K images" },
|
||||
{ text: "~750 GPT-Image-1.5 images" },
|
||||
{ text: "~234 seconds Seedance 2.0 video", seedanceOnly: true },
|
||||
{ text: "~167 seconds Kling 3.0 Pro video" },
|
||||
{ text: "You own ArtCraft forever" },
|
||||
],
|
||||
},
|
||||
{
|
||||
slug: "artcraft_max",
|
||||
name: "Max",
|
||||
tagline: "For studios and power users",
|
||||
color: "max",
|
||||
monthlyPrice: 60,
|
||||
yearlyPrice: 576,
|
||||
highlight: "Best value",
|
||||
features: [
|
||||
{ text: "6,600 credits / month" },
|
||||
{ text: "~1,650 Nano Banana images" },
|
||||
{ text: "~440 Nano Banana Pro images" },
|
||||
{ text: "~220 Nano Banana Pro 4K images" },
|
||||
{ text: "~1,320 GPT-Image-1.5 images" },
|
||||
{ text: "~413 seconds Seedance 2.0 video", seedanceOnly: true },
|
||||
{ text: "~295 seconds Kling 3.0 Pro video" },
|
||||
{ text: "You own ArtCraft forever" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const ENTERPRISE_FEATURES = [
|
||||
"Bespoke credit allocation",
|
||||
"Secure models",
|
||||
"Support SLAs",
|
||||
"Custom integrations",
|
||||
];
|
||||
|
||||
// Reassurance strip under the plan grid. Only claims the product backs:
|
||||
// Stripe checkout/portal, cancel-anytime, Discord credit refunds, and the
|
||||
// open-source ownership pitch.
|
||||
export const TRUST_POINTS = [
|
||||
"Cancel anytime",
|
||||
"Secure checkout via Stripe",
|
||||
"Credits refunded if a generation fails",
|
||||
"Open source — yours forever",
|
||||
];
|
||||
|
||||
export type PlanPricing = {
|
||||
/** Displayed per-month price for the cadence, whole dollars. */
|
||||
current: number;
|
||||
/** Crossed-out "before" price the discount is applied to, whole dollars. */
|
||||
basePrice: number;
|
||||
/** Whole-dollar saving per year on the yearly cadence vs paying monthly. */
|
||||
yearlySavings: number;
|
||||
};
|
||||
|
||||
// The displayed price is the real charge; the anchor is current ÷ (1 − promo),
|
||||
// rounded so no price ever shows cents.
|
||||
export function planPricing(
|
||||
plan: SubscriptionPlan,
|
||||
cadence: BillingCadence,
|
||||
): PlanPricing {
|
||||
const current =
|
||||
cadence === "yearly" ? Math.round(plan.yearlyPrice / 12) : plan.monthlyPrice;
|
||||
return {
|
||||
current,
|
||||
basePrice: Math.round(current / (1 - PROMO_PCT / 100)),
|
||||
yearlySavings: plan.monthlyPrice * 12 - plan.yearlyPrice,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
// Landing-context tracking, ported from @storyteller/common. Persists the
|
||||
// referral username (?u=), referral code (?r=), landing URL, and referrer
|
||||
// to apex-domain cookies (shared across getartcraft.com subdomains) plus
|
||||
// localStorage as a fallback, so signup attribution survives the hop from
|
||||
// the marketing site to app.getartcraft.com. BROWSER ONLY.
|
||||
//
|
||||
// First visit wins for landing URL / referrer; latest visit wins for
|
||||
// referral attribution so a fresh share link gets credit.
|
||||
|
||||
const REFERRAL_USERNAME_KEY = "referral_username";
|
||||
const REFERRAL_CODE_KEY = "referral_code";
|
||||
const LANDING_URL_KEY = "referral_landing_url";
|
||||
const REFERRER_KEY = "referral_referrer";
|
||||
|
||||
const URL_MAX_LENGTH = 1024;
|
||||
const REFERRAL_CODE_MAX_LENGTH = 30;
|
||||
const COOKIE_MAX_AGE_DAYS = 90;
|
||||
const APEX_DOMAINS = ["getartcraft.com"];
|
||||
|
||||
export function captureLandingContext(): void {
|
||||
try {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
|
||||
const referralUsername = sanitizeReferralUsername(params.get("u") ?? "");
|
||||
if (referralUsername) persist(REFERRAL_USERNAME_KEY, referralUsername);
|
||||
|
||||
const referralCode = sanitizeReferralCode(params.get("r") ?? "");
|
||||
if (referralCode) persist(REFERRAL_CODE_KEY, referralCode);
|
||||
|
||||
const landingUrl = sanitizeUrl(window.location.href);
|
||||
if (landingUrl && !getLandingUrl()) persist(LANDING_URL_KEY, landingUrl);
|
||||
|
||||
const referrer = sanitizeUrl(document.referrer);
|
||||
if (referrer && !getReferrer()) persist(REFERRER_KEY, referrer);
|
||||
} catch {
|
||||
// Storage or URL APIs unavailable; attribution is best-effort.
|
||||
}
|
||||
}
|
||||
|
||||
export function getReferralUsername(): string | undefined {
|
||||
const stored = read(REFERRAL_USERNAME_KEY);
|
||||
return stored ? sanitizeReferralUsername(stored) || undefined : undefined;
|
||||
}
|
||||
|
||||
export function getReferralCode(): string | undefined {
|
||||
const stored = read(REFERRAL_CODE_KEY);
|
||||
return stored ? sanitizeReferralCode(stored) || undefined : undefined;
|
||||
}
|
||||
|
||||
export function getLandingUrl(): string | undefined {
|
||||
return read(LANDING_URL_KEY);
|
||||
}
|
||||
|
||||
export function getReferrer(): string | undefined {
|
||||
return read(REFERRER_KEY);
|
||||
}
|
||||
|
||||
function sanitizeReferralUsername(value: string): string {
|
||||
return value
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9_]/g, "")
|
||||
.slice(0, 20);
|
||||
}
|
||||
|
||||
function sanitizeReferralCode(value: string): string {
|
||||
return value
|
||||
.trim()
|
||||
.replace(/[^A-Za-z0-9._-]/g, "")
|
||||
.slice(0, REFERRAL_CODE_MAX_LENGTH);
|
||||
}
|
||||
|
||||
function sanitizeUrl(value: string | null | undefined): string | undefined {
|
||||
const trimmed = value?.trim();
|
||||
return trimmed ? trimmed.slice(0, URL_MAX_LENGTH) : undefined;
|
||||
}
|
||||
|
||||
function persist(key: string, value: string): void {
|
||||
const maxAge = COOKIE_MAX_AGE_DAYS * 24 * 60 * 60;
|
||||
const secure = window.location.protocol === "https:" ? "; Secure" : "";
|
||||
const hostname = window.location.hostname;
|
||||
const apex = APEX_DOMAINS.find(
|
||||
(d) => hostname === d || hostname.endsWith(`.${d}`),
|
||||
);
|
||||
const domain = apex ? `; Domain=.${apex}` : "";
|
||||
document.cookie = `${key}=${encodeURIComponent(value)}; Max-Age=${maxAge}; Path=/; SameSite=Lax${secure}${domain}`;
|
||||
try {
|
||||
localStorage.setItem(key, value);
|
||||
} catch {
|
||||
// Private mode; the cookie still covers us.
|
||||
}
|
||||
}
|
||||
|
||||
function read(key: string): string | undefined {
|
||||
const prefix = `${key}=`;
|
||||
const cookie = document.cookie
|
||||
.split("; ")
|
||||
.find((entry) => entry.startsWith(prefix));
|
||||
if (cookie) return decodeURIComponent(cookie.slice(prefix.length)) || undefined;
|
||||
try {
|
||||
return localStorage.getItem(key) ?? undefined;
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import {
|
||||
getSession,
|
||||
listActiveSubscriptions,
|
||||
type SessionUser,
|
||||
} from "./api";
|
||||
|
||||
// Session + ArtCraft subscription, fetched once per page load and shared by
|
||||
// every consumer (the plan grid and the credits cell both need it). Server
|
||||
// HTML renders the logged-out state; hydration upgrades it.
|
||||
export type Account = {
|
||||
/** null until the request resolves. */
|
||||
user: SessionUser | null;
|
||||
/** Active ArtCraft plan slug, or null when none / logged out. */
|
||||
activePlanSlug: string | null;
|
||||
loading: boolean;
|
||||
};
|
||||
|
||||
const LOGGED_OUT: Account = { user: null, activePlanSlug: null, loading: false };
|
||||
|
||||
let pending: Promise<Account> | null = null;
|
||||
|
||||
function loadAccount(): Promise<Account> {
|
||||
pending ??= (async () => {
|
||||
const session = await getSession();
|
||||
if (!session.success || !session.data.loggedIn || !session.data.user) {
|
||||
return LOGGED_OUT;
|
||||
}
|
||||
const subs = await listActiveSubscriptions();
|
||||
const artcraft = subs.success
|
||||
? subs.data.find((s) => s.namespace === "artcraft")
|
||||
: undefined;
|
||||
return {
|
||||
user: session.data.user,
|
||||
activePlanSlug: artcraft?.product_slug ?? null,
|
||||
loading: false,
|
||||
};
|
||||
})();
|
||||
return pending;
|
||||
}
|
||||
|
||||
export function useAccount(): Account {
|
||||
const [account, setAccount] = useState<Account>({
|
||||
user: null,
|
||||
activePlanSlug: null,
|
||||
loading: true,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
let live = true;
|
||||
loadAccount().then((a) => {
|
||||
if (live) setAccount(a);
|
||||
});
|
||||
return () => {
|
||||
live = false;
|
||||
};
|
||||
}, []);
|
||||
|
||||
return account;
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import { DOWNLOAD_LINKS, DOWNLOAD_VERSIONS } from "./download-links";
|
||||
|
||||
export type Platform = "windows" | "macos";
|
||||
|
||||
export type DetectedPlatform = {
|
||||
platform: Platform;
|
||||
mobile: boolean;
|
||||
/** "Mac" | "Windows" for CTA labels. */
|
||||
short: string;
|
||||
downloadUrl: string;
|
||||
version: string;
|
||||
};
|
||||
|
||||
// Platform detection runs after mount (there is no user agent on the
|
||||
// server), so the first paint is the neutral, complete page and the
|
||||
// "your system" affordances arrive with hydration. Ported from the Vite
|
||||
// site's react-device-detect usage; null until hydrated.
|
||||
export function useDetectedPlatform(): DetectedPlatform | null {
|
||||
const [state, setState] = useState<DetectedPlatform | null>(null);
|
||||
useEffect(() => {
|
||||
const ua = navigator.userAgent;
|
||||
const mobile = /Android|iPhone|iPad|iPod|Mobile/i.test(ua);
|
||||
const mac = /Macintosh|Mac OS X/i.test(ua);
|
||||
setState(
|
||||
mac
|
||||
? {
|
||||
platform: "macos",
|
||||
mobile,
|
||||
short: "Mac",
|
||||
downloadUrl: DOWNLOAD_LINKS.MACOS,
|
||||
version: DOWNLOAD_VERSIONS.MACOS,
|
||||
}
|
||||
: {
|
||||
platform: "windows",
|
||||
mobile,
|
||||
short: "Windows",
|
||||
downloadUrl: DOWNLOAD_LINKS.WINDOWS,
|
||||
version: DOWNLOAD_VERSIONS.WINDOWS,
|
||||
},
|
||||
);
|
||||
}, []);
|
||||
return state;
|
||||
}
|
||||
|
||||
const DOWNLOAD_INITIATED_KEY = "artcraft_download_initiated";
|
||||
|
||||
// Flag read by the webapp's onboarding so it knows the visitor came in
|
||||
// via a desktop download.
|
||||
export function markDownloadInitiated(): void {
|
||||
try {
|
||||
localStorage.setItem(DOWNLOAD_INITIATED_KEY, "true");
|
||||
} catch {
|
||||
// Storage unavailable; nothing depends on the flag.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Pre-flight WebGL probe, shared by every r3f canvas gate.
|
||||
//
|
||||
// When context creation fails (exhausted drivers, blocklisted GPU,
|
||||
// software-rendering-only environments), THREE.WebGLRenderer throws inside
|
||||
// r3f's async init — an unhandled REJECTION that render-phase error
|
||||
// boundaries (CanvasBoundary) never see. Probing before mounting the
|
||||
// <Canvas> keeps the failure on our terms: the canvas simply never mounts
|
||||
// and the page's static fallbacks stand. Result is cached — a probe is
|
||||
// cheap but not free, and the answer doesn't change within a page's life.
|
||||
let cached: boolean | null = null;
|
||||
|
||||
export function webglAvailable(): boolean {
|
||||
if (cached !== null) return cached;
|
||||
try {
|
||||
const canvas = document.createElement("canvas");
|
||||
const gl =
|
||||
canvas.getContext("webgl2") ??
|
||||
canvas.getContext("webgl") ??
|
||||
canvas.getContext("experimental-webgl");
|
||||
cached = !!gl;
|
||||
// Release the probe context immediately rather than waiting for GC —
|
||||
// browsers cap live contexts, and the real canvases want the slots.
|
||||
if (gl && "getExtension" in (gl as WebGLRenderingContext)) {
|
||||
(gl as WebGLRenderingContext)
|
||||
.getExtension("WEBGL_lose_context")
|
||||
?.loseContext();
|
||||
}
|
||||
} catch {
|
||||
cached = false;
|
||||
}
|
||||
return cached;
|
||||
}
|
||||
Reference in new issue
Block a user