Two drawings hero

A dark hero that argues with two technical drawings, one drawn line by line and one dropped in piece by piece.

HeroFreeFrom Kigumi, Japan experienceChinese or JapaneseAbout 22k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The 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.

912 words
Download .zip
# Two drawings hero

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 dark hero for a technical service that argues with a picture: the same structure drawn twice, the old one pale and complete, the new one half built in the accent colour beside it.

## Structure
1. An h1 of two lines
2. One line in the local script under it, saying the same thing
3. A plate of two equal figures split by a dashed vertical rule, each an inline SVG drawing with a caption under it of an English label and one character
4. A paragraph of about 30 words on the method
5. A row of one filled button and one quiet underlined link

## Type
Saira, weight 300 to 500, width 87.5 to 100 percent, and M PLUS 1 Code 400 and 500 for the local script and captions. Both free on Google Fonts. Headline clamp(42px,7.2vw,116px)/0.96 weight 400, width 94%, tracking -0.035em. Local script line 15px, tracking 0.08em, line height 1.9, strict line breaking. Paragraph clamp(17px,1.35vw,19px)/1.65 weight 300. Captions 12px uppercase mono weight 400, tracking 0.08em, the character at 0 tracking. Button label 16px/1 weight 500. Quiet link 16px.

## Colour
Page #0E0F11, text #E8E6E0, local script line and captions #8E9196, the rule between frames rgba(232,230,224,.14). Drawing one strokes #C4C2BC, 1px outlines, 0.6px inner lines. Drawing two strokes #33A6B8, 1px dashed 3 and 2.5 outlines, 0.65px dashed 2 and 2.5 inside. Button #33A6B8 with a #0E0F11 label, hover fill #E8E6E0 with a #0E0F11 label. #E8E6E0 and #8E9196 on the page, and #0E0F11 on #33A6B8, pass AA.

## Spacing and lines
Section padding 156px top, clamp(120px,14vw,200px) bottom, gutters clamp(20px,4.4vw,64px). Plate max 1120px, centred, clamp(40px,5vw,64px) above it, the two figures bottom aligned with a gap of clamp(28px,5vw,80px), each min(430px, 40%) wide. Caption 20px under its drawing, 12px label to character. The rule is 1px wide, full plate height, repeating 22px on, 6px off, 3px on, 6px off. Paragraph max 31em, clamp(64px,8vw,104px) above. Button row 40px above, 30px gap, button 52px tall, radius 999px, 28px of inline padding.

## Behaviour
One small script, an IntersectionObserver at threshold 0.12, runs the sequence once when the block first enters view. Every shape in drawing one has pathLength 1 and stroke dasharray 1, so it draws itself as stroke-dashoffset runs 1 to 0 over 1s, cubic-bezier(.87,0,.13,1), in eight stages starting 140ms apart. Drawing two is dashed and cannot draw itself: its groups drop in instead, from opacity 0 and 320 units above their place to opacity 1 in place over 800ms, cubic-bezier(.16,1,.3,1), stage by stage from 750ms, 200ms apart. On hover the button fill wipes from the left over 550ms, cubic-bezier(.7,0,.2,1), the label recolours over 450ms and the arrow slides out right as a second copy enters from the left over 500ms; pressed it scales to .97. The quiet link draws its underline from the left over 500ms. Under reduced motion both drawings show finished.

## Responsive
Below 760px top padding is 128px, the headline clamp(34px,10vw,46px), the figures stack and centre with a 44px gap at min(330px,100%) wide, the rule between them is removed, the paragraph narrows to 22em and the button row becomes a column, 22px gap.

## Accessibility
One h1. Each SVG is role img with one sentence of aria-label saying what it shows. lang on every string in the local script. Focus ring 2px #33A6B8 with 4px offset. Button and link 44px of tap height.

## Built values (from code.html)
- Fonts: Saira 300 to 500, width 87.5 to 100 (Google Fonts); M PLUS 1 Code 400, 500 (Google Fonts).
- Colour variables: --bg #0E0F11, --ink #E8E6E0, --muted #8E9196, --line rgba(232,230,224,.14), --asagi #33A6B8, --old #C4C2BC.
- Font variables: --sans "Saira","M PLUS 1 Code",system-ui,sans-serif; --mono "M PLUS 1 Code",ui-monospace,monospace; --x url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13'%3E%3Cpath d='M6.5 0v13M0 6.5h13' stroke='%23E8E6E0' stroke-opacity='.3' stroke-width='1'/%3E%3C/svg%3E").
- Size variables: --g clamp(20px,4.4vw,64px), --sp clamp(120px,14vw,200px).
- Media queries: max-width 760px.
- No media files.
- Script: yes, a small inline script.

## Script
Set the Chinese or Japanese text in a CJK face with its own letter spacing and a looser line height than the Latin text, with strict line breaking and the palt feature on. Latin words inside a CJK line sit on the same baseline.

## Content to replace
- [Headline]: two lines, the thing you do differently
- [Second line]: the same sentence in the local language
- [Drawing one]: an inline SVG line drawing of the existing thing, complete
- [Drawing two]: the same drawing half finished, dashed
- [Captions]: a short English label and one character per drawing
- [Paragraph]: about 30 words on how the work is done
- [Button]: two or three words
- [Link]: where the detail lives

## 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.

More like this

Hero

Every hero block

Same page

More from Kigumi

See the page