Initial ttvfx.com site: Next.js static export

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-10-05 18:17:41 +02:00
commit 1f3af8f7f5
33 changed files with 8003 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+87
View File
@@ -0,0 +1,87 @@
@import "tailwindcss";
:root {
--ink: #0a0a0b;
--ink-2: #111113;
--line: rgb(255 255 255 / 0.1);
--fg: #ecebe8;
--muted: #8d8c88;
--accent: #e8572a;
}
@theme inline {
--color-ink: var(--ink);
--color-ink-2: var(--ink-2);
--color-line: var(--line);
--color-fg: var(--fg);
--color-muted: var(--muted);
--color-accent: var(--accent);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
--font-display: var(--font-josefin);
}
html {
color-scheme: dark;
scroll-behavior: smooth;
scroll-padding-top: 5rem;
}
body {
background: var(--ink);
color: var(--fg);
}
::selection {
background: var(--accent);
color: var(--ink);
}
/* Film grain overlay */
.grain::after {
content: "";
position: fixed;
inset: -50%;
pointer-events: none;
z-index: 60;
opacity: 0.07;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
0% { transform: translate(0, 0); }
25% { transform: translate(-3%, 2%); }
50% { transform: translate(2%, -3%); }
75% { transform: translate(-2%, -1%); }
100% { transform: translate(1%, 3%); }
}
/* Scroll reveal (toggled by <Reveal>) */
.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
opacity: 1;
transform: none;
}
@keyframes drift {
0%, 100% { transform: translate3d(-6%, -4%, 0) scale(1); }
50% { transform: translate3d(6%, 4%, 0) scale(1.15); }
}
.animate-drift { animation: drift 18s ease-in-out infinite; }
@keyframes scan {
from { transform: translateY(-10vh); }
to { transform: translateY(110vh); }
}
.animate-scan { animation: scan 7s linear infinite; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.grain::after, .animate-drift, .animate-scan { animation: none; }
.reveal { opacity: 1; transform: none; transition: none; }
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

+50
View File
@@ -0,0 +1,50 @@
import type { Metadata, Viewport } from "next";
import { Geist, Geist_Mono, Josefin_Sans } from "next/font/google";
import Header from "@/components/Header";
import Footer from "@/components/Footer";
import { site } from "@/content/site";
import "./globals.css";
const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"] });
const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"] });
const josefin = Josefin_Sans({
variable: "--font-josefin",
subsets: ["latin"],
weight: ["100", "300", "400"],
});
export const metadata: Metadata = {
metadataBase: new URL(site.url),
title: {
default: `${site.name}: Visual Effects Studio`,
template: `%s | ${site.name}`,
},
description: site.description,
openGraph: {
type: "website",
siteName: site.name,
title: `${site.name}: Visual Effects Studio`,
description: site.description,
url: site.url,
},
twitter: { card: "summary_large_image" },
};
export const viewport: Viewport = {
themeColor: "#0a0a0b",
};
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<html
lang="en"
className={`${geistSans.variable} ${geistMono.variable} ${josefin.variable} antialiased`}
>
<body className="grain flex min-h-dvh flex-col font-sans">
<Header />
<main className="flex-1">{children}</main>
<Footer />
</body>
</html>
);
}
+18
View File
@@ -0,0 +1,18 @@
import Link from "next/link";
import Fox from "@/components/Fox";
export default function NotFound() {
return (
<div className="flex min-h-[80vh] flex-col items-center justify-center px-5 text-center">
<Fox className="h-16 w-16 text-white/20" />
<p className="mt-8 font-mono text-xs tracking-[0.3em] text-accent uppercase">Error 404 · Frame missing</p>
<h1 className="mt-4 font-display text-5xl font-thin uppercase md:text-7xl">Shot not found</h1>
<Link
href="/"
className="mt-10 border border-white/25 px-6 py-3.5 font-mono text-xs tracking-[0.2em] uppercase hover:border-fg"
>
Back to home
</Link>
</div>
);
}
+140
View File
@@ -0,0 +1,140 @@
import Link from "next/link";
import Hero from "@/components/Hero";
import ProjectCard from "@/components/ProjectCard";
import Reveal from "@/components/Reveal";
import SectionLabel from "@/components/SectionLabel";
import { projects, services, site, stats } from "@/content/site";
const pipeline = [
{ step: "Breakdown", body: "Script and plate breakdowns, bids and a shot list everyone agrees on." },
{ step: "Build", body: "Assets, environments and lookdev, approved in context, not in isolation." },
{ step: "Shot", body: "Artists work in tracked versions, reviewed daily on our own review platform." },
{ step: "QC", body: "Every EXR is checked automatically for frame range, NaNs, dead pixels and colour space before a human signs off." },
{ step: "Deliver", body: "Spec-correct, frame-accurate deliveries with full shot metadata." },
];
export default function Home() {
return (
<>
<Hero />
{/* Selected work */}
<section id="work" className="mx-auto max-w-7xl px-5 py-24 md:px-8 md:py-36">
<SectionLabel index="01">Selected work</SectionLabel>
<div className="grid gap-x-8 gap-y-16 md:grid-cols-2">
{projects.slice(0, 4).map((p, i) => (
<Reveal key={p.slug} delay={(i % 2) * 120} className={i % 2 === 1 ? "md:mt-24" : ""}>
<ProjectCard project={p} />
</Reveal>
))}
</div>
<div className="mt-20 flex justify-center">
<Link
href="/work/"
className="border border-white/25 px-8 py-4 font-mono text-xs tracking-[0.2em] uppercase transition-colors hover:border-accent hover:text-accent"
>
All projects →
</Link>
</div>
</section>
{/* Services */}
<section id="services" className="border-t border-line bg-ink-2">
<div className="mx-auto max-w-7xl px-5 py-24 md:px-8 md:py-36">
<SectionLabel index="02">Services</SectionLabel>
<Reveal>
<h2 className="max-w-4xl font-display text-4xl leading-tight font-thin uppercase md:text-6xl">
From first breakdown to final <span className="text-accent">delivery</span>.
</h2>
</Reveal>
<div className="mt-16 grid border-t border-l border-line sm:grid-cols-2 lg:grid-cols-3">
{services.map((s, i) => (
<Reveal key={s.code} delay={(i % 3) * 100} className="border-r border-b border-line">
<div className="group h-full p-8 transition-colors hover:bg-white/[0.02] md:p-10">
<span className="font-mono text-xs text-accent">{s.code}</span>
<h3 className="mt-6 font-display text-2xl font-light tracking-wide uppercase">{s.title}</h3>
<p className="mt-4 text-sm leading-relaxed text-muted">{s.body}</p>
</div>
</Reveal>
))}
</div>
</div>
</section>
{/* Studio / pipeline */}
<section id="studio" className="mx-auto max-w-7xl px-5 py-24 md:px-8 md:py-36">
<SectionLabel index="03">Studio</SectionLabel>
<div className="grid gap-16 lg:grid-cols-2">
<Reveal>
<h2 className="font-display text-4xl leading-tight font-thin uppercase md:text-6xl">
Two tales. <br />
One <span className="font-light">obsession</span>.
</h2>
<div className="mt-8 space-y-5 text-base leading-relaxed text-muted md:text-lg">
<p>
Two Tales started in {site.founded} as an animation studio. A decade later we&apos;re a visual
effects house that still thinks like animators: every frame is performance, every shot is story.
</p>
<p>
We&apos;re small on purpose. Senior artists, direct lines to supervisors, and an in-house pipeline
(review, shot tracking and automated QC) that lets a tight team deliver like a big one.
</p>
</div>
</Reveal>
<ol className="relative border-l border-line">
{pipeline.map((p, i) => (
<Reveal key={p.step} delay={i * 80}>
<li className="relative pb-10 pl-10 last:pb-0">
<span className="absolute top-1.5 -left-[5px] h-[9px] w-[9px] rotate-45 bg-accent" />
<div className="flex items-baseline gap-4">
<span className="font-mono text-xs text-muted">{String(i + 1).padStart(2, "0")}</span>
<h3 className="font-display text-xl font-light tracking-[0.15em] uppercase">{p.step}</h3>
</div>
<p className="mt-2 text-sm leading-relaxed text-muted">{p.body}</p>
</li>
</Reveal>
))}
</ol>
</div>
<div className="mt-24 grid grid-cols-2 border-t border-line md:grid-cols-4">
{stats.map((s) => (
<div key={s.label} className="border-b border-line py-10 pr-6 md:border-b-0">
<p className="font-display text-5xl font-thin md:text-6xl">{s.value}</p>
<p className="mt-3 font-mono text-[11px] tracking-[0.2em] text-muted uppercase">{s.label}</p>
</div>
))}
</div>
</section>
{/* Contact */}
<section id="contact" className="relative overflow-hidden border-t border-line">
<div
className="pointer-events-none absolute -bottom-1/2 left-1/2 h-[80vmax] w-[80vmax] -translate-x-1/2 rounded-full bg-[radial-gradient(circle,rgb(232_87_42/0.14),transparent_60%)]"
aria-hidden="true"
/>
<div className="relative mx-auto max-w-7xl px-5 py-28 text-center md:px-8 md:py-44">
<SectionLabel index="04" className="justify-center">
Contact
</SectionLabel>
<Reveal>
<h2 className="font-display text-5xl leading-[0.95] font-thin uppercase md:text-8xl">
Got a story
<br />
to tell?
</h2>
<p className="mx-auto mt-8 max-w-lg text-muted md:text-lg">
Send us a script, a breakdown or just an idea. We&apos;ll come back with a plan and a bid.
</p>
<a
href={`mailto:${site.email}?subject=New%20project%20enquiry`}
className="mt-12 inline-block border-b border-accent pb-2 font-display text-2xl font-light tracking-wider break-all transition-colors hover:text-accent md:text-4xl"
>
{site.email}
</a>
</Reveal>
</div>
</section>
</>
);
}
+11
View File
@@ -0,0 +1,11 @@
import type { MetadataRoute } from "next";
import { site } from "@/content/site";
export const dynamic = "force-static";
export default function robots(): MetadataRoute.Robots {
return {
rules: { userAgent: "*", allow: "/" },
sitemap: `${site.url}/sitemap.xml`,
};
}
+12
View File
@@ -0,0 +1,12 @@
import type { MetadataRoute } from "next";
import { projects, site } from "@/content/site";
export const dynamic = "force-static";
export default function sitemap(): MetadataRoute.Sitemap {
return [
{ url: `${site.url}/`, priority: 1 },
{ url: `${site.url}/work/`, priority: 0.8 },
...projects.map((p) => ({ url: `${site.url}/work/${p.slug}/`, priority: 0.6 })),
];
}
+110
View File
@@ -0,0 +1,110 @@
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
import Frame from "@/components/Frame";
import { projects, site } from "@/content/site";
export const dynamicParams = false;
export function generateStaticParams() {
return projects.map((p) => ({ slug: p.slug }));
}
export async function generateMetadata({ params }: PageProps<"/work/[slug]">): Promise<Metadata> {
const { slug } = await params;
const project = projects.find((p) => p.slug === slug);
if (!project) return {};
return { title: project.title, description: project.summary };
}
function Video({ src, title }: { src: string; title: string }) {
if (/vimeo\.com|youtube\.com|youtu\.be/.test(src)) {
return (
<iframe
src={src}
title={title}
className="aspect-video w-full"
allow="autoplay; fullscreen; picture-in-picture"
allowFullScreen
/>
);
}
return <video src={src} className="aspect-video w-full bg-black" controls playsInline />;
}
export default async function ProjectPage({ params }: PageProps<"/work/[slug]">) {
const { slug } = await params;
const index = projects.findIndex((p) => p.slug === slug);
if (index === -1) notFound();
const project = projects[index];
const next = projects[(index + 1) % projects.length];
const meta = [
{ k: "Client", v: project.client },
{ k: "Year", v: String(project.year) },
{ k: "Type", v: project.category },
...(project.shots ? [{ k: "Shots", v: String(project.shots) }] : []),
];
return (
<article className="pt-28 md:pt-36">
<div className="mx-auto max-w-7xl px-5 md:px-8">
<Link
href="/work/"
className="font-mono text-xs tracking-[0.2em] text-muted uppercase transition-colors hover:text-fg"
>
← All work
</Link>
<h1 className="mt-8 font-display text-5xl leading-[0.9] font-thin uppercase md:text-8xl">{project.title}</h1>
</div>
<div className="mx-auto mt-12 max-w-7xl px-5 md:px-8">
{project.video ? <Video src={project.video} title={project.title} /> : <Frame project={project} priority />}
</div>
<div className="mx-auto grid max-w-7xl gap-12 px-5 py-20 md:grid-cols-[1fr_2fr] md:px-8 md:py-28">
<dl className="grid grid-cols-2 gap-6 self-start md:grid-cols-1">
{meta.map((m) => (
<div key={m.k}>
<dt className="font-mono text-[11px] tracking-[0.2em] text-muted uppercase">{m.k}</dt>
<dd className="mt-1 text-lg">{m.v}</dd>
</div>
))}
</dl>
<div>
<p className="text-xl leading-relaxed font-light md:text-2xl">{project.summary}</p>
<ul className="mt-10 flex flex-wrap gap-2">
{project.credits.map((c) => (
<li
key={c}
className="border border-line px-3 py-1.5 font-mono text-[11px] tracking-[0.15em] text-muted uppercase"
>
{c}
</li>
))}
</ul>
<a
href={`mailto:${site.email}?subject=${encodeURIComponent(`Enquiry: ${project.title}`)}`}
className="mt-12 inline-block font-mono text-xs tracking-[0.2em] text-accent uppercase hover:text-fg"
>
Talk to us about a project like this →
</a>
</div>
</div>
<Link href={`/work/${next.slug}/`} className="group block border-t border-line">
<div className="mx-auto flex max-w-7xl items-center justify-between gap-6 px-5 py-14 md:px-8 md:py-20">
<div>
<p className="font-mono text-xs tracking-[0.3em] text-muted uppercase">Next project</p>
<p className="mt-3 font-display text-3xl font-thin uppercase transition-colors group-hover:text-accent md:text-6xl">
{next.title}
</p>
</div>
<span className="font-display text-4xl font-thin transition-transform group-hover:translate-x-2 md:text-6xl">
→
</span>
</div>
</Link>
</article>
);
}
+28
View File
@@ -0,0 +1,28 @@
import type { Metadata } from "next";
import ProjectCard from "@/components/ProjectCard";
import Reveal from "@/components/Reveal";
import SectionLabel from "@/components/SectionLabel";
import { projects } from "@/content/site";
export const metadata: Metadata = {
title: "Work",
description: "Selected visual effects work by Two Tales VFX across series, film, commercials and animation.",
};
export default function WorkPage() {
return (
<div className="mx-auto max-w-7xl px-5 pt-36 pb-24 md:px-8 md:pt-48 md:pb-36">
<SectionLabel index="—">Work</SectionLabel>
<h1 className="font-display text-6xl leading-[0.9] font-thin uppercase md:text-9xl">
Selected <span className="font-light">work</span>
</h1>
<div className="mt-20 grid gap-x-8 gap-y-16 md:grid-cols-2">
{projects.map((p, i) => (
<Reveal key={p.slug} delay={(i % 2) * 120}>
<ProjectCard project={p} />
</Reveal>
))}
</div>
</div>
);
}