Twenty four hour dial on night

A draggable 24 hour dial on near black: supply cuts as grey arcs, a swelling ribbon for the sun, and a dot matrix readout in the middle.

HeroFreeFrom Dhoop, Pakistan experienceAbout 6k 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.

692 words
Download .zip
# Twenty four hour dial on night

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 hero for an energy or utility product: a whole day on a dial the reader can drag, headline left, dial right.

## Structure
1. hero, two columns, near black
2. copy: headline, lede, hint with an icon
3. dial: two rings, 24 ticks, labels 00, 06, 12, 18
4. grey arcs over cut hours, a ribbon across daylight
5. a hand across the rings, a handle on the outer ring
6. readout: clock, status, two figures, a run line
7. legend, two keys

## Type
Sora 300 to 500, Doto 700 for the clock, both Google Fonts. Headline 400 clamp(44px, 6vw, 96px)/.98, tracking -.04em. Lede 300 clamp(17px, 1.3vw, 19px)/1.55. Hint 14px. Clock 700 15.5cqi/1, tabular. Readout lines clamp(11.5px, 2.35cqi, 15px)/1.45. Hour labels 500 15px. Legend 13px. Body 18px/1.5.

## Colour
Ground #0C0D0E, ink #F3F4F1, muted #9A9E99, ribbon and off state dot #D6F03A, cut arcs #3A3E42, rings rgba(243,244,241,.12), minor ticks muted, major ticks ink, handle an ink disc with a 3px ground collar. AA: ink, muted and ribbon on ground.

## Spacing and lines
Hero max width 1440px, padding 112px clamp(20px, 4.5vw, 64px) 64px, column gap clamp(32px, 5vw, 96px). Dial square, min(640px, 90vw, max(440px, 100svh minus 196px)). On a 640 viewBox: rings 244 and 212, ticks 267 to 277 at 1px, majors 258 to 282 at 2px, labels 308, cut arcs 12px on 244, ribbon on 212 swelling 2px to 32px, hand 190 to 288, handle 48px round a 26px disc, readout inset 21 percent. Lede 32px, hint 40px, legend 20px.

## Behaviour
Load: the hand sweeps a day in 2.5s, ease in and out, after 350ms, to the starting hour. Drag the handle, or press the ring between 56 and 102 percent of the radius; the disc grows 14 percent on hover, 300ms. Keys: arrows half an hour, PageUp and PageDown three hours, Home 00:00, End 23:30. Each move rewrites clock, status, figures, aria-valuetext. One script draws ticks, arcs and ribbon and takes pointer and key input; reduced motion skips the sweep.

## Responsive
At 900px: one column, 40px row gap, 108px top padding, no minimum height. At 600px the lede sits 20px under the headline. Hour labels 25px on small dials.

## Accessibility
The handle is role="slider" with aria-label, aria-valuemin 0, aria-valuemax 1435, aria-valuenow in minutes, aria-valuetext reading the hour and the state, so SVG and readout stay aria-hidden. A 2px focus ring in the ribbon colour sits inside the 48px handle.

## Built values (from code.html)
- Fonts: Doto 700 (Google Fonts); Sora 300 to 500 (Google Fonts); Noto Nastaliq Urdu 500 (Google Fonts).
- Colour variables: --coal #0C0D0E, --lime #D6F03A, --white #F3F4F1, --bg #0C0D0E, --ink #F3F4F1, --muted #9A9E99, --surface #17191B, --paper #17191B, --line rgba(243,244,241,.12), --line-strong rgba(243,244,241,.34), --block #3A3E42.
- Font variables: --sans "Sora", ui-sans-serif, system-ui, sans-serif; --dots "Doto", ui-monospace, monospace.
- Size variables: --gut clamp(20px, 4.5vw, 64px), --pad clamp(112px, 14vw, 216px), --dial min(640px, 90vw, max(440px, calc(100svh - 196px))).
- Media queries: max-width 900px, max-width 600px.
- No media files.
- Script: yes, a small inline script.

## Content to replace
- [Headline]: one sentence, seven words
- [Lede]: two sentences on the product
- [Hint]: one line: drag the hand
- [Day data]: cut hours, hourly figures
- [Readout]: status, two figures, what runs
- [Legend]: two keys, ribbon and arcs

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