Skincare page with a drop-by-drop routine
A calm one-product skincare page: a light follows the cursor across the texture photo, and a three-question quiz ends with drops falling into a pool.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./skin-page.css";
/**
* SkinPage: a calm page for a one-product skincare brand ("oleo").
* Signature moves: a soft light follows the cursor across the texture photo,
* and a three-question routine finder ends with drops falling, one by one,
* into a pool that fills. It is a demo: connect `onAdd` to your cart.
*/
const QUESTIONS = [
{
q: "How does your skin feel by noon?",
options: ["Tight and dry", "Comfortable", "A bit shiny"],
},
{
q: "Does it react to new products?",
options: ["Often", "Sometimes", "Hardly ever"],
},
{
q: "Where do you spend your days?",
options: ["Indoors, heating on", "In and out", "Outside a lot"],
},
];
const INGREDIENTS = [
{
name: "Squalane",
from: "from olives",
pct: 42,
why: "Feels like your skin's own oil, so it sinks in fast.",
},
{
name: "Jojoba oil",
from: "cold-pressed",
pct: 26,
why: "Balances shine without clogging.",
},
{
name: "Sea buckthorn",
from: "from berries",
pct: 18,
why: "The amber colour. Rich in vitamin E.",
},
{
name: "Rosehip oil",
from: "from wild roses",
pct: 14,
why: "Helps with dry patches and marks.",
},
];
function routineFor(a: number[]) {
const dry = a[0] === 0 ? 2 : a[0] === 1 ? 1 : 0;
const shy = a[1] === 0 ? 1 : 0;
const out = a[2] === 0 ? 1 : a[2] === 2 ? 1 : 0;
const morning = Math.max(1, Math.min(3, 1 + Math.round(dry / 2)));
const evening = Math.max(2, Math.min(5, 2 + dry + out - shy));
const tip =
shy > 0
? "Start every other night for a week, then daily."
: a[0] === 2
? "Press, don't rub: pat it over damp skin."
: "Seal it in: a few drops on still-damp skin after washing.";
return { morning, evening, tip };
}
/* ------------------------------------------------------------------ */
function Photo({
src,
alt,
tone,
className = "",
eager = false,
}: {
src: string;
alt: string;
tone: string;
className?: string;
eager?: boolean;
}) {
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 (
<div
className={`gu-oleo__photo ${className}`}
style={{ "--tone": tone } as CSSProperties}
>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading={eager ? "eager" : "lazy"}
onError={() => setMissing(true)}
/>
)}
</div>
);
}
/** A dropper releasing `count` drops into a pool that fills. */
function Drops({ count, label }: { count: number; label: string }) {
return (
<figure
className="gu-oleo__drops"
role="img"
aria-label={label}
style={{ "--n": count } as CSSProperties}
>
<svg viewBox="0 0 120 220" aria-hidden="true">
<rect
x="46"
y="4"
width="28"
height="34"
rx="10"
className="gu-oleo__bulb"
/>
<path d="M50 38 h20 l-4 66 q-6 10 -12 0 z" className="gu-oleo__glass" />
<path d="M54 60 h12 l-2 40 q-4 6 -8 0 z" className="gu-oleo__oil" />
{Array.from({ length: count }, (_, i) => (
<path
key={i}
d="M60 112 q -6 9 0 14 q 6 -5 0 -14 z"
className="gu-oleo__drop"
style={{ "--i": i } as CSSProperties}
/>
))}
<ellipse cx="60" cy="200" rx="50" ry="12" className="gu-oleo__dish" />
<ellipse cx="60" cy="200" rx="40" ry="9" className="gu-oleo__pool" />
{Array.from({ length: count }, (_, i) => (
<ellipse
key={i}
cx="60"
cy="198"
rx="10"
ry="3"
className="gu-oleo__ripple"
style={{ "--i": i } as CSSProperties}
/>
))}
</svg>
<figcaption>
<strong>{count}</strong> {count === 1 ? "drop" : "drops"}
</figcaption>
</figure>
);
}
/* ------------------------------------------------------------------ */
function Finder() {
const [answers, setAnswers] = useState<number[]>([]);
const step = answers.length;
const done = step >= QUESTIONS.length;
const r = done ? routineFor(answers) : null;
return (
<section className="gu-oleo__finder" aria-labelledby="oleo-f-title">
<Photo
src="/images/landing-skin-hands-16.jpg"
alt="A man rubbing two drops of golden oil between his palms over a white sink"
tone="#b98a5f"
className="gu-oleo__finder-photo"
/>
<div className="gu-oleo__finder-card">
<h2 id="oleo-f-title" className="gu-oleo__h2">
How many drops?
</h2>
<div className="gu-oleo__progress" aria-hidden="true">
{QUESTIONS.map((_, i) => (
<span key={i} data-on={i < step || done} />
))}
</div>
{!done ? (
<fieldset className="gu-oleo__q" key={step}>
<legend>
<span className="gu-oleo__step">
{step + 1} of {QUESTIONS.length}
</span>
{QUESTIONS[step].q}
</legend>
{QUESTIONS[step].options.map((o, i) => (
<button
key={o}
type="button"
style={{ "--i": i } as CSSProperties}
onClick={() => setAnswers([...answers, i])}
>
{o}
</button>
))}
{step > 0 && (
<button
type="button"
className="gu-oleo__back"
onClick={() => setAnswers(answers.slice(0, -1))}
>
Back
</button>
)}
</fieldset>
) : (
r && (
<div className="gu-oleo__result" role="status">
<div className="gu-oleo__routine">
<div>
<p className="gu-oleo__when">Morning</p>
<Drops
count={r.morning}
label={`Morning: ${r.morning} drops`}
/>
</div>
<div>
<p className="gu-oleo__when">Evening</p>
<Drops
count={r.evening}
label={`Evening: ${r.evening} drops`}
/>
</div>
</div>
<p className="gu-oleo__tip">{r.tip}</p>
<p className="gu-oleo__last">
A 30 ml bottle lasts you about{" "}
{Math.round(600 / (r.morning + r.evening) / 7)} weeks.
</p>
<button
type="button"
className="gu-oleo__back"
onClick={() => setAnswers([])}
>
Start again
</button>
</div>
)
)}
</div>
</section>
);
}
/* ------------------------------------------------------------------ */
export function SkinPage({ onAdd }: { onAdd?: () => void }) {
const [inBag, setInBag] = useState(0);
const [bump, setBump] = useState(0);
const bottle = useRef<HTMLDivElement>(null);
const light = useRef<HTMLDivElement>(null);
const [bars, setBars] = useState<HTMLElement | null>(null);
const [barsIn, setBarsIn] = useState(false);
useEffect(() => {
if (!bars) return;
const io = new IntersectionObserver(
([e]) => {
if (e.isIntersecting) {
setBarsIn(true);
io.disconnect();
}
},
{ threshold: 0.3 },
);
io.observe(bars);
return () => io.disconnect();
}, [bars]);
// On touch screens and before the cursor arrives, the light drifts by itself.
useEffect(() => {
const el = light.current;
if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches)
return;
let raf = 0;
const tick = (t: number) => {
if (el.dataset.manual !== "1") {
el.style.setProperty("--mx", `${50 + Math.sin(t / 2400) * 32}%`);
el.style.setProperty("--my", `${50 + Math.cos(t / 1900) * 22}%`);
}
raf = requestAnimationFrame(tick);
};
raf = requestAnimationFrame(tick);
return () => cancelAnimationFrame(raf);
}, []);
const add = () => {
setInBag((n) => n + 1);
setBump((b) => b + 1);
onAdd?.();
};
return (
<div className="gu-oleo">
<nav className="gu-oleo__nav" aria-label="Main">
<a href="#" className="gu-oleo__logo">
oleo
</a>
<div className="gu-oleo__links">
<a href="#oleo-texture">Texture</a>
<a href="#oleo-inside">What's inside</a>
</div>
<span className="gu-oleo__bag" data-bump={bump % 2} aria-live="polite">
Bag <span className="gu-oleo__bag-n">{inBag}</span>
</span>
</nav>
<header className="gu-oleo__hero">
<div className="gu-oleo__hero-copy">
<p className="gu-oleo__kicker">Face oil, 30 ml</p>
<h1 className="gu-oleo__h1">One oil. Fewer steps.</h1>
<p className="gu-oleo__lede">
Four plant oils, nothing else. It replaces your serum and night
cream, and your skin drinks it in under a minute.
</p>
<div className="gu-oleo__buy">
<button
type="button"
className="gu-oleo__cta"
onClick={add}
data-added={inBag > 0}
>
<span>{inBag > 0 ? "Add another" : "Add to bag"}</span>
<span aria-hidden="true">€38</span>
</button>
<p className="gu-oleo__note">Free returns, even when opened.</p>
</div>
</div>
<div
className="gu-oleo__bottle"
ref={bottle}
onPointerMove={(e) => {
const el = bottle.current;
if (!el || e.pointerType !== "mouse") return;
const r = el.getBoundingClientRect();
el.style.setProperty(
"--rx",
`${((e.clientY - r.top) / r.height - 0.5) * -8}deg`,
);
el.style.setProperty(
"--ry",
`${((e.clientX - r.left) / r.width - 0.5) * 10}deg`,
);
}}
onPointerLeave={() => {
bottle.current?.style.setProperty("--rx", "0deg");
bottle.current?.style.setProperty("--ry", "0deg");
}}
>
<Photo
src="/images/landing-skin-bottle-14.jpg"
alt="An amber glass dropper bottle on wet pale stone, a drop of golden oil hanging from the dropper"
tone="#c27a2c"
eager
/>
<span className="gu-oleo__badge" aria-hidden="true">
<svg viewBox="0 0 100 100">
<defs>
<path
id="oleo-ring"
d="M50 50 m-38 0 a38 38 0 1 1 76 0 a38 38 0 1 1 -76 0"
/>
</defs>
<text>
<textPath href="#oleo-ring">
four oils, nothing else, four oils, nothing else,
</textPath>
</text>
</svg>
</span>
</div>
</header>
<section
className="gu-oleo__texture"
id="oleo-texture"
aria-labelledby="oleo-t-title"
onPointerMove={(e) => {
const el = light.current;
if (!el || e.pointerType !== "mouse") return;
const r = el.getBoundingClientRect();
el.dataset.manual = "1";
el.style.setProperty(
"--mx",
`${((e.clientX - r.left) / r.width) * 100}%`,
);
el.style.setProperty(
"--my",
`${((e.clientY - r.top) / r.height) * 100}%`,
);
}}
onPointerLeave={() => {
if (light.current) light.current.dataset.manual = "";
}}
>
<div className="gu-oleo__light" ref={light}>
<Photo
src="/images/landing-skin-texture-15.jpg"
alt="A close-up of pale face cream swiped across grey stone with a smear of golden oil"
tone="#d9c3a3"
/>
</div>
<div className="gu-oleo__texture-copy">
<h2 id="oleo-t-title" className="gu-oleo__h2">
Feels like nothing.
</h2>
<p>No film, no shine, no smell. Just softer skin by lunch.</p>
</div>
</section>
<Finder />
<section
className="gu-oleo__inside"
id="oleo-inside"
aria-labelledby="oleo-i-title"
>
<h2 id="oleo-i-title" className="gu-oleo__h2">
What's inside. All of it.
</h2>
<ul ref={setBars} className="gu-oleo__bars" data-in={barsIn}>
{INGREDIENTS.map((x, i) => (
<li
key={x.name}
style={{ "--pct": x.pct, "--i": i } as CSSProperties}
>
<div className="gu-oleo__bar-head">
<h3>
{x.name} <span>{x.from}</span>
</h3>
<strong>{x.pct}%</strong>
</div>
<div className="gu-oleo__bar" aria-hidden="true">
<span />
</div>
<p>{x.why}</p>
</li>
))}
</ul>
</section>
<footer className="gu-oleo__foot">
<p className="gu-oleo__logo">oleo</p>
<p>
Made in small batches. Bottles are glass and come back to us for
refills.
</p>
</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: Skincare page with a drop-by-drop routine
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 calm page for a one-product skincare brand ("oleo", a face oil). It has two signature moments:
- **Texture band:** a dark photo of cream on stone, lit only by a soft warm pool of light that follows the cursor (and drifts by itself on touch screens).
- **"How many drops?":** a three-question finder. Each answer slides in the next question with a progress bar. The result shows a morning and an evening dropper releasing drops one at a time into a small dish, where each drop leaves a ripple and the pool grows.
Other sections:
- A nav with a bag counter that bumps when you add.
- A split hero with a bottle photo that tilts toward the cursor and a spinning text badge.
- An ingredients band where percentage bars fill when scrolled into view.
- A footer.
## Palette
Background #f5f0e8, paper #ece4d7, ink #221f1b, muted #6d655b, lines rgba(34,31,27,0.14), amber #c26a1b (kicker, added state, progress), oil #e0a23a (drops, pool, percentages), focus ring #2b35ff. Headings use a serif stack at weight 400; the italic serif lowercase wordmark is "oleo". Body text is system-ui.
## Layout
- Nav: the wordmark, two links (hidden under 720px), and a "Bag" pill with a round dark count.
- Hero: at 880px and wider, two columns.
- Left: a kicker "Face oil, 30 ml", a serif headline up to 6.4rem, a lede, and a dark pill button "Add to bag" with an inner "€38" capsule. It turns amber and reads "Add another" once used. A small note sits beside it.
- Right: a 4:5 photo with 32px radius that tilts (rotateX and rotateY up to about 8 to 10 degrees) toward the cursor. A 128px dark round badge, half outside on the left, has circular text and an oil-drop shape in the middle, and spins slowly.
- Texture: at least 560px tall and dark. The photo covers it under a radial overlay that is clear and warm at --mx and --my and 86% dark at the edges. A heading and a line sit bottom left.
- Finder: at 880px and wider, a 0.8fr photo beside a 1.2fr paper card.
- The card has a heading, three progress segments, then a fieldset whose legend is the question (with "1 of 3" above it) and three 56px answer rows that rise in 70ms steps and nudge right on hover, plus a Back link.
- The result: two white tiles (Morning, Evening). Each has an SVG dropper: a dark bulb, a glass pipe and an amber oil level that drains. Drops fall into an ellipse dish with ripples, and a big serif number sits below. Then a serif tip, how many weeks a bottle lasts, and "Start again".
- Ingredients: a dark band, a heading, then a two-column list. Each item has a serif name with a small source, a percentage on the right, a 6px bar filled to that percentage with an amber-to-oil gradient, and a one-line reason.
## Images
- landing-skin-bottle-14.jpg (4:5): the bottle.
- landing-skin-texture-15.jpg (4:3): the texture.
- landing-skin-hands-16.jpg (4:5): the hands.
Until a file exists, each frame shows a warm toned gradient.
## Motion
- Hero copy rises in 100ms steps. The bottle tilts over 0.6s and the badge spins once every 22s.
- The bag count bumps (scale 1.35 to amber), restarted by alternating identical keyframes.
- Drops: one every 0.7s with a gravity curve, a ripple when each lands, the pool scales up and the pipe drains for the whole sequence.
- Bars fill over 1.4s, 120ms apart.
## Accessibility
- Each question is a fieldset with a legend. Answers are buttons, so keyboard users can step through.
- The result has role="status". Each dropper is role="img" with "Evening: 4 drops".
- The bag count is aria-live="polite". Ingredient bars are aria-hidden because the percentage is in the text.
- prefers-reduced-motion: no drift, tilt, spin or falling, and everything shows in its end state.
## 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.
### SkinPage.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./skin-page.css";
/**
* SkinPage: a calm page for a one-product skincare brand ("oleo").
* Signature moves: a soft light follows the cursor across the texture photo,
* and a three-question routine finder ends with drops falling, one by one,
* into a pool that fills. It is a demo: connect `onAdd` to your cart.
*/
const QUESTIONS = [
{
q: "How does your skin feel by noon?",
options: ["Tight and dry", "Comfortable", "A bit shiny"],
},
{
q: "Does it react to new products?",
options: ["Often", "Sometimes", "Hardly ever"],
},
{
q: "Where do you spend your days?",
options: ["Indoors, heating on", "In and out", "Outside a lot"],
},
];
const INGREDIENTS = [
{
name: "Squalane",
from: "from olives",
pct: 42,
why: "Feels like your skin's own oil, so it sinks in fast.",
},
{
name: "Jojoba oil",
from: "cold-pressed",
pct: 26,
why: "Balances shine without clogging.",
},
{
name: "Sea buckthorn",
from: "from berries",
pct: 18,
why: "The amber colour. Rich in vitamin E.",
},
{
name: "Rosehip oil",
from: "from wild roses",
pct: 14,
why: "Helps with dry patches and marks.",
},
];
function routineFor(a: number[]) {
const dry = a[0] === 0 ? 2 : a[0] === 1 ? 1 : 0;
const shy = a[1] === 0 ? 1 : 0;
const out = a[2] === 0 ? 1 : a[2] === 2 ? 1 : 0;
const morning = Math.max(1, Math.min(3, 1 + Math.round(dry / 2)));
const evening = Math.max(2, Math.min(5, 2 + dry + out - shy));
const tip =
shy > 0
? "Start every other night for a week, then daily."
: a[0] === 2
? "Press, don't rub: pat it over damp skin."
: "Seal it in: a few drops on still-damp skin after washing.";
return { morning, evening, tip };
}
/* ------------------------------------------------------------------ */
function Photo({
src,
alt,
tone,
className = "",
eager = false,
}: {
src: string;
alt: string;
tone: string;
className?: string;
eager?: boolean;
}) {
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 (
<div
className={`gu-oleo__photo ${className}`}
style={{ "--tone": tone } as CSSProperties}
>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading={eager ? "eager" : "lazy"}
onError={() => setMissing(true)}
/>
)}
</div>
);
}
/** A dropper releasing `count` drops into a pool that fills. */
function Drops({ count, label }: { count: number; label: string }) {
return (
<figure
className="gu-oleo__drops"
role="img"
aria-label={label}
style={{ "--n": count } as CSSProperties}
>
<svg viewBox="0 0 120 220" aria-hidden="true">
<rect
x="46"
y="4"
width="28"
height="34"
rx="10"
className="gu-oleo__bulb"
/>
<path d="M50 38 h20 l-4 66 q-6 10 -12 0 z" className="gu-oleo__glass" />
<path d="M54 60 h12 l-2 40 q-4 6 -8 0 z" className="gu-oleo__oil" />
{Array.from({ length: count }, (_, i) => (
<path
key={i}
d="M60 112 q -6 9 0 14 q 6 -5 0 -14 z"
className="gu-oleo__drop"
style={{ "--i": i } as CSSProperties}
/>
))}
<ellipse cx="60" cy="200" rx="50" ry="12" className="gu-oleo__dish" />
<ellipse cx="60" cy="200" rx="40" ry="9" className="gu-oleo__pool" />
{Array.from({ length: count }, (_, i) => (
<ellipse
key={i}
cx="60"
cy="198"
rx="10"
ry="3"
className="gu-oleo__ripple"
style={{ "--i": i } as CSSProperties}
/>
))}
</svg>
<figcaption>
<strong>{count}</strong> {count === 1 ? "drop" : "drops"}
</figcaption>
</figure>
);
}
/* ------------------------------------------------------------------ */
function Finder() {
const [answers, setAnswers] = useState<number[]>([]);
const step = answers.length;
const done = step >= QUESTIONS.length;
const r = done ? routineFor(answers) : null;
return (
<section className="gu-oleo__finder" aria-labelledby="oleo-f-title">
<Photo
src="/images/landing-skin-hands-16.jpg"
alt="A man rubbing two drops of golden oil between his palms over a white sink"
tone="#b98a5f"
className="gu-oleo__finder-photo"
/>
<div className="gu-oleo__finder-card">
<h2 id="oleo-f-title" className="gu-oleo__h2">
How many drops?
</h2>
<div className="gu-oleo__progress" aria-hidden="true">
{QUESTIONS.map((_, i) => (
<span key={i} data-on={i < step || done} />
))}
</div>
{!done ? (
<fieldset className="gu-oleo__q" key={step}>
<legend>
<span className="gu-oleo__step">
{step + 1} of {QUESTIONS.length}
</span>
{QUESTIONS[step].q}
</legend>
{QUESTIONS[step].options.map((o, i) => (
<button
key={o}
type="button"
style={{ "--i": i } as CSSProperties}
onClick={() => setAnswers([...answers, i])}
>
{o}
</button>
))}
{step > 0 && (
<button
type="button"
className="gu-oleo__back"
onClick={() => setAnswers(answers.slice(0, -1))}
>
Back
</button>
)}
</fieldset>
) : (
r && (
<div className="gu-oleo__result" role="status">
<div className="gu-oleo__routine">
<div>
<p className="gu-oleo__when">Morning</p>
<Drops
count={r.morning}
label={`Morning: ${r.morning} drops`}
/>
</div>
<div>
<p className="gu-oleo__when">Evening</p>
<Drops
count={r.evening}
label={`Evening: ${r.evening} drops`}
/>
</div>
</div>
<p className="gu-oleo__tip">{r.tip}</p>
<p className="gu-oleo__last">
A 30 ml bottle lasts you about{" "}
{Math.round(600 / (r.morning + r.evening) / 7)} weeks.
</p>
<button
type="button"
className="gu-oleo__back"
onClick={() => setAnswers([])}
>
Start again
</button>
</div>
)
)}
</div>
</section>
);
}
/* ------------------------------------------------------------------ */
export function SkinPage({ onAdd }: { onAdd?: () => void }) {
const [inBag, setInBag] = useState(0);
const [bump, setBump] = useState(0);
const bottle = useRef<HTMLDivElement>(null);
const light = useRef<HTMLDivElement>(null);
const [bars, setBars] = useState<HTMLElement | null>(null);
const [barsIn, setBarsIn] = useState(false);
useEffect(() => {
if (!bars) return;
const io = new IntersectionObserver(
([e]) => {
if (e.isIntersecting) {
setBarsIn(true);
io.disconnect();
}
},
{ threshold: 0.3 },
);
io.observe(bars);
return () => io.disconnect();
}, [bars]);
// On touch screens and before the cursor arrives, the light drifts by itself.
useEffect(() => {
const el = light.current;
if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches)
return;
let raf = 0;
const tick = (t: number) => {
if (el.dataset.manual !== "1") {
el.style.setProperty("--mx", `${50 + Math.sin(t / 2400) * 32}%`);
el.style.setProperty("--my", `${50 + Math.cos(t / 1900) * 22}%`);
}
raf = requestAnimationFrame(tick);
};
raf = requestAnimationFrame(tick);
return () => cancelAnimationFrame(raf);
}, []);
const add = () => {
setInBag((n) => n + 1);
setBump((b) => b + 1);
onAdd?.();
};
return (
<div className="gu-oleo">
<nav className="gu-oleo__nav" aria-label="Main">
<a href="#" className="gu-oleo__logo">
oleo
</a>
<div className="gu-oleo__links">
<a href="#oleo-texture">Texture</a>
<a href="#oleo-inside">What's inside</a>
</div>
<span className="gu-oleo__bag" data-bump={bump % 2} aria-live="polite">
Bag <span className="gu-oleo__bag-n">{inBag}</span>
</span>
</nav>
<header className="gu-oleo__hero">
<div className="gu-oleo__hero-copy">
<p className="gu-oleo__kicker">Face oil, 30 ml</p>
<h1 className="gu-oleo__h1">One oil. Fewer steps.</h1>
<p className="gu-oleo__lede">
Four plant oils, nothing else. It replaces your serum and night
cream, and your skin drinks it in under a minute.
</p>
<div className="gu-oleo__buy">
<button
type="button"
className="gu-oleo__cta"
onClick={add}
data-added={inBag > 0}
>
<span>{inBag > 0 ? "Add another" : "Add to bag"}</span>
<span aria-hidden="true">€38</span>
</button>
<p className="gu-oleo__note">Free returns, even when opened.</p>
</div>
</div>
<div
className="gu-oleo__bottle"
ref={bottle}
onPointerMove={(e) => {
const el = bottle.current;
if (!el || e.pointerType !== "mouse") return;
const r = el.getBoundingClientRect();
el.style.setProperty(
"--rx",
`${((e.clientY - r.top) / r.height - 0.5) * -8}deg`,
);
el.style.setProperty(
"--ry",
`${((e.clientX - r.left) / r.width - 0.5) * 10}deg`,
);
}}
onPointerLeave={() => {
bottle.current?.style.setProperty("--rx", "0deg");
bottle.current?.style.setProperty("--ry", "0deg");
}}
>
<Photo
src="/images/landing-skin-bottle-14.jpg"
alt="An amber glass dropper bottle on wet pale stone, a drop of golden oil hanging from the dropper"
tone="#c27a2c"
eager
/>
<span className="gu-oleo__badge" aria-hidden="true">
<svg viewBox="0 0 100 100">
<defs>
<path
id="oleo-ring"
d="M50 50 m-38 0 a38 38 0 1 1 76 0 a38 38 0 1 1 -76 0"
/>
</defs>
<text>
<textPath href="#oleo-ring">
four oils, nothing else, four oils, nothing else,
</textPath>
</text>
</svg>
</span>
</div>
</header>
<section
className="gu-oleo__texture"
id="oleo-texture"
aria-labelledby="oleo-t-title"
onPointerMove={(e) => {
const el = light.current;
if (!el || e.pointerType !== "mouse") return;
const r = el.getBoundingClientRect();
el.dataset.manual = "1";
el.style.setProperty(
"--mx",
`${((e.clientX - r.left) / r.width) * 100}%`,
);
el.style.setProperty(
"--my",
`${((e.clientY - r.top) / r.height) * 100}%`,
);
}}
onPointerLeave={() => {
if (light.current) light.current.dataset.manual = "";
}}
>
<div className="gu-oleo__light" ref={light}>
<Photo
src="/images/landing-skin-texture-15.jpg"
alt="A close-up of pale face cream swiped across grey stone with a smear of golden oil"
tone="#d9c3a3"
/>
</div>
<div className="gu-oleo__texture-copy">
<h2 id="oleo-t-title" className="gu-oleo__h2">
Feels like nothing.
</h2>
<p>No film, no shine, no smell. Just softer skin by lunch.</p>
</div>
</section>
<Finder />
<section
className="gu-oleo__inside"
id="oleo-inside"
aria-labelledby="oleo-i-title"
>
<h2 id="oleo-i-title" className="gu-oleo__h2">
What's inside. All of it.
</h2>
<ul ref={setBars} className="gu-oleo__bars" data-in={barsIn}>
{INGREDIENTS.map((x, i) => (
<li
key={x.name}
style={{ "--pct": x.pct, "--i": i } as CSSProperties}
>
<div className="gu-oleo__bar-head">
<h3>
{x.name} <span>{x.from}</span>
</h3>
<strong>{x.pct}%</strong>
</div>
<div className="gu-oleo__bar" aria-hidden="true">
<span />
</div>
<p>{x.why}</p>
</li>
))}
</ul>
</section>
<footer className="gu-oleo__foot">
<p className="gu-oleo__logo">oleo</p>
<p>
Made in small batches. Bottles are glass and come back to us for
refills.
</p>
</footer>
</div>
);
}
```
### skin-page.css
```css
/* oleo: warm off-white, amber oil, quiet serif. */
.gu-oleo {
--bg: #f5f0e8;
--paper: #ece4d7;
--ink: #221f1b;
--muted: #6d655b;
--line: rgb(34 31 27 / 0.14);
--amber: #c26a1b;
--oil: #e0a23a;
--focus: #2b35ff;
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
container-type: inline-size;
background: var(--bg);
color: var(--ink);
font-family:
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
line-height: 1.55;
}
.gu-oleo *,
.gu-oleo *::before,
.gu-oleo *::after {
box-sizing: border-box;
}
.gu-oleo a {
color: inherit;
}
.gu-oleo :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.gu-oleo__h1,
.gu-oleo__h2 {
margin: 0;
font-family: var(--serif);
font-weight: 400;
letter-spacing: -0.025em;
text-wrap: balance;
}
.gu-oleo__h1 {
font-size: clamp(3rem, 7.6cqi, 6.4rem);
line-height: 0.95;
}
.gu-oleo__h2 {
font-size: clamp(2.2rem, 5cqi, 4rem);
line-height: 1;
}
/* ---------- Photos ---------- */
.gu-oleo__photo {
position: relative;
overflow: hidden;
background:
radial-gradient(
45% 40% at 55% 45%,
color-mix(in srgb, var(--tone) 85%, #fff3d9),
transparent 75%
),
linear-gradient(
160deg,
color-mix(in srgb, var(--tone) 30%, var(--bg)),
color-mix(in srgb, var(--tone) 55%, #6b5a48)
);
}
.gu-oleo__photo img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
/* ---------- Nav ---------- */
.gu-oleo__nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 22px 5%;
}
.gu-oleo__logo {
margin: 0;
font-family: var(--serif);
font-size: 1.9rem;
font-style: italic;
letter-spacing: -0.03em;
text-decoration: none;
}
.gu-oleo__links {
display: none;
gap: 28px;
font-weight: 500;
}
.gu-oleo__links a {
text-decoration: none;
}
.gu-oleo__links a:hover {
text-decoration: underline;
text-underline-offset: 6px;
}
@container (min-width: 720px) {
.gu-oleo__links {
display: flex;
}
}
.gu-oleo__bag {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 44px;
padding: 0 8px 0 18px;
border: 1px solid var(--line);
border-radius: 999px;
font-weight: 600;
}
.gu-oleo__bag-n {
display: grid;
place-items: center;
min-width: 30px;
height: 30px;
border-radius: 999px;
background: var(--ink);
color: var(--bg);
font-size: 0.85rem;
font-variant-numeric: tabular-nums;
}
.gu-oleo__bag[data-bump="1"] .gu-oleo__bag-n {
animation: gu-oleo-bump-a 0.6s var(--ease);
}
.gu-oleo__bag[data-bump="0"] .gu-oleo__bag-n {
animation: gu-oleo-bump-b 0.6s var(--ease);
}
@keyframes gu-oleo-bump-a {
30% {
transform: scale(1.35);
background: var(--amber);
}
}
@keyframes gu-oleo-bump-b {
30% {
transform: scale(1.35);
background: var(--amber);
}
}
/* ---------- Hero ---------- */
.gu-oleo__hero {
display: grid;
gap: 40px;
padding: 24px 5% 96px;
}
@container (min-width: 880px) {
.gu-oleo__hero {
grid-template-columns: 1fr 0.9fr;
align-items: center;
gap: 64px;
}
}
.gu-oleo__hero-copy > * {
animation: gu-oleo-rise 1s var(--ease) both;
}
.gu-oleo__hero-copy > :nth-child(2) {
animation-delay: 0.1s;
}
.gu-oleo__hero-copy > :nth-child(3) {
animation-delay: 0.2s;
}
.gu-oleo__hero-copy > :nth-child(4) {
animation-delay: 0.3s;
}
@keyframes gu-oleo-rise {
from {
opacity: 0;
transform: translateY(22px);
}
}
.gu-oleo__kicker {
margin: 0 0 18px;
color: var(--amber);
font-weight: 700;
}
.gu-oleo__lede {
max-width: 40ch;
margin: 24px 0 32px;
color: var(--muted);
font-size: 1.12rem;
}
.gu-oleo__buy {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px 24px;
}
.gu-oleo__cta {
display: inline-flex;
align-items: center;
gap: 18px;
min-height: 56px;
padding: 0 10px 0 28px;
border: 0;
border-radius: 999px;
background: var(--ink);
color: var(--bg);
font: inherit;
font-weight: 700;
cursor: pointer;
transition:
transform 0.3s var(--ease),
background-color 0.4s;
}
.gu-oleo__cta > span:last-child {
display: grid;
place-items: center;
height: 40px;
padding: 0 14px;
border-radius: 999px;
background: rgb(245 240 232 / 0.14);
}
.gu-oleo__cta:hover {
transform: translateY(-2px);
}
.gu-oleo__cta:active {
transform: scale(0.97);
}
.gu-oleo__cta[data-added="true"] {
background: var(--amber);
}
.gu-oleo__note {
margin: 0;
color: var(--muted);
font-size: 0.92rem;
}
.gu-oleo__bottle {
position: relative;
aspect-ratio: 4 / 5;
perspective: 900px;
animation: gu-oleo-rise 1.2s var(--ease) 0.2s both;
}
.gu-oleo__bottle > .gu-oleo__photo {
position: absolute;
inset: 0;
border-radius: 32px;
transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
transition: transform 0.6s var(--ease);
box-shadow: 0 40px 80px -40px rgb(80 50 20 / 0.5);
}
.gu-oleo__badge {
position: absolute;
left: -28px;
bottom: 40px;
width: 128px;
height: 128px;
border-radius: 50%;
background: var(--ink);
color: var(--bg);
animation: gu-oleo-spin 22s linear infinite;
}
.gu-oleo__badge svg {
width: 100%;
height: 100%;
fill: currentColor;
font-size: 10.5px;
font-weight: 600;
letter-spacing: 0.08em;
}
.gu-oleo__badge::after {
content: "";
position: absolute;
inset: 50%;
width: 18px;
height: 24px;
margin: -12px 0 0 -9px;
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
background: var(--oil);
clip-path: path(
"M9 0 C 4 8, 0 13, 0 16 A 9 8 0 0 0 18 16 C 18 13, 14 8, 9 0 Z"
);
}
@keyframes gu-oleo-spin {
to {
rotate: 360deg;
}
}
/* ---------- Texture with a moving light ---------- */
.gu-oleo__texture {
position: relative;
min-height: 560px;
display: flex;
align-items: flex-end;
padding: 72px 5%;
background: #191714;
color: #f5f0e8;
overflow: hidden;
isolation: isolate;
cursor: crosshair;
}
.gu-oleo__light {
position: absolute;
inset: 0;
z-index: -1;
--mx: 60%;
--my: 45%;
}
.gu-oleo__light .gu-oleo__photo {
position: absolute;
inset: 0;
}
/* Dark everywhere except a soft, warm pool of light under the cursor. */
.gu-oleo__light::after {
content: "";
position: absolute;
inset: 0;
background:
radial-gradient(
circle 240px at var(--mx) var(--my),
rgb(255 226 180 / 0.18),
transparent 70%
),
radial-gradient(
circle 320px at var(--mx) var(--my),
transparent 0%,
rgb(25 23 20 / 0.45) 50%,
rgb(25 23 20 / 0.86) 100%
);
}
.gu-oleo__texture-copy {
max-width: 460px;
}
.gu-oleo__texture-copy p {
margin: 16px 0 0;
font-size: 1.15rem;
opacity: 0.85;
}
/* ---------- Finder ---------- */
.gu-oleo__finder {
display: grid;
gap: 32px;
padding: 96px 5%;
}
@container (min-width: 880px) {
.gu-oleo__finder {
grid-template-columns: 0.8fr 1.2fr;
align-items: stretch;
gap: 40px;
}
}
.gu-oleo__finder-photo {
min-height: 420px;
border-radius: 32px;
}
.gu-oleo__finder-card {
display: flex;
flex-direction: column;
padding: clamp(24px, 4cqi, 48px);
border-radius: 32px;
background: var(--paper);
}
.gu-oleo__progress {
display: flex;
gap: 6px;
margin: 24px 0 32px;
}
.gu-oleo__progress span {
flex: 1;
height: 4px;
border-radius: 4px;
background: var(--line);
overflow: hidden;
position: relative;
}
.gu-oleo__progress span::after {
content: "";
position: absolute;
inset: 0;
background: var(--amber);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.6s var(--ease);
}
.gu-oleo__progress span[data-on="true"]::after {
transform: scaleX(1);
}
.gu-oleo__q {
display: grid;
gap: 10px;
margin: 0;
padding: 0;
border: 0;
}
.gu-oleo__q legend {
margin-bottom: 18px;
padding: 0;
font-family: var(--serif);
font-size: clamp(1.5rem, 3cqi, 2.2rem);
line-height: 1.15;
animation: gu-oleo-rise 0.6s var(--ease) both;
}
.gu-oleo__step {
display: block;
margin-bottom: 6px;
color: var(--muted);
font-family: system-ui, sans-serif;
font-size: 0.85rem;
font-weight: 700;
}
.gu-oleo__q > button {
min-height: 56px;
padding: 0 22px;
border: 1px solid var(--line);
border-radius: 18px;
background: var(--bg);
color: inherit;
font: inherit;
font-size: 1.05rem;
font-weight: 600;
text-align: left;
cursor: pointer;
animation: gu-oleo-rise 0.6s var(--ease) both;
animation-delay: calc(var(--i) * 70ms + 0.1s);
transition:
border-color 0.3s,
transform 0.3s var(--ease),
background-color 0.3s;
}
.gu-oleo__q > button:hover {
border-color: var(--ink);
transform: translateX(6px);
}
.gu-oleo__q > button:active {
background: var(--ink);
color: var(--bg);
}
.gu-oleo .gu-oleo__back {
justify-self: start;
min-height: 44px;
padding: 0;
border: 0;
background: none;
color: var(--muted);
font: inherit;
font-weight: 700;
text-decoration: underline;
text-underline-offset: 5px;
cursor: pointer;
animation: none;
}
.gu-oleo__result {
animation: gu-oleo-rise 0.6s var(--ease) both;
}
.gu-oleo__routine {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.gu-oleo__routine > div {
padding: 18px;
border-radius: 22px;
background: var(--bg);
}
.gu-oleo__when {
margin: 0;
font-weight: 700;
}
.gu-oleo__drops {
margin: 0;
}
.gu-oleo__drops svg {
display: block;
width: 100%;
max-width: 140px;
margin: 6px auto 0;
overflow: visible;
}
.gu-oleo__drops figcaption {
text-align: center;
color: var(--muted);
}
.gu-oleo__drops figcaption strong {
color: var(--ink);
font-family: var(--serif);
font-size: 2.4rem;
font-weight: 400;
}
.gu-oleo__bulb {
fill: var(--ink);
}
.gu-oleo__glass {
fill: rgb(194 106 27 / 0.18);
stroke: rgb(34 31 27 / 0.4);
stroke-width: 1.5;
}
.gu-oleo__oil {
fill: var(--oil);
transform-origin: 60px 100px;
animation: gu-oleo-drain 0.01s linear both;
animation-duration: calc(var(--n) * 0.7s + 0.4s);
}
@keyframes gu-oleo-drain {
to {
transform: scaleY(0.2);
}
}
.gu-oleo__drop {
fill: var(--oil);
opacity: 0;
animation: gu-oleo-fall 0.7s cubic-bezier(0.55, 0, 1, 0.45) both;
animation-delay: calc(var(--i) * 0.7s + 0.3s);
}
@keyframes gu-oleo-fall {
0% {
opacity: 1;
transform: translateY(0) scale(0.4);
}
25% {
transform: translateY(0) scale(1);
}
95% {
opacity: 1;
}
100% {
opacity: 0;
transform: translateY(78px) scale(1, 1.2);
}
}
.gu-oleo__dish {
fill: none;
stroke: rgb(34 31 27 / 0.3);
stroke-width: 1.5;
}
.gu-oleo__pool {
fill: var(--oil);
transform-origin: 60px 200px;
transform: scale(0);
animation: gu-oleo-pool 0.01s var(--ease) forwards;
animation-duration: calc(var(--n) * 0.7s + 0.4s);
animation-delay: 0.9s;
}
@keyframes gu-oleo-pool {
to {
transform: scale(1);
}
}
.gu-oleo__ripple {
fill: none;
stroke: var(--amber);
stroke-width: 1.5;
opacity: 0;
transform-origin: 60px 198px;
animation: gu-oleo-ripple 0.9s var(--ease) both;
animation-delay: calc(var(--i) * 0.7s + 0.98s);
}
@keyframes gu-oleo-ripple {
0% {
opacity: 0.9;
transform: scale(0.4);
}
100% {
opacity: 0;
transform: scale(4, 3);
}
}
.gu-oleo__tip {
margin: 24px 0 4px;
font-family: var(--serif);
font-size: 1.4rem;
line-height: 1.25;
}
.gu-oleo__last {
margin: 0;
color: var(--muted);
}
/* ---------- Ingredients ---------- */
.gu-oleo__inside {
padding: 96px 5%;
background: var(--ink);
color: var(--bg);
}
.gu-oleo__bars {
display: grid;
gap: 8px 48px;
margin: 48px 0 0;
padding: 0;
list-style: none;
}
@container (min-width: 760px) {
.gu-oleo__bars {
grid-template-columns: 1fr 1fr;
}
}
.gu-oleo__bars li {
padding: 22px 0;
border-top: 1px solid rgb(245 240 232 / 0.16);
}
.gu-oleo__bar-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
}
.gu-oleo__bars h3 {
margin: 0;
font-family: var(--serif);
font-size: 1.7rem;
font-weight: 400;
}
.gu-oleo__bars h3 span {
color: rgb(245 240 232 / 0.55);
font-family: system-ui, sans-serif;
font-size: 0.9rem;
}
.gu-oleo__bars strong {
font-family: var(--serif);
font-size: 1.7rem;
font-weight: 400;
color: var(--oil);
}
.gu-oleo__bar {
height: 6px;
margin: 12px 0;
border-radius: 6px;
background: rgb(245 240 232 / 0.1);
overflow: hidden;
}
.gu-oleo__bar span {
display: block;
height: 100%;
width: calc(var(--pct) * 1%);
border-radius: 6px;
background: linear-gradient(90deg, var(--amber), var(--oil));
transform: scaleX(0);
transform-origin: left;
transition: transform 1.4s var(--ease);
transition-delay: calc(var(--i) * 0.12s);
}
.gu-oleo__bars[data-in="true"] .gu-oleo__bar span {
transform: none;
}
.gu-oleo__bars p {
margin: 0;
color: rgb(245 240 232 / 0.7);
}
.gu-oleo__foot {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 16px;
padding: 40px 5%;
color: var(--muted);
}
.gu-oleo__foot .gu-oleo__logo {
color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
.gu-oleo *,
.gu-oleo *::before,
.gu-oleo *::after {
animation-duration: 0.01ms !important;
animation-delay: 0s !important;
animation-iteration-count: 1 !important;
transition: none !important;
}
.gu-oleo__badge {
animation: none !important;
}
}
```
You might also want
Next piece: Smart home dial appCoffee roaster subscription page
Landing pages, advanced
Online course landing page with a free mini lesson
Landing pages, intermediate
Restaurant page with booking
Landing pages, advanced


