Add Summertide VFX reel: hero loop, Play reel lightbox, project page
- 15s muted hero loop (1280w, 2.3 MB) cut from finished shots - Full reel re-encoded for web (letterbox cropped, CRF 28, faststart, 45 MB) - PlayReel lightbox component; Summertide project with breakdown stills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -1,5 +1,6 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Fox from "./Fox";
|
import Fox from "./Fox";
|
||||||
|
import PlayReel from "./PlayReel";
|
||||||
import Timecode from "./Timecode";
|
import Timecode from "./Timecode";
|
||||||
import { site } from "@/content/site";
|
import { site } from "@/content/site";
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ export default function Hero() {
|
|||||||
{/* Plate: showreel if configured, otherwise a moving light field */}
|
{/* Plate: showreel if configured, otherwise a moving light field */}
|
||||||
{site.reel ? (
|
{site.reel ? (
|
||||||
<video
|
<video
|
||||||
className="absolute inset-0 h-full w-full object-cover opacity-60"
|
className="absolute inset-0 h-full w-full object-cover opacity-55"
|
||||||
src={site.reel}
|
src={site.reel}
|
||||||
poster={site.reelPoster ?? undefined}
|
poster={site.reelPoster ?? undefined}
|
||||||
autoPlay
|
autoPlay
|
||||||
@@ -57,7 +58,12 @@ export default function Hero() {
|
|||||||
<p className="max-w-md text-base leading-relaxed text-muted md:text-lg">
|
<p className="max-w-md text-base leading-relaxed text-muted md:text-lg">
|
||||||
Compositing, CG and finishing for series, film and commercials, built on a pipeline we wrote ourselves.
|
Compositing, CG and finishing for series, film and commercials, built on a pipeline we wrote ourselves.
|
||||||
</p>
|
</p>
|
||||||
<div className="flex gap-3">
|
<div className="flex flex-wrap items-center gap-3">
|
||||||
|
{site.fullReel && (
|
||||||
|
<span className="mr-3">
|
||||||
|
<PlayReel src={site.fullReel} poster={site.reelPoster ?? undefined} />
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
<Link
|
<Link
|
||||||
href="/work/"
|
href="/work/"
|
||||||
className="bg-fg px-5 py-3.5 whitespace-nowrap md:px-6 font-mono text-xs tracking-[0.2em] text-ink uppercase transition-colors hover:bg-accent"
|
className="bg-fg px-5 py-3.5 whitespace-nowrap md:px-6 font-mono text-xs tracking-[0.2em] text-ink uppercase transition-colors hover:bg-accent"
|
||||||
|
|||||||
@@ -0,0 +1,65 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
|
// "Play reel" button that opens the full reel in a fullscreen lightbox.
|
||||||
|
export default function PlayReel({ src, poster, label = "Play reel" }: { src: string; poster?: string; label?: string }) {
|
||||||
|
const [open, setOpen] = useState(false);
|
||||||
|
const videoRef = useRef<HTMLVideoElement>(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!open) return;
|
||||||
|
const onKey = (e: KeyboardEvent) => e.key === "Escape" && setOpen(false);
|
||||||
|
document.addEventListener("keydown", onKey);
|
||||||
|
document.body.style.overflow = "hidden";
|
||||||
|
videoRef.current?.play().catch(() => {});
|
||||||
|
return () => {
|
||||||
|
document.removeEventListener("keydown", onKey);
|
||||||
|
document.body.style.overflow = "";
|
||||||
|
};
|
||||||
|
}, [open]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => setOpen(true)}
|
||||||
|
className="group flex items-center gap-3 font-mono text-xs tracking-[0.2em] whitespace-nowrap uppercase"
|
||||||
|
>
|
||||||
|
<span className="flex h-11 w-11 items-center justify-center rounded-full border border-white/40 transition-colors group-hover:border-accent group-hover:bg-accent">
|
||||||
|
<svg viewBox="0 0 10 12" className="ml-0.5 h-3 w-3 fill-current" aria-hidden="true">
|
||||||
|
<path d="M0 0l10 6-10 6z" />
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
{label}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{open && (
|
||||||
|
<div
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
aria-label="Showreel"
|
||||||
|
className="fixed inset-0 z-[70] flex items-center justify-center bg-black/95 p-4 md:p-10"
|
||||||
|
onClick={() => setOpen(false)}
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => setOpen(false)}
|
||||||
|
className="absolute top-4 right-5 font-mono text-xs tracking-[0.2em] text-muted uppercase hover:text-fg"
|
||||||
|
>
|
||||||
|
Close ✕
|
||||||
|
</button>
|
||||||
|
<video
|
||||||
|
ref={videoRef}
|
||||||
|
src={src}
|
||||||
|
poster={poster}
|
||||||
|
controls
|
||||||
|
playsInline
|
||||||
|
className="max-h-full w-full max-w-7xl bg-black"
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -13,10 +13,11 @@ export const site = {
|
|||||||
// TODO: switch to an @ttvfx.com address once the domain's mail is set up.
|
// TODO: switch to an @ttvfx.com address once the domain's mail is set up.
|
||||||
email: "chris@twotalesanimation.com",
|
email: "chris@twotalesanimation.com",
|
||||||
location: "Pretoria, South Africa",
|
location: "Pretoria, South Africa",
|
||||||
// Optional studio showreel for the home hero: drop public/reel.mp4 and set
|
// Muted background loop for the home hero (cut from the Summertide reel).
|
||||||
// this to "/reel.mp4" (and reelPoster to a still).
|
reel: "/reel/hero-loop.mp4" as string | null,
|
||||||
reel: null as string | null,
|
reelPoster: "/reel/hero-poster.jpg" as string | null,
|
||||||
reelPoster: null as string | null,
|
// Full reel with sound, opened by the hero's "Play reel" button.
|
||||||
|
fullReel: "/reel/summertide-reel.mp4" as string | null,
|
||||||
socials: [
|
socials: [
|
||||||
// TODO: add real profiles, e.g. { label: "Vimeo", href: "https://vimeo.com/..." }
|
// TODO: add real profiles, e.g. { label: "Vimeo", href: "https://vimeo.com/..." }
|
||||||
] as { label: string; href: string }[],
|
] as { label: string; href: string }[],
|
||||||
@@ -125,6 +126,25 @@ export type Project = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const projects: Project[] = [
|
export const projects: Project[] = [
|
||||||
|
{
|
||||||
|
slug: "summertide",
|
||||||
|
title: "Summertide",
|
||||||
|
client: "M-Net",
|
||||||
|
year: 2024,
|
||||||
|
category: "Series",
|
||||||
|
summary:
|
||||||
|
"Creature and simulation work for M-Net’s coastal family drama: CG African penguins, a CG shark with water simulation, shark replacements on the beach, CG storm clouds and lightning, a CG seal and pyro simulations.",
|
||||||
|
image: "/work/summertide/still-18.jpg",
|
||||||
|
video: "/reel/summertide-reel.mp4",
|
||||||
|
gallery: [
|
||||||
|
"/work/summertide/still-101.jpg",
|
||||||
|
"/work/summertide/still-139.jpg",
|
||||||
|
"/work/summertide/still-80.jpg",
|
||||||
|
"/work/summertide/still-187.jpg",
|
||||||
|
],
|
||||||
|
credits: ["CG Penguins", "CG Shark & Water Sim", "Shark Replacement", "CG Clouds & Lightning", "CG Seal", "Pyro Simulations"],
|
||||||
|
hue: 190,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
slug: "festo-f1",
|
slug: "festo-f1",
|
||||||
title: "Festo F1",
|
title: "Festo F1",
|
||||||
|
|||||||
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 95 KiB |