Private chef portfolio with a dinner builder
A candle-lit site for a private chef: spinning plate photos ringed with their names, and a dinner builder where dietary needs strike out dishes and a printed menu card, mini table and rolling price update live.
"use client";
import { useEffect, useMemo, useRef, useState, type CSSProperties } from "react";
import "./chef-portfolio.css";
/**
* ChefPortfolio: a candle-lit one-page site for a private chef.
* Its signature is "Build your dinner": choose a dish for each course,
* set the guests and any dietary needs, and a printed menu card updates
* live with the price. Dishes that clash with a need are struck through.
* It is a demo: connect `onRequest` to your inbox or booking tool.
*/
type Need = "veg" | "nuts" | "dairy";
type Dish = {
id: string;
name: string;
note: string;
price: number;
/** veg: is vegetarian. nuts / dairy: contains it. */
veg: boolean;
nuts?: boolean;
dairy?: boolean;
colors: [string, string, string];
};
type Course = { id: string; label: string; dishes: Dish[] };
const COURSES: Course[] = [
{
id: "snack",
label: "To start",
dishes: [
{ id: "olives", name: "Warm olives, smoked almonds", note: "Orange zest, thyme", price: 6, veg: true, nuts: true, colors: ["#6b7a3a", "#c9a066", "#e58a2b"] },
{ id: "crab", name: "Crab toast", note: "Brown butter, chives", price: 9, veg: false, dairy: true, colors: ["#e3a35b", "#f1d9a8", "#5d8a3c"] },
],
},
{
id: "starter",
label: "First plate",
dishes: [
{ id: "leeks", name: "Charred leeks", note: "Hazelnut butter, chervil", price: 14, veg: true, nuts: true, dairy: true, colors: ["#2f3a24", "#b48a4f", "#9bb067"] },
{ id: "beets", name: "Roast beetroot", note: "Blood orange, labneh", price: 13, veg: true, dairy: true, colors: ["#7d1f3a", "#e86a3c", "#f2ead8"] },
{ id: "tomato", name: "Late tomatoes", note: "Fig leaf oil, sourdough crumb", price: 12, veg: true, colors: ["#d24a2c", "#f0a43a", "#6c8a3a"] },
],
},
{
id: "main",
label: "Main",
dishes: [
{ id: "mackerel", name: "Grilled mackerel", note: "Rhubarb, dill, green oil", price: 26, veg: false, colors: ["#8a96a0", "#e58aa0", "#5c8a3a"] },
{ id: "lamb", name: "Slow lamb shoulder", note: "Flatbreads, yoghurt, pickles", price: 32, veg: false, dairy: true, colors: ["#6b3a26", "#f1e6cf", "#c6463a"] },
{ id: "squash", name: "Roast squash", note: "Freekeh, tahini, pomegranate", price: 22, veg: true, colors: ["#e58a2b", "#c9a066", "#a3223a"] },
],
},
{
id: "dessert",
label: "Sweet",
dishes: [
{ id: "tart", name: "Brown butter tart", note: "Crème fraîche, sea salt", price: 11, veg: true, dairy: true, nuts: true, colors: ["#b07a32", "#f4ecd9", "#e8c27a"] },
{ id: "pears", name: "Poached pears", note: "Bay leaf custard", price: 10, veg: true, dairy: true, colors: ["#d9b46a", "#f2e2a8", "#6c7a3a"] },
{ id: "sorbet", name: "Blood orange sorbet", note: "Olive oil, black pepper", price: 9, veg: true, colors: ["#e2502c", "#f2a65a", "#3a4a2c"] },
],
},
];
const NEEDS: { id: Need; label: string }[] = [
{ id: "veg", label: "Vegetarian" },
{ id: "nuts", label: "No nuts" },
{ id: "dairy", label: "No dairy" },
];
const PLATES = [
{ src: "/images/portfolio-chef-plate-01.jpg", name: "Charred leeks, hazelnut butter", alt: "Charred leeks with hazelnut brown butter on a speckled stoneware plate", tone: "#5a4a2c" },
{ src: "/images/portfolio-chef-plate-02.jpg", name: "Mackerel, rhubarb, green oil", alt: "Grilled mackerel with thin rhubarb slices and herb oil on a dark plate", tone: "#3a3f44" },
{ src: "/images/portfolio-chef-plate-03.jpg", name: "Brown butter tart", alt: "A slice of brown butter tart with crème fraîche and flaky salt", tone: "#8a6a3a" },
];
const SERVICE = 120; // flat fee for the evening
const fits = (d: Dish, needs: Set<Need>) =>
!(needs.has("veg") && !d.veg) &&
!(needs.has("nuts") && d.nuts) &&
!(needs.has("dairy") && d.dairy);
function Photo({
src,
alt,
tone,
className = "",
}: {
src: string;
alt: string;
tone: string;
className?: string;
}) {
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-chef__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && (
<img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />
)}
</span>
);
}
/** A number whose digits roll when it changes. */
function Rolling({ value, prefix = "" }: { value: number; prefix?: string }) {
const text = `${prefix}${value.toLocaleString("en-GB")}`;
return (
<span className="gu-chef__roll" aria-hidden="true">
{text.split("").map((ch, i) => (
<span key={`${i}-${ch}`} style={{ "--d": `${i * 40}ms` } as CSSProperties}>
{ch}
</span>
))}
</span>
);
}
export function ChefPortfolio({
onRequest,
}: {
onRequest?: (data: { dishes: string[]; guests: number; total: number; needs: Need[] }) => void;
}) {
const [needs, setNeeds] = useState<Set<Need>>(new Set());
const [picked, setPicked] = useState<Record<string, string>>(() =>
Object.fromEntries(COURSES.map((c) => [c.id, c.dishes[0].id])),
);
const [guests, setGuests] = useState(6);
const [sent, setSent] = useState(false);
/* If a need rules out a chosen dish, move to the first dish that fits. */
const chosen = useMemo(
() =>
COURSES.map((c) => {
const want = c.dishes.find((d) => d.id === picked[c.id]);
const ok = want && fits(want, needs) ? want : c.dishes.find((d) => fits(d, needs));
return { course: c, dish: ok ?? null };
}),
[picked, needs],
);
const perHead = chosen.reduce((s, x) => s + (x.dish?.price ?? 0), 0);
const total = perHead * guests + SERVICE;
const toggleNeed = (n: Need) =>
setNeeds((prev) => {
const next = new Set(prev);
if (next.has(n)) next.delete(n);
else next.add(n);
return next;
});
const request = () => {
onRequest?.({
dishes: chosen.flatMap((x) => (x.dish ? [x.dish.name] : [])),
guests,
total,
needs: [...needs],
});
setSent(true);
};
return (
<div className="gu-chef">
<header className="gu-chef__bar">
<a href="#" className="gu-chef__mark">
Noor Haddad
</a>
<nav aria-label="Noor Haddad">
<a href="#chef-plates">Plates</a>
<a href="#chef-build" className="gu-chef__navcta">
Plan a dinner
</a>
</nav>
</header>
<section className="gu-chef__hero">
<div className="gu-chef__hero-copy">
<p className="gu-chef__kicker">Private chef, Bristol and around</p>
<h1>
<span>Dinner at yours,</span> <span>cooked by me.</span>
</h1>
<p className="gu-chef__lede">
Seasonal, generous food for six to twenty at your own table. I bring the
ingredients, cook in your kitchen and leave it cleaner than I found it.
</p>
<a href="#chef-build" className="gu-chef__cta">
Build your dinner
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 12h14M13 6l6 6-6 6" />
</svg>
</a>
</div>
<div className="gu-chef__hero-art">
<span className="gu-chef__candle" aria-hidden="true" />
<Photo
src="/images/portfolio-chef-portrait-04.jpg"
alt="Noor spooning sauce onto a plate at a kitchen table"
tone="#5a3f2c"
className="gu-chef__portrait"
/>
</div>
</section>
<section id="chef-plates" className="gu-chef__plates" aria-labelledby="chef-plates-title">
<h2 id="chef-plates-title">From recent tables</h2>
<ul>
{PLATES.map((p, i) => (
<li key={p.src} style={{ "--i": i } as CSSProperties}>
<div className="gu-chef__plate">
<Photo src={p.src} alt={p.alt} tone={p.tone} />
<svg viewBox="0 0 200 200" aria-hidden="true">
<defs>
<path id={`chef-ring-${i}`} d="M100 100m-88 0a88 88 0 1 1 176 0a88 88 0 1 1-176 0" />
</defs>
<text>
<textPath href={`#chef-ring-${i}`}>
{`${p.name} · ${p.name} · `}
</textPath>
</text>
</svg>
</div>
<p>{p.name}</p>
</li>
))}
</ul>
</section>
<section id="chef-build" className="gu-chef__build" aria-labelledby="chef-build-title">
<div className="gu-chef__builder">
<h2 id="chef-build-title">Build your dinner</h2>
<p className="gu-chef__hint">Pick one dish for each course. Prices are per guest.</p>
<div className="gu-chef__needs" role="group" aria-label="Dietary needs">
{NEEDS.map((n) => (
<button
key={n.id}
type="button"
aria-pressed={needs.has(n.id)}
onClick={() => toggleNeed(n.id)}
>
<span aria-hidden="true" />
{n.label}
</button>
))}
</div>
{COURSES.map((c, ci) => {
const current = chosen[ci].dish?.id;
return (
<fieldset key={c.id} className="gu-chef__course">
<legend>{c.label}</legend>
<div className="gu-chef__dishes">
{c.dishes.map((d) => {
const ok = fits(d, needs);
return (
<label key={d.id} data-on={current === d.id || undefined} data-off={!ok || undefined}>
<input
type="radio"
name={`chef-${c.id}`}
value={d.id}
checked={current === d.id}
disabled={!ok}
onChange={() => setPicked((p) => ({ ...p, [c.id]: d.id }))}
/>
<span className="gu-chef__dot" aria-hidden="true">
{d.colors.map((col, k) => (
<i key={k} style={{ background: col }} />
))}
</span>
<span className="gu-chef__dname">
{d.name}
<small>{d.note}</small>
</span>
<span className="gu-chef__price">£{d.price}</span>
</label>
);
})}
</div>
</fieldset>
);
})}
</div>
<aside className="gu-chef__card-wrap" aria-label="Your menu">
<div className="gu-chef__card" data-sent={sent || undefined}>
<p className="gu-chef__card-top">Menu</p>
<div className="gu-chef__table" aria-hidden="true">
{chosen.map(({ course, dish }, i) => (
<span
key={`${course.id}-${dish?.id}`}
className="gu-chef__mini"
style={
{
"--a": dish?.colors[0],
"--b": dish?.colors[1],
"--c": dish?.colors[2],
"--i": i,
} as CSSProperties
}
/>
))}
</div>
<ol className="gu-chef__menu" aria-live="polite">
{chosen.map(({ course, dish }) => (
<li key={course.id}>
<span key={dish?.id}>{dish ? dish.name : "Nothing fits yet"}</span>
{dish && <small>{dish.note}</small>}
</li>
))}
</ol>
<div className="gu-chef__guests">
<span id="chef-guests-label">Guests</span>
<div>
<button
type="button"
aria-label="One fewer guest"
onClick={() => setGuests((g) => Math.max(2, g - 1))}
disabled={guests <= 2}
>
−
</button>
<output aria-labelledby="chef-guests-label">{guests}</output>
<button
type="button"
aria-label="One more guest"
onClick={() => setGuests((g) => Math.min(20, g + 1))}
disabled={guests >= 20}
>
+
</button>
</div>
</div>
<dl className="gu-chef__sum">
<div>
<dt>Per guest</dt>
<dd>
<Rolling value={perHead} prefix="£" />
<span className="gu-chef__sr">£{perHead}</span>
</dd>
</div>
<div>
<dt>Evening total, with £{SERVICE} service</dt>
<dd className="gu-chef__total">
<Rolling value={total} prefix="£" />
<span className="gu-chef__sr">£{total}</span>
</dd>
</div>
</dl>
{sent ? (
<p className="gu-chef__done" role="status">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 13l4 4 10-10" pathLength={1} />
</svg>
Sent. I’ll reply with dates within a day.
</p>
) : (
<button type="button" className="gu-chef__send" onClick={request}>
Request this dinner
</button>
)}
</div>
</aside>
</section>
<section className="gu-chef__quote">
<blockquote>
<p>“We forgot we were at home. Then we remembered, and nobody had to wash up.”</p>
<footer>Hannah, a fortieth birthday for twelve</footer>
</blockquote>
</section>
<footer className="gu-chef__foot">
<span>© 2026 Noor Haddad</span>
<a href="#">Instagram</a>
<a href="#">hello@example.com</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: Private chef portfolio with a dinner builder
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 candle-lit one-page site for a private chef ("Noor Haddad, private chef, Bristol and around"). Its signature is "Build your dinner": four courses (To start, First plate, Main, Sweet) with two or three dishes each. Choosing a dish updates a cream menu card on the right: a small table runner with one mini plate per course (drawn in CSS from three colours per dish, dropping in with a spin), the dish names in serif, a guest stepper (2 to 20) and the per-guest and evening totals, whose digits roll when they change. Three need chips (Vegetarian, No nuts, No dairy) strike out dishes that clash with a line that draws across them; if a chosen dish is ruled out, the course moves to the first dish that fits. "Request this dinner" turns into a confirmation with a drawn tick.
## Palette
Background #16110d with a saffron glow at the top right, panel #211912, cream #f3e7d3, muted #a8957d, saffron #e3a33b, lines rgb(243 231 211 / 0.14), focus ring #8fa2ff. The menu card is #f3e7d3 with dark brown #2a1f16 text. Headings use a serif ("Canela", "Playfair Display", Georgia); the rest is system-ui.
## Layout
- Bar: an italic serif name, a "Plates" link and a saffron outline "Plan a dinner" pill.
- Hero: two columns. Left: saffron line, a two-line serif headline whose second line is italic saffron, a paragraph and a cream "Build your dinner" button with an arrow. Right: a 4:5 portrait with an arched top, over a flickering candle glow.
- From recent tables: three round plate photos with a cream rim and a ring of the dish name in small caps on an SVG text path that slowly turns. On hover the plate lifts, the photo rotates 40° and the ring turns saffron.
- Builder: two columns, the menu card sticky on the right. Dish rows show a tiny CSS plate, name and note, and price per guest.
- A centred serif quote, then a footer.
- Below 760px everything stacks and the card is no longer sticky.
## Images
- portfolio-chef-plate-01.jpg to -03.jpg (1:1): overhead plates. portfolio-chef-portrait-04.jpg (4:5): the chef at work. Until a file exists, each frame shows a warm toned gradient.
## Motion
- Hero lines rise out of a blur one after another; the plates spin in on a stagger.
- Need chips turn their square into a saffron diamond; chosen dishes spin their tiny plate.
- Menu names re-ink with a blur when they change; totals roll digit by digit; the card bounces when the request is sent.
## Accessibility
- Each course is a fieldset of real radio buttons; ruled-out dishes are disabled.
- Need chips use aria-pressed. The guest count is an output labelled "Guests".
- The menu list is aria-live, totals have screen-reader text, and the confirmation 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.
### ChefPortfolio.tsx
```tsx
"use client";
import { useEffect, useMemo, useRef, useState, type CSSProperties } from "react";
import "./chef-portfolio.css";
/**
* ChefPortfolio: a candle-lit one-page site for a private chef.
* Its signature is "Build your dinner": choose a dish for each course,
* set the guests and any dietary needs, and a printed menu card updates
* live with the price. Dishes that clash with a need are struck through.
* It is a demo: connect `onRequest` to your inbox or booking tool.
*/
type Need = "veg" | "nuts" | "dairy";
type Dish = {
id: string;
name: string;
note: string;
price: number;
/** veg: is vegetarian. nuts / dairy: contains it. */
veg: boolean;
nuts?: boolean;
dairy?: boolean;
colors: [string, string, string];
};
type Course = { id: string; label: string; dishes: Dish[] };
const COURSES: Course[] = [
{
id: "snack",
label: "To start",
dishes: [
{ id: "olives", name: "Warm olives, smoked almonds", note: "Orange zest, thyme", price: 6, veg: true, nuts: true, colors: ["#6b7a3a", "#c9a066", "#e58a2b"] },
{ id: "crab", name: "Crab toast", note: "Brown butter, chives", price: 9, veg: false, dairy: true, colors: ["#e3a35b", "#f1d9a8", "#5d8a3c"] },
],
},
{
id: "starter",
label: "First plate",
dishes: [
{ id: "leeks", name: "Charred leeks", note: "Hazelnut butter, chervil", price: 14, veg: true, nuts: true, dairy: true, colors: ["#2f3a24", "#b48a4f", "#9bb067"] },
{ id: "beets", name: "Roast beetroot", note: "Blood orange, labneh", price: 13, veg: true, dairy: true, colors: ["#7d1f3a", "#e86a3c", "#f2ead8"] },
{ id: "tomato", name: "Late tomatoes", note: "Fig leaf oil, sourdough crumb", price: 12, veg: true, colors: ["#d24a2c", "#f0a43a", "#6c8a3a"] },
],
},
{
id: "main",
label: "Main",
dishes: [
{ id: "mackerel", name: "Grilled mackerel", note: "Rhubarb, dill, green oil", price: 26, veg: false, colors: ["#8a96a0", "#e58aa0", "#5c8a3a"] },
{ id: "lamb", name: "Slow lamb shoulder", note: "Flatbreads, yoghurt, pickles", price: 32, veg: false, dairy: true, colors: ["#6b3a26", "#f1e6cf", "#c6463a"] },
{ id: "squash", name: "Roast squash", note: "Freekeh, tahini, pomegranate", price: 22, veg: true, colors: ["#e58a2b", "#c9a066", "#a3223a"] },
],
},
{
id: "dessert",
label: "Sweet",
dishes: [
{ id: "tart", name: "Brown butter tart", note: "Crème fraîche, sea salt", price: 11, veg: true, dairy: true, nuts: true, colors: ["#b07a32", "#f4ecd9", "#e8c27a"] },
{ id: "pears", name: "Poached pears", note: "Bay leaf custard", price: 10, veg: true, dairy: true, colors: ["#d9b46a", "#f2e2a8", "#6c7a3a"] },
{ id: "sorbet", name: "Blood orange sorbet", note: "Olive oil, black pepper", price: 9, veg: true, colors: ["#e2502c", "#f2a65a", "#3a4a2c"] },
],
},
];
const NEEDS: { id: Need; label: string }[] = [
{ id: "veg", label: "Vegetarian" },
{ id: "nuts", label: "No nuts" },
{ id: "dairy", label: "No dairy" },
];
const PLATES = [
{ src: "/images/portfolio-chef-plate-01.jpg", name: "Charred leeks, hazelnut butter", alt: "Charred leeks with hazelnut brown butter on a speckled stoneware plate", tone: "#5a4a2c" },
{ src: "/images/portfolio-chef-plate-02.jpg", name: "Mackerel, rhubarb, green oil", alt: "Grilled mackerel with thin rhubarb slices and herb oil on a dark plate", tone: "#3a3f44" },
{ src: "/images/portfolio-chef-plate-03.jpg", name: "Brown butter tart", alt: "A slice of brown butter tart with crème fraîche and flaky salt", tone: "#8a6a3a" },
];
const SERVICE = 120; // flat fee for the evening
const fits = (d: Dish, needs: Set<Need>) =>
!(needs.has("veg") && !d.veg) &&
!(needs.has("nuts") && d.nuts) &&
!(needs.has("dairy") && d.dairy);
function Photo({
src,
alt,
tone,
className = "",
}: {
src: string;
alt: string;
tone: string;
className?: string;
}) {
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-chef__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && (
<img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />
)}
</span>
);
}
/** A number whose digits roll when it changes. */
function Rolling({ value, prefix = "" }: { value: number; prefix?: string }) {
const text = `${prefix}${value.toLocaleString("en-GB")}`;
return (
<span className="gu-chef__roll" aria-hidden="true">
{text.split("").map((ch, i) => (
<span key={`${i}-${ch}`} style={{ "--d": `${i * 40}ms` } as CSSProperties}>
{ch}
</span>
))}
</span>
);
}
export function ChefPortfolio({
onRequest,
}: {
onRequest?: (data: { dishes: string[]; guests: number; total: number; needs: Need[] }) => void;
}) {
const [needs, setNeeds] = useState<Set<Need>>(new Set());
const [picked, setPicked] = useState<Record<string, string>>(() =>
Object.fromEntries(COURSES.map((c) => [c.id, c.dishes[0].id])),
);
const [guests, setGuests] = useState(6);
const [sent, setSent] = useState(false);
/* If a need rules out a chosen dish, move to the first dish that fits. */
const chosen = useMemo(
() =>
COURSES.map((c) => {
const want = c.dishes.find((d) => d.id === picked[c.id]);
const ok = want && fits(want, needs) ? want : c.dishes.find((d) => fits(d, needs));
return { course: c, dish: ok ?? null };
}),
[picked, needs],
);
const perHead = chosen.reduce((s, x) => s + (x.dish?.price ?? 0), 0);
const total = perHead * guests + SERVICE;
const toggleNeed = (n: Need) =>
setNeeds((prev) => {
const next = new Set(prev);
if (next.has(n)) next.delete(n);
else next.add(n);
return next;
});
const request = () => {
onRequest?.({
dishes: chosen.flatMap((x) => (x.dish ? [x.dish.name] : [])),
guests,
total,
needs: [...needs],
});
setSent(true);
};
return (
<div className="gu-chef">
<header className="gu-chef__bar">
<a href="#" className="gu-chef__mark">
Noor Haddad
</a>
<nav aria-label="Noor Haddad">
<a href="#chef-plates">Plates</a>
<a href="#chef-build" className="gu-chef__navcta">
Plan a dinner
</a>
</nav>
</header>
<section className="gu-chef__hero">
<div className="gu-chef__hero-copy">
<p className="gu-chef__kicker">Private chef, Bristol and around</p>
<h1>
<span>Dinner at yours,</span> <span>cooked by me.</span>
</h1>
<p className="gu-chef__lede">
Seasonal, generous food for six to twenty at your own table. I bring the
ingredients, cook in your kitchen and leave it cleaner than I found it.
</p>
<a href="#chef-build" className="gu-chef__cta">
Build your dinner
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 12h14M13 6l6 6-6 6" />
</svg>
</a>
</div>
<div className="gu-chef__hero-art">
<span className="gu-chef__candle" aria-hidden="true" />
<Photo
src="/images/portfolio-chef-portrait-04.jpg"
alt="Noor spooning sauce onto a plate at a kitchen table"
tone="#5a3f2c"
className="gu-chef__portrait"
/>
</div>
</section>
<section id="chef-plates" className="gu-chef__plates" aria-labelledby="chef-plates-title">
<h2 id="chef-plates-title">From recent tables</h2>
<ul>
{PLATES.map((p, i) => (
<li key={p.src} style={{ "--i": i } as CSSProperties}>
<div className="gu-chef__plate">
<Photo src={p.src} alt={p.alt} tone={p.tone} />
<svg viewBox="0 0 200 200" aria-hidden="true">
<defs>
<path id={`chef-ring-${i}`} d="M100 100m-88 0a88 88 0 1 1 176 0a88 88 0 1 1-176 0" />
</defs>
<text>
<textPath href={`#chef-ring-${i}`}>
{`${p.name} · ${p.name} · `}
</textPath>
</text>
</svg>
</div>
<p>{p.name}</p>
</li>
))}
</ul>
</section>
<section id="chef-build" className="gu-chef__build" aria-labelledby="chef-build-title">
<div className="gu-chef__builder">
<h2 id="chef-build-title">Build your dinner</h2>
<p className="gu-chef__hint">Pick one dish for each course. Prices are per guest.</p>
<div className="gu-chef__needs" role="group" aria-label="Dietary needs">
{NEEDS.map((n) => (
<button
key={n.id}
type="button"
aria-pressed={needs.has(n.id)}
onClick={() => toggleNeed(n.id)}
>
<span aria-hidden="true" />
{n.label}
</button>
))}
</div>
{COURSES.map((c, ci) => {
const current = chosen[ci].dish?.id;
return (
<fieldset key={c.id} className="gu-chef__course">
<legend>{c.label}</legend>
<div className="gu-chef__dishes">
{c.dishes.map((d) => {
const ok = fits(d, needs);
return (
<label key={d.id} data-on={current === d.id || undefined} data-off={!ok || undefined}>
<input
type="radio"
name={`chef-${c.id}`}
value={d.id}
checked={current === d.id}
disabled={!ok}
onChange={() => setPicked((p) => ({ ...p, [c.id]: d.id }))}
/>
<span className="gu-chef__dot" aria-hidden="true">
{d.colors.map((col, k) => (
<i key={k} style={{ background: col }} />
))}
</span>
<span className="gu-chef__dname">
{d.name}
<small>{d.note}</small>
</span>
<span className="gu-chef__price">£{d.price}</span>
</label>
);
})}
</div>
</fieldset>
);
})}
</div>
<aside className="gu-chef__card-wrap" aria-label="Your menu">
<div className="gu-chef__card" data-sent={sent || undefined}>
<p className="gu-chef__card-top">Menu</p>
<div className="gu-chef__table" aria-hidden="true">
{chosen.map(({ course, dish }, i) => (
<span
key={`${course.id}-${dish?.id}`}
className="gu-chef__mini"
style={
{
"--a": dish?.colors[0],
"--b": dish?.colors[1],
"--c": dish?.colors[2],
"--i": i,
} as CSSProperties
}
/>
))}
</div>
<ol className="gu-chef__menu" aria-live="polite">
{chosen.map(({ course, dish }) => (
<li key={course.id}>
<span key={dish?.id}>{dish ? dish.name : "Nothing fits yet"}</span>
{dish && <small>{dish.note}</small>}
</li>
))}
</ol>
<div className="gu-chef__guests">
<span id="chef-guests-label">Guests</span>
<div>
<button
type="button"
aria-label="One fewer guest"
onClick={() => setGuests((g) => Math.max(2, g - 1))}
disabled={guests <= 2}
>
−
</button>
<output aria-labelledby="chef-guests-label">{guests}</output>
<button
type="button"
aria-label="One more guest"
onClick={() => setGuests((g) => Math.min(20, g + 1))}
disabled={guests >= 20}
>
+
</button>
</div>
</div>
<dl className="gu-chef__sum">
<div>
<dt>Per guest</dt>
<dd>
<Rolling value={perHead} prefix="£" />
<span className="gu-chef__sr">£{perHead}</span>
</dd>
</div>
<div>
<dt>Evening total, with £{SERVICE} service</dt>
<dd className="gu-chef__total">
<Rolling value={total} prefix="£" />
<span className="gu-chef__sr">£{total}</span>
</dd>
</div>
</dl>
{sent ? (
<p className="gu-chef__done" role="status">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 13l4 4 10-10" pathLength={1} />
</svg>
Sent. I’ll reply with dates within a day.
</p>
) : (
<button type="button" className="gu-chef__send" onClick={request}>
Request this dinner
</button>
)}
</div>
</aside>
</section>
<section className="gu-chef__quote">
<blockquote>
<p>“We forgot we were at home. Then we remembered, and nobody had to wash up.”</p>
<footer>Hannah, a fortieth birthday for twelve</footer>
</blockquote>
</section>
<footer className="gu-chef__foot">
<span>© 2026 Noor Haddad</span>
<a href="#">Instagram</a>
<a href="#">hello@example.com</a>
</footer>
</div>
);
}
```
### chef-portfolio.css
```css
/* Noor Haddad: a candle-lit dining room. Warm dark wood, cream paper, one saffron accent. */
.gu-chef {
--bg: #16110d;
--bg-2: #211912;
--cream: #f3e7d3;
--muted: #a8957d;
--line: rgb(243 231 211 / 0.14);
--saffron: #e3a33b;
--focus: #8fa2ff;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
--serif: "Canela", "Playfair Display", "Iowan Old Style", Georgia, serif;
position: relative;
container-type: inline-size;
overflow: hidden;
isolation: isolate;
background:
radial-gradient(60% 40% at 80% 0%, rgb(227 163 59 / 0.16), transparent 70%),
var(--bg);
color: var(--cream);
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
line-height: 1.55;
}
.gu-chef *,
.gu-chef *::before,
.gu-chef *::after {
box-sizing: border-box;
}
.gu-chef a {
color: inherit;
}
.gu-chef :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.gu-chef__sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
/* ---------- Bar ---------- */
.gu-chef__bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 22px 6%;
border-bottom: 1px solid var(--line);
}
.gu-chef__mark {
font-family: var(--serif);
font-size: 1.45rem;
font-style: italic;
text-decoration: none;
}
.gu-chef__bar nav {
display: flex;
align-items: center;
gap: 24px;
font-size: 0.95rem;
}
.gu-chef__bar nav a:not(.gu-chef__navcta) {
text-decoration: none;
opacity: 0.8;
transition: opacity 0.3s;
}
.gu-chef__bar nav a:not(.gu-chef__navcta):hover {
opacity: 1;
}
.gu-chef__navcta {
padding: 10px 18px;
border: 1px solid var(--saffron);
border-radius: 999px;
color: var(--saffron) !important;
text-decoration: none;
transition:
background-color 0.3s var(--ease),
color 0.3s var(--ease);
}
.gu-chef__navcta:hover {
background: var(--saffron);
color: var(--bg) !important;
}
/* ---------- Hero ---------- */
.gu-chef__hero {
display: grid;
grid-template-columns: 1.15fr 1fr;
align-items: center;
gap: 40px;
padding: 60px 6% 80px;
}
.gu-chef__kicker {
margin: 0 0 18px;
color: var(--saffron);
font-size: 0.9rem;
font-weight: 600;
animation: gu-chef-rise 0.9s var(--ease) both;
}
.gu-chef__hero h1 {
margin: 0;
font-family: var(--serif);
font-size: clamp(2.6rem, 6.6cqi, 5.4rem);
font-weight: 400;
line-height: 1;
letter-spacing: -0.02em;
}
.gu-chef__hero h1 span {
display: block;
animation: gu-chef-rise 1.1s var(--ease) both;
}
.gu-chef__hero h1 span + span {
font-style: italic;
color: var(--saffron);
animation-delay: 0.15s;
}
.gu-chef__lede {
max-width: 42ch;
margin: 24px 0 30px;
color: var(--muted);
font-size: 1.05rem;
animation: gu-chef-rise 1s var(--ease) 0.3s both;
}
.gu-chef__cta {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 15px 26px;
border-radius: 999px;
background: var(--cream);
color: var(--bg) !important;
font-weight: 700;
text-decoration: none;
animation: gu-chef-rise 1s var(--ease) 0.42s both;
transition: background-color 0.3s;
}
.gu-chef__cta svg {
width: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
transition: transform 0.4s var(--spring);
}
.gu-chef__cta:hover {
background: var(--saffron);
}
.gu-chef__cta:hover svg {
transform: translateX(5px);
}
.gu-chef__hero-art {
position: relative;
animation: gu-chef-fade 1.4s var(--ease) 0.2s both;
}
/* A candle glow that flickers behind the portrait. */
.gu-chef__candle {
position: absolute;
inset: -18%;
z-index: -1;
border-radius: 50%;
background: radial-gradient(circle, rgb(227 163 59 / 0.35), transparent 62%);
animation: gu-chef-flicker 3.2s ease-in-out infinite;
}
.gu-chef__photo {
position: relative;
display: block;
overflow: hidden;
background:
radial-gradient(circle at 35% 30%, rgb(255 230 190 / 0.3), transparent 55%),
var(--tone);
}
.gu-chef__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.gu-chef__portrait {
aspect-ratio: 4 / 5;
}
.gu-chef__portrait img {
object-position: 72% 50%;
}
.gu-chef__portrait {
border-radius: 200px 200px 18px 18px;
box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8);
}
/* ---------- Plates ---------- */
.gu-chef__plates {
padding: 70px 6%;
border-top: 1px solid var(--line);
}
.gu-chef__plates h2,
.gu-chef__builder h2 {
margin: 0 0 30px;
font-family: var(--serif);
font-size: clamp(2rem, 4.4cqi, 3.2rem);
font-weight: 400;
}
.gu-chef__plates ul {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
margin: 0;
padding: 0;
list-style: none;
}
.gu-chef__plates li {
text-align: center;
animation: gu-chef-spin-in 1.2s var(--ease) calc(var(--i) * 0.15s) both;
}
.gu-chef__plates li p {
margin: 14px 0 0;
color: var(--muted);
font-size: 0.92rem;
}
.gu-chef__plate {
position: relative;
aspect-ratio: 1;
transition: transform 0.8s var(--ease);
}
.gu-chef__plate .gu-chef__photo {
position: absolute;
inset: 13%;
border-radius: 50%;
box-shadow:
0 0 0 10px #ece2d0,
0 0 0 11px rgb(0 0 0 / 0.2),
0 30px 50px -20px rgb(0 0 0 / 0.9);
transition: transform 1.2s var(--ease);
}
.gu-chef__plate svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
animation: gu-chef-turn 40s linear infinite;
}
.gu-chef__plate text {
fill: var(--muted);
font-size: 9.5px;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.gu-chef__plate:hover {
transform: translateY(-8px);
}
.gu-chef__plate:hover .gu-chef__photo {
transform: rotate(40deg) scale(1.04);
}
.gu-chef__plate:hover text {
fill: var(--saffron);
}
/* ---------- Builder ---------- */
.gu-chef__build {
display: grid;
grid-template-columns: 1.25fr 1fr;
align-items: start;
gap: 40px;
padding: 80px 6%;
border-top: 1px solid var(--line);
background: var(--bg-2);
}
.gu-chef__builder h2 {
margin-bottom: 8px;
}
.gu-chef__hint {
margin: 0 0 22px;
color: var(--muted);
}
.gu-chef__needs {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 26px;
}
.gu-chef__needs button {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 42px;
padding: 0 16px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--cream);
font: inherit;
font-size: 0.92rem;
cursor: pointer;
transition:
border-color 0.3s,
background-color 0.3s;
}
.gu-chef__needs button span {
width: 14px;
aspect-ratio: 1;
border: 1.5px solid currentColor;
border-radius: 4px;
transition:
background-color 0.3s,
transform 0.4s var(--spring);
}
.gu-chef__needs button:hover {
border-color: var(--cream);
}
.gu-chef__needs button[aria-pressed="true"] {
border-color: var(--saffron);
background: rgb(227 163 59 / 0.12);
}
.gu-chef__needs button[aria-pressed="true"] span {
background: var(--saffron);
border-color: var(--saffron);
transform: rotate(45deg) scale(0.8);
}
.gu-chef__course {
margin: 0 0 22px;
padding: 0;
border: 0;
}
.gu-chef__course legend {
margin-bottom: 8px;
color: var(--saffron);
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.08em;
}
.gu-chef__dishes {
display: grid;
gap: 6px;
}
.gu-chef__dishes label {
position: relative;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 14px;
padding: 12px 16px;
border: 1px solid var(--line);
border-radius: 14px;
cursor: pointer;
transition:
border-color 0.3s,
background-color 0.3s,
opacity 0.4s,
transform 0.4s var(--ease);
}
.gu-chef__dishes label:hover:not([data-off]) {
border-color: rgb(243 231 211 / 0.4);
transform: translateX(4px);
}
.gu-chef__dishes label[data-on] {
border-color: var(--saffron);
background: rgb(227 163 59 / 0.1);
}
.gu-chef__dishes label[data-off] {
cursor: not-allowed;
opacity: 0.38;
}
/* The strike line draws across a dish when a need rules it out. */
.gu-chef__dishes label::after {
content: "";
position: absolute;
left: 12px;
right: 12px;
top: 50%;
height: 1.5px;
background: var(--cream);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.5s var(--ease);
}
.gu-chef__dishes label[data-off]::after {
transform: scaleX(1);
}
.gu-chef__dishes input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.gu-chef__dishes label:has(input:focus-visible) {
outline: 3px solid var(--focus);
outline-offset: 2px;
}
.gu-chef__dot {
position: relative;
width: 34px;
aspect-ratio: 1;
border-radius: 50%;
background: #ece2d0;
box-shadow: inset 0 0 0 4px #ddd0b8;
transition: transform 0.6s var(--spring);
}
.gu-chef__dot i {
position: absolute;
border-radius: 50%;
}
.gu-chef__dot i:nth-child(1) {
inset: 9px 8px 10px 9px;
}
.gu-chef__dot i:nth-child(2) {
width: 8px;
height: 6px;
left: 16px;
top: 10px;
}
.gu-chef__dot i:nth-child(3) {
width: 5px;
height: 5px;
left: 11px;
top: 18px;
}
.gu-chef__dishes label[data-on] .gu-chef__dot {
transform: rotate(160deg) scale(1.08);
}
.gu-chef__dname {
display: grid;
font-weight: 600;
}
.gu-chef__dname small {
color: var(--muted);
font-weight: 400;
}
.gu-chef__price {
font-variant-numeric: tabular-nums;
color: var(--muted);
}
/* ---------- The menu card ---------- */
.gu-chef__card-wrap {
position: sticky;
top: 24px;
}
.gu-chef__card {
position: relative;
padding: 30px 28px 28px;
border-radius: 6px;
background:
radial-gradient(80% 50% at 50% 0%, #fffaf0, transparent),
#f3e7d3;
color: #2a1f16;
box-shadow:
0 2px 0 #d9c8ab,
0 40px 70px -30px rgb(0 0 0 / 0.9);
transform: rotate(1.2deg);
transition: transform 0.6s var(--spring);
}
.gu-chef__card:hover {
transform: rotate(0deg) translateY(-4px);
}
.gu-chef__card[data-sent] {
animation: gu-chef-stamp 0.7s var(--spring);
}
.gu-chef__card-top {
margin: 0 0 14px;
font-family: var(--serif);
font-size: 1.7rem;
font-style: italic;
text-align: center;
}
/* A table runner with one small plate per course. */
.gu-chef__table {
display: flex;
justify-content: center;
gap: 10px;
margin: 0 -8px 18px;
padding: 12px;
border-radius: 999px;
background: #e5d6bb;
}
.gu-chef__mini {
position: relative;
width: 46px;
aspect-ratio: 1;
border-radius: 50%;
background:
radial-gradient(circle at 62% 38%, var(--b) 0 6px, transparent 7px),
radial-gradient(circle at 38% 64%, var(--c) 0 4px, transparent 5px),
radial-gradient(circle, var(--a) 0 12px, transparent 13px),
#fbf5ea;
box-shadow:
inset 0 0 0 4px #efe4cf,
0 4px 8px -3px rgb(60 40 20 / 0.4);
animation: gu-chef-plate 0.8s var(--spring) calc(var(--i) * 0.05s) both;
}
.gu-chef__menu {
display: grid;
gap: 12px;
margin: 0 0 20px;
padding: 0;
list-style: none;
text-align: center;
}
.gu-chef__menu li {
display: grid;
}
.gu-chef__menu li span {
font-family: var(--serif);
font-size: 1.12rem;
animation: gu-chef-ink 0.6s var(--ease) both;
}
.gu-chef__menu li small {
color: #7a6a55;
font-size: 0.82rem;
}
.gu-chef__menu li + li::before {
content: "";
justify-self: center;
width: 24px;
height: 1px;
margin-bottom: 12px;
background: #c9b691;
}
.gu-chef__guests {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
border-block: 1px solid #d9c8ab;
font-weight: 600;
}
.gu-chef__guests div {
display: flex;
align-items: center;
gap: 14px;
}
.gu-chef__guests button {
width: 40px;
aspect-ratio: 1;
border: 1px solid #2a1f16;
border-radius: 50%;
background: transparent;
color: #2a1f16;
font: inherit;
font-size: 1.2rem;
cursor: pointer;
transition:
background-color 0.3s,
color 0.3s,
transform 0.3s var(--spring);
}
.gu-chef__guests button:hover:not(:disabled) {
background: #2a1f16;
color: #f3e7d3;
}
.gu-chef__guests button:active:not(:disabled) {
transform: scale(0.88);
}
.gu-chef__guests button:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.gu-chef__guests output {
min-width: 2ch;
font-family: var(--serif);
font-size: 1.5rem;
text-align: center;
}
.gu-chef__sum {
display: grid;
gap: 6px;
margin: 16px 0 20px;
}
.gu-chef__sum div {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
}
.gu-chef__sum dt {
color: #7a6a55;
font-size: 0.88rem;
}
.gu-chef__sum dd {
margin: 0;
font-variant-numeric: tabular-nums;
font-weight: 700;
}
.gu-chef__total {
font-family: var(--serif);
font-size: 2rem;
font-weight: 400 !important;
}
.gu-chef__roll {
display: inline-flex;
overflow: hidden;
}
.gu-chef__roll span {
display: inline-block;
animation: gu-chef-roll 0.5s var(--ease) var(--d) both;
}
.gu-chef__send {
width: 100%;
min-height: 52px;
border: 0;
border-radius: 999px;
background: #2a1f16;
color: #f3e7d3;
font: inherit;
font-weight: 700;
cursor: pointer;
transition:
background-color 0.3s,
transform 0.3s var(--spring);
}
.gu-chef__send:hover {
background: #a4611a;
}
.gu-chef__send:active {
transform: scale(0.97);
}
.gu-chef__done {
display: flex;
align-items: center;
gap: 10px;
margin: 0;
padding: 14px 16px;
border-radius: 14px;
background: #e5d6bb;
font-weight: 600;
}
.gu-chef__done svg {
flex: none;
width: 24px;
fill: none;
stroke: #a4611a;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.gu-chef__done path {
stroke-dasharray: 1;
stroke-dashoffset: 1;
animation: gu-chef-draw 0.5s var(--ease) 0.2s forwards;
}
/* ---------- Quote and footer ---------- */
.gu-chef__quote {
padding: 90px 6%;
text-align: center;
}
.gu-chef__quote blockquote {
max-width: 30ch;
margin: 0 auto;
}
.gu-chef__quote p {
margin: 0 0 16px;
font-family: var(--serif);
font-size: clamp(1.6rem, 3.6cqi, 2.6rem);
font-style: italic;
line-height: 1.2;
}
.gu-chef__quote footer {
color: var(--muted);
}
.gu-chef__foot {
display: flex;
flex-wrap: wrap;
gap: 12px 28px;
padding: 26px 6% 34px;
border-top: 1px solid var(--line);
font-size: 0.92rem;
}
.gu-chef__foot span {
flex: 1;
color: var(--muted);
}
/* ---------- Motion ---------- */
@keyframes gu-chef-rise {
from {
opacity: 0;
transform: translateY(24px);
filter: blur(6px);
}
}
@keyframes gu-chef-fade {
from {
opacity: 0;
transform: scale(0.96);
}
}
@keyframes gu-chef-flicker {
0%,
100% {
opacity: 0.8;
transform: scale(1);
}
30% {
opacity: 1;
transform: scale(1.04) translateX(1%);
}
55% {
opacity: 0.7;
transform: scale(0.98);
}
75% {
opacity: 0.95;
transform: scale(1.02) translateX(-1%);
}
}
@keyframes gu-chef-spin-in {
from {
opacity: 0;
transform: translateY(40px) rotate(-30deg);
}
}
@keyframes gu-chef-turn {
to {
transform: rotate(360deg);
}
}
@keyframes gu-chef-plate {
from {
opacity: 0;
transform: translateY(-14px) rotate(-120deg) scale(0.6);
}
}
@keyframes gu-chef-ink {
from {
opacity: 0;
filter: blur(5px);
letter-spacing: 0.06em;
}
}
@keyframes gu-chef-roll {
from {
opacity: 0;
transform: translateY(70%);
}
}
@keyframes gu-chef-stamp {
40% {
transform: rotate(-1deg) scale(1.03);
}
}
@keyframes gu-chef-draw {
to {
stroke-dashoffset: 0;
}
}
/* ---------- Narrow ---------- */
@container (max-width: 760px) {
.gu-chef__hero,
.gu-chef__build {
grid-template-columns: 1fr;
}
.gu-chef__hero-art {
max-width: 420px;
}
.gu-chef__card-wrap {
position: static;
}
.gu-chef__card {
transform: none;
}
}
@container (max-width: 560px) {
.gu-chef__bar nav > a:not(.gu-chef__navcta) {
display: none;
}
.gu-chef__plates ul {
grid-template-columns: 1fr;
max-width: 300px;
margin: 0 auto;
}
.gu-chef__build {
padding-inline: 5%;
}
.gu-chef__dishes label {
gap: 10px;
padding: 10px 12px;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-chef *,
.gu-chef *::before,
.gu-chef *::after {
animation: none !important;
transition: none !important;
}
.gu-chef__done path {
stroke-dashoffset: 0;
}
}
```
You might also want
Next piece: Run tracker appTattoo artist portfolio with a flash try-on
Portfolios, advanced
Ceramicist portfolio with a pottery wheel
Portfolios, advanced
Fashion designer portfolio with a lookbook loupe
Portfolios, advanced



