Text hero with a mini program phone over a photo

A two-line headline with a Chinese tagline in jade, one sentence and a city chip row, beside a night street photo panel overlapped by an exact mini program phone showing a ride code and six service tiles.

HeroFreeFrom Yilu, Super-appChinese or JapaneseAbout 9k 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.

652 words
Download .zip
# Text hero with a mini program phone over a photo

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 text-led hero for a transport or super-app brand that proves the product in two seconds with a real-looking phone.

## Structure
1. left 7 of 12 columns: headline in two nowrap lines, Chinese tagline, lede, primary pill and a text link, city chips
2. right 5 columns: a 32px radius photo panel inset 22% from the left, with a small time caption chip
3. phone 300 x 620px, 48px radius ink bezel, status bar, title bar with capsule, a white card with the code, a city pill and a note, a 3 x 2 tile grid and a next departure row

## Type
Geologica 500 and 600 for display and UI, Geologica 400 for text; Chinese in Noto Sans SC 400, 500 and 700 subsets. Headline 500 clamp(44px, 6vw, 92px)/0.98, tracking -0.035em; tagline 500 clamp(22px, 2.2vw, 30px) jade.

## Colour
Pearl #F4F5F1, white #FFFFFF, ink #0D1411, graphite #56605B, line #DDE2DC, mint wash #E3F1EB, deep jade #007A5A for buttons and text (white on it 5.3:1), bright jade #19C58F for the scan line and the night chapter, night #0A1712.

## Spacing and lines
Hero top padding is the bar plus clamp(40px, 7vw, 96px). Phone overlaps the photo's lower left by 28px below the panel.

## Behaviour
The code is a seeded module pattern with real finder, timing and alignment marks, drawn as one SVG path. Button fill slides from the left over 450ms and the arrow nudges 4px.

## Responsive
Under 900px the stage stacks under the copy; under 600px the photo sits top right at 400px tall and the phone scales to 80% from its bottom left corner.

## Accessibility
One h1; the phone is role img with a plain description; photo alt describes the scene; tiles in the hero phone are not focusable.

## Built values (from code.html)
- Fonts: Geologica 400 (self-hosted: fonts/geologica-400.woff2); Geologica 500 (self-hosted: fonts/geologica-500.woff2); Geologica 600 (self-hosted: fonts/geologica-600.woff2); Yilu SC 400 (self-hosted: fonts/noto-sans-sc-400.woff2); Yilu SC 500 (self-hosted: fonts/noto-sans-sc-500.woff2); Yilu SC 700 (self-hosted: fonts/noto-sans-sc-700.woff2). Self-hosted files sit in fonts/ in the block download.
- Colour variables: --pearl #F4F5F1, --white #FFFFFF, --ink #0D1411, --graphite #56605B, --line #DDE2DC, --line-2 #C9D0C9, --mint #E3F1EB, --jade #00936D, --jade-deep #007A5A, --jade-bright #19C58F, --night #0A1712, --night-2 #12241D, --night-line #24392F, --night-text #E8EFEA.
- Font variables: --sans "Geologica", "Yilu SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif.
- Size variables: --gut clamp(16px, 4.4vw, 56px), --max 1240px, --bar 64px, --pad clamp(96px, 12vw, 176px).
- Media queries: min-width 900px, max-width 900px, max-width 720px, max-width 600px, max-width 380px, prefers-reduced-motion.
- Media: assets/street.webp (1800x949).
- Script: none, CSS only.

## 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 short lines
- [Tagline]: a Chinese line of under ten characters
- [Lede]: one sentence listing the services
- [Cities]: six names and a +n chip

## 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: street.webp

Same page

More from Yilu

See the page