Tattoo artist portfolio with a flash try-on
A dark studio site for a tattoo artist: pick a flash design, placement, size and skin tone, and the purple stencil draws onto the body before the ink fills in, with a live sitting time and price, plus healed work and a booking form.
"use client";
import { useEffect, useRef, useState, type CSSProperties, type FormEvent } from "react";
import "./tattoo-portfolio.css";
/**
* TattooPortfolio: a dark, bold site for a tattoo artist.
* Its signature is the flash try-on: pick a design from the flash sheet,
* choose where it goes, its size and the skin tone, and the stencil draws
* itself on before the ink fills in. Price and sitting time update live.
* It is a demo: connect `onBook` to your booking inbox.
*/
type Shape = { d: string; fill: string };
type Flash = { id: string; name: string; hours: number; shapes: Shape[] };
const INK = "#141210";
const RED = "#c8312b";
const YELLOW = "#e8b923";
const GREEN = "#3f7d3a";
const NAVY = "#23305e";
const CREAM = "#f3e6cc";
/** The sun's rays are generated: twelve long and short points. */
const sunRays = Array.from({ length: 12 }, (_, k) => {
const a = (k / 12) * Math.PI * 2;
const len = k % 2 ? 30 : 40;
const w = 0.16;
const p = (ang: number, r: number) =>
`${(50 + Math.cos(ang) * r).toFixed(1)} ${(50 + Math.sin(ang) * r).toFixed(1)}`;
return `M${p(a - w, 20)} L${p(a, len)} L${p(a + w, 20)} Z`;
}).join(" ");
const FLASH: Flash[] = [
{
id: "swallow",
name: "Swallow",
hours: 2,
shapes: [
{ d: "M38 44C42 26 56 14 78 9C68 20 62 30 58 42Z", fill: NAVY },
{ d: "M40 56C46 70 58 80 76 85C66 74 60 66 56 58Z", fill: NAVY },
{ d: "M18 45C28 34 50 34 62 42C70 46 78 52 90 58L80 62L90 76L74 66C64 62 52 60 40 58C30 57 21 53 18 45Z", fill: NAVY },
{ d: "M22 50C26 58 36 60 44 57C38 52 30 50 22 50Z", fill: RED },
{ d: "M18 44L9 47L18 50Z", fill: YELLOW },
{ d: "M22 44a2 2 0 1 0 4 0a2 2 0 1 0-4 0", fill: CREAM },
],
},
{
id: "moth",
name: "Moth",
hours: 3,
shapes: [
{ d: "M50 40C35 18 10 20 9 38C9 52 30 52 50 48Z", fill: "#8a6a3a" },
{ d: "M50 40C65 18 90 20 91 38C91 52 70 52 50 48Z", fill: "#8a6a3a" },
{ d: "M50 52C36 56 21 66 25 79C31 88 44 75 50 62Z", fill: "#5a4528" },
{ d: "M50 52C64 56 79 66 75 79C69 88 56 75 50 62Z", fill: "#5a4528" },
{ d: "M20 36a6 6 0 1 0 12 0a6 6 0 1 0-12 0M68 36a6 6 0 1 0 12 0a6 6 0 1 0-12 0", fill: YELLOW },
{ d: "M45 52a5 18 0 1 0 10 0a5 18 0 1 0-10 0", fill: INK },
{ d: "M48 34C44 24 40 19 34 16M52 34C56 24 60 19 66 16", fill: "none" },
],
},
{
id: "dagger",
name: "Dagger",
hours: 2.5,
shapes: [
{ d: "M50 6L57 58L50 65L43 58Z", fill: "#cfd6da" },
{ d: "M50 12L50 60", fill: "none" },
{ d: "M32 58Q50 52 68 58L66 65Q50 61 34 65Z", fill: YELLOW },
{ d: "M45 65H55V86H45Z", fill: RED },
{ d: "M45 70H55M45 75H55M45 80H55", fill: "none" },
{ d: "M44 91a6 6 0 1 0 12 0a6 6 0 1 0-12 0", fill: YELLOW },
],
},
{
id: "sun",
name: "Sun",
hours: 1.5,
shapes: [
{ d: sunRays, fill: RED },
{ d: "M30 50a20 20 0 1 0 40 0a20 20 0 1 0-40 0", fill: YELLOW },
{ d: "M38 50a12 12 0 1 0 24 0a12 12 0 1 0-24 0", fill: "#f0cf5a" },
],
},
{
id: "wave",
name: "Wave",
hours: 3,
shapes: [
{ d: "M8 72C18 40 50 22 74 33C88 40 88 60 72 62C62 63 57 53 64 49C53 48 52 63 61 69C40 74 24 72 8 72Z", fill: NAVY },
{ d: "M74 33C86 38 90 52 82 58C84 48 80 40 70 36Z", fill: CREAM },
{ d: "M12 80H88M20 87H80", fill: "none" },
],
},
{
id: "heart",
name: "Heart and ribbon",
hours: 2,
shapes: [
{ d: "M50 84C20 64 9 45 21 30C31 19 46 23 50 34C54 23 69 19 79 30C91 45 80 64 50 84Z", fill: RED },
{ d: "M28 34C32 28 38 28 42 32", fill: "none" },
{ d: "M10 50L90 44L88 58L12 64Z", fill: CREAM },
{ d: "M10 50L3 60L12 64M90 44L97 52L88 58", fill: GREEN },
],
},
];
type Placement = "forearm" | "calf" | "shoulder";
const PLACES: { id: Placement; label: string; path: string; at: [number, number]; rot: number }[] = [
{
id: "forearm",
label: "Forearm",
path: "M92 400C88 320 98 200 114 92C118 68 182 68 186 92C202 200 212 320 208 400Z",
at: [150, 240],
rot: 0,
},
{
id: "calf",
label: "Calf",
path: "M98 0C78 80 68 160 94 262C104 322 108 362 110 400H190C192 362 196 322 206 262C232 160 222 80 202 0Z",
at: [150, 170],
rot: 0,
},
{
id: "shoulder",
label: "Shoulder",
path: "M30 128C52 62 140 40 204 60C256 76 276 124 266 176L252 400H118C116 300 108 222 88 184C68 150 42 146 30 128Z",
at: [182, 190],
rot: -8,
},
];
const SIZES = [
{ id: "s", label: "Small", cm: "5 cm", scale: 0.62, factor: 0.7 },
{ id: "m", label: "Medium", cm: "9 cm", scale: 0.9, factor: 1 },
{ id: "l", label: "Large", cm: "14 cm", scale: 1.22, factor: 1.6 },
];
const SKINS = ["#f1cba7", "#dca57c", "#b5784f", "#8a5536", "#5b3a25"];
const RATE = 120;
const HEALED = [
{ src: "/images/portfolio-tattoo-healed-01.jpg", alt: "A healed fine-line fennel sprig and two small moths on a forearm", caption: "Fennel and moths, healed 14 months", tone: "#7a5a44" },
{ src: "/images/portfolio-tattoo-healed-02.jpg", alt: "A healed traditional swallow with cherry blossom on a shoulder", caption: "Swallow and blossom, healed 2 years", tone: "#6b4a38" },
];
function FlashArt({ flash, className = "" }: { flash: Flash; className?: string }) {
return (
<svg viewBox="0 0 100 100" className={className} aria-hidden="true">
{flash.shapes.map((s, i) => (
<path key={i} d={s.d} fill={s.fill} pathLength={1} style={{ "--k": i } as CSSProperties} />
))}
</svg>
);
}
function Photo({ src, alt, tone }: { src: string; alt: string; tone: 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-ink__photo" style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function TattooPortfolio({
onBook,
}: {
onBook?: (data: { design: string; placement: string; size: string; month: string; name: string; email: string }) => void;
}) {
const [flashId, setFlashId] = useState("swallow");
const [place, setPlace] = useState<Placement>("forearm");
const [size, setSize] = useState("m");
const [skin, setSkin] = useState(1);
const [booked, setBooked] = useState(false);
const flash = FLASH.find((f) => f.id === flashId) ?? FLASH[0];
const where = PLACES.find((p) => p.id === place) ?? PLACES[0];
const sz = SIZES.find((s) => s.id === size) ?? SIZES[1];
const hours = Math.max(1, Math.round(flash.hours * sz.factor * 2) / 2);
const price = Math.round((hours * RATE) / 10) * 10;
const art = 120 * sz.scale;
const submit = (e: FormEvent<HTMLFormElement>) => {
e.preventDefault();
const f = new FormData(e.currentTarget);
onBook?.({
design: flash.name,
placement: where.label,
size: sz.label,
month: String(f.get("month") ?? ""),
name: String(f.get("name") ?? ""),
email: String(f.get("email") ?? ""),
});
setBooked(true);
};
return (
<div className="gu-ink">
<header className="gu-ink__bar">
<a href="#" className="gu-ink__mark">
<span aria-hidden="true">✦</span> Mara Kade
</a>
<nav aria-label="Mara Kade">
<a href="#ink-flash">Flash</a>
<a href="#ink-healed">Healed</a>
<a href="#ink-book" className="gu-ink__navcta">
Book
</a>
</nav>
</header>
<section className="gu-ink__hero">
<div>
<p className="gu-ink__kicker">Traditional and fine line, Hackney Wick studio</p>
<h1>
Bold lines
<br />
that heal <span>well.</span>
</h1>
<p className="gu-ink__lede">
Classic flash and small custom pieces. Books open one month at a time,
and every booking starts with a fifteen-minute chat.
</p>
</div>
<FlashArt flash={FLASH[0]} className="gu-ink__hero-art" />
</section>
<section id="ink-flash" className="gu-ink__try" aria-labelledby="ink-flash-title">
<div className="gu-ink__sheet">
<h2 id="ink-flash-title">Try on the flash</h2>
<p className="gu-ink__hint">Pick a design, then where it goes.</p>
<div className="gu-ink__flash" role="group" aria-label="Design">
{FLASH.map((f) => (
<button
key={f.id}
type="button"
aria-pressed={flashId === f.id}
onClick={() => setFlashId(f.id)}
>
<FlashArt flash={f} />
<span>{f.name}</span>
</button>
))}
</div>
<div className="gu-ink__opts">
<div role="group" aria-label="Placement" className="gu-ink__seg">
{PLACES.map((p) => (
<button key={p.id} type="button" aria-pressed={place === p.id} onClick={() => setPlace(p.id)}>
{p.label}
</button>
))}
</div>
<div role="group" aria-label="Size" className="gu-ink__seg">
{SIZES.map((s) => (
<button key={s.id} type="button" aria-pressed={size === s.id} onClick={() => setSize(s.id)}>
{s.label}
<small>{s.cm}</small>
</button>
))}
</div>
<div role="group" aria-label="Skin tone" className="gu-ink__skins">
{SKINS.map((c, i) => (
<button
key={c}
type="button"
aria-pressed={skin === i}
aria-label={`Skin tone ${i + 1} of ${SKINS.length}`}
onClick={() => setSkin(i)}
style={{ background: c }}
/>
))}
</div>
</div>
</div>
<div className="gu-ink__body-wrap">
<svg
className="gu-ink__body"
viewBox="0 0 300 400"
role="img"
aria-label={`${flash.name}, ${sz.label.toLowerCase()}, on the ${where.label.toLowerCase()}`}
>
<defs>
<linearGradient id="ink-skin" x1="0" x2="1">
<stop offset="0" style={{ stopColor: SKINS[skin], stopOpacity: 0.72 }} />
<stop offset="0.45" style={{ stopColor: SKINS[skin] }} />
<stop offset="1" style={{ stopColor: SKINS[skin], stopOpacity: 0.6 }} />
</linearGradient>
<clipPath id="ink-clip">
<path d={where.path} />
</clipPath>
</defs>
<path key={where.id} d={where.path} fill="url(#ink-skin)" className="gu-ink__limb" />
<g clipPath="url(#ink-clip)">
<g
key={`${flash.id}-${where.id}-${size}`}
className="gu-ink__tattoo"
transform={`translate(${where.at[0] - art / 2} ${where.at[1] - art / 2}) rotate(${where.rot} ${art / 2} ${art / 2}) scale(${art / 100})`}
>
<g className="gu-ink__stencil">
{flash.shapes.map((s, i) => (
<path key={i} d={s.d} pathLength={1} />
))}
</g>
<g className="gu-ink__fill">
{flash.shapes.map((s, i) => (
<path key={i} d={s.d} fill={s.fill} style={{ "--k": i } as CSSProperties} />
))}
</g>
</g>
</g>
</svg>
<dl className="gu-ink__est" aria-live="polite">
<div>
<dt>Sitting</dt>
<dd key={`h${hours}`}>{hours} h</dd>
</div>
<div>
<dt>Estimate</dt>
<dd key={`p${price}`}>£{price}</dd>
</div>
</dl>
</div>
</section>
<section id="ink-healed" className="gu-ink__healed" aria-labelledby="ink-healed-title">
<h2 id="ink-healed-title">Healed, not fresh</h2>
<p>Fresh tattoos always look sharp. These are how my work looks after a year or two of living in it.</p>
<ul>
{HEALED.map((h) => (
<li key={h.src}>
<Photo src={h.src} alt={h.alt} tone={h.tone} />
<span>{h.caption}</span>
</li>
))}
</ul>
</section>
<section id="ink-book" className="gu-ink__book" aria-labelledby="ink-book-title">
<div>
<h2 id="ink-book-title">Book a sitting</h2>
<p>
Your pick so far: <b>{flash.name}</b>, {sz.label.toLowerCase()} ({sz.cm}), on the{" "}
{where.label.toLowerCase()}. A £50 deposit holds the date and comes off the price.
</p>
</div>
{booked ? (
<div className="gu-ink__booked" role="status">
<FlashArt flash={flash} />
<p>Request in. I’ll message you to set up the chat.</p>
<button type="button" onClick={() => setBooked(false)}>
Change something
</button>
</div>
) : (
<form className="gu-ink__form" onSubmit={submit}>
<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>
<span>Month</span>
<select name="month" defaultValue="January">
<option>January</option>
<option>February</option>
<option>March</option>
</select>
</label>
<button type="submit">Request a sitting</button>
</form>
)}
</section>
<footer className="gu-ink__foot">
<span>© 2026 Mara Kade. Over 18s only, ID needed.</span>
<a href="#">Aftercare</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: Tattoo artist portfolio with a flash try-on
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, bold one-page site for a tattoo artist ("Mara Kade, traditional and fine line"). Its signature is the flash try-on: a sheet of six flash designs drawn in SVG (swallow, moth, dagger, sun, wave, heart and ribbon), each made of flat-coloured shapes with a heavy black outline. Choose a design, a placement (forearm, calf, shoulder, each a simple SVG limb), a size (Small 5 cm, Medium 9 cm, Large 14 cm) and one of five skin tones. The design is clipped to the limb: first a purple stencil outline draws itself, then the coloured shapes fade in one by one while the stencil fades, with a brief red "fresh ink" glow that settles. Sitting time (design hours × size factor, rounded to half hours) and price (£120 an hour) update with a small tick. Other sections: a hero with a big swallow that draws itself, two healed-work photos, a booking form that repeats your pick, and a footer.
## Palette
Background #0f0e0d, panel #1a1816, flash paper #efe4cf, ink #141210, text #f3ece0, muted #9a9083, red #d23a2c, stencil purple #5b3fd6, focus ring #9fb0ff. Flash colours: red #c8312b, yellow #e8b923, green #3f7d3a, navy #23305e, cream #f3e6cc. Skin tones: #f1cba7, #dca57c, #b5784f, #8a5536, #5b3a25. Type: system-ui at 900 weight with tight tracking; the accent word "well." is an italic serif in red.
## Layout
- Bar: a red ✦ and the name; Flash, Healed and a red "Book" button.
- Hero: kicker, "Bold lines that heal well." and a paragraph on the left; the swallow flash on the right, floating gently.
- Try-on (two columns over a red glow): the flash sheet as a 3×2 grid of cream cards, then placement and size as pill segmented controls and the skin-tone dots. On the right, the limb (300×400 viewBox) with the estimate below.
- Healed: heading, a line about healed work, two 4:5 photos with captions; a light sweep passes over on hover.
- Book (cream band): your pick in a sentence, and a form (name, email, month) with an ink button and a red offset shadow. After sending, the chosen flash stamps in with a thank-you.
- Below 760px everything stacks.
## Images
- portfolio-tattoo-healed-01.jpg and -02.jpg (4:5). Until a file exists, each frame shows a warm skin-toned gradient.
## Motion
- The hero swallow draws in cream, then fills; afterwards it floats.
- Flash cards tilt up on hover; the chosen one gets a red border and dot.
- The stencil draws over 1s, the ink fills from 0.9s with a 0.12s stagger, and the fresh glow fades over 3s. Changing the skin tone blends the colour over 0.6s.
## Accessibility
- All choices are buttons with aria-pressed inside labelled groups; skin tones have labels.
- The body drawing is role="img" with a label naming the design, size and placement; the estimate is aria-live.
- The confirmation has role="status".
- prefers-reduced-motion hides the stencil and shows the finished tattoo with no animation.
## 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.
### TattooPortfolio.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties, type FormEvent } from "react";
import "./tattoo-portfolio.css";
/**
* TattooPortfolio: a dark, bold site for a tattoo artist.
* Its signature is the flash try-on: pick a design from the flash sheet,
* choose where it goes, its size and the skin tone, and the stencil draws
* itself on before the ink fills in. Price and sitting time update live.
* It is a demo: connect `onBook` to your booking inbox.
*/
type Shape = { d: string; fill: string };
type Flash = { id: string; name: string; hours: number; shapes: Shape[] };
const INK = "#141210";
const RED = "#c8312b";
const YELLOW = "#e8b923";
const GREEN = "#3f7d3a";
const NAVY = "#23305e";
const CREAM = "#f3e6cc";
/** The sun's rays are generated: twelve long and short points. */
const sunRays = Array.from({ length: 12 }, (_, k) => {
const a = (k / 12) * Math.PI * 2;
const len = k % 2 ? 30 : 40;
const w = 0.16;
const p = (ang: number, r: number) =>
`${(50 + Math.cos(ang) * r).toFixed(1)} ${(50 + Math.sin(ang) * r).toFixed(1)}`;
return `M${p(a - w, 20)} L${p(a, len)} L${p(a + w, 20)} Z`;
}).join(" ");
const FLASH: Flash[] = [
{
id: "swallow",
name: "Swallow",
hours: 2,
shapes: [
{ d: "M38 44C42 26 56 14 78 9C68 20 62 30 58 42Z", fill: NAVY },
{ d: "M40 56C46 70 58 80 76 85C66 74 60 66 56 58Z", fill: NAVY },
{ d: "M18 45C28 34 50 34 62 42C70 46 78 52 90 58L80 62L90 76L74 66C64 62 52 60 40 58C30 57 21 53 18 45Z", fill: NAVY },
{ d: "M22 50C26 58 36 60 44 57C38 52 30 50 22 50Z", fill: RED },
{ d: "M18 44L9 47L18 50Z", fill: YELLOW },
{ d: "M22 44a2 2 0 1 0 4 0a2 2 0 1 0-4 0", fill: CREAM },
],
},
{
id: "moth",
name: "Moth",
hours: 3,
shapes: [
{ d: "M50 40C35 18 10 20 9 38C9 52 30 52 50 48Z", fill: "#8a6a3a" },
{ d: "M50 40C65 18 90 20 91 38C91 52 70 52 50 48Z", fill: "#8a6a3a" },
{ d: "M50 52C36 56 21 66 25 79C31 88 44 75 50 62Z", fill: "#5a4528" },
{ d: "M50 52C64 56 79 66 75 79C69 88 56 75 50 62Z", fill: "#5a4528" },
{ d: "M20 36a6 6 0 1 0 12 0a6 6 0 1 0-12 0M68 36a6 6 0 1 0 12 0a6 6 0 1 0-12 0", fill: YELLOW },
{ d: "M45 52a5 18 0 1 0 10 0a5 18 0 1 0-10 0", fill: INK },
{ d: "M48 34C44 24 40 19 34 16M52 34C56 24 60 19 66 16", fill: "none" },
],
},
{
id: "dagger",
name: "Dagger",
hours: 2.5,
shapes: [
{ d: "M50 6L57 58L50 65L43 58Z", fill: "#cfd6da" },
{ d: "M50 12L50 60", fill: "none" },
{ d: "M32 58Q50 52 68 58L66 65Q50 61 34 65Z", fill: YELLOW },
{ d: "M45 65H55V86H45Z", fill: RED },
{ d: "M45 70H55M45 75H55M45 80H55", fill: "none" },
{ d: "M44 91a6 6 0 1 0 12 0a6 6 0 1 0-12 0", fill: YELLOW },
],
},
{
id: "sun",
name: "Sun",
hours: 1.5,
shapes: [
{ d: sunRays, fill: RED },
{ d: "M30 50a20 20 0 1 0 40 0a20 20 0 1 0-40 0", fill: YELLOW },
{ d: "M38 50a12 12 0 1 0 24 0a12 12 0 1 0-24 0", fill: "#f0cf5a" },
],
},
{
id: "wave",
name: "Wave",
hours: 3,
shapes: [
{ d: "M8 72C18 40 50 22 74 33C88 40 88 60 72 62C62 63 57 53 64 49C53 48 52 63 61 69C40 74 24 72 8 72Z", fill: NAVY },
{ d: "M74 33C86 38 90 52 82 58C84 48 80 40 70 36Z", fill: CREAM },
{ d: "M12 80H88M20 87H80", fill: "none" },
],
},
{
id: "heart",
name: "Heart and ribbon",
hours: 2,
shapes: [
{ d: "M50 84C20 64 9 45 21 30C31 19 46 23 50 34C54 23 69 19 79 30C91 45 80 64 50 84Z", fill: RED },
{ d: "M28 34C32 28 38 28 42 32", fill: "none" },
{ d: "M10 50L90 44L88 58L12 64Z", fill: CREAM },
{ d: "M10 50L3 60L12 64M90 44L97 52L88 58", fill: GREEN },
],
},
];
type Placement = "forearm" | "calf" | "shoulder";
const PLACES: { id: Placement; label: string; path: string; at: [number, number]; rot: number }[] = [
{
id: "forearm",
label: "Forearm",
path: "M92 400C88 320 98 200 114 92C118 68 182 68 186 92C202 200 212 320 208 400Z",
at: [150, 240],
rot: 0,
},
{
id: "calf",
label: "Calf",
path: "M98 0C78 80 68 160 94 262C104 322 108 362 110 400H190C192 362 196 322 206 262C232 160 222 80 202 0Z",
at: [150, 170],
rot: 0,
},
{
id: "shoulder",
label: "Shoulder",
path: "M30 128C52 62 140 40 204 60C256 76 276 124 266 176L252 400H118C116 300 108 222 88 184C68 150 42 146 30 128Z",
at: [182, 190],
rot: -8,
},
];
const SIZES = [
{ id: "s", label: "Small", cm: "5 cm", scale: 0.62, factor: 0.7 },
{ id: "m", label: "Medium", cm: "9 cm", scale: 0.9, factor: 1 },
{ id: "l", label: "Large", cm: "14 cm", scale: 1.22, factor: 1.6 },
];
const SKINS = ["#f1cba7", "#dca57c", "#b5784f", "#8a5536", "#5b3a25"];
const RATE = 120;
const HEALED = [
{ src: "/images/portfolio-tattoo-healed-01.jpg", alt: "A healed fine-line fennel sprig and two small moths on a forearm", caption: "Fennel and moths, healed 14 months", tone: "#7a5a44" },
{ src: "/images/portfolio-tattoo-healed-02.jpg", alt: "A healed traditional swallow with cherry blossom on a shoulder", caption: "Swallow and blossom, healed 2 years", tone: "#6b4a38" },
];
function FlashArt({ flash, className = "" }: { flash: Flash; className?: string }) {
return (
<svg viewBox="0 0 100 100" className={className} aria-hidden="true">
{flash.shapes.map((s, i) => (
<path key={i} d={s.d} fill={s.fill} pathLength={1} style={{ "--k": i } as CSSProperties} />
))}
</svg>
);
}
function Photo({ src, alt, tone }: { src: string; alt: string; tone: 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-ink__photo" style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function TattooPortfolio({
onBook,
}: {
onBook?: (data: { design: string; placement: string; size: string; month: string; name: string; email: string }) => void;
}) {
const [flashId, setFlashId] = useState("swallow");
const [place, setPlace] = useState<Placement>("forearm");
const [size, setSize] = useState("m");
const [skin, setSkin] = useState(1);
const [booked, setBooked] = useState(false);
const flash = FLASH.find((f) => f.id === flashId) ?? FLASH[0];
const where = PLACES.find((p) => p.id === place) ?? PLACES[0];
const sz = SIZES.find((s) => s.id === size) ?? SIZES[1];
const hours = Math.max(1, Math.round(flash.hours * sz.factor * 2) / 2);
const price = Math.round((hours * RATE) / 10) * 10;
const art = 120 * sz.scale;
const submit = (e: FormEvent<HTMLFormElement>) => {
e.preventDefault();
const f = new FormData(e.currentTarget);
onBook?.({
design: flash.name,
placement: where.label,
size: sz.label,
month: String(f.get("month") ?? ""),
name: String(f.get("name") ?? ""),
email: String(f.get("email") ?? ""),
});
setBooked(true);
};
return (
<div className="gu-ink">
<header className="gu-ink__bar">
<a href="#" className="gu-ink__mark">
<span aria-hidden="true">✦</span> Mara Kade
</a>
<nav aria-label="Mara Kade">
<a href="#ink-flash">Flash</a>
<a href="#ink-healed">Healed</a>
<a href="#ink-book" className="gu-ink__navcta">
Book
</a>
</nav>
</header>
<section className="gu-ink__hero">
<div>
<p className="gu-ink__kicker">Traditional and fine line, Hackney Wick studio</p>
<h1>
Bold lines
<br />
that heal <span>well.</span>
</h1>
<p className="gu-ink__lede">
Classic flash and small custom pieces. Books open one month at a time,
and every booking starts with a fifteen-minute chat.
</p>
</div>
<FlashArt flash={FLASH[0]} className="gu-ink__hero-art" />
</section>
<section id="ink-flash" className="gu-ink__try" aria-labelledby="ink-flash-title">
<div className="gu-ink__sheet">
<h2 id="ink-flash-title">Try on the flash</h2>
<p className="gu-ink__hint">Pick a design, then where it goes.</p>
<div className="gu-ink__flash" role="group" aria-label="Design">
{FLASH.map((f) => (
<button
key={f.id}
type="button"
aria-pressed={flashId === f.id}
onClick={() => setFlashId(f.id)}
>
<FlashArt flash={f} />
<span>{f.name}</span>
</button>
))}
</div>
<div className="gu-ink__opts">
<div role="group" aria-label="Placement" className="gu-ink__seg">
{PLACES.map((p) => (
<button key={p.id} type="button" aria-pressed={place === p.id} onClick={() => setPlace(p.id)}>
{p.label}
</button>
))}
</div>
<div role="group" aria-label="Size" className="gu-ink__seg">
{SIZES.map((s) => (
<button key={s.id} type="button" aria-pressed={size === s.id} onClick={() => setSize(s.id)}>
{s.label}
<small>{s.cm}</small>
</button>
))}
</div>
<div role="group" aria-label="Skin tone" className="gu-ink__skins">
{SKINS.map((c, i) => (
<button
key={c}
type="button"
aria-pressed={skin === i}
aria-label={`Skin tone ${i + 1} of ${SKINS.length}`}
onClick={() => setSkin(i)}
style={{ background: c }}
/>
))}
</div>
</div>
</div>
<div className="gu-ink__body-wrap">
<svg
className="gu-ink__body"
viewBox="0 0 300 400"
role="img"
aria-label={`${flash.name}, ${sz.label.toLowerCase()}, on the ${where.label.toLowerCase()}`}
>
<defs>
<linearGradient id="ink-skin" x1="0" x2="1">
<stop offset="0" style={{ stopColor: SKINS[skin], stopOpacity: 0.72 }} />
<stop offset="0.45" style={{ stopColor: SKINS[skin] }} />
<stop offset="1" style={{ stopColor: SKINS[skin], stopOpacity: 0.6 }} />
</linearGradient>
<clipPath id="ink-clip">
<path d={where.path} />
</clipPath>
</defs>
<path key={where.id} d={where.path} fill="url(#ink-skin)" className="gu-ink__limb" />
<g clipPath="url(#ink-clip)">
<g
key={`${flash.id}-${where.id}-${size}`}
className="gu-ink__tattoo"
transform={`translate(${where.at[0] - art / 2} ${where.at[1] - art / 2}) rotate(${where.rot} ${art / 2} ${art / 2}) scale(${art / 100})`}
>
<g className="gu-ink__stencil">
{flash.shapes.map((s, i) => (
<path key={i} d={s.d} pathLength={1} />
))}
</g>
<g className="gu-ink__fill">
{flash.shapes.map((s, i) => (
<path key={i} d={s.d} fill={s.fill} style={{ "--k": i } as CSSProperties} />
))}
</g>
</g>
</g>
</svg>
<dl className="gu-ink__est" aria-live="polite">
<div>
<dt>Sitting</dt>
<dd key={`h${hours}`}>{hours} h</dd>
</div>
<div>
<dt>Estimate</dt>
<dd key={`p${price}`}>£{price}</dd>
</div>
</dl>
</div>
</section>
<section id="ink-healed" className="gu-ink__healed" aria-labelledby="ink-healed-title">
<h2 id="ink-healed-title">Healed, not fresh</h2>
<p>Fresh tattoos always look sharp. These are how my work looks after a year or two of living in it.</p>
<ul>
{HEALED.map((h) => (
<li key={h.src}>
<Photo src={h.src} alt={h.alt} tone={h.tone} />
<span>{h.caption}</span>
</li>
))}
</ul>
</section>
<section id="ink-book" className="gu-ink__book" aria-labelledby="ink-book-title">
<div>
<h2 id="ink-book-title">Book a sitting</h2>
<p>
Your pick so far: <b>{flash.name}</b>, {sz.label.toLowerCase()} ({sz.cm}), on the{" "}
{where.label.toLowerCase()}. A £50 deposit holds the date and comes off the price.
</p>
</div>
{booked ? (
<div className="gu-ink__booked" role="status">
<FlashArt flash={flash} />
<p>Request in. I’ll message you to set up the chat.</p>
<button type="button" onClick={() => setBooked(false)}>
Change something
</button>
</div>
) : (
<form className="gu-ink__form" onSubmit={submit}>
<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>
<span>Month</span>
<select name="month" defaultValue="January">
<option>January</option>
<option>February</option>
<option>March</option>
</select>
</label>
<button type="submit">Request a sitting</button>
</form>
)}
</section>
<footer className="gu-ink__foot">
<span>© 2026 Mara Kade. Over 18s only, ID needed.</span>
<a href="#">Aftercare</a>
<a href="#">Instagram</a>
</footer>
</div>
);
}
```
### tattoo-portfolio.css
```css
/* Mara Kade: a black studio wall, cream flash paper, traditional red. */
.gu-ink {
--bg: #0f0e0d;
--bg-2: #1a1816;
--paper: #efe4cf;
--ink: #141210;
--text: #f3ece0;
--muted: #9a9083;
--line: rgb(243 236 224 / 0.14);
--red: #d23a2c;
--stencil: #5b3fd6;
--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;
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-ink *,
.gu-ink *::before,
.gu-ink *::after {
box-sizing: border-box;
}
.gu-ink a {
color: inherit;
}
.gu-ink :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
/* Every flash drawing: heavy black outline, flat colour. */
.gu-ink svg path {
stroke: var(--ink);
stroke-width: 2.4;
stroke-linecap: round;
stroke-linejoin: round;
}
/* ---------- Bar ---------- */
.gu-ink__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 22px 6%;
border-bottom: 1px solid var(--line);
}
.gu-ink__mark {
font-size: 1.15rem;
font-weight: 900;
letter-spacing: -0.02em;
text-decoration: none;
}
.gu-ink__mark span {
display: inline-block;
color: var(--red);
transition: transform 0.6s var(--spring);
}
.gu-ink__mark:hover span {
transform: rotate(90deg) scale(1.3);
}
.gu-ink__bar nav {
display: flex;
align-items: center;
gap: 24px;
font-weight: 600;
}
.gu-ink__bar nav a:not(.gu-ink__navcta) {
text-decoration: none;
color: var(--muted);
transition: color 0.3s;
}
.gu-ink__bar nav a:not(.gu-ink__navcta):hover {
color: var(--text);
}
.gu-ink__navcta {
padding: 9px 20px;
border-radius: 6px;
background: var(--red);
color: #fff !important;
text-decoration: none;
transition: transform 0.3s var(--spring);
}
.gu-ink__navcta:hover {
transform: rotate(-3deg) scale(1.05);
}
/* ---------- Hero ---------- */
.gu-ink__hero {
display: grid;
grid-template-columns: 1.3fr 1fr;
align-items: center;
gap: 30px;
padding: 60px 6% 70px;
}
.gu-ink__kicker {
margin: 0 0 18px;
color: var(--muted);
font-size: 0.9rem;
animation: gu-ink-rise 0.9s var(--ease) both;
}
.gu-ink__hero h1 {
margin: 0;
font-size: clamp(2.8rem, 8.4cqi, 6.6rem);
font-weight: 900;
line-height: 0.92;
letter-spacing: -0.045em;
animation: gu-ink-rise 1s var(--ease) 0.1s both;
}
.gu-ink__hero h1 span {
font-family: var(--serif);
font-style: italic;
font-weight: 400;
letter-spacing: -0.02em;
color: var(--red);
}
.gu-ink__lede {
max-width: 42ch;
margin: 24px 0 0;
color: var(--muted);
font-size: 1.05rem;
animation: gu-ink-rise 1s var(--ease) 0.25s both;
}
.gu-ink__hero-art {
width: 100%;
max-width: 360px;
justify-self: center;
overflow: visible;
filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.6));
animation: gu-ink-float 6s ease-in-out 2.4s infinite alternate;
}
.gu-ink__hero-art path {
stroke: var(--paper);
stroke-width: 1.6;
stroke-dasharray: 1;
stroke-dashoffset: 1;
fill-opacity: 0;
animation:
gu-ink-draw 1.4s var(--ease) calc(0.3s + var(--k) * 0.12s) forwards,
gu-ink-fill 0.8s var(--ease) calc(1.5s + var(--k) * 0.1s) forwards;
}
/* ---------- Try-on ---------- */
.gu-ink__try {
display: grid;
grid-template-columns: 1.15fr 1fr;
gap: 40px;
padding: 70px 6%;
border-top: 1px solid var(--line);
background:
radial-gradient(60% 60% at 80% 50%, rgb(210 58 44 / 0.12), transparent 70%),
var(--bg-2);
}
.gu-ink__try h2,
.gu-ink__healed h2,
.gu-ink__book h2 {
margin: 0 0 8px;
font-size: clamp(1.9rem, 4.2cqi, 3rem);
font-weight: 900;
letter-spacing: -0.03em;
}
.gu-ink__hint {
margin: 0 0 20px;
color: var(--muted);
}
.gu-ink__flash {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.gu-ink__flash button {
position: relative;
display: grid;
justify-items: center;
gap: 2px;
padding: 12px 8px 10px;
border: 2px solid transparent;
border-radius: 10px;
background:
radial-gradient(circle at 30% 20%, #fff8ea, transparent 60%),
var(--paper);
color: var(--ink);
font: inherit;
font-size: 0.85rem;
font-weight: 700;
cursor: pointer;
box-shadow: 0 10px 20px -10px rgb(0 0 0 / 0.7);
transition:
transform 0.45s var(--spring),
border-color 0.3s;
}
.gu-ink__flash button svg {
width: 72%;
max-width: 90px;
aspect-ratio: 1;
transition: transform 0.5s var(--spring);
}
.gu-ink__flash button:hover {
transform: translateY(-4px) rotate(-1.5deg);
}
.gu-ink__flash button:hover svg {
transform: scale(1.08) rotate(4deg);
}
.gu-ink__flash button[aria-pressed="true"] {
border-color: var(--red);
transform: translateY(-4px);
}
.gu-ink__flash button[aria-pressed="true"]::after {
content: "";
position: absolute;
top: 8px;
right: 8px;
width: 12px;
aspect-ratio: 1;
border-radius: 50%;
background: var(--red);
animation: gu-ink-pop 0.4s var(--spring) both;
}
.gu-ink__opts {
display: grid;
gap: 12px;
margin-top: 22px;
}
.gu-ink__seg {
display: flex;
padding: 4px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgb(0 0 0 / 0.3);
}
.gu-ink__seg button {
flex: 1;
display: inline-flex;
align-items: baseline;
justify-content: center;
gap: 6px;
min-height: 42px;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--muted);
font: inherit;
font-weight: 700;
cursor: pointer;
transition:
background-color 0.35s var(--ease),
color 0.35s var(--ease);
}
.gu-ink__seg button small {
font-weight: 400;
opacity: 0.7;
}
.gu-ink__seg button:hover {
color: var(--text);
}
.gu-ink__seg button[aria-pressed="true"] {
background: var(--paper);
color: var(--ink);
}
.gu-ink__skins {
display: flex;
gap: 10px;
}
.gu-ink__skins button {
width: 40px;
aspect-ratio: 1;
border: 0;
border-radius: 50%;
cursor: pointer;
box-shadow:
inset 0 -6px 10px rgb(0 0 0 / 0.2),
0 0 0 2px var(--bg-2);
transition:
transform 0.4s var(--spring),
box-shadow 0.3s;
}
.gu-ink__skins button:hover {
transform: scale(1.1);
}
.gu-ink__skins button[aria-pressed="true"] {
transform: scale(1.1);
box-shadow:
inset 0 -6px 10px rgb(0 0 0 / 0.2),
0 0 0 2px var(--bg-2),
0 0 0 4px var(--paper);
}
.gu-ink__body-wrap {
position: relative;
display: grid;
align-content: center;
justify-items: center;
}
.gu-ink__body {
width: 100%;
max-width: 340px;
overflow: visible;
filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55));
}
.gu-ink__body stop {
transition: stop-color 0.6s var(--ease);
}
.gu-ink__limb {
stroke: none !important;
animation: gu-ink-limb 0.7s var(--ease) both;
}
/* The stencil draws on in purple, then the ink fills in and the stencil fades. */
.gu-ink__stencil path {
fill: none;
stroke: var(--stencil) !important;
stroke-width: 1.4 !important;
stroke-dasharray: 1;
stroke-dashoffset: 1;
animation:
gu-ink-draw 1s var(--ease) forwards,
gu-ink-out 0.6s var(--ease) 1.5s forwards;
}
.gu-ink__fill {
animation: gu-ink-fresh 3s var(--ease) 1s both;
}
.gu-ink__fill path {
opacity: 0;
animation: gu-ink-in 0.5s var(--ease) calc(0.9s + var(--k) * 0.12s) forwards;
}
.gu-ink__est {
display: flex;
gap: 32px;
margin: 18px 0 0;
}
.gu-ink__est div {
display: grid;
justify-items: center;
}
.gu-ink__est dt {
color: var(--muted);
font-size: 0.85rem;
}
.gu-ink__est dd {
margin: 0;
font-size: 2rem;
font-weight: 900;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
animation: gu-ink-tick 0.5s var(--spring) both;
}
/* ---------- Healed ---------- */
.gu-ink__healed {
padding: 80px 6%;
}
.gu-ink__healed > p {
max-width: 50ch;
margin: 0 0 30px;
color: var(--muted);
}
.gu-ink__healed ul {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin: 0;
padding: 0;
list-style: none;
}
.gu-ink__healed li {
display: grid;
gap: 10px;
}
.gu-ink__healed li span:last-child {
color: var(--muted);
font-size: 0.92rem;
}
.gu-ink__photo {
position: relative;
display: block;
aspect-ratio: 4 / 5;
overflow: hidden;
border-radius: 10px;
background:
radial-gradient(circle at 40% 30%, rgb(255 220 190 / 0.25), transparent 60%),
var(--tone);
}
.gu-ink__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition:
transform 1.2s var(--ease),
filter 0.6s;
filter: saturate(0.9);
}
/* A sweep of light passes over the photo on hover, like studio light on skin. */
.gu-ink__photo::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.18) 50%, transparent 65%);
transform: translateX(-100%);
transition: transform 1s var(--ease);
}
.gu-ink__healed li:hover .gu-ink__photo img {
transform: scale(1.04);
filter: saturate(1.05);
}
.gu-ink__healed li:hover .gu-ink__photo::after {
transform: translateX(100%);
}
/* ---------- Book ---------- */
.gu-ink__book {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
padding: 80px 6%;
border-top: 1px solid var(--line);
background: var(--paper);
color: var(--ink);
}
.gu-ink__book > div > p {
max-width: 40ch;
margin: 0;
color: #5f574c;
}
.gu-ink__book b {
color: var(--red);
}
.gu-ink__form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
.gu-ink__form label {
display: grid;
gap: 6px;
font-size: 0.88rem;
font-weight: 700;
}
.gu-ink__form label:nth-child(3) {
grid-column: 1 / -1;
}
.gu-ink__form input,
.gu-ink__form select {
min-height: 48px;
padding: 0 14px;
border: 2px solid var(--ink);
border-radius: 8px;
background: #fff8ea;
color: var(--ink);
font: inherit;
transition: box-shadow 0.3s var(--ease);
}
.gu-ink__form input:focus,
.gu-ink__form select:focus {
outline: none;
box-shadow: 4px 4px 0 var(--red);
}
.gu-ink__form button {
grid-column: 1 / -1;
min-height: 54px;
border: 0;
border-radius: 8px;
background: var(--ink);
color: var(--paper);
font: inherit;
font-weight: 800;
cursor: pointer;
box-shadow: 0 5px 0 var(--red);
transition:
transform 0.2s var(--ease),
box-shadow 0.2s var(--ease);
}
.gu-ink__form button:hover {
transform: translateY(-2px);
box-shadow: 0 7px 0 var(--red);
}
.gu-ink__form button:active {
transform: translateY(4px);
box-shadow: 0 1px 0 var(--red);
}
.gu-ink__booked {
display: grid;
justify-items: center;
align-content: center;
gap: 6px;
text-align: center;
animation: gu-ink-pop 0.6s var(--spring) both;
}
.gu-ink__booked svg {
width: 110px;
animation: gu-ink-stamp 0.8s var(--spring) both;
}
.gu-ink__booked p {
margin: 0;
font-weight: 700;
}
.gu-ink__booked button {
min-height: 42px;
padding: 0 16px;
border: 2px solid var(--ink);
border-radius: 8px;
background: transparent;
color: var(--ink);
font: inherit;
font-weight: 700;
cursor: pointer;
}
.gu-ink__foot {
display: flex;
flex-wrap: wrap;
gap: 12px 26px;
padding: 24px 6% 32px;
color: var(--muted);
font-size: 0.9rem;
}
.gu-ink__foot span {
flex: 1;
}
/* ---------- Motion ---------- */
@keyframes gu-ink-rise {
from {
opacity: 0;
transform: translateY(24px);
}
}
@keyframes gu-ink-draw {
to {
stroke-dashoffset: 0;
}
}
@keyframes gu-ink-fill {
to {
fill-opacity: 1;
}
}
@keyframes gu-ink-float {
to {
transform: translateY(-14px) rotate(-3deg);
}
}
@keyframes gu-ink-out {
to {
opacity: 0;
}
}
@keyframes gu-ink-in {
to {
opacity: 1;
}
}
/* Fresh ink is a little red and swollen; it settles in a few seconds. */
@keyframes gu-ink-fresh {
from {
filter: drop-shadow(0 0 2px rgb(220 60 50 / 0.9));
}
to {
filter: drop-shadow(0 0 0 rgb(220 60 50 / 0));
}
}
@keyframes gu-ink-limb {
from {
opacity: 0;
transform: translateY(12px);
}
}
@keyframes gu-ink-pop {
from {
opacity: 0;
transform: scale(0.6);
}
}
@keyframes gu-ink-tick {
from {
opacity: 0;
transform: translateY(-10px);
}
}
@keyframes gu-ink-stamp {
from {
transform: scale(1.6) rotate(-20deg);
opacity: 0;
}
}
/* ---------- Narrow ---------- */
@container (max-width: 760px) {
.gu-ink__hero,
.gu-ink__try,
.gu-ink__book {
grid-template-columns: 1fr;
}
.gu-ink__hero-art {
max-width: 220px;
}
.gu-ink__body {
max-width: 280px;
}
}
@container (max-width: 560px) {
.gu-ink__bar nav > a:not(.gu-ink__navcta) {
display: none;
}
.gu-ink__healed ul,
.gu-ink__form {
grid-template-columns: 1fr;
}
.gu-ink__seg button small {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-ink *,
.gu-ink *::before,
.gu-ink *::after {
animation: none !important;
transition: none !important;
}
.gu-ink__hero-art path {
stroke-dashoffset: 0;
fill-opacity: 1;
}
.gu-ink__stencil {
display: none;
}
.gu-ink__fill path {
opacity: 1;
}
}
```
You might also want
Next piece: Tree-planting charity landing pageFilmmaker portfolio with a screening room
Portfolios, advanced
Interior designer portfolio with a floor plan
Portfolios, advanced
Private chef portfolio with a dinner builder
Portfolios, advanced

