Portrait hero graded into aubergine
A studio portrait on the right fades into a dark aubergine ground, its backdrop graded to plum while the face keeps natural colour, beside a large three-line serif headline.
Links in the preview stay on the block.
Open on its ownThe prompt
One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.
631 words
# Portrait hero graded into aubergine One hero section, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML. ## Goal A confident, text-led hero for a premium menopause clinic that breaks the pastel habit: a dark night-garden ground, a calm portrait and a large serif headline that reads first. ## Structure 1. full-height section 2. portrait photo in the right 66 percent, masked to fade out toward the left 3. a flat plum colour layer over the photo in mix-blend-mode color, with two feathered radial holes over the head and jaw 4. a bottom gradient into the ground 5. copy block bottom left: eyebrow, h1, one line, a pill and a text link 6. a small place line at the bottom right ## Type Headline Libre Caslon Display 400 clamp(44px, 7vw, 122px)/.98, tracking -.018em, max-width 6.3em so it sets as three lines. Eyebrow Anek Latin 500 12px capitals tracking .16em. Line Anek clamp(17px, 1.35vw, 20px)/1.5. Pill Anek 600 15px. ## Colour Ground #22121F. Headline #F2EADF, line at 86 percent of it, eyebrow and place line #B79BB0. Grade layer #5C2C54. Pill #CFE56A with #22121F text. ## Spacing and lines Padding 140px top, clamp(64px, 11vh, 128px) bottom, left max(112px, 8vw). Eyebrow to headline 26px, headline to line 30px, line to actions 40px. Photo mask: transparent to black across the first 38 percent of its width. ## Behaviour On load the eyebrow, headline, line, actions and place line rise 22px and fade in over 1.2s cubic-bezier(.16,1,.3,1) at 80, 200, 420, 580 and 820ms. The photo settles from scale 1.05 over 2.8s. Size the head and jaw holes in svh with vw minimums so they track the face as the photo is cropped by object-fit: cover at object-position 57% 30%. ## Responsive Under 1000px wide or at portrait ratios the photo spans the full width, 64svh tall, masked to fade at the bottom, and the copy starts at 52svh below the face. Headline clamp(38px, 11.2vw, 56px) on phones. ## Accessibility One h1. The photo has alt text and fetchpriority high. Contrast at least 4.5:1 for the line on the ground. Reduced motion and capture: final state at once. ## Built values (from code.html) - Fonts: Libre Caslon Display 400 (self-hosted: fonts/libre-caslon-display-400.woff2); Anek Latin 100 to 800 (self-hosted: fonts/anek-latin-400.woff2). Self-hosted files sit in fonts/ in the block download. - Colour variables: --aub #22121F, --aub-deep #1A0D18, --plum #3A2136, --linen #F2EADF, --mauve #B79BB0, --lime #CFE56A, --ink #22121F, --ink-2 #5E4459, --line-d rgba(242,234,223,.16), --line-d2 rgba(242,234,223,.3), --line-l rgba(34,18,31,.16), --line-l2 rgba(34,18,31,.34). - Font variables: --serif "Libre Caslon Display", "Baskerville", Georgia, serif; --sans "Anek Latin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif. - Size variables: --gut-l max(112px, 8vw), --gut-r max(40px, 6vw). - Media queries: max-width 699px, max-width 999px, prefers-reduced-motion, hover-capable pointer. - Media: assets/portrait.webp (1800x1158). - Script: none, CSS only. ## Content to replace - [Eyebrow]: what the clinic treats, four words - [Headline]: a promise in seven words - [Line]: how care works and who pays, one sentence - [Pill]: Book a visit - [Text link]: See how a visit works - [Place line]: where it operates ## Rules Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA. ## Output Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.
Media to supply
The photos and video on the live page are licensed for this showcase, so the code points at an assets folder instead. Drop your own files in with these names, or change the paths: portrait.webp
More like this
Hero
Same page





