Interior designer portfolio with a floor plan
A soft, architectural site for an interior designer: choose a room on an SVG floor plan and its photo wipes in with its material palette, while a light slider moves sun patches across the floor and warms the photo from morning to evening.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./interior-portfolio.css";
/**
* InteriorPortfolio: a soft, architectural site for an interior designer.
* Its signature is the floor plan: pick a room on the plan and its photo and
* material palette slide in; move the light from morning to evening and sun
* patches travel across the floor while the photo warms.
* It is a demo: connect `onEnquire` to your inbox.
*/
type RoomId = "living" | "kitchen" | "bedroom";
type Room = {
id: RoomId;
name: string;
note: string;
src: string;
alt: string;
tone: string;
rect: [number, number, number, number];
materials: { name: string; hex: string }[];
};
const ROOMS: Room[] = [
{
id: "living",
name: "Living room",
note: "We took out a wall to the hall, so morning light now reaches the sofa.",
src: "/images/portfolio-interior-room-01.jpg",
alt: "A living room with a low rust wool sofa, a round travertine table and linen curtains",
tone: "#b98a6a",
rect: [20, 20, 200, 150],
materials: [
{ name: "Lime plaster", hex: "#ece4d6" },
{ name: "Rust wool", hex: "#a5543a" },
{ name: "Travertine", hex: "#d8c7a8" },
{ name: "Smoked oak", hex: "#7a5a3e" },
],
},
{
id: "kitchen",
name: "Kitchen",
note: "Olive cabinets, an old butcher block and handmade tiles that are never quite level.",
src: "/images/portfolio-interior-room-02.jpg",
alt: "A kitchen with olive-green cabinets, brass handles, a butcher block and off-white tiles",
tone: "#7a7d52",
rect: [220, 20, 160, 100],
materials: [
{ name: "Olive paint", hex: "#6f7046" },
{ name: "Zellige tile", hex: "#eee9dd" },
{ name: "Butcher block", hex: "#b78a5a" },
{ name: "Unlacquered brass", hex: "#b8964f" },
],
},
{
id: "bedroom",
name: "Bedroom",
note: "A low oak bed and terracotta lime wash: warm, quiet and nothing to look at but the window.",
src: "/images/portfolio-interior-room-03.jpg",
alt: "A bedroom with a low oak bed, rumpled oat linen and a pale terracotta wall",
tone: "#c99a80",
rect: [220, 120, 160, 160],
materials: [
{ name: "Terracotta lime wash", hex: "#d6a38a" },
{ name: "Oat linen", hex: "#ddd1bb" },
{ name: "White oak", hex: "#c9a77c" },
{ name: "Paper shade", hex: "#f3ede2" },
],
},
];
const SERVICES = [
{
id: "consult",
name: "A two-hour visit",
price: "£280",
text: "We walk the rooms together and you leave with a page of clear next steps, colours and a shopping list.",
},
{
id: "room",
name: "One room, finished",
price: "from £2,400",
text: "Layout, a full material board, lighting, sourcing and a day on site to style it when it's done.",
},
{
id: "home",
name: "The whole home",
price: "from £9,000",
text: "Plans, builders' drawings, joinery design and the project managed from first wall to last cushion.",
},
];
/** Light colour through the day: hour → overlay colour and strength. */
function lightAt(h: number) {
if (h < 10) return { color: "rgb(180 200 230)", amount: 0.22 - (h - 7) * 0.05 };
if (h < 16) return { color: "rgb(255 245 225)", amount: 0.05 };
return { color: "rgb(255 170 90)", amount: 0.1 + (h - 16) * 0.06 };
}
const clock = (h: number) => `${Math.floor(h)}:${h % 1 ? "30" : "00"}`;
function Photo({ room }: { room: Room }) {
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-home__photo" style={{ "--tone": room.tone } as CSSProperties}>
{!missing && <img ref={img} src={room.src} alt={room.alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function InteriorPortfolio({ onEnquire }: { onEnquire?: (data: { name: string; email: string; service: string }) => void }) {
const [room, setRoom] = useState<RoomId>("living");
const [hour, setHour] = useState(9);
const [open, setOpen] = useState("room");
const [sent, setSent] = useState(false);
const r = ROOMS.find((x) => x.id === room) ?? ROOMS[0];
const light = lightAt(hour);
// Sun patches slide across the floor through the day (-1 morning … 1 evening).
const s = (hour - 14) / 7;
return (
<div className="gu-home">
<header className="gu-home__bar">
<a href="#" className="gu-home__mark">
Ottilie Park <span>Interiors</span>
</a>
<nav aria-label="Ottilie Park Interiors">
<a href="#home-plan">Recent home</a>
<a href="#home-services">Services</a>
<a href="#home-contact" className="gu-home__navcta">
Start a project
</a>
</nav>
</header>
<section className="gu-home__hero">
<h1>
<span>Rooms that feel</span>
<span>like they were always yours.</span>
</h1>
<p>
I design calm, lived-in homes from honest materials, and I keep what
you already love.
</p>
</section>
<section id="home-plan" className="gu-home__explore" aria-labelledby="home-plan-title">
<div className="gu-home__explore-head">
<h2 id="home-plan-title">A 1930s flat in Bath, walked through</h2>
<p>Choose a room on the plan. Move the light to see the day pass.</p>
</div>
<div className="gu-home__explore-grid">
<div className="gu-home__plan-col">
<svg className="gu-home__plan" viewBox="0 0 400 300" role="group" aria-label="Floor plan">
<defs>
<pattern id="home-hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<rect width="1" height="6" fill="rgb(40 34 28 / 0.18)" />
</pattern>
<clipPath id="home-living">
<rect x="20" y="20" width="200" height="150" />
</clipPath>
<clipPath id="home-kitchen">
<rect x="220" y="20" width="160" height="100" />
</clipPath>
<clipPath id="home-bedroom">
<rect x="220" y="120" width="160" height="160" />
</clipPath>
</defs>
{/* Hall and bathroom: not part of the tour. */}
<rect x="20" y="170" width="120" height="110" fill="url(#home-hatch)" />
<rect x="140" y="170" width="80" height="110" fill="url(#home-hatch)" />
<text x="80" y="230" className="gu-home__label gu-home__label--off">Hall</text>
<text x="180" y="230" className="gu-home__label gu-home__label--off">Bath</text>
{ROOMS.map((x) => (
<g
key={x.id}
className="gu-home__room"
data-on={room === x.id || undefined}
role="button"
tabIndex={0}
aria-pressed={room === x.id}
aria-label={x.name}
onClick={() => setRoom(x.id)}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
setRoom(x.id);
}
}}
>
<rect x={x.rect[0]} y={x.rect[1]} width={x.rect[2]} height={x.rect[3]} />
<text x={x.rect[0] + x.rect[2] / 2} y={x.rect[1] + x.rect[3] / 2 + 4} className="gu-home__label">
{x.name}
</text>
</g>
))}
{/* Sun patches from each window, clipped to their room. */}
<g className="gu-home__sun" aria-hidden="true">
<polygon clipPath="url(#home-living)" points={`60,20 140,20 ${140 + s * 70},${110} ${60 + s * 70},${110}`} />
<polygon clipPath="url(#home-kitchen)" points={`260,20 340,20 ${340 + s * 50},${85} ${260 + s * 50},${85}`} />
<polygon clipPath="url(#home-bedroom)" points={`380,160 380,240 ${290},${240 - s * 50} ${290},${160 - s * 50}`} />
</g>
{/* Furniture hints */}
<g className="gu-home__furniture" aria-hidden="true">
<rect x="40" y="110" width="90" height="34" rx="6" />
<circle cx="160" cy="80" r="20" />
<path d="M232 30h136M232 30v40" />
<rect x="290" y="150" width="72" height="96" rx="4" />
</g>
{/* Walls, doors and windows */}
<g className="gu-home__walls" aria-hidden="true">
<rect x="20" y="20" width="360" height="260" />
<path d="M220 20v60M220 100v110M220 230v50M20 170h80M120 170h100M140 170v110M220 120h70M310 120h70" />
<path className="gu-home__door" d="M100 170a20 20 0 0 1 20 -20M220 80a20 20 0 0 1 20 20M290 120a20 20 0 0 0 20 20" />
<path className="gu-home__window" d="M60 20h80M260 20h80M380 160v80" />
</g>
</svg>
<div className="gu-home__light">
<label htmlFor="home-hour">
Light <output htmlFor="home-hour">{clock(hour)}</output>
</label>
<input
id="home-hour"
type="range"
min={7}
max={21}
step={0.5}
value={hour}
onChange={(e) => setHour(Number(e.target.value))}
aria-valuetext={`${clock(hour)}, ${hour < 11 ? "morning" : hour < 17 ? "afternoon" : "evening"}`}
/>
</div>
</div>
<div className="gu-home__view">
<div className="gu-home__frame">
<div key={r.id} className="gu-home__slide">
<Photo room={r} />
</div>
<span
className="gu-home__tint"
style={{ background: light.color, opacity: Math.max(0, light.amount) } as CSSProperties}
aria-hidden="true"
/>
<span
className="gu-home__shade"
style={{ "--angle": `${90 + s * 50}deg` } as CSSProperties}
aria-hidden="true"
/>
</div>
<div className="gu-home__info" aria-live="polite">
<h3 key={r.id}>{r.name}</h3>
<p key={`${r.id}-n`}>{r.note}</p>
</div>
<ul className="gu-home__materials" aria-label={`Materials in the ${r.name.toLowerCase()}`}>
{r.materials.map((m, i) => (
<li key={`${r.id}-${m.name}`} style={{ "--i": i } as CSSProperties}>
<span style={{ background: m.hex }} aria-hidden="true" />
{m.name}
</li>
))}
</ul>
</div>
</div>
</section>
<section id="home-services" className="gu-home__services" aria-labelledby="home-services-title">
<h2 id="home-services-title">Ways to work together</h2>
<div className="gu-home__acc">
{SERVICES.map((sv) => {
const isOpen = open === sv.id;
return (
<div key={sv.id} className="gu-home__acc-item" data-open={isOpen || undefined}>
<h3>
<button
type="button"
aria-expanded={isOpen}
aria-controls={`home-svc-${sv.id}`}
onClick={() => setOpen(isOpen ? "" : sv.id)}
>
<span>{sv.name}</span>
<span className="gu-home__price">{sv.price}</span>
<span className="gu-home__plus" aria-hidden="true" />
</button>
</h3>
<div id={`home-svc-${sv.id}`} className="gu-home__acc-body" role="region" aria-label={sv.name}>
<div>
<p>{sv.text}</p>
</div>
</div>
</div>
);
})}
</div>
</section>
<section className="gu-home__quote">
<blockquote>
<p>“She kept my grandmother’s chair and made the whole flat make sense around it.”</p>
<footer>Priya, the Bath flat</footer>
</blockquote>
</section>
<section id="home-contact" className="gu-home__contact" aria-labelledby="home-contact-title">
<h2 id="home-contact-title">Tell me about your home</h2>
{sent ? (
<p className="gu-home__sent" role="status">
Thank you. I’ll be in touch within three working days to arrange a call.
</p>
) : (
<form
className="gu-home__form"
onSubmit={(e) => {
e.preventDefault();
const f = new FormData(e.currentTarget);
onEnquire?.({ name: String(f.get("name") ?? ""), email: String(f.get("email") ?? ""), service: String(f.get("service") ?? "") });
setSent(true);
}}
>
<label>
<span>Name</span>
<input name="name" required autoComplete="name" />
</label>
<label>
<span>Email</span>
<input name="email" type="email" required autoComplete="email" />
</label>
<label>
<span>Interested in</span>
<select name="service" defaultValue={SERVICES[1].name}>
{SERVICES.map((sv) => (
<option key={sv.id}>{sv.name}</option>
))}
</select>
</label>
<button type="submit">Send</button>
</form>
)}
</section>
<footer className="gu-home__foot">
<span>© 2026 Ottilie Park Interiors</span>
<a href="#">Instagram</a>
<a href="#">Press</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: Interior designer portfolio with a floor plan
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 soft, architectural one-page site for an interior designer ("Ottilie Park Interiors"). Its signature is a walk-through of one recent home, a 1930s flat. On the left is an SVG floor plan (400×300) with thick ink walls, dashed door swings, pale blue windows, faint furniture outlines, and the hall and bathroom hatched out. Three rooms (living room, kitchen, bedroom) are buttons: choosing one tints it green on the plan, wipes its photo in from the right with a slow settling zoom, and pops in its four material swatches (for example lime plaster, rust wool, travertine, smoked oak) with a short note. A "Light" slider from 7:00 to 21:00 slides warm sun patches from each window across the floor and tints the photo cool blue in the morning, neutral at midday and amber in the evening, with a shadow gradient that turns with the sun. Other sections: a services accordion with prices, a green quote band, a one-line contact form, and a footer.
## Palette
Background #f1ede6, sand #e6dfd3, ink #2a2622, muted #7c746a, garden green #3f5a46, lines rgb(42 38 34 / 0.14), focus ring #2b35ff. The chosen room fills #dfe6dc and sun patches are rgb(255 205 120 / 0.42). Headings use a light serif (Cormorant Garamond, Iowan Old Style, Georgia), with italics for accents; the rest is system-ui.
## Layout
- Bar: the name with an italic, muted "Interiors"; Recent home, Services and a green "Start a project" pill.
- Hero: centred two-line serif headline (the second line italic and green) and a short paragraph.
- Explorer (sand band): heading and hint, then the plan with the light slider (a dawn-to-dusk gradient track and a sun thumb) on the left; on the right a 4:3 photo frame, the room name and note, and four square swatches.
- Services: three accordion rows (serif name, price, a + that becomes − in a green circle) that open smoothly.
- Quote on green, then contact (name, email, a service select and Send on one row).
- Below 760px the explorer stacks; below 560px the swatches go to two columns and the form to one.
## Images
- portfolio-interior-room-01.jpg to -03.jpg (4:3). Until a file exists, each frame shows its room's tone with a soft window glow.
## Motion
- The hero lines rise one after the other.
- Room photos wipe in over 0.9s and settle from 110% scale; swatches spring in on a stagger and tilt on hover.
- Sun patches and the tint ease as the slider moves.
## Accessibility
- Rooms are focusable SVG groups with role="button", aria-pressed and Enter or Space.
- The light slider is a native range with aria-valuetext ("9:30, morning") and an output.
- Accordion buttons use aria-expanded and aria-controls; the room text is aria-live; the thank-you has role="status".
- prefers-reduced-motion turns off every animation and transition.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### InteriorPortfolio.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./interior-portfolio.css";
/**
* InteriorPortfolio: a soft, architectural site for an interior designer.
* Its signature is the floor plan: pick a room on the plan and its photo and
* material palette slide in; move the light from morning to evening and sun
* patches travel across the floor while the photo warms.
* It is a demo: connect `onEnquire` to your inbox.
*/
type RoomId = "living" | "kitchen" | "bedroom";
type Room = {
id: RoomId;
name: string;
note: string;
src: string;
alt: string;
tone: string;
rect: [number, number, number, number];
materials: { name: string; hex: string }[];
};
const ROOMS: Room[] = [
{
id: "living",
name: "Living room",
note: "We took out a wall to the hall, so morning light now reaches the sofa.",
src: "/images/portfolio-interior-room-01.jpg",
alt: "A living room with a low rust wool sofa, a round travertine table and linen curtains",
tone: "#b98a6a",
rect: [20, 20, 200, 150],
materials: [
{ name: "Lime plaster", hex: "#ece4d6" },
{ name: "Rust wool", hex: "#a5543a" },
{ name: "Travertine", hex: "#d8c7a8" },
{ name: "Smoked oak", hex: "#7a5a3e" },
],
},
{
id: "kitchen",
name: "Kitchen",
note: "Olive cabinets, an old butcher block and handmade tiles that are never quite level.",
src: "/images/portfolio-interior-room-02.jpg",
alt: "A kitchen with olive-green cabinets, brass handles, a butcher block and off-white tiles",
tone: "#7a7d52",
rect: [220, 20, 160, 100],
materials: [
{ name: "Olive paint", hex: "#6f7046" },
{ name: "Zellige tile", hex: "#eee9dd" },
{ name: "Butcher block", hex: "#b78a5a" },
{ name: "Unlacquered brass", hex: "#b8964f" },
],
},
{
id: "bedroom",
name: "Bedroom",
note: "A low oak bed and terracotta lime wash: warm, quiet and nothing to look at but the window.",
src: "/images/portfolio-interior-room-03.jpg",
alt: "A bedroom with a low oak bed, rumpled oat linen and a pale terracotta wall",
tone: "#c99a80",
rect: [220, 120, 160, 160],
materials: [
{ name: "Terracotta lime wash", hex: "#d6a38a" },
{ name: "Oat linen", hex: "#ddd1bb" },
{ name: "White oak", hex: "#c9a77c" },
{ name: "Paper shade", hex: "#f3ede2" },
],
},
];
const SERVICES = [
{
id: "consult",
name: "A two-hour visit",
price: "£280",
text: "We walk the rooms together and you leave with a page of clear next steps, colours and a shopping list.",
},
{
id: "room",
name: "One room, finished",
price: "from £2,400",
text: "Layout, a full material board, lighting, sourcing and a day on site to style it when it's done.",
},
{
id: "home",
name: "The whole home",
price: "from £9,000",
text: "Plans, builders' drawings, joinery design and the project managed from first wall to last cushion.",
},
];
/** Light colour through the day: hour → overlay colour and strength. */
function lightAt(h: number) {
if (h < 10) return { color: "rgb(180 200 230)", amount: 0.22 - (h - 7) * 0.05 };
if (h < 16) return { color: "rgb(255 245 225)", amount: 0.05 };
return { color: "rgb(255 170 90)", amount: 0.1 + (h - 16) * 0.06 };
}
const clock = (h: number) => `${Math.floor(h)}:${h % 1 ? "30" : "00"}`;
function Photo({ room }: { room: Room }) {
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-home__photo" style={{ "--tone": room.tone } as CSSProperties}>
{!missing && <img ref={img} src={room.src} alt={room.alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
export function InteriorPortfolio({ onEnquire }: { onEnquire?: (data: { name: string; email: string; service: string }) => void }) {
const [room, setRoom] = useState<RoomId>("living");
const [hour, setHour] = useState(9);
const [open, setOpen] = useState("room");
const [sent, setSent] = useState(false);
const r = ROOMS.find((x) => x.id === room) ?? ROOMS[0];
const light = lightAt(hour);
// Sun patches slide across the floor through the day (-1 morning … 1 evening).
const s = (hour - 14) / 7;
return (
<div className="gu-home">
<header className="gu-home__bar">
<a href="#" className="gu-home__mark">
Ottilie Park <span>Interiors</span>
</a>
<nav aria-label="Ottilie Park Interiors">
<a href="#home-plan">Recent home</a>
<a href="#home-services">Services</a>
<a href="#home-contact" className="gu-home__navcta">
Start a project
</a>
</nav>
</header>
<section className="gu-home__hero">
<h1>
<span>Rooms that feel</span>
<span>like they were always yours.</span>
</h1>
<p>
I design calm, lived-in homes from honest materials, and I keep what
you already love.
</p>
</section>
<section id="home-plan" className="gu-home__explore" aria-labelledby="home-plan-title">
<div className="gu-home__explore-head">
<h2 id="home-plan-title">A 1930s flat in Bath, walked through</h2>
<p>Choose a room on the plan. Move the light to see the day pass.</p>
</div>
<div className="gu-home__explore-grid">
<div className="gu-home__plan-col">
<svg className="gu-home__plan" viewBox="0 0 400 300" role="group" aria-label="Floor plan">
<defs>
<pattern id="home-hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<rect width="1" height="6" fill="rgb(40 34 28 / 0.18)" />
</pattern>
<clipPath id="home-living">
<rect x="20" y="20" width="200" height="150" />
</clipPath>
<clipPath id="home-kitchen">
<rect x="220" y="20" width="160" height="100" />
</clipPath>
<clipPath id="home-bedroom">
<rect x="220" y="120" width="160" height="160" />
</clipPath>
</defs>
{/* Hall and bathroom: not part of the tour. */}
<rect x="20" y="170" width="120" height="110" fill="url(#home-hatch)" />
<rect x="140" y="170" width="80" height="110" fill="url(#home-hatch)" />
<text x="80" y="230" className="gu-home__label gu-home__label--off">Hall</text>
<text x="180" y="230" className="gu-home__label gu-home__label--off">Bath</text>
{ROOMS.map((x) => (
<g
key={x.id}
className="gu-home__room"
data-on={room === x.id || undefined}
role="button"
tabIndex={0}
aria-pressed={room === x.id}
aria-label={x.name}
onClick={() => setRoom(x.id)}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
setRoom(x.id);
}
}}
>
<rect x={x.rect[0]} y={x.rect[1]} width={x.rect[2]} height={x.rect[3]} />
<text x={x.rect[0] + x.rect[2] / 2} y={x.rect[1] + x.rect[3] / 2 + 4} className="gu-home__label">
{x.name}
</text>
</g>
))}
{/* Sun patches from each window, clipped to their room. */}
<g className="gu-home__sun" aria-hidden="true">
<polygon clipPath="url(#home-living)" points={`60,20 140,20 ${140 + s * 70},${110} ${60 + s * 70},${110}`} />
<polygon clipPath="url(#home-kitchen)" points={`260,20 340,20 ${340 + s * 50},${85} ${260 + s * 50},${85}`} />
<polygon clipPath="url(#home-bedroom)" points={`380,160 380,240 ${290},${240 - s * 50} ${290},${160 - s * 50}`} />
</g>
{/* Furniture hints */}
<g className="gu-home__furniture" aria-hidden="true">
<rect x="40" y="110" width="90" height="34" rx="6" />
<circle cx="160" cy="80" r="20" />
<path d="M232 30h136M232 30v40" />
<rect x="290" y="150" width="72" height="96" rx="4" />
</g>
{/* Walls, doors and windows */}
<g className="gu-home__walls" aria-hidden="true">
<rect x="20" y="20" width="360" height="260" />
<path d="M220 20v60M220 100v110M220 230v50M20 170h80M120 170h100M140 170v110M220 120h70M310 120h70" />
<path className="gu-home__door" d="M100 170a20 20 0 0 1 20 -20M220 80a20 20 0 0 1 20 20M290 120a20 20 0 0 0 20 20" />
<path className="gu-home__window" d="M60 20h80M260 20h80M380 160v80" />
</g>
</svg>
<div className="gu-home__light">
<label htmlFor="home-hour">
Light <output htmlFor="home-hour">{clock(hour)}</output>
</label>
<input
id="home-hour"
type="range"
min={7}
max={21}
step={0.5}
value={hour}
onChange={(e) => setHour(Number(e.target.value))}
aria-valuetext={`${clock(hour)}, ${hour < 11 ? "morning" : hour < 17 ? "afternoon" : "evening"}`}
/>
</div>
</div>
<div className="gu-home__view">
<div className="gu-home__frame">
<div key={r.id} className="gu-home__slide">
<Photo room={r} />
</div>
<span
className="gu-home__tint"
style={{ background: light.color, opacity: Math.max(0, light.amount) } as CSSProperties}
aria-hidden="true"
/>
<span
className="gu-home__shade"
style={{ "--angle": `${90 + s * 50}deg` } as CSSProperties}
aria-hidden="true"
/>
</div>
<div className="gu-home__info" aria-live="polite">
<h3 key={r.id}>{r.name}</h3>
<p key={`${r.id}-n`}>{r.note}</p>
</div>
<ul className="gu-home__materials" aria-label={`Materials in the ${r.name.toLowerCase()}`}>
{r.materials.map((m, i) => (
<li key={`${r.id}-${m.name}`} style={{ "--i": i } as CSSProperties}>
<span style={{ background: m.hex }} aria-hidden="true" />
{m.name}
</li>
))}
</ul>
</div>
</div>
</section>
<section id="home-services" className="gu-home__services" aria-labelledby="home-services-title">
<h2 id="home-services-title">Ways to work together</h2>
<div className="gu-home__acc">
{SERVICES.map((sv) => {
const isOpen = open === sv.id;
return (
<div key={sv.id} className="gu-home__acc-item" data-open={isOpen || undefined}>
<h3>
<button
type="button"
aria-expanded={isOpen}
aria-controls={`home-svc-${sv.id}`}
onClick={() => setOpen(isOpen ? "" : sv.id)}
>
<span>{sv.name}</span>
<span className="gu-home__price">{sv.price}</span>
<span className="gu-home__plus" aria-hidden="true" />
</button>
</h3>
<div id={`home-svc-${sv.id}`} className="gu-home__acc-body" role="region" aria-label={sv.name}>
<div>
<p>{sv.text}</p>
</div>
</div>
</div>
);
})}
</div>
</section>
<section className="gu-home__quote">
<blockquote>
<p>“She kept my grandmother’s chair and made the whole flat make sense around it.”</p>
<footer>Priya, the Bath flat</footer>
</blockquote>
</section>
<section id="home-contact" className="gu-home__contact" aria-labelledby="home-contact-title">
<h2 id="home-contact-title">Tell me about your home</h2>
{sent ? (
<p className="gu-home__sent" role="status">
Thank you. I’ll be in touch within three working days to arrange a call.
</p>
) : (
<form
className="gu-home__form"
onSubmit={(e) => {
e.preventDefault();
const f = new FormData(e.currentTarget);
onEnquire?.({ name: String(f.get("name") ?? ""), email: String(f.get("email") ?? ""), service: String(f.get("service") ?? "") });
setSent(true);
}}
>
<label>
<span>Name</span>
<input name="name" required autoComplete="name" />
</label>
<label>
<span>Email</span>
<input name="email" type="email" required autoComplete="email" />
</label>
<label>
<span>Interested in</span>
<select name="service" defaultValue={SERVICES[1].name}>
{SERVICES.map((sv) => (
<option key={sv.id}>{sv.name}</option>
))}
</select>
</label>
<button type="submit">Send</button>
</form>
)}
</section>
<footer className="gu-home__foot">
<span>© 2026 Ottilie Park Interiors</span>
<a href="#">Instagram</a>
<a href="#">Press</a>
</footer>
</div>
);
}
```
### interior-portfolio.css
```css
/* Ottilie Park Interiors: warm plaster, oak, and one deep garden green. */
.gu-home {
--bg: #f1ede6;
--sand: #e6dfd3;
--ink: #2a2622;
--muted: #7c746a;
--line: rgb(42 38 34 / 0.14);
--green: #3f5a46;
--focus: #2b35ff;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
--serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
position: relative;
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--ink);
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
line-height: 1.55;
}
.gu-home *,
.gu-home *::before,
.gu-home *::after {
box-sizing: border-box;
}
.gu-home a {
color: inherit;
}
.gu-home :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
/* ---------- Bar ---------- */
.gu-home__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 24px 6%;
}
.gu-home__mark {
font-family: var(--serif);
font-size: 1.45rem;
text-decoration: none;
}
.gu-home__mark span {
font-style: italic;
color: var(--muted);
}
.gu-home__bar nav {
display: flex;
align-items: center;
gap: 26px;
font-size: 0.92rem;
}
.gu-home__bar nav a:not(.gu-home__navcta) {
text-decoration: none;
color: var(--muted);
transition: color 0.3s;
}
.gu-home__bar nav a:not(.gu-home__navcta):hover {
color: var(--ink);
}
.gu-home__navcta {
padding: 10px 18px;
border-radius: 999px;
background: var(--green);
color: #f1ede6 !important;
text-decoration: none;
transition:
background-color 0.3s,
transform 0.3s var(--ease);
}
.gu-home__navcta:hover {
background: var(--ink);
transform: translateY(-2px);
}
/* ---------- Hero ---------- */
.gu-home__hero {
padding: 60px 6% 70px;
text-align: center;
}
.gu-home__hero h1 {
margin: 0;
font-family: var(--serif);
font-size: clamp(2.6rem, 7cqi, 5.6rem);
font-weight: 400;
line-height: 1;
letter-spacing: -0.02em;
}
.gu-home__hero h1 span {
display: block;
animation: gu-home-rise 1.2s var(--ease) both;
}
.gu-home__hero h1 span + span {
font-style: italic;
color: var(--green);
animation-delay: 0.18s;
}
.gu-home__hero p {
max-width: 44ch;
margin: 24px auto 0;
color: var(--muted);
font-size: 1.05rem;
animation: gu-home-rise 1s var(--ease) 0.4s both;
}
/* ---------- Plan explorer ---------- */
.gu-home__explore {
padding: 60px 6% 80px;
border-top: 1px solid var(--line);
background: var(--sand);
}
.gu-home__explore-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 10px 30px;
margin-bottom: 30px;
}
.gu-home__explore-head h2,
.gu-home__services h2,
.gu-home__contact h2 {
margin: 0;
font-family: var(--serif);
font-size: clamp(1.9rem, 4.2cqi, 3rem);
font-weight: 400;
line-height: 1.05;
}
.gu-home__explore-head p {
margin: 0;
color: var(--muted);
}
.gu-home__explore-grid {
display: grid;
grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
gap: 40px;
align-items: start;
}
.gu-home__plan {
display: block;
width: 100%;
overflow: visible;
filter: drop-shadow(0 20px 30px rgb(60 45 30 / 0.12));
}
.gu-home__room {
cursor: pointer;
outline: none;
}
.gu-home__room rect {
fill: #f8f5ef;
transition: fill 0.5s var(--ease);
}
.gu-home__room:hover rect {
fill: #fff;
}
.gu-home__room[data-on] rect {
fill: #dfe6dc;
}
.gu-home__room:focus-visible rect {
stroke: var(--focus);
stroke-width: 3;
}
.gu-home__label {
fill: var(--muted);
font-family: system-ui, sans-serif;
font-size: 11px;
text-anchor: middle;
pointer-events: none;
transition: fill 0.4s;
}
.gu-home__room[data-on] .gu-home__label {
fill: var(--green);
font-weight: 700;
}
.gu-home__label--off {
font-style: italic;
opacity: 0.6;
}
.gu-home__sun polygon {
fill: rgb(255 205 120 / 0.42);
pointer-events: none;
transition: points 0.5s var(--ease);
}
.gu-home__furniture {
pointer-events: none;
}
.gu-home__furniture rect,
.gu-home__furniture circle,
.gu-home__furniture path {
fill: none;
stroke: rgb(42 38 34 / 0.35);
stroke-width: 1.2;
}
.gu-home__walls {
pointer-events: none;
}
.gu-home__walls rect,
.gu-home__walls path {
fill: none;
stroke: var(--ink);
stroke-width: 5;
stroke-linecap: square;
}
.gu-home__walls .gu-home__door {
stroke-width: 1;
stroke-dasharray: 3 3;
}
.gu-home__walls .gu-home__window {
stroke: #9fb7c9;
stroke-width: 5;
}
.gu-home__light {
display: grid;
gap: 8px;
margin-top: 22px;
}
.gu-home__light label {
display: flex;
justify-content: space-between;
font-weight: 600;
}
.gu-home__light output {
font-variant-numeric: tabular-nums;
color: var(--green);
}
.gu-home__light input {
width: 100%;
height: 32px;
margin: 0;
background: transparent;
appearance: none;
cursor: pointer;
}
.gu-home__light input::-webkit-slider-runnable-track {
height: 6px;
border-radius: 999px;
background: linear-gradient(90deg, #b9cbe0, #fff3dd 45%, #f6b56c 85%, #c96d3a);
}
.gu-home__light input::-moz-range-track {
height: 6px;
border-radius: 999px;
background: linear-gradient(90deg, #b9cbe0, #fff3dd 45%, #f6b56c 85%, #c96d3a);
}
.gu-home__light input::-webkit-slider-thumb {
width: 26px;
height: 26px;
margin-top: -10px;
border: 3px solid #fff;
border-radius: 50%;
background: #f0b04a;
box-shadow: 0 0 0 6px rgb(240 176 74 / 0.25), 0 4px 10px rgb(0 0 0 / 0.2);
appearance: none;
transition: transform 0.3s var(--spring);
}
.gu-home__light input::-moz-range-thumb {
width: 22px;
height: 22px;
border: 3px solid #fff;
border-radius: 50%;
background: #f0b04a;
box-shadow: 0 0 0 6px rgb(240 176 74 / 0.25);
}
.gu-home__light input:active::-webkit-slider-thumb {
transform: scale(1.15);
}
.gu-home__view {
display: grid;
gap: 16px;
}
.gu-home__frame {
position: relative;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 12px;
background: var(--ink);
box-shadow: 0 30px 60px -30px rgb(60 45 30 / 0.5);
}
.gu-home__slide {
position: absolute;
inset: 0;
animation: gu-home-wipe 0.9s var(--ease) both;
}
.gu-home__photo {
display: block;
width: 100%;
height: 100%;
background:
radial-gradient(50% 60% at 70% 30%, rgb(255 245 225 / 0.45), transparent 70%),
var(--tone);
}
.gu-home__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
animation: gu-home-settle 1.6s var(--ease) both;
}
.gu-home__tint {
position: absolute;
inset: 0;
mix-blend-mode: multiply;
pointer-events: none;
transition:
background-color 0.6s,
opacity 0.6s;
}
.gu-home__shade {
position: absolute;
inset: 0;
background: linear-gradient(var(--angle), transparent 40%, rgb(30 20 10 / 0.28));
mix-blend-mode: multiply;
pointer-events: none;
}
.gu-home__info h3 {
margin: 0;
font-family: var(--serif);
font-size: 1.8rem;
font-weight: 400;
animation: gu-home-rise 0.6s var(--ease) both;
}
.gu-home__info p {
margin: 2px 0 0;
color: var(--muted);
animation: gu-home-rise 0.6s var(--ease) 0.08s both;
}
.gu-home__materials {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin: 0;
padding: 0;
list-style: none;
}
.gu-home__materials li {
display: grid;
gap: 6px;
font-size: 0.82rem;
color: var(--muted);
animation: gu-home-chip 0.7s var(--spring) calc(0.15s + var(--i) * 0.07s) both;
}
.gu-home__materials span {
aspect-ratio: 1;
border-radius: 10px;
box-shadow:
inset 0 0 0 1px rgb(0 0 0 / 0.08),
0 8px 16px -10px rgb(60 45 30 / 0.5);
transition: transform 0.5s var(--spring);
}
.gu-home__materials li:hover span {
transform: translateY(-4px) rotate(-3deg);
}
/* ---------- Services accordion ---------- */
.gu-home__services {
padding: 80px 6%;
}
.gu-home__acc {
margin-top: 26px;
border-bottom: 1px solid var(--line);
}
.gu-home__acc-item {
border-top: 1px solid var(--line);
}
.gu-home__acc-item h3 {
margin: 0;
}
.gu-home__acc-item button {
display: grid;
grid-template-columns: 1fr auto 28px;
align-items: center;
gap: 18px;
width: 100%;
padding: 22px 0;
border: 0;
background: transparent;
color: var(--ink);
font: inherit;
text-align: left;
cursor: pointer;
}
.gu-home__acc-item button > span:first-child {
font-family: var(--serif);
font-size: 1.6rem;
transition: transform 0.5s var(--ease);
}
.gu-home__acc-item button:hover > span:first-child {
transform: translateX(8px);
}
.gu-home__price {
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.gu-home__plus {
position: relative;
width: 28px;
aspect-ratio: 1;
border: 1px solid var(--line);
border-radius: 50%;
transition:
background-color 0.4s,
transform 0.5s var(--spring);
}
.gu-home__plus::before,
.gu-home__plus::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 10px;
height: 1.5px;
background: currentColor;
translate: -50% -50%;
}
.gu-home__plus::after {
rotate: 90deg;
transition: rotate 0.4s var(--ease);
}
.gu-home__acc-item[data-open] .gu-home__plus {
background: var(--green);
color: #fff;
transform: rotate(180deg);
}
.gu-home__acc-item[data-open] .gu-home__plus::after {
rotate: 0deg;
}
.gu-home__acc-body {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.5s var(--ease);
}
.gu-home__acc-body > div {
overflow: hidden;
}
.gu-home__acc-item[data-open] .gu-home__acc-body {
grid-template-rows: 1fr;
}
.gu-home__acc-body p {
max-width: 56ch;
margin: 0;
padding: 0 0 24px;
color: var(--muted);
}
/* ---------- Quote, contact, footer ---------- */
.gu-home__quote {
padding: 80px 6%;
background: var(--green);
color: #f1ede6;
text-align: center;
}
.gu-home__quote blockquote {
max-width: 30ch;
margin: 0 auto;
}
.gu-home__quote p {
margin: 0 0 14px;
font-family: var(--serif);
font-size: clamp(1.6rem, 3.8cqi, 2.6rem);
font-style: italic;
line-height: 1.2;
}
.gu-home__quote footer {
opacity: 0.75;
}
.gu-home__contact {
padding: 80px 6%;
}
.gu-home__form {
display: grid;
grid-template-columns: 1fr 1fr 1fr auto;
align-items: end;
gap: 14px;
margin-top: 26px;
}
.gu-home__form label {
display: grid;
gap: 6px;
font-size: 0.88rem;
font-weight: 600;
}
.gu-home__form input,
.gu-home__form select {
min-height: 48px;
padding: 0 4px;
border: 0;
border-bottom: 1px solid var(--ink);
background: transparent;
color: var(--ink);
font: inherit;
font-size: 1.05rem;
transition: border-color 0.3s;
}
.gu-home__form input:focus,
.gu-home__form select:focus {
outline: none;
border-bottom: 2px solid var(--green);
}
.gu-home__form button {
min-height: 48px;
padding: 0 28px;
border: 0;
border-radius: 999px;
background: var(--ink);
color: var(--bg);
font: inherit;
font-weight: 700;
cursor: pointer;
transition:
background-color 0.3s,
transform 0.3s var(--spring);
}
.gu-home__form button:hover {
background: var(--green);
}
.gu-home__form button:active {
transform: scale(0.95);
}
.gu-home__sent {
margin: 20px 0 0;
font-family: var(--serif);
font-size: 1.6rem;
font-style: italic;
animation: gu-home-rise 0.6s var(--ease) both;
}
.gu-home__foot {
display: flex;
flex-wrap: wrap;
gap: 12px 26px;
padding: 24px 6% 32px;
border-top: 1px solid var(--line);
font-size: 0.9rem;
}
.gu-home__foot span {
flex: 1;
color: var(--muted);
}
/* ---------- Motion ---------- */
@keyframes gu-home-rise {
from {
opacity: 0;
transform: translateY(18px);
}
}
@keyframes gu-home-wipe {
from {
clip-path: inset(0 0 0 100%);
}
to {
clip-path: inset(0 0 0 0);
}
}
@keyframes gu-home-settle {
from {
transform: scale(1.1);
}
}
@keyframes gu-home-chip {
from {
opacity: 0;
transform: translateY(14px) scale(0.85);
}
}
/* ---------- Narrow ---------- */
@container (max-width: 760px) {
.gu-home__explore-grid {
grid-template-columns: 1fr;
}
.gu-home__form {
grid-template-columns: 1fr 1fr;
}
}
@container (max-width: 560px) {
.gu-home__bar nav > a:not(.gu-home__navcta) {
display: none;
}
.gu-home__materials {
grid-template-columns: repeat(2, 1fr);
}
.gu-home__acc-item button {
grid-template-columns: 1fr 28px;
}
.gu-home__price {
grid-row: 2;
}
.gu-home__form {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-home *,
.gu-home *::before,
.gu-home *::after {
animation: none !important;
transition: none !important;
}
}
```
You might also want
Next piece: Liquid blob album 3D heroFilmmaker portfolio with a screening room
Portfolios, advanced
Tattoo artist portfolio with a flash try-on
Portfolios, advanced
Ceramicist portfolio with a pottery wheel
Portfolios, advanced
