Filmmaker portfolio with a screening room
A dark, cinematic site for a director and cinematographer: pick a film from a sprocketed strip, play or scrub its timecode while the frame drifts like a camera move, letterbox it to 2.39, 1.85 or 16:9, and flip between log footage and the final grade.
"use client";
import {
useEffect,
useRef,
useState,
type CSSProperties,
type KeyboardEvent as ReactKeyboardEvent,
type PointerEvent as ReactPointerEvent,
} from "react";
import "./film-portfolio.css";
/**
* FilmPortfolio: a dark, cinematic site for a director and cinematographer.
* Its signature is the screening room: pick a film from the strip, play or
* scrub its timecode (the frame drifts like a slow camera move), switch the
* aspect ratio and flip between flat log footage and the final grade.
* It is a demo: point `onEnquire` at your inbox.
*/
type Film = {
id: string;
title: string;
kind: string;
year: string;
src: string;
alt: string;
tone: string;
/** Camera drift: start and end offsets in % for x and y. */
move: [number, number, number, number];
length: number; // seconds of the excerpt
};
const FILMS: Film[] = [
{
id: "night",
title: "Night Shift",
kind: "Short film",
year: "2025",
src: "/images/portfolio-film-still-01.jpg",
alt: "A woman stands alone under the green light of an empty petrol station at night",
tone: "#1d3a33",
move: [-3, 0, 3, -1],
length: 154,
},
{
id: "net",
title: "The Long Net",
kind: "Documentary",
year: "2024",
src: "/images/portfolio-film-still-02.jpg",
alt: "An old fisherman in an orange jacket pulls a net into a rowing boat in fog",
tone: "#46525a",
move: [2, 1, -2, -1],
length: 212,
},
{
id: "dust",
title: "Dust Season",
kind: "Feature",
year: "2026",
src: "/images/portfolio-film-still-03.jpg",
alt: "Three kids ride bikes down a dusty street towards the low sun",
tone: "#8a6a3a",
move: [0, 2, 0, -2],
length: 128,
},
{
id: "rehearsal",
title: "Last Rehearsal",
kind: "Music video",
year: "2025",
src: "/images/portfolio-film-still-04.jpg",
alt: "A dancer turns in a single spotlight on the bare stage of an empty theatre",
tone: "#5a1f22",
move: [-2, -1, 2, 1],
length: 186,
},
];
const RATIOS = [
{ id: "239", label: "2.39", value: 2.39 },
{ id: "185", label: "1.85", value: 1.85 },
{ id: "169", label: "16:9", value: 16 / 9 },
];
const CREDITS = [
{ role: "Director", title: "Dust Season", who: "Feature, Lowland Pictures", year: "2026" },
{ role: "Director of photography", title: "Night Shift", who: "Short, BFI Network", year: "2025" },
{ role: "Director", title: "Last Rehearsal", who: "Music video, Halcyon Records", year: "2025" },
{ role: "Director of photography", title: "The Long Net", who: "Documentary, Channel 4", year: "2024" },
];
const pad = (n: number) => String(Math.floor(n)).padStart(2, "0");
const timecode = (s: number) => `${pad(s / 3600)}:${pad((s / 60) % 60)}:${pad(s % 60)}:${pad((s % 1) * 24)}`;
function Still({ film, className = "", style }: { film: Film; className?: string; style?: CSSProperties }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-reel2__still ${className}`} style={{ "--tone": film.tone, ...style } as CSSProperties}>
{!missing && <img ref={img} src={film.src} alt={film.alt} draggable={false} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function FilmPortfolio({ onEnquire }: { onEnquire?: (data: { name: string; email: string; project: string }) => void }) {
const [active, setActive] = useState(0);
const [t, setT] = useState(0.2);
const [playing, setPlaying] = useState(false);
const [ratio, setRatio] = useState("239");
const [graded, setGraded] = useState(true);
const [cut, setCut] = useState(0);
const [sent, setSent] = useState(false);
const [hover, setHover] = useState<number | null>(null);
const bar = useRef<HTMLDivElement>(null);
const raf = useRef(0);
const film = FILMS[active];
/* Playback: advance the timecode in real time, looping. */
useEffect(() => {
if (!playing) return;
let last = performance.now();
const tick = (now: number) => {
const dt = (now - last) / 1000;
last = now;
setT((v) => (v + dt / film.length) % 1);
raf.current = requestAnimationFrame(tick);
};
raf.current = requestAnimationFrame(tick);
return () => cancelAnimationFrame(raf.current);
}, [playing, film.length]);
const choose = (i: number) => {
if (i === active) return;
setActive(i);
setT(0);
setCut((c) => c + 1);
};
const scrubTo = (clientX: number) => {
const box = bar.current?.getBoundingClientRect();
if (!box) return;
setT(Math.min(1, Math.max(0, (clientX - box.left) / box.width)));
};
const scrubDown = (e: ReactPointerEvent<HTMLDivElement>) => {
e.currentTarget.setPointerCapture(e.pointerId);
setPlaying(false);
scrubTo(e.clientX);
};
const scrubKey = (e: ReactKeyboardEvent<HTMLDivElement>) => {
const step = e.shiftKey ? 0.1 : 0.02;
if (e.key === "ArrowRight") setT((v) => Math.min(1, v + step));
else if (e.key === "ArrowLeft") setT((v) => Math.max(0, v - step));
else if (e.key === "Home") setT(0);
else if (e.key === "End") setT(1);
else return;
e.preventDefault();
setPlaying(false);
};
const [x0, y0, x1, y1] = film.move;
const camera = {
transform: `scale(${1.08 + t * 0.06}) translate(${x0 + (x1 - x0) * t}%, ${y0 + (y1 - y0) * t}%)`,
};
const r = RATIOS.find((x) => x.id === ratio) ?? RATIOS[0];
// The screen is 16:9; wider ratios get black bars above and below, like a cinema.
const height = `${(16 / 9 / r.value) * 100}%`;
return (
<div className="gu-reel2">
<header className="gu-reel2__bar">
<a href="#" className="gu-reel2__mark">
TEO ALMEIDA
</a>
<nav aria-label="Teo Almeida">
<a href="#reel2-credits">Credits</a>
<a href="#reel2-contact" className="gu-reel2__navcta">
Get in touch
</a>
</nav>
</header>
<section className="gu-reel2__intro">
<h1>
<span>Director and</span> <span>cinematographer.</span>
</h1>
<p>Quiet films about people at the edges of the day. Shot on film when the budget allows.</p>
</section>
<section className="gu-reel2__room" aria-labelledby="reel2-now">
<div className="gu-reel2__screen-wrap">
<div className="gu-reel2__screen" style={{ height }} data-graded={graded || undefined}>
<div key={cut} className="gu-reel2__frame">
<Still film={film} className="gu-reel2__main" style={camera} />
</div>
<span className="gu-reel2__grain" aria-hidden="true" />
<span key={`burn${cut}`} className="gu-reel2__burn" aria-hidden="true" />
<span className="gu-reel2__tc" aria-hidden="true">
{timecode(t * film.length)}
</span>
</div>
</div>
<div className="gu-reel2__deck">
<div className="gu-reel2__now">
<p id="reel2-now" aria-live="polite">
<b key={film.id}>{film.title}</b>
<span>
{film.kind}, {film.year}
</span>
</p>
</div>
<div className="gu-reel2__transport">
<button
type="button"
className="gu-reel2__play"
aria-label={playing ? "Pause" : "Play"}
aria-pressed={playing}
onClick={() => setPlaying((p) => !p)}
>
<svg viewBox="0 0 24 24" aria-hidden="true">
{playing ? <path d="M7 5h3v14H7zM14 5h3v14h-3z" /> : <path d="M7 4l13 8-13 8z" />}
</svg>
</button>
<div
ref={bar}
className="gu-reel2__scrub"
role="slider"
tabIndex={0}
aria-label="Timecode"
aria-valuemin={0}
aria-valuemax={film.length}
aria-valuenow={Math.round(t * film.length)}
aria-valuetext={timecode(t * film.length)}
onPointerDown={scrubDown}
onPointerMove={(e) => {
if (e.currentTarget.hasPointerCapture(e.pointerId)) scrubTo(e.clientX);
}}
onKeyDown={scrubKey}
>
<span className="gu-reel2__ticks" aria-hidden="true" />
<span className="gu-reel2__fill" style={{ width: `${t * 100}%` }} />
<span className="gu-reel2__head" style={{ left: `${t * 100}%` }} />
</div>
</div>
<div className="gu-reel2__tools">
<div role="group" aria-label="Aspect ratio" className="gu-reel2__seg">
{RATIOS.map((x) => (
<button key={x.id} type="button" aria-pressed={ratio === x.id} onClick={() => setRatio(x.id)}>
{x.label}
</button>
))}
</div>
<button
type="button"
className="gu-reel2__grade"
role="switch"
aria-checked={graded}
onClick={() => setGraded((g) => !g)}
>
<span aria-hidden="true" />
{graded ? "Graded" : "Log footage"}
</button>
</div>
</div>
<ul className="gu-reel2__strip" aria-label="Films">
{FILMS.map((f, i) => (
<li key={f.id}>
<button type="button" aria-pressed={active === i} onClick={() => choose(i)}>
<Still film={f} />
<span>
{f.title}
<small>{f.year}</small>
</span>
</button>
</li>
))}
</ul>
</section>
<section id="reel2-credits" className="gu-reel2__credits" aria-labelledby="reel2-credits-title">
<h2 id="reel2-credits-title">Credits</h2>
<ul onPointerLeave={() => setHover(null)}>
{CREDITS.map((c) => {
const fi = FILMS.findIndex((f) => f.title === c.title);
return (
<li key={c.title} onPointerEnter={() => setHover(fi)}>
<span className="gu-reel2__role">{c.role}</span>
<span className="gu-reel2__title">{c.title}</span>
<span className="gu-reel2__who">{c.who}</span>
<span className="gu-reel2__year">{c.year}</span>
{hover === fi && fi >= 0 && <Still film={FILMS[fi]} className="gu-reel2__peek" />}
</li>
);
})}
</ul>
</section>
<section id="reel2-contact" className="gu-reel2__contact" aria-labelledby="reel2-contact-title">
<h2 id="reel2-contact-title">Booking for spring</h2>
{sent ? (
<div className="gu-reel2__sent" role="status">
<svg viewBox="0 0 80 64" aria-hidden="true">
<rect x="6" y="24" width="68" height="36" rx="3" />
<g className="gu-reel2__clap">
<rect x="6" y="10" width="68" height="12" rx="2" />
<path d="M16 10l8 12M32 10l8 12M48 10l8 12M64 10l8 12" />
</g>
</svg>
<p>That’s a wrap. I’ll reply this week.</p>
</div>
) : (
<form
className="gu-reel2__form"
onSubmit={(e) => {
e.preventDefault();
const f = new FormData(e.currentTarget);
onEnquire?.({ name: String(f.get("name") ?? ""), email: String(f.get("email") ?? ""), project: String(f.get("project") ?? "") });
setSent(true);
}}
>
<label>
<span>Name</span>
<input name="name" required autoComplete="name" />
</label>
<label>
<span>Email</span>
<input name="email" type="email" required autoComplete="email" />
</label>
<label className="gu-reel2__wide">
<span>The project</span>
<textarea name="project" rows={3} required />
</label>
<button type="submit">Send</button>
</form>
)}
</section>
<footer className="gu-reel2__foot">
<span>© 2026 Teo Almeida</span>
<a href="#">Vimeo</a>
<a href="#">Agent</a>
</footer>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Filmmaker portfolio with a screening room
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A dark, cinematic one-page portfolio for a director and cinematographer ("Teo Almeida"). Its signature is the screening room: a 16:9 black screen showing one film still. Four films sit on a film strip below with sprocket holes along both edges. Choosing one cuts to it with a projector flicker (brightness jumps and a slight jolt) and an orange light leak sweeping from the left. A play button runs a timecode (HH:MM:SS:FF at 24 fps) through the excerpt, and a ticked scrub bar with an amber playhead can be dragged or stepped with the keys. As the time moves, the frame slowly scales and drifts along a per-film path, like a camera move. Aspect buttons (2.39, 1.85, 16:9) animate black bars above and below. A switch flips between "Log footage" (flat, washed out, desaturated) and "Graded". Grain flickers over the screen, and a blinking red dot sits by the timecode. Other sections: a credits list where hovering a row slides out a still from that film, a contact form whose thank-you shows a clapperboard snapping shut, and a footer.
## Palette
Background #0b0b0c, panel #141415, text #ece8e1, muted #8c8780, lines rgb(236 232 225 / 0.12), amber #e8b04a, focus ring #9fb0ff. The logo is widely tracked capitals; headings mix a light sans with an italic serif; small data (timecode, years, ratios) uses a monospace.
## Layout
- Bar: TEO ALMEIDA, Credits, and an outlined "Get in touch" pill that fills amber.
- Intro: "Director and cinematographer." (second word italic serif) and a short line on the right.
- Screening room: the screen opens from a horizontal slit on load. Below it, a row with the title and type, the play button with the scrub bar, and the ratio and grade controls; then the strip of four 2.39 thumbnails (desaturated until hovered or chosen; the chosen one has an amber outline).
- Credits: rows of role, title (italic serif), production and year; rows shift right on hover.
- Contact: name, email and project fields, then an amber Send button.
- Below 860px the control row stacks; below 620px the strip goes to two columns and credits compress.
## Images
- portfolio-film-still-01.jpg to -04.jpg (2.39:1 film stills). Until a file exists, each frame shows a deep toned gradient.
## Motion
- Cuts: a 0.7s stepped flicker plus a 0.9s light leak.
- The camera drift follows the timecode; the bars ease over 0.9s; the grade blends over 0.8s.
- The grade switch thumb springs across; the play button grows a soft ring while playing.
## Accessibility
- The scrub bar is role="slider" with the timecode as aria-valuetext; arrows step 2% (Shift 10%), Home and End jump.
- Play has aria-pressed and a Play or Pause label; ratio and film buttons use aria-pressed; the grade toggle is role="switch".
- The current film's title is aria-live; the thank-you has role="status".
- prefers-reduced-motion turns off every animation and transition.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### FilmPortfolio.tsx
```tsx
"use client";
import {
useEffect,
useRef,
useState,
type CSSProperties,
type KeyboardEvent as ReactKeyboardEvent,
type PointerEvent as ReactPointerEvent,
} from "react";
import "./film-portfolio.css";
/**
* FilmPortfolio: a dark, cinematic site for a director and cinematographer.
* Its signature is the screening room: pick a film from the strip, play or
* scrub its timecode (the frame drifts like a slow camera move), switch the
* aspect ratio and flip between flat log footage and the final grade.
* It is a demo: point `onEnquire` at your inbox.
*/
type Film = {
id: string;
title: string;
kind: string;
year: string;
src: string;
alt: string;
tone: string;
/** Camera drift: start and end offsets in % for x and y. */
move: [number, number, number, number];
length: number; // seconds of the excerpt
};
const FILMS: Film[] = [
{
id: "night",
title: "Night Shift",
kind: "Short film",
year: "2025",
src: "/images/portfolio-film-still-01.jpg",
alt: "A woman stands alone under the green light of an empty petrol station at night",
tone: "#1d3a33",
move: [-3, 0, 3, -1],
length: 154,
},
{
id: "net",
title: "The Long Net",
kind: "Documentary",
year: "2024",
src: "/images/portfolio-film-still-02.jpg",
alt: "An old fisherman in an orange jacket pulls a net into a rowing boat in fog",
tone: "#46525a",
move: [2, 1, -2, -1],
length: 212,
},
{
id: "dust",
title: "Dust Season",
kind: "Feature",
year: "2026",
src: "/images/portfolio-film-still-03.jpg",
alt: "Three kids ride bikes down a dusty street towards the low sun",
tone: "#8a6a3a",
move: [0, 2, 0, -2],
length: 128,
},
{
id: "rehearsal",
title: "Last Rehearsal",
kind: "Music video",
year: "2025",
src: "/images/portfolio-film-still-04.jpg",
alt: "A dancer turns in a single spotlight on the bare stage of an empty theatre",
tone: "#5a1f22",
move: [-2, -1, 2, 1],
length: 186,
},
];
const RATIOS = [
{ id: "239", label: "2.39", value: 2.39 },
{ id: "185", label: "1.85", value: 1.85 },
{ id: "169", label: "16:9", value: 16 / 9 },
];
const CREDITS = [
{ role: "Director", title: "Dust Season", who: "Feature, Lowland Pictures", year: "2026" },
{ role: "Director of photography", title: "Night Shift", who: "Short, BFI Network", year: "2025" },
{ role: "Director", title: "Last Rehearsal", who: "Music video, Halcyon Records", year: "2025" },
{ role: "Director of photography", title: "The Long Net", who: "Documentary, Channel 4", year: "2024" },
];
const pad = (n: number) => String(Math.floor(n)).padStart(2, "0");
const timecode = (s: number) => `${pad(s / 3600)}:${pad((s / 60) % 60)}:${pad(s % 60)}:${pad((s % 1) * 24)}`;
function Still({ film, className = "", style }: { film: Film; className?: string; style?: CSSProperties }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-reel2__still ${className}`} style={{ "--tone": film.tone, ...style } as CSSProperties}>
{!missing && <img ref={img} src={film.src} alt={film.alt} draggable={false} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function FilmPortfolio({ onEnquire }: { onEnquire?: (data: { name: string; email: string; project: string }) => void }) {
const [active, setActive] = useState(0);
const [t, setT] = useState(0.2);
const [playing, setPlaying] = useState(false);
const [ratio, setRatio] = useState("239");
const [graded, setGraded] = useState(true);
const [cut, setCut] = useState(0);
const [sent, setSent] = useState(false);
const [hover, setHover] = useState<number | null>(null);
const bar = useRef<HTMLDivElement>(null);
const raf = useRef(0);
const film = FILMS[active];
/* Playback: advance the timecode in real time, looping. */
useEffect(() => {
if (!playing) return;
let last = performance.now();
const tick = (now: number) => {
const dt = (now - last) / 1000;
last = now;
setT((v) => (v + dt / film.length) % 1);
raf.current = requestAnimationFrame(tick);
};
raf.current = requestAnimationFrame(tick);
return () => cancelAnimationFrame(raf.current);
}, [playing, film.length]);
const choose = (i: number) => {
if (i === active) return;
setActive(i);
setT(0);
setCut((c) => c + 1);
};
const scrubTo = (clientX: number) => {
const box = bar.current?.getBoundingClientRect();
if (!box) return;
setT(Math.min(1, Math.max(0, (clientX - box.left) / box.width)));
};
const scrubDown = (e: ReactPointerEvent<HTMLDivElement>) => {
e.currentTarget.setPointerCapture(e.pointerId);
setPlaying(false);
scrubTo(e.clientX);
};
const scrubKey = (e: ReactKeyboardEvent<HTMLDivElement>) => {
const step = e.shiftKey ? 0.1 : 0.02;
if (e.key === "ArrowRight") setT((v) => Math.min(1, v + step));
else if (e.key === "ArrowLeft") setT((v) => Math.max(0, v - step));
else if (e.key === "Home") setT(0);
else if (e.key === "End") setT(1);
else return;
e.preventDefault();
setPlaying(false);
};
const [x0, y0, x1, y1] = film.move;
const camera = {
transform: `scale(${1.08 + t * 0.06}) translate(${x0 + (x1 - x0) * t}%, ${y0 + (y1 - y0) * t}%)`,
};
const r = RATIOS.find((x) => x.id === ratio) ?? RATIOS[0];
// The screen is 16:9; wider ratios get black bars above and below, like a cinema.
const height = `${(16 / 9 / r.value) * 100}%`;
return (
<div className="gu-reel2">
<header className="gu-reel2__bar">
<a href="#" className="gu-reel2__mark">
TEO ALMEIDA
</a>
<nav aria-label="Teo Almeida">
<a href="#reel2-credits">Credits</a>
<a href="#reel2-contact" className="gu-reel2__navcta">
Get in touch
</a>
</nav>
</header>
<section className="gu-reel2__intro">
<h1>
<span>Director and</span> <span>cinematographer.</span>
</h1>
<p>Quiet films about people at the edges of the day. Shot on film when the budget allows.</p>
</section>
<section className="gu-reel2__room" aria-labelledby="reel2-now">
<div className="gu-reel2__screen-wrap">
<div className="gu-reel2__screen" style={{ height }} data-graded={graded || undefined}>
<div key={cut} className="gu-reel2__frame">
<Still film={film} className="gu-reel2__main" style={camera} />
</div>
<span className="gu-reel2__grain" aria-hidden="true" />
<span key={`burn${cut}`} className="gu-reel2__burn" aria-hidden="true" />
<span className="gu-reel2__tc" aria-hidden="true">
{timecode(t * film.length)}
</span>
</div>
</div>
<div className="gu-reel2__deck">
<div className="gu-reel2__now">
<p id="reel2-now" aria-live="polite">
<b key={film.id}>{film.title}</b>
<span>
{film.kind}, {film.year}
</span>
</p>
</div>
<div className="gu-reel2__transport">
<button
type="button"
className="gu-reel2__play"
aria-label={playing ? "Pause" : "Play"}
aria-pressed={playing}
onClick={() => setPlaying((p) => !p)}
>
<svg viewBox="0 0 24 24" aria-hidden="true">
{playing ? <path d="M7 5h3v14H7zM14 5h3v14h-3z" /> : <path d="M7 4l13 8-13 8z" />}
</svg>
</button>
<div
ref={bar}
className="gu-reel2__scrub"
role="slider"
tabIndex={0}
aria-label="Timecode"
aria-valuemin={0}
aria-valuemax={film.length}
aria-valuenow={Math.round(t * film.length)}
aria-valuetext={timecode(t * film.length)}
onPointerDown={scrubDown}
onPointerMove={(e) => {
if (e.currentTarget.hasPointerCapture(e.pointerId)) scrubTo(e.clientX);
}}
onKeyDown={scrubKey}
>
<span className="gu-reel2__ticks" aria-hidden="true" />
<span className="gu-reel2__fill" style={{ width: `${t * 100}%` }} />
<span className="gu-reel2__head" style={{ left: `${t * 100}%` }} />
</div>
</div>
<div className="gu-reel2__tools">
<div role="group" aria-label="Aspect ratio" className="gu-reel2__seg">
{RATIOS.map((x) => (
<button key={x.id} type="button" aria-pressed={ratio === x.id} onClick={() => setRatio(x.id)}>
{x.label}
</button>
))}
</div>
<button
type="button"
className="gu-reel2__grade"
role="switch"
aria-checked={graded}
onClick={() => setGraded((g) => !g)}
>
<span aria-hidden="true" />
{graded ? "Graded" : "Log footage"}
</button>
</div>
</div>
<ul className="gu-reel2__strip" aria-label="Films">
{FILMS.map((f, i) => (
<li key={f.id}>
<button type="button" aria-pressed={active === i} onClick={() => choose(i)}>
<Still film={f} />
<span>
{f.title}
<small>{f.year}</small>
</span>
</button>
</li>
))}
</ul>
</section>
<section id="reel2-credits" className="gu-reel2__credits" aria-labelledby="reel2-credits-title">
<h2 id="reel2-credits-title">Credits</h2>
<ul onPointerLeave={() => setHover(null)}>
{CREDITS.map((c) => {
const fi = FILMS.findIndex((f) => f.title === c.title);
return (
<li key={c.title} onPointerEnter={() => setHover(fi)}>
<span className="gu-reel2__role">{c.role}</span>
<span className="gu-reel2__title">{c.title}</span>
<span className="gu-reel2__who">{c.who}</span>
<span className="gu-reel2__year">{c.year}</span>
{hover === fi && fi >= 0 && <Still film={FILMS[fi]} className="gu-reel2__peek" />}
</li>
);
})}
</ul>
</section>
<section id="reel2-contact" className="gu-reel2__contact" aria-labelledby="reel2-contact-title">
<h2 id="reel2-contact-title">Booking for spring</h2>
{sent ? (
<div className="gu-reel2__sent" role="status">
<svg viewBox="0 0 80 64" aria-hidden="true">
<rect x="6" y="24" width="68" height="36" rx="3" />
<g className="gu-reel2__clap">
<rect x="6" y="10" width="68" height="12" rx="2" />
<path d="M16 10l8 12M32 10l8 12M48 10l8 12M64 10l8 12" />
</g>
</svg>
<p>That’s a wrap. I’ll reply this week.</p>
</div>
) : (
<form
className="gu-reel2__form"
onSubmit={(e) => {
e.preventDefault();
const f = new FormData(e.currentTarget);
onEnquire?.({ name: String(f.get("name") ?? ""), email: String(f.get("email") ?? ""), project: String(f.get("project") ?? "") });
setSent(true);
}}
>
<label>
<span>Name</span>
<input name="name" required autoComplete="name" />
</label>
<label>
<span>Email</span>
<input name="email" type="email" required autoComplete="email" />
</label>
<label className="gu-reel2__wide">
<span>The project</span>
<textarea name="project" rows={3} required />
</label>
<button type="submit">Send</button>
</form>
)}
</section>
<footer className="gu-reel2__foot">
<span>© 2026 Teo Almeida</span>
<a href="#">Vimeo</a>
<a href="#">Agent</a>
</footer>
</div>
);
}
```
### film-portfolio.css
```css
/* Teo Almeida: a dark screening room. Projector white, one warm amber for the controls. */
.gu-reel2 {
--bg: #0b0b0c;
--bg-2: #141415;
--text: #ece8e1;
--muted: #8c8780;
--line: rgb(236 232 225 / 0.12);
--amber: #e8b04a;
--focus: #9fb0ff;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
--serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
--mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
--grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
position: relative;
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
line-height: 1.5;
}
.gu-reel2 *,
.gu-reel2 *::before,
.gu-reel2 *::after {
box-sizing: border-box;
}
.gu-reel2 a {
color: inherit;
}
.gu-reel2 :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
/* ---------- Bar ---------- */
.gu-reel2__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 22px 5%;
}
.gu-reel2__mark {
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.32em;
text-decoration: none;
}
.gu-reel2__bar nav {
display: flex;
align-items: center;
gap: 24px;
font-size: 0.92rem;
}
.gu-reel2__bar nav a:not(.gu-reel2__navcta) {
color: var(--muted);
text-decoration: none;
transition: color 0.3s;
}
.gu-reel2__bar nav a:not(.gu-reel2__navcta):hover {
color: var(--text);
}
.gu-reel2__navcta {
padding: 9px 18px;
border: 1px solid var(--line);
border-radius: 999px;
text-decoration: none;
transition:
border-color 0.3s,
background-color 0.3s,
color 0.3s;
}
.gu-reel2__navcta:hover {
border-color: var(--amber);
background: var(--amber);
color: var(--bg);
}
/* ---------- Intro ---------- */
.gu-reel2__intro {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 18px 40px;
padding: 30px 5% 34px;
}
.gu-reel2__intro h1 {
margin: 0;
font-size: clamp(2.2rem, 6cqi, 4.6rem);
font-weight: 300;
line-height: 1;
letter-spacing: -0.03em;
}
.gu-reel2__intro h1 span {
display: inline-block;
animation: gu-reel2-rise 1.1s var(--ease) both;
}
.gu-reel2__intro h1 span + span {
font-family: var(--serif);
font-style: italic;
animation-delay: 0.15s;
}
.gu-reel2__intro p {
max-width: 34ch;
margin: 0;
color: var(--muted);
animation: gu-reel2-rise 1s var(--ease) 0.3s both;
}
/* ---------- Screening room ---------- */
.gu-reel2__room {
padding: 0 5% 70px;
}
.gu-reel2__screen-wrap {
position: relative;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: 8px;
background: #000;
box-shadow:
0 0 0 1px var(--line),
0 40px 120px -40px rgb(232 176 74 / 0.25);
animation: gu-reel2-open 1.4s var(--ease) 0.2s both;
}
.gu-reel2__screen {
position: absolute;
left: 0;
top: 50%;
width: 100%;
translate: 0 -50%;
overflow: hidden;
transition: height 0.9s var(--ease);
}
.gu-reel2__frame {
position: absolute;
inset: 0;
animation: gu-reel2-cut 0.7s steps(1) both;
}
.gu-reel2__still {
display: block;
width: 100%;
height: 100%;
background:
radial-gradient(40% 50% at 60% 40%, rgb(255 230 190 / 0.18), transparent 70%),
var(--tone);
}
.gu-reel2__still img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
user-select: none;
}
.gu-reel2__main {
transition:
transform 0.25s linear,
filter 0.8s var(--ease);
}
.gu-reel2__screen:not([data-graded]) .gu-reel2__main {
filter: saturate(0.32) contrast(0.6) brightness(1.15) sepia(0.06);
}
.gu-reel2__grain {
position: absolute;
inset: -20%;
pointer-events: none;
background-image: var(--grain);
opacity: 0.12;
mix-blend-mode: overlay;
animation: gu-reel2-grain 0.8s steps(4) infinite;
}
/* A burst of light leak on every cut. */
.gu-reel2__burn {
position: absolute;
inset: 0;
pointer-events: none;
background: radial-gradient(60% 90% at 0% 50%, rgb(255 140 60 / 0.75), rgb(255 80 40 / 0.2) 40%, transparent 70%);
mix-blend-mode: screen;
opacity: 0;
animation: gu-reel2-burn 0.9s var(--ease);
}
.gu-reel2__tc {
position: absolute;
right: 14px;
bottom: 10px;
display: inline-flex;
align-items: center;
gap: 8px;
color: rgb(255 255 255 / 0.85);
font-family: var(--mono);
font-size: 0.78rem;
letter-spacing: 0.06em;
font-variant-numeric: tabular-nums;
text-shadow: 0 1px 4px rgb(0 0 0 / 0.8);
}
.gu-reel2__tc::before {
content: "";
width: 7px;
aspect-ratio: 1;
border-radius: 50%;
background: #e5452f;
animation: gu-reel2-blink 1.2s steps(1) infinite;
}
.gu-reel2__deck {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto;
align-items: center;
gap: 24px;
padding: 20px 0;
}
.gu-reel2__now p {
display: grid;
margin: 0;
}
.gu-reel2__now b {
font-family: var(--serif);
font-size: 1.5rem;
font-style: italic;
font-weight: 400;
animation: gu-reel2-rise 0.6s var(--ease) both;
}
.gu-reel2__now span {
color: var(--muted);
font-size: 0.88rem;
}
.gu-reel2__transport {
display: flex;
align-items: center;
gap: 14px;
}
.gu-reel2__play {
flex: none;
display: grid;
place-items: center;
width: 48px;
aspect-ratio: 1;
border: 0;
border-radius: 50%;
background: var(--amber);
color: var(--bg);
cursor: pointer;
transition: transform 0.4s var(--spring);
}
.gu-reel2__play svg {
width: 20px;
fill: currentColor;
}
.gu-reel2__play:hover {
transform: scale(1.08);
}
.gu-reel2__play:active {
transform: scale(0.92);
}
.gu-reel2__play[aria-pressed="true"] {
box-shadow: 0 0 0 6px rgb(232 176 74 / 0.18);
}
.gu-reel2__scrub {
position: relative;
flex: 1;
height: 40px;
cursor: ew-resize;
touch-action: none;
}
.gu-reel2__ticks {
position: absolute;
inset: 12px 0;
background: repeating-linear-gradient(90deg, rgb(236 232 225 / 0.25) 0 1px, transparent 1px 10px);
-webkit-mask: linear-gradient(transparent 0 30%, #000 30% 70%, transparent 70%);
mask: linear-gradient(transparent 0 30%, #000 30% 70%, transparent 70%);
}
.gu-reel2__fill {
position: absolute;
left: 0;
top: 19px;
height: 2px;
background: var(--amber);
}
.gu-reel2__head {
position: absolute;
top: 4px;
bottom: 4px;
width: 2px;
background: var(--amber);
translate: -1px 0;
}
.gu-reel2__head::before {
content: "";
position: absolute;
top: -4px;
left: 50%;
width: 12px;
height: 10px;
background: var(--amber);
clip-path: polygon(0 0, 100% 0, 50% 100%);
translate: -50% 0;
transition: transform 0.3s var(--spring);
}
.gu-reel2__scrub:hover .gu-reel2__head::before,
.gu-reel2__scrub:focus-visible .gu-reel2__head::before {
transform: scale(1.4);
}
.gu-reel2__tools {
display: flex;
align-items: center;
gap: 10px;
}
.gu-reel2__seg {
display: flex;
padding: 3px;
border: 1px solid var(--line);
border-radius: 999px;
}
.gu-reel2__seg button {
min-height: 36px;
padding: 0 12px;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--muted);
font-family: var(--mono);
font-size: 0.8rem;
cursor: pointer;
transition:
background-color 0.3s,
color 0.3s;
}
.gu-reel2__seg button[aria-pressed="true"] {
background: var(--text);
color: var(--bg);
}
.gu-reel2__grade {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 42px;
padding: 0 14px 0 8px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--text);
font: inherit;
font-size: 0.85rem;
white-space: nowrap;
cursor: pointer;
}
.gu-reel2__grade span {
position: relative;
width: 34px;
height: 20px;
border-radius: 999px;
background: rgb(236 232 225 / 0.2);
transition: background-color 0.4s;
}
.gu-reel2__grade span::after {
content: "";
position: absolute;
top: 3px;
left: 3px;
width: 14px;
aspect-ratio: 1;
border-radius: 50%;
background: var(--text);
transition: transform 0.4s var(--spring);
}
.gu-reel2__grade[aria-checked="true"] span {
background: linear-gradient(90deg, #2f6b8a, var(--amber));
}
.gu-reel2__grade[aria-checked="true"] span::after {
transform: translateX(14px);
}
/* A film strip with sprocket holes along both edges. */
.gu-reel2__strip {
position: relative;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 6px;
margin: 0;
padding: 18px 10px;
border-radius: 6px;
background: #18171a;
list-style: none;
}
.gu-reel2__strip::before,
.gu-reel2__strip::after {
content: "";
position: absolute;
left: 10px;
right: 10px;
height: 8px;
background: radial-gradient(circle, #050505 0 2.5px, transparent 3px) 0 0 / 14px 8px repeat-x;
}
.gu-reel2__strip::before {
top: 5px;
}
.gu-reel2__strip::after {
bottom: 5px;
}
.gu-reel2__strip button {
display: grid;
gap: 6px;
width: 100%;
padding: 0;
border: 0;
background: transparent;
color: var(--muted);
font: inherit;
text-align: left;
cursor: pointer;
}
.gu-reel2__strip .gu-reel2__still {
aspect-ratio: 2.39;
overflow: hidden;
border-radius: 2px;
outline: 2px solid transparent;
outline-offset: 2px;
filter: grayscale(0.85) brightness(0.7);
transition:
filter 0.5s var(--ease),
outline-color 0.3s;
}
.gu-reel2__strip .gu-reel2__still img {
transition: transform 0.8s var(--ease);
}
.gu-reel2__strip button:hover .gu-reel2__still {
filter: grayscale(0.2) brightness(0.95);
}
.gu-reel2__strip button:hover .gu-reel2__still img {
transform: scale(1.06);
}
.gu-reel2__strip button[aria-pressed="true"] {
color: var(--text);
}
.gu-reel2__strip button[aria-pressed="true"] .gu-reel2__still {
filter: none;
outline-color: var(--amber);
}
.gu-reel2__strip button > span:last-child {
display: flex;
justify-content: space-between;
gap: 6px;
font-size: 0.82rem;
}
.gu-reel2__strip small {
font-family: var(--mono);
}
/* ---------- Credits ---------- */
.gu-reel2__credits {
padding: 70px 5%;
border-top: 1px solid var(--line);
}
.gu-reel2__credits h2,
.gu-reel2__contact h2 {
margin: 0 0 24px;
font-family: var(--serif);
font-size: clamp(1.9rem, 4.2cqi, 3rem);
font-weight: 400;
font-style: italic;
}
.gu-reel2__credits ul {
margin: 0;
padding: 0;
list-style: none;
}
.gu-reel2__credits li {
position: relative;
display: grid;
grid-template-columns: 1.2fr 1fr 1.3fr auto;
align-items: baseline;
gap: 16px;
padding: 18px 0;
border-top: 1px solid var(--line);
transition:
padding 0.5s var(--ease),
color 0.3s;
}
.gu-reel2__credits li:hover {
padding-left: 14px;
}
.gu-reel2__role,
.gu-reel2__who {
color: var(--muted);
font-size: 0.9rem;
}
.gu-reel2__title {
font-family: var(--serif);
font-size: 1.35rem;
font-style: italic;
}
.gu-reel2__year {
font-family: var(--mono);
font-size: 0.82rem;
color: var(--muted);
}
.gu-reel2__peek {
position: absolute;
right: 70px;
top: 50%;
z-index: 2;
width: 220px;
height: auto;
aspect-ratio: 2.39;
overflow: hidden;
border-radius: 4px;
pointer-events: none;
translate: 0 -50%;
box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.8);
animation: gu-reel2-peek 0.5s var(--ease) both;
}
/* ---------- Contact ---------- */
.gu-reel2__contact {
padding: 70px 5%;
border-top: 1px solid var(--line);
background: var(--bg-2);
}
.gu-reel2__form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
max-width: 760px;
}
.gu-reel2__form label {
display: grid;
gap: 6px;
color: var(--muted);
font-size: 0.88rem;
}
.gu-reel2__wide {
grid-column: 1 / -1;
}
.gu-reel2__form input,
.gu-reel2__form textarea {
min-height: 48px;
padding: 12px 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--bg);
color: var(--text);
font: inherit;
resize: vertical;
transition: border-color 0.3s;
}
.gu-reel2__form input:focus,
.gu-reel2__form textarea:focus {
outline: none;
border-color: var(--amber);
}
.gu-reel2__form button {
justify-self: start;
min-height: 50px;
padding: 0 30px;
border: 0;
border-radius: 999px;
background: var(--amber);
color: var(--bg);
font: inherit;
font-weight: 700;
cursor: pointer;
transition: transform 0.3s var(--spring);
}
.gu-reel2__form button:hover {
transform: translateY(-2px);
}
.gu-reel2__sent {
display: flex;
align-items: center;
gap: 18px;
animation: gu-reel2-rise 0.6s var(--ease) both;
}
.gu-reel2__sent svg {
width: 80px;
overflow: visible;
}
.gu-reel2__sent rect {
fill: var(--text);
}
.gu-reel2__sent path {
stroke: var(--bg);
stroke-width: 5;
}
.gu-reel2__clap {
transform-origin: 6px 22px;
animation: gu-reel2-clap 0.8s var(--spring) 0.2s both;
}
.gu-reel2__sent p {
margin: 0;
font-family: var(--serif);
font-size: 1.5rem;
font-style: italic;
}
.gu-reel2__foot {
display: flex;
flex-wrap: wrap;
gap: 12px 26px;
padding: 24px 5% 32px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 0.9rem;
}
.gu-reel2__foot span {
flex: 1;
}
/* ---------- Motion ---------- */
@keyframes gu-reel2-rise {
from {
opacity: 0;
transform: translateY(20px);
}
}
@keyframes gu-reel2-open {
from {
clip-path: inset(50% 0 50% 0);
}
to {
clip-path: inset(0 0 0 0);
}
}
@keyframes gu-reel2-cut {
0% {
opacity: 0;
}
10% {
opacity: 1;
filter: brightness(2.2);
transform: translateY(-2%);
}
20% {
filter: brightness(0.6);
transform: translateY(1%);
}
35% {
filter: brightness(1.4);
transform: none;
}
50% {
filter: none;
}
}
@keyframes gu-reel2-burn {
0% {
opacity: 0;
}
15% {
opacity: 1;
}
100% {
opacity: 0;
transform: translateX(30%);
}
}
@keyframes gu-reel2-grain {
25% {
transform: translate(-5%, 3%);
}
50% {
transform: translate(4%, -4%);
}
75% {
transform: translate(-3%, -2%);
}
}
@keyframes gu-reel2-blink {
50% {
opacity: 0;
}
}
@keyframes gu-reel2-peek {
from {
opacity: 0;
clip-path: inset(0 100% 0 0);
translate: 20px -50%;
}
to {
clip-path: inset(0 0 0 0);
}
}
@keyframes gu-reel2-clap {
from {
transform: rotate(-28deg);
}
}
/* ---------- Narrow ---------- */
@container (max-width: 860px) {
.gu-reel2__deck {
grid-template-columns: 1fr;
gap: 14px;
}
.gu-reel2__tools {
flex-wrap: wrap;
}
}
@container (max-width: 620px) {
.gu-reel2__bar nav > a:not(.gu-reel2__navcta) {
display: none;
}
.gu-reel2__strip {
grid-template-columns: 1fr 1fr;
}
.gu-reel2__credits li {
grid-template-columns: 1fr auto;
gap: 2px 12px;
}
.gu-reel2__role,
.gu-reel2__who {
grid-column: 1;
}
.gu-reel2__title {
grid-row: 1;
}
.gu-reel2__year {
grid-row: 1;
grid-column: 2;
}
.gu-reel2__peek {
display: none;
}
.gu-reel2__form {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-reel2 *,
.gu-reel2 *::before,
.gu-reel2 *::after {
animation: none !important;
transition: none !important;
}
}
```
You might also want
Next piece: Freelancer money app page with a live splitInterior designer portfolio with a floor plan
Portfolios, advanced
Tattoo artist portfolio with a flash try-on
Portfolios, advanced
Ceramicist portfolio with a pottery wheel
Portfolios, advanced
