Service tabs that drive a phone screen

A tab list of six services, a phone in the middle whose screen slides to that service's mini program page, and a detail panel with a claim, a line and three spec rows.

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

591 words
Download .zip
# Service tabs that drive a phone screen

One features 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
Show several services of one app without a feature grid: one tap changes both the phone screen and the explanation.

## Structure
1. heading and lede
2. three columns: vertical tab list, phone, detail
3. tabs: 44px icon tile, name, Chinese name and a jade arrow on the selected one
4. phone screens: metro code, bus arrivals with route chips, ride with a drawn map and fare, bike unlock frame, rail ticket with a perforation, border queues
5. detail: h3 claim, one paragraph, three label and value rows on hairlines

## Type
Geologica 500 and 600 for display and UI, Geologica 400 for text; Chinese in Noto Sans SC 400, 500 and 700 subsets.

## 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
Tabs 64px tall with 18px radius; detail min height 300px; spec rows 14px padding on 1px rules.

## Behaviour
Screens cross-fade and slide 26px over 460ms; the title bar text changes with the service; the detail panel rises 12px over 520ms.

## Responsive
Under 1080px the detail moves under the tabs and phone; under 720px the tabs become a horizontal scroll-snap strip above a centred phone.

## Accessibility
Real tablist with roving tabindex, arrow, Home and End keys; panels are tabpanels; the decorative phone is aria-hidden because each panel says the same in words.

## 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: max-width 1080px, max-width 720px, max-width 380px, prefers-reduced-motion.
- No media files.
- 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
- [Services]: six, each with a Chinese name
- [Claims]: one sentence each
- [Specs]: three rows each

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

Features

Every features block

Same page

More from Yilu

See the page