Fashion designer portfolio with a lookbook loupe
An editorial collection site: a draggable lookbook reel with a magnifying loupe over the cloth, pinned material notes, colour swatches that pick out matching looks, and a sketch that draws itself beside the process.
"use client";
import {
useEffect,
useRef,
useState,
type CSSProperties,
type PointerEvent as ReactPointerEvent,
} from "react";
import "./fashion-portfolio.css";
/**
* FashionPortfolio: an editorial site for a clothing designer's collection.
* Its signature is the lookbook reel: drag or step through the looks, run a
* loupe over the cloth to see the weave, open material notes from the pins,
* and pick a colour to find every look that uses it.
* It is a demo: point `onJoin` at your mailing list.
*/
type Colour = "rust" | "oat" | "olive" | "ink";
type Look = {
id: string;
src: string;
title: string;
alt: string;
tone: string;
colours: Colour[];
pins: { x: number; y: number; label: string; text: string }[];
};
const COLOURS: { id: Colour; label: string; hex: string }[] = [
{ id: "rust", label: "Rust", hex: "#a5502e" },
{ id: "oat", label: "Oat", hex: "#d9ccb2" },
{ id: "olive", label: "Olive", hex: "#6b6a3c" },
{ id: "ink", label: "Ink", hex: "#232a3d" },
];
const LOOKS: Look[] = [
{
id: "01",
src: "/images/portfolio-fashion-look-01.jpg",
title: "Coat with deep pockets",
alt: "A woman with a black bob in an oversized rust wool coat and wide oat trousers",
tone: "#a5502e",
colours: ["rust", "oat"],
pins: [
{ x: 48, y: 34, label: "Wool", text: "Boiled wool, 620 gsm, from a family mill in Biella." },
{ x: 38, y: 52, label: "Pockets", text: "Patch pockets deep enough for a paperback." },
{ x: 52, y: 78, label: "Trousers", text: "Washed cotton twill, cut wide and cropped." },
],
},
{
id: "02",
src: "/images/portfolio-fashion-look-02.jpg",
title: "Chore jacket and cable knit",
alt: "A bearded man in an olive chore jacket over a cream cable jumper and ink trousers",
tone: "#6b6a3c",
colours: ["olive", "oat", "ink"],
pins: [
{ x: 46, y: 30, label: "Knit", text: "Undyed lambswool, hand-finished cables." },
{ x: 58, y: 46, label: "Jacket", text: "Waxed cotton that softens and fades with wear." },
],
},
{
id: "03",
src: "/images/portfolio-fashion-look-03.jpg",
title: "Linen dress, tied apron",
alt: "A woman with long silver hair in a long oat linen dress with a rust apron",
tone: "#d9ccb2",
colours: ["oat", "rust"],
pins: [
{ x: 50, y: 40, label: "Linen", text: "Heavy Lithuanian linen, washed twice so it drapes." },
{ x: 60, y: 58, label: "Apron", text: "Ties at the side, so it adjusts to any waist." },
],
},
{
id: "04",
src: "/images/portfolio-fashion-look-04.jpg",
title: "Quilted jacket, cropped trousers",
alt: "A model with a shaved head in a quilted ink jacket and cropped rust trousers",
tone: "#232a3d",
colours: ["ink", "olive", "rust"],
pins: [
{ x: 46, y: 36, label: "Quilting", text: "Hand-quilted in a diamond grid, filled with recycled wool." },
{ x: 50, y: 72, label: "Trousers", text: "Cropped above the ankle to show the socks." },
],
},
];
const STEPS = [
{ title: "Sketch", text: "Every piece starts as a pencil line in the notebook I carry on walks." },
{ title: "Toile", text: "A calico version, pinned and re-cut on real bodies until it moves right." },
{ title: "Cloth", text: "Cut from small-mill fabric in runs of thirty, sewn ten minutes from the studio." },
];
function LookImage({ look }: { look: Look }) {
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-fash__img" data-missing={missing || undefined}>
{!missing && (
<img
ref={img}
src={look.src}
alt={look.alt}
draggable={false}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</span>
);
}
export function FashionPortfolio({ onJoin }: { onJoin?: (email: string) => void }) {
const track = useRef<HTMLDivElement>(null);
const [index, setIndex] = useState(0);
const [colour, setColour] = useState<Colour | null>(null);
const [pin, setPin] = useState<string | null>(null);
const [joined, setJoined] = useState(false);
const [drawn, setDrawn] = useState(false);
const steps = useRef<HTMLOListElement>(null);
const dragRef = useRef({ on: false, x: 0, left: 0, moved: false });
/* Which look is in view, from the track's scroll position. */
useEffect(() => {
const el = track.current;
if (!el) return;
const onScroll = () => {
const card = el.firstElementChild as HTMLElement | null;
if (!card) return;
const step = card.offsetWidth + 24;
setIndex(Math.max(0, Math.min(LOOKS.length - 1, Math.round(el.scrollLeft / step))));
};
el.addEventListener("scroll", onScroll, { passive: true });
return () => el.removeEventListener("scroll", onScroll);
}, []);
/* The sketch draws itself when the process section comes into view. */
useEffect(() => {
const el = steps.current;
if (!el) return;
const io = new IntersectionObserver(
([e]) => {
if (e.isIntersecting) {
setDrawn(true);
io.disconnect();
}
},
{ threshold: 0.35 },
);
io.observe(el);
return () => io.disconnect();
}, []);
const go = (i: number) => {
const el = track.current;
const card = el?.children[i] as HTMLElement | undefined;
if (!el || !card) return;
const pad = parseFloat(getComputedStyle(el).paddingLeft) || 0;
el.scrollTo({ left: card.offsetLeft - pad, behavior: "smooth" });
};
/* Mouse drag to scroll the reel (touch already scrolls natively). */
const down = (e: ReactPointerEvent<HTMLDivElement>) => {
if (e.pointerType !== "mouse" || e.button !== 0) return;
if ((e.target as HTMLElement).closest("button")) return;
dragRef.current = { on: true, x: e.clientX, left: track.current?.scrollLeft ?? 0, moved: false };
};
const move = (e: ReactPointerEvent<HTMLDivElement>) => {
const d = dragRef.current;
if (!d.on || !track.current) return;
const dx = e.clientX - d.x;
if (Math.abs(dx) > 4) d.moved = true;
track.current.scrollLeft = d.left - dx;
};
const up = () => {
if (!dragRef.current.on) return;
dragRef.current.on = false;
if (dragRef.current.moved) go(index);
};
/* The loupe follows the pointer over a look. */
const loupe = (e: ReactPointerEvent<HTMLElement>) => {
if (e.pointerType !== "mouse") return;
const el = e.currentTarget;
const r = el.getBoundingClientRect();
const x = e.clientX - r.left;
const y = e.clientY - r.top;
el.style.setProperty("--lx", `${x}px`);
el.style.setProperty("--ly", `${y}px`);
el.style.setProperty("--bx", `${(x / r.width) * 100}%`);
el.style.setProperty("--by", `${(y / r.height) * 100}%`);
};
return (
<div className="gu-fash">
<header className="gu-fash__bar">
<a href="#" className="gu-fash__mark">
Ines Vale
</a>
<nav aria-label="Ines Vale">
<a href="#fash-looks">Collection</a>
<a href="#fash-process">Process</a>
<a href="#fash-join" className="gu-fash__navcta">
Stockists
</a>
</nav>
</header>
<section className="gu-fash__hero">
<p className="gu-fash__season">Autumn and winter 2026</p>
<h1 aria-label="Field Notes">
<span className="gu-fash__word" aria-hidden="true">
{"Field".split("").map((c, i) => (
<span key={`a${i}`} style={{ "--i": i } as CSSProperties}>
{c}
</span>
))}
</span>
<em className="gu-fash__word" aria-hidden="true">
{"Notes".split("").map((c, i) => (
<span key={`b${i}`} style={{ "--i": i + 5 } as CSSProperties}>
{c}
</span>
))}
</em>
</h1>
<p className="gu-fash__lede">
Workwear shapes in wool, linen and cotton from small mills. Four colours,
made to be mended and worn for years.
</p>
</section>
<section id="fash-looks" className="gu-fash__looks" aria-labelledby="fash-looks-title">
<div className="gu-fash__looks-head">
<h2 id="fash-looks-title">The looks</h2>
<div className="gu-fash__swatches" role="group" aria-label="Show looks in a colour">
{COLOURS.map((c) => (
<button
key={c.id}
type="button"
aria-pressed={colour === c.id}
onClick={() => setColour((v) => (v === c.id ? null : c.id))}
style={{ "--sw": c.hex } as CSSProperties}
>
<span aria-hidden="true" />
{c.label}
</button>
))}
</div>
</div>
<div
className="gu-fash__track"
ref={track}
onPointerDown={down}
onPointerMove={move}
onPointerUp={up}
onPointerLeave={up}
>
{LOOKS.map((look, i) => {
const dim = colour !== null && !look.colours.includes(colour);
return (
<figure
key={look.id}
className="gu-fash__look"
data-dim={dim || undefined}
data-active={i === index || undefined}
style={
{
"--tone": look.tone,
"--src": `url(${look.src})`,
"--i": i,
} as CSSProperties
}
onPointerMove={loupe}
>
<div className="gu-fash__frame">
<LookImage look={look} />
<span className="gu-fash__loupe" aria-hidden="true" />
{look.pins.map((p) => {
const key = `${look.id}-${p.label}`;
const open = pin === key;
return (
<span
key={key}
className="gu-fash__pin"
style={{ left: `${p.x}%`, top: `${p.y}%` } as CSSProperties}
data-open={open || undefined}
data-up={p.y > 60 || undefined}
>
<button
type="button"
aria-expanded={open}
aria-label={`${p.label}, look ${look.id}`}
onClick={() => setPin(open ? null : key)}
>
<span aria-hidden="true">+</span>
</button>
{open && (
<span className="gu-fash__note" role="note">
<b>{p.label}</b>
{p.text}
</span>
)}
</span>
);
})}
</div>
<figcaption>
<span>Look {look.id}</span>
{look.title}
<span className="gu-fash__dots" role="img" aria-label={`Colours: ${look.colours.join(", ")}`}>
{look.colours.map((c) => (
<i key={c} style={{ background: COLOURS.find((x) => x.id === c)?.hex }} />
))}
</span>
</figcaption>
</figure>
);
})}
</div>
<div className="gu-fash__controls">
<button type="button" aria-label="Previous look" onClick={() => go(Math.max(0, index - 1))} disabled={index === 0}>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M15 5l-7 7 7 7" />
</svg>
</button>
<div className="gu-fash__progress" aria-hidden="true">
<span style={{ width: `${((index + 1) / LOOKS.length) * 100}%` }} />
</div>
<span className="gu-fash__count" aria-live="polite">
{String(index + 1).padStart(2, "0")} / {String(LOOKS.length).padStart(2, "0")}
</span>
<button
type="button"
aria-label="Next look"
onClick={() => go(Math.min(LOOKS.length - 1, index + 1))}
disabled={index === LOOKS.length - 1}
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M9 5l7 7-7 7" />
</svg>
</button>
</div>
</section>
<section id="fash-process" className="gu-fash__process" aria-labelledby="fash-process-title">
<h2 id="fash-process-title">From notebook to cloth</h2>
<div className="gu-fash__process-grid">
<svg className="gu-fash__sketch" viewBox="0 0 220 320" data-drawn={drawn || undefined} aria-hidden="true">
<path
pathLength={1}
d="M80 20c10 8 50 8 60 0l38 30-10 70-12-4 4 190H62l4-190-12 4-10-70zM110 30v270M82 150h26M112 150h26M74 160v40h30v-40M116 160v40h30v-40"
/>
</svg>
<ol ref={steps}>
{STEPS.map((s, i) => (
<li key={s.title} style={{ "--i": i } as CSSProperties} data-drawn={drawn || undefined}>
<span className="gu-fash__step">{i + 1}</span>
<h3>{s.title}</h3>
<p>{s.text}</p>
</li>
))}
</ol>
</div>
</section>
<section id="fash-join" className="gu-fash__join" aria-labelledby="fash-join-title">
<h2 id="fash-join-title">Find it in person</h2>
<ul className="gu-fash__stockists">
<li>
<b>Lisbon</b> The studio, by appointment
</li>
<li>
<b>Copenhagen</b> Field Store, Jægersborggade
</li>
<li>
<b>Glasgow</b> Mill Room, Ingram Street
</li>
</ul>
{joined ? (
<p className="gu-fash__joined" role="status">
You’re on the list. The next run opens in March.
</p>
) : (
<form
className="gu-fash__form"
onSubmit={(e) => {
e.preventDefault();
const email = String(new FormData(e.currentTarget).get("email") ?? "");
onJoin?.(email);
setJoined(true);
}}
>
<label htmlFor="fash-email">Hear when a new run opens</label>
<div>
<input id="fash-email" name="email" type="email" required placeholder="you@example.com" autoComplete="email" />
<button type="submit">Join</button>
</div>
</form>
)}
</section>
<footer className="gu-fash__foot">
<span>© 2026 Ines Vale</span>
<a href="#">Care and repairs</a>
<a href="#">Instagram</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: Fashion designer portfolio with a lookbook loupe
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
An editorial one-page site for a clothing designer's collection ("Ines Vale", collection "Field Notes", autumn and winter 2026). Its signature is the lookbook reel: four full-length looks in a horizontal, snap-scrolling reel you can drag with the mouse or step with arrow buttons and a progress line. Moving the mouse over a look shows a round loupe that magnifies the same photo three times, so you can see the weave. Each look has two or three white "+" pins that open a small material note (the + turns into an ×). Four colour swatches (Rust, Oat, Olive, Ink) pick out the looks that use that colour; the rest fade to grey and shrink slightly. Other sections: a huge "Field Notes" title, a process section where a coat sketch draws itself beside three steps, and an ink band with stockists and a mailing list.
## Palette
Background #ebe7e0, paper #f5f2ec, ink #171614, muted #6f6a62, lines rgb(23 22 20 / 0.14), rust #a5502e, focus ring #2b35ff. Swatches: rust #a5502e, oat #d9ccb2, olive #6b6a3c, ink #232a3d. Display type: "Field" in a heavy tight sans (Helvetica Neue, Inter, system-ui), "Notes" in italic Didot or Bodoni, in rust. Body: the same sans.
## Layout
- Bar: name on the left; Collection, Process and an outlined "Stockists" pill on the right.
- Hero: a small season line, the giant two-word title (up to 11rem), and a short paragraph aligned right.
- The looks: an italic serif heading with the swatches on the right; the reel of 2:3 frames (240–380px wide) with "Look 01", the title and colour dots below; then previous, a progress line, "01 / 04" and next.
- Process: a 220×320 single-line coat sketch on the left, three numbered steps on the right (Sketch, Toile, Cloth).
- Join (ink band): heading, three stockists (city in bold) and an underlined email field with "Join". After joining, an italic thank-you replaces the form.
- Below 760px the process and join stack; below 560px the nav keeps only the pill.
## Images
- portfolio-fashion-look-01.jpg to -04.jpg (2:3): full-length looks on a studio paper sweep. Until a file exists, each frame (and the loupe) shows its colour with a fine cross-hatched weave.
## Motion
- Title letters rise out of a blur with a slight turn, one after another.
- Looks rise in on a stagger; the photo zooms 3% on hover; the loupe scales in with a spring.
- Pins pulse with a fading ring; notes pop in with a spring.
- The coat sketch draws over 3 seconds when the section comes into view, and the steps follow one by one.
## Accessibility
- Swatches are buttons with aria-pressed; pins are buttons with aria-expanded and a label naming the look.
- The look counter is aria-live; arrow buttons have labels and disable at the ends.
- The loupe is decorative and mouse-only; the reel scrolls with keys and touch.
- 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.
### FashionPortfolio.tsx
```tsx
"use client";
import {
useEffect,
useRef,
useState,
type CSSProperties,
type PointerEvent as ReactPointerEvent,
} from "react";
import "./fashion-portfolio.css";
/**
* FashionPortfolio: an editorial site for a clothing designer's collection.
* Its signature is the lookbook reel: drag or step through the looks, run a
* loupe over the cloth to see the weave, open material notes from the pins,
* and pick a colour to find every look that uses it.
* It is a demo: point `onJoin` at your mailing list.
*/
type Colour = "rust" | "oat" | "olive" | "ink";
type Look = {
id: string;
src: string;
title: string;
alt: string;
tone: string;
colours: Colour[];
pins: { x: number; y: number; label: string; text: string }[];
};
const COLOURS: { id: Colour; label: string; hex: string }[] = [
{ id: "rust", label: "Rust", hex: "#a5502e" },
{ id: "oat", label: "Oat", hex: "#d9ccb2" },
{ id: "olive", label: "Olive", hex: "#6b6a3c" },
{ id: "ink", label: "Ink", hex: "#232a3d" },
];
const LOOKS: Look[] = [
{
id: "01",
src: "/images/portfolio-fashion-look-01.jpg",
title: "Coat with deep pockets",
alt: "A woman with a black bob in an oversized rust wool coat and wide oat trousers",
tone: "#a5502e",
colours: ["rust", "oat"],
pins: [
{ x: 48, y: 34, label: "Wool", text: "Boiled wool, 620 gsm, from a family mill in Biella." },
{ x: 38, y: 52, label: "Pockets", text: "Patch pockets deep enough for a paperback." },
{ x: 52, y: 78, label: "Trousers", text: "Washed cotton twill, cut wide and cropped." },
],
},
{
id: "02",
src: "/images/portfolio-fashion-look-02.jpg",
title: "Chore jacket and cable knit",
alt: "A bearded man in an olive chore jacket over a cream cable jumper and ink trousers",
tone: "#6b6a3c",
colours: ["olive", "oat", "ink"],
pins: [
{ x: 46, y: 30, label: "Knit", text: "Undyed lambswool, hand-finished cables." },
{ x: 58, y: 46, label: "Jacket", text: "Waxed cotton that softens and fades with wear." },
],
},
{
id: "03",
src: "/images/portfolio-fashion-look-03.jpg",
title: "Linen dress, tied apron",
alt: "A woman with long silver hair in a long oat linen dress with a rust apron",
tone: "#d9ccb2",
colours: ["oat", "rust"],
pins: [
{ x: 50, y: 40, label: "Linen", text: "Heavy Lithuanian linen, washed twice so it drapes." },
{ x: 60, y: 58, label: "Apron", text: "Ties at the side, so it adjusts to any waist." },
],
},
{
id: "04",
src: "/images/portfolio-fashion-look-04.jpg",
title: "Quilted jacket, cropped trousers",
alt: "A model with a shaved head in a quilted ink jacket and cropped rust trousers",
tone: "#232a3d",
colours: ["ink", "olive", "rust"],
pins: [
{ x: 46, y: 36, label: "Quilting", text: "Hand-quilted in a diamond grid, filled with recycled wool." },
{ x: 50, y: 72, label: "Trousers", text: "Cropped above the ankle to show the socks." },
],
},
];
const STEPS = [
{ title: "Sketch", text: "Every piece starts as a pencil line in the notebook I carry on walks." },
{ title: "Toile", text: "A calico version, pinned and re-cut on real bodies until it moves right." },
{ title: "Cloth", text: "Cut from small-mill fabric in runs of thirty, sewn ten minutes from the studio." },
];
function LookImage({ look }: { look: Look }) {
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-fash__img" data-missing={missing || undefined}>
{!missing && (
<img
ref={img}
src={look.src}
alt={look.alt}
draggable={false}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</span>
);
}
export function FashionPortfolio({ onJoin }: { onJoin?: (email: string) => void }) {
const track = useRef<HTMLDivElement>(null);
const [index, setIndex] = useState(0);
const [colour, setColour] = useState<Colour | null>(null);
const [pin, setPin] = useState<string | null>(null);
const [joined, setJoined] = useState(false);
const [drawn, setDrawn] = useState(false);
const steps = useRef<HTMLOListElement>(null);
const dragRef = useRef({ on: false, x: 0, left: 0, moved: false });
/* Which look is in view, from the track's scroll position. */
useEffect(() => {
const el = track.current;
if (!el) return;
const onScroll = () => {
const card = el.firstElementChild as HTMLElement | null;
if (!card) return;
const step = card.offsetWidth + 24;
setIndex(Math.max(0, Math.min(LOOKS.length - 1, Math.round(el.scrollLeft / step))));
};
el.addEventListener("scroll", onScroll, { passive: true });
return () => el.removeEventListener("scroll", onScroll);
}, []);
/* The sketch draws itself when the process section comes into view. */
useEffect(() => {
const el = steps.current;
if (!el) return;
const io = new IntersectionObserver(
([e]) => {
if (e.isIntersecting) {
setDrawn(true);
io.disconnect();
}
},
{ threshold: 0.35 },
);
io.observe(el);
return () => io.disconnect();
}, []);
const go = (i: number) => {
const el = track.current;
const card = el?.children[i] as HTMLElement | undefined;
if (!el || !card) return;
const pad = parseFloat(getComputedStyle(el).paddingLeft) || 0;
el.scrollTo({ left: card.offsetLeft - pad, behavior: "smooth" });
};
/* Mouse drag to scroll the reel (touch already scrolls natively). */
const down = (e: ReactPointerEvent<HTMLDivElement>) => {
if (e.pointerType !== "mouse" || e.button !== 0) return;
if ((e.target as HTMLElement).closest("button")) return;
dragRef.current = { on: true, x: e.clientX, left: track.current?.scrollLeft ?? 0, moved: false };
};
const move = (e: ReactPointerEvent<HTMLDivElement>) => {
const d = dragRef.current;
if (!d.on || !track.current) return;
const dx = e.clientX - d.x;
if (Math.abs(dx) > 4) d.moved = true;
track.current.scrollLeft = d.left - dx;
};
const up = () => {
if (!dragRef.current.on) return;
dragRef.current.on = false;
if (dragRef.current.moved) go(index);
};
/* The loupe follows the pointer over a look. */
const loupe = (e: ReactPointerEvent<HTMLElement>) => {
if (e.pointerType !== "mouse") return;
const el = e.currentTarget;
const r = el.getBoundingClientRect();
const x = e.clientX - r.left;
const y = e.clientY - r.top;
el.style.setProperty("--lx", `${x}px`);
el.style.setProperty("--ly", `${y}px`);
el.style.setProperty("--bx", `${(x / r.width) * 100}%`);
el.style.setProperty("--by", `${(y / r.height) * 100}%`);
};
return (
<div className="gu-fash">
<header className="gu-fash__bar">
<a href="#" className="gu-fash__mark">
Ines Vale
</a>
<nav aria-label="Ines Vale">
<a href="#fash-looks">Collection</a>
<a href="#fash-process">Process</a>
<a href="#fash-join" className="gu-fash__navcta">
Stockists
</a>
</nav>
</header>
<section className="gu-fash__hero">
<p className="gu-fash__season">Autumn and winter 2026</p>
<h1 aria-label="Field Notes">
<span className="gu-fash__word" aria-hidden="true">
{"Field".split("").map((c, i) => (
<span key={`a${i}`} style={{ "--i": i } as CSSProperties}>
{c}
</span>
))}
</span>
<em className="gu-fash__word" aria-hidden="true">
{"Notes".split("").map((c, i) => (
<span key={`b${i}`} style={{ "--i": i + 5 } as CSSProperties}>
{c}
</span>
))}
</em>
</h1>
<p className="gu-fash__lede">
Workwear shapes in wool, linen and cotton from small mills. Four colours,
made to be mended and worn for years.
</p>
</section>
<section id="fash-looks" className="gu-fash__looks" aria-labelledby="fash-looks-title">
<div className="gu-fash__looks-head">
<h2 id="fash-looks-title">The looks</h2>
<div className="gu-fash__swatches" role="group" aria-label="Show looks in a colour">
{COLOURS.map((c) => (
<button
key={c.id}
type="button"
aria-pressed={colour === c.id}
onClick={() => setColour((v) => (v === c.id ? null : c.id))}
style={{ "--sw": c.hex } as CSSProperties}
>
<span aria-hidden="true" />
{c.label}
</button>
))}
</div>
</div>
<div
className="gu-fash__track"
ref={track}
onPointerDown={down}
onPointerMove={move}
onPointerUp={up}
onPointerLeave={up}
>
{LOOKS.map((look, i) => {
const dim = colour !== null && !look.colours.includes(colour);
return (
<figure
key={look.id}
className="gu-fash__look"
data-dim={dim || undefined}
data-active={i === index || undefined}
style={
{
"--tone": look.tone,
"--src": `url(${look.src})`,
"--i": i,
} as CSSProperties
}
onPointerMove={loupe}
>
<div className="gu-fash__frame">
<LookImage look={look} />
<span className="gu-fash__loupe" aria-hidden="true" />
{look.pins.map((p) => {
const key = `${look.id}-${p.label}`;
const open = pin === key;
return (
<span
key={key}
className="gu-fash__pin"
style={{ left: `${p.x}%`, top: `${p.y}%` } as CSSProperties}
data-open={open || undefined}
data-up={p.y > 60 || undefined}
>
<button
type="button"
aria-expanded={open}
aria-label={`${p.label}, look ${look.id}`}
onClick={() => setPin(open ? null : key)}
>
<span aria-hidden="true">+</span>
</button>
{open && (
<span className="gu-fash__note" role="note">
<b>{p.label}</b>
{p.text}
</span>
)}
</span>
);
})}
</div>
<figcaption>
<span>Look {look.id}</span>
{look.title}
<span className="gu-fash__dots" role="img" aria-label={`Colours: ${look.colours.join(", ")}`}>
{look.colours.map((c) => (
<i key={c} style={{ background: COLOURS.find((x) => x.id === c)?.hex }} />
))}
</span>
</figcaption>
</figure>
);
})}
</div>
<div className="gu-fash__controls">
<button type="button" aria-label="Previous look" onClick={() => go(Math.max(0, index - 1))} disabled={index === 0}>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M15 5l-7 7 7 7" />
</svg>
</button>
<div className="gu-fash__progress" aria-hidden="true">
<span style={{ width: `${((index + 1) / LOOKS.length) * 100}%` }} />
</div>
<span className="gu-fash__count" aria-live="polite">
{String(index + 1).padStart(2, "0")} / {String(LOOKS.length).padStart(2, "0")}
</span>
<button
type="button"
aria-label="Next look"
onClick={() => go(Math.min(LOOKS.length - 1, index + 1))}
disabled={index === LOOKS.length - 1}
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M9 5l7 7-7 7" />
</svg>
</button>
</div>
</section>
<section id="fash-process" className="gu-fash__process" aria-labelledby="fash-process-title">
<h2 id="fash-process-title">From notebook to cloth</h2>
<div className="gu-fash__process-grid">
<svg className="gu-fash__sketch" viewBox="0 0 220 320" data-drawn={drawn || undefined} aria-hidden="true">
<path
pathLength={1}
d="M80 20c10 8 50 8 60 0l38 30-10 70-12-4 4 190H62l4-190-12 4-10-70zM110 30v270M82 150h26M112 150h26M74 160v40h30v-40M116 160v40h30v-40"
/>
</svg>
<ol ref={steps}>
{STEPS.map((s, i) => (
<li key={s.title} style={{ "--i": i } as CSSProperties} data-drawn={drawn || undefined}>
<span className="gu-fash__step">{i + 1}</span>
<h3>{s.title}</h3>
<p>{s.text}</p>
</li>
))}
</ol>
</div>
</section>
<section id="fash-join" className="gu-fash__join" aria-labelledby="fash-join-title">
<h2 id="fash-join-title">Find it in person</h2>
<ul className="gu-fash__stockists">
<li>
<b>Lisbon</b> The studio, by appointment
</li>
<li>
<b>Copenhagen</b> Field Store, Jægersborggade
</li>
<li>
<b>Glasgow</b> Mill Room, Ingram Street
</li>
</ul>
{joined ? (
<p className="gu-fash__joined" role="status">
You’re on the list. The next run opens in March.
</p>
) : (
<form
className="gu-fash__form"
onSubmit={(e) => {
e.preventDefault();
const email = String(new FormData(e.currentTarget).get("email") ?? "");
onJoin?.(email);
setJoined(true);
}}
>
<label htmlFor="fash-email">Hear when a new run opens</label>
<div>
<input id="fash-email" name="email" type="email" required placeholder="you@example.com" autoComplete="email" />
<button type="submit">Join</button>
</div>
</form>
)}
</section>
<footer className="gu-fash__foot">
<span>© 2026 Ines Vale</span>
<a href="#">Care and repairs</a>
<a href="#">Instagram</a>
</footer>
</div>
);
}
```
### fashion-portfolio.css
```css
/* Ines Vale, "Field Notes": warm grey studio paper, ink type, the collection's four colours. */
.gu-fash {
--bg: #ebe7e0;
--paper: #f5f2ec;
--ink: #171614;
--muted: #6f6a62;
--line: rgb(23 22 20 / 0.14);
--rust: #a5502e;
--focus: #2b35ff;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
--serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, serif;
--sans: "Helvetica Neue", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
position: relative;
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--ink);
font-family: var(--sans);
line-height: 1.5;
}
.gu-fash *,
.gu-fash *::before,
.gu-fash *::after {
box-sizing: border-box;
}
.gu-fash a {
color: inherit;
}
.gu-fash :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
/* ---------- Bar ---------- */
.gu-fash__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 22px 6%;
}
.gu-fash__mark {
font-size: 1.05rem;
font-weight: 700;
letter-spacing: 0.02em;
text-decoration: none;
}
.gu-fash__bar nav {
display: flex;
align-items: center;
gap: 26px;
font-size: 0.92rem;
}
.gu-fash__bar nav a:not(.gu-fash__navcta) {
position: relative;
text-decoration: none;
}
.gu-fash__bar nav a:not(.gu-fash__navcta)::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -3px;
height: 1px;
background: currentColor;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.45s var(--ease);
}
.gu-fash__bar nav a:not(.gu-fash__navcta):hover::after {
transform: scaleX(1);
transform-origin: left;
}
.gu-fash__navcta {
padding: 9px 18px;
border: 1px solid var(--ink);
border-radius: 999px;
text-decoration: none;
transition:
background-color 0.3s,
color 0.3s;
}
.gu-fash__navcta:hover {
background: var(--ink);
color: var(--bg);
}
/* ---------- Hero ---------- */
.gu-fash__hero {
padding: 50px 6% 56px;
}
.gu-fash__season {
margin: 0 0 12px;
color: var(--muted);
font-size: 0.92rem;
animation: gu-fash-fade 1s var(--ease) both;
}
.gu-fash__hero h1 {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0 0.18em;
margin: 0;
font-size: clamp(3.6rem, 15cqi, 11rem);
font-weight: 800;
line-height: 0.86;
letter-spacing: -0.05em;
}
.gu-fash__hero h1 em {
font-family: var(--serif);
font-weight: 400;
letter-spacing: -0.03em;
color: var(--rust);
}
.gu-fash__word {
white-space: nowrap;
}
.gu-fash__word > span {
display: inline-block;
animation: gu-fash-letter 1s var(--ease) calc(0.1s + var(--i) * 0.05s) both;
}
.gu-fash__lede {
max-width: 44ch;
margin: 26px 0 0 auto;
color: var(--muted);
font-size: 1.05rem;
animation: gu-fash-fade 1s var(--ease) 0.7s both;
}
/* ---------- The looks ---------- */
.gu-fash__looks {
padding: 30px 0 70px;
border-top: 1px solid var(--line);
}
.gu-fash__looks-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 0 6% 24px;
}
.gu-fash__looks-head h2,
.gu-fash__process h2,
.gu-fash__join h2 {
margin: 0;
font-family: var(--serif);
font-size: clamp(1.9rem, 4.2cqi, 3rem);
font-weight: 400;
font-style: italic;
}
.gu-fash__swatches {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.gu-fash__swatches button {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 40px;
padding: 0 14px 0 6px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--paper);
color: var(--ink);
font: inherit;
font-size: 0.88rem;
cursor: pointer;
transition:
border-color 0.3s,
transform 0.4s var(--spring);
}
.gu-fash__swatches button span {
width: 28px;
aspect-ratio: 1;
border-radius: 50%;
background: var(--sw);
box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
transition: transform 0.5s var(--spring);
}
.gu-fash__swatches button:hover {
border-color: var(--ink);
}
.gu-fash__swatches button:hover span {
transform: scale(1.12) rotate(20deg);
}
.gu-fash__swatches button[aria-pressed="true"] {
border-color: var(--ink);
background: var(--ink);
color: var(--bg);
}
.gu-fash__swatches button[aria-pressed="true"] span {
box-shadow: 0 0 0 2px var(--bg);
}
.gu-fash__track {
position: relative;
display: flex;
gap: 24px;
overflow-x: auto;
padding: 6px 6% 10px;
scroll-snap-type: x mandatory;
scroll-padding-inline: 6%;
scrollbar-width: none;
cursor: grab;
}
.gu-fash__track::-webkit-scrollbar {
display: none;
}
.gu-fash__track:active {
cursor: grabbing;
}
.gu-fash__look {
flex: none;
width: clamp(240px, 36cqi, 380px);
margin: 0;
scroll-snap-align: start;
transition:
opacity 0.5s var(--ease),
filter 0.5s var(--ease),
transform 0.6s var(--ease);
animation: gu-fash-rise 1s var(--ease) calc(0.2s + var(--i) * 0.1s) both;
}
.gu-fash__look[data-dim] {
opacity: 0.35;
filter: grayscale(1);
transform: scale(0.96);
}
.gu-fash__frame {
position: relative;
aspect-ratio: 2 / 3;
overflow: hidden;
border-radius: 4px;
background:
repeating-linear-gradient(45deg, rgb(255 255 255 / 0.07) 0 2px, transparent 2px 6px),
repeating-linear-gradient(-45deg, rgb(0 0 0 / 0.08) 0 2px, transparent 2px 6px),
var(--tone);
}
.gu-fash__img,
.gu-fash__img img {
display: block;
width: 100%;
height: 100%;
}
.gu-fash__img img {
object-fit: cover;
user-select: none;
transition: transform 1.2s var(--ease);
}
.gu-fash__look:hover .gu-fash__img img {
transform: scale(1.03);
}
/* The loupe: a magnified circle of the same picture (or the weave, until it exists). */
.gu-fash__loupe {
position: absolute;
left: var(--lx, 50%);
top: var(--ly, 50%);
z-index: 2;
width: 150px;
aspect-ratio: 1;
border-radius: 50%;
pointer-events: none;
translate: -50% -50%;
background:
var(--src) var(--bx, 50%) var(--by, 50%) / 300% no-repeat,
repeating-linear-gradient(45deg, rgb(255 255 255 / 0.14) 0 3px, transparent 3px 9px),
repeating-linear-gradient(-45deg, rgb(0 0 0 / 0.16) 0 3px, transparent 3px 9px),
var(--tone);
box-shadow:
0 0 0 3px var(--paper),
0 20px 40px -10px rgb(0 0 0 / 0.5);
opacity: 0;
scale: 0.4;
transition:
opacity 0.3s var(--ease),
scale 0.45s var(--spring);
}
@media (hover: hover) {
.gu-fash__frame:hover .gu-fash__loupe {
opacity: 1;
scale: 1;
}
.gu-fash__frame:has(.gu-fash__pin:hover) .gu-fash__loupe {
opacity: 0;
scale: 0.4;
}
}
.gu-fash__pin {
position: absolute;
z-index: 3;
translate: -50% -50%;
}
.gu-fash__pin button {
position: relative;
display: grid;
place-items: center;
width: 34px;
aspect-ratio: 1;
border: 0;
border-radius: 50%;
background: var(--paper);
color: var(--ink);
font-size: 1.2rem;
line-height: 1;
cursor: pointer;
box-shadow: 0 6px 16px -4px rgb(0 0 0 / 0.45);
transition: transform 0.4s var(--spring);
}
.gu-fash__pin button::before {
content: "";
position: absolute;
inset: -6px;
border: 1px solid var(--paper);
border-radius: 50%;
animation: gu-fash-ping 2.4s var(--ease) infinite;
}
.gu-fash__pin button span {
transition: transform 0.4s var(--spring);
}
.gu-fash__pin button:hover {
transform: scale(1.12);
}
.gu-fash__pin[data-open] {
z-index: 4;
}
.gu-fash__pin[data-open] button {
background: var(--ink);
color: var(--paper);
}
.gu-fash__pin[data-open] button span {
transform: rotate(45deg);
}
.gu-fash__note {
position: absolute;
left: 50%;
top: calc(100% + 10px);
display: grid;
gap: 2px;
width: 190px;
padding: 12px 14px;
border-radius: 10px;
background: var(--paper);
color: var(--ink);
font-size: 0.82rem;
line-height: 1.4;
translate: -50% 0;
box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.45);
animation: gu-fash-pop 0.45s var(--spring) both;
}
.gu-fash__note b {
font-family: var(--serif);
font-size: 1rem;
font-style: italic;
font-weight: 400;
}
.gu-fash__look figcaption {
display: grid;
grid-template-columns: 1fr auto;
gap: 2px 12px;
padding-top: 12px;
font-size: 0.95rem;
}
.gu-fash__look figcaption > span:first-child {
grid-column: 1 / -1;
color: var(--muted);
font-size: 0.8rem;
}
.gu-fash__dots {
display: flex;
gap: 4px;
}
.gu-fash__dots i {
width: 12px;
aspect-ratio: 1;
border-radius: 50%;
box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}
.gu-fash__controls {
display: flex;
align-items: center;
gap: 16px;
padding: 22px 6% 0;
}
.gu-fash__controls button {
display: grid;
place-items: center;
width: 46px;
aspect-ratio: 1;
border: 1px solid var(--ink);
border-radius: 50%;
background: transparent;
color: var(--ink);
cursor: pointer;
transition:
background-color 0.3s,
color 0.3s,
transform 0.3s var(--spring);
}
.gu-fash__controls button:hover:not(:disabled) {
background: var(--ink);
color: var(--bg);
}
.gu-fash__controls button:active:not(:disabled) {
transform: scale(0.9);
}
.gu-fash__controls button:disabled {
opacity: 0.25;
cursor: default;
}
.gu-fash__controls svg {
width: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.gu-fash__progress {
flex: 1;
height: 2px;
background: var(--line);
}
.gu-fash__progress span {
display: block;
height: 100%;
background: var(--ink);
transition: width 0.6s var(--ease);
}
.gu-fash__count {
font-variant-numeric: tabular-nums;
font-size: 0.9rem;
}
/* ---------- Process ---------- */
.gu-fash__process {
padding: 80px 6%;
background: var(--paper);
}
.gu-fash__process-grid {
display: grid;
grid-template-columns: minmax(160px, 0.6fr) 1.4fr;
align-items: center;
gap: 50px;
margin-top: 34px;
}
.gu-fash__sketch {
width: 100%;
max-width: 240px;
justify-self: center;
}
.gu-fash__sketch path {
fill: none;
stroke: var(--ink);
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 1;
stroke-dashoffset: 1;
transition: stroke-dashoffset 3s var(--ease);
}
.gu-fash__sketch[data-drawn] path {
stroke-dashoffset: 0;
}
.gu-fash__process ol {
display: grid;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
}
.gu-fash__process li {
display: grid;
grid-template-columns: 54px 1fr;
gap: 4px 16px;
padding: 22px 0;
border-top: 1px solid var(--line);
opacity: 0;
transform: translateY(20px);
transition:
opacity 0.8s var(--ease),
transform 0.8s var(--ease);
transition-delay: calc(0.4s + var(--i) * 0.2s);
}
.gu-fash__process li[data-drawn] {
opacity: 1;
transform: none;
}
.gu-fash__step {
grid-row: span 2;
font-family: var(--serif);
font-size: 2.4rem;
font-style: italic;
line-height: 1;
color: var(--rust);
}
.gu-fash__process h3 {
margin: 0;
font-size: 1.1rem;
}
.gu-fash__process p {
margin: 0;
color: var(--muted);
}
/* ---------- Stockists and list ---------- */
.gu-fash__join {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px 50px;
padding: 80px 6%;
background: var(--ink);
color: var(--bg);
}
.gu-fash__join h2 {
grid-column: 1 / -1;
}
.gu-fash__stockists {
display: grid;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
}
.gu-fash__stockists li {
display: grid;
grid-template-columns: 130px 1fr;
padding: 14px 0;
border-top: 1px solid rgb(235 231 224 / 0.16);
color: rgb(235 231 224 / 0.7);
transition:
color 0.3s,
padding 0.4s var(--ease);
}
.gu-fash__stockists li:hover {
padding-left: 10px;
color: var(--bg);
}
.gu-fash__stockists b {
color: var(--bg);
font-weight: 600;
}
.gu-fash__form {
display: grid;
align-content: start;
gap: 10px;
}
.gu-fash__form label {
font-weight: 600;
}
.gu-fash__form div {
display: flex;
border-bottom: 1px solid var(--bg);
}
.gu-fash__form input {
flex: 1;
min-width: 0;
min-height: 50px;
border: 0;
background: transparent;
color: var(--bg);
font: inherit;
font-size: 1.1rem;
}
.gu-fash__form input::placeholder {
color: rgb(235 231 224 / 0.4);
}
.gu-fash__form input:focus {
outline: none;
}
.gu-fash__form div:focus-within {
border-bottom-color: #e98a5f;
}
.gu-fash__form button {
padding: 0 20px;
border: 0;
border-radius: 999px 999px 0 0;
background: transparent;
color: var(--bg);
font: inherit;
font-weight: 700;
cursor: pointer;
transition:
background-color 0.3s,
color 0.3s;
}
.gu-fash__form button:hover {
background: var(--bg);
color: var(--ink);
}
.gu-fash__joined {
align-self: start;
margin: 0;
font-family: var(--serif);
font-size: 1.5rem;
font-style: italic;
animation: gu-fash-rise 0.7s var(--ease) both;
}
.gu-fash__foot {
display: flex;
flex-wrap: wrap;
gap: 12px 26px;
padding: 24px 6% 32px;
background: var(--ink);
color: rgb(235 231 224 / 0.7);
font-size: 0.9rem;
border-top: 1px solid rgb(235 231 224 / 0.16);
}
.gu-fash__foot span {
flex: 1;
}
/* ---------- Motion ---------- */
@keyframes gu-fash-letter {
from {
opacity: 0;
transform: translateY(0.5em) rotate(6deg);
filter: blur(8px);
}
}
@keyframes gu-fash-fade {
from {
opacity: 0;
}
}
@keyframes gu-fash-rise {
from {
opacity: 0;
transform: translateY(30px);
}
}
@keyframes gu-fash-pop {
from {
opacity: 0;
transform: translateY(-8px) scale(0.9);
}
}
@keyframes gu-fash-ping {
0% {
opacity: 0.8;
transform: scale(0.8);
}
80%,
100% {
opacity: 0;
transform: scale(1.5);
}
}
/* ---------- Narrow ---------- */
@container (max-width: 760px) {
.gu-fash__process-grid,
.gu-fash__join {
grid-template-columns: 1fr;
}
.gu-fash__sketch {
max-width: 160px;
}
.gu-fash__look {
width: min(74cqi, 340px);
}
}
@container (max-width: 560px) {
.gu-fash__bar nav > a:not(.gu-fash__navcta) {
display: none;
}
.gu-fash__lede {
margin-left: 0;
}
.gu-fash__stockists li {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-fash *,
.gu-fash *::before,
.gu-fash *::after {
animation: none !important;
transition: none !important;
}
.gu-fash__sketch path {
stroke-dashoffset: 0;
}
.gu-fash__process li {
opacity: 1;
transform: none;
}
}
.gu-fash__pin[data-up] .gu-fash__note {
top: auto;
bottom: calc(100% + 10px);
}
```
You might also want
Next piece: Filmmaker portfolio with a screening room3D artist portfolio
Portfolios, advanced
Ceramicist portfolio with a pottery wheel
Portfolios, advanced
Designer portfolio
Portfolios, advanced



