Numbered chapter header bar

A dark fixed bar edged with film sprocket holes that numbers the page's five chapters and lights the current number in lime.

NavigationFreeFrom Shipnote, ExperienceAbout 3k tokens saved
The whole page

Scroll inside the frame to see the bar over a 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.

676 words
Download .zip
# Numbered chapter header bar

One navigation 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 fixed top bar for a developer or release tool that numbers the page's chapters the way a film leader does, and marks where the reader has got to.

## Structure
1. fixed dark header, sprocket holes top and bottom
2. nav row inside
3. brand link: a 24px mark and the name
4. five chapter links in an ordered list, chip plus label
5. call to action button at the end, with an arrow

## Type
Schibsted Grotesk 400 to 800 on Google Fonts throughout. Brand 700 17px, tracking -.01em. Chapter labels 500 14px, no wrapping. Number chips 600 11.5px, tabular. Button 650 14.5px. Nothing uppercase.

## Colour
Bar #111312 with #F3F4F2 text, resting labels #C7CAC7, chips #8E938F, dividers #2E3230, button #C8F031 with #111312 on it. The current label goes to #F3F4F2 and its chip takes the #C8F031 fill with #111312 text. AA: labels on bar, chips on bar, ink on lime.

## Spacing and lines
Bar 56px tall, 52px under 759px, side padding 48px. Nav gap 20px, brand gap 10px. Chapter strip 30px tall, a 1px divider before each item and after the last, 16px side padding, 9px chip to label. Chips 2px by 5px, radius 2px. Button 36px tall, 15px sides, radius 3px. Sprocket rows 5px tall, inset 5px, holes 8px by 5px every 19px.

## Behaviour
Labels cross to paper over 300ms on hover. A small scroll spy sets aria-current on the link whose section top has passed 40 percent of the viewport height; that chip's background crosses to lime over 350ms cubic-bezier(.22,1,.36,1). The button's arrow slides 3px along over 450ms on hover. The strip scrolls sideways with its scrollbar hidden. One script, for the scroll spy only.

## Responsive
Under 1180px side padding 32px, chapter padding 12px. Under 1023px the brand name goes, nav gap 12px, the strip masked to transparent from 86 percent. Under 759px bar 52px, padding 18px, labels 13.5px, button 32px without its arrow, mask from 78 percent.

## Accessibility
Banner role, nav labelled Main. The chapters are a real ordered list, so the numbering is not decoration. Current link aria-current="true". Focus ring 2px lime, offset -2px in the bar and 3px on the button. The strip scrolls by keyboard.

## Built values (from code.html)
- Fonts: Noto Serif Display 300 to 800, width 62.5 to 100 (Google Fonts); Schibsted Grotesk 400 to 800 (Google Fonts); Ubuntu Sans Mono 400 to 600 (Google Fonts).
- Colour variables: --paper #F3F4F2, --sheet #FAFAF8, --ink #111312, --muted #5E625F, --line #D4D7D3, --line2 #E3E5E2, --lime #C8F031, --lime-soft #E7F6B4, --film #151716, --film2 #232624, --lead-ink #C7CAC7, --lead-muted #8E938F.
- Font variables: --serif "Noto Serif Display",Georgia,"Times New Roman",serif; --sans "Schibsted Grotesk",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif; --mono "Ubuntu Sans Mono",ui-monospace,Menlo,monospace.
- Size variables: --nav 56px, --pad 48px, --band-h 440px, --row-h 74px, --ov 90px, --max 1600px.
- Media queries: max-width 1180px, max-width 1023px, max-width 759px.
- No media files.
- Script: none, CSS only.

## Content to replace
- [Mark]: a 24px square logo, light on the dark bar
- [Brand name]: one word, beside the mark
- [Chapters]: five labels in page order, numbered 01 to 05
- [Button]: two or three words, the main action
- [Targets]: the section id each chapter points at

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

Navigation

Every navigation block