Hanging square masthead

A Swiss grid masthead: logo on the left, links set flush left from column 7, and a small red square hangs in the gutter beside the section in view.

NavigationFreeFrom Quader, Swiss gridAbout 4k 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.

516 words
Download .zip
# Hanging square masthead

One navigation component, 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 Swiss grid masthead where the brand mark, a small red square, marks the section in view beside its link.

## Structure
1. a fixed 64px bar with one 1px hairline below
2. the logo in columns 1 to 3: a 14px red square and the name
3. four links set flush left from column 7, 40px apart
4. an 8px red square that hangs in the gutter beside the link of the section in view
5. a squared red CTA cell in column 12
6. on phones, an Index button whose small square fills red, and a full-width list that drops under the bar

## Type
Chivo 400 to 800 for headlines and text with tabular figures; Chivo Mono 400 to 500 for labels, code and figures in tables.

## Colour
Paper #F6F6F3, white #FFFFFF, graphite #151515, stone #64645F, hairline #CDCDC8, signal red #D52B1E (white on red 5.0:1, red on paper 4.6:1).

## Spacing and lines
12 columns, 24px gutters, 56px side margins; 4 columns and 20px margins on phones.

## Behaviour
The red square scales in beside the active link over 400ms cubic-bezier(.16,1,.3,1). Link underline grows 0 to 100% over 450ms. CTA hover: an ink fill wipes in from the left over 450ms.

## Responsive
At 1024px and under the links start at column 4, 32px apart. Under 760px an Index button drops a plain list with 64px rows, and the active row carries the red square.

## Accessibility
Landmarks and one h1 on the page, 44px targets, focus 2px red outline offset 2px, reduced motion shows the final state. Real nav, aria-current on the active link, Index button with aria-expanded, Escape closes.

## Built values (from code.html)
- Fonts: Chivo 400 to 800 (self-hosted: fonts/chivo.woff2); Chivo Mono 400 to 500 (self-hosted: fonts/chivo-mono.woff2). Self-hosted files sit in fonts/ in the block download.
- Colour variables: --paper #F6F6F3, --ink #151515, --rule #CDCDC8, --stone #64645F, --red #D52B1E, --white #FFFFFF.
- Font variables: --sans "Chivo",system-ui,sans-serif; --mono "Chivo Mono",ui-monospace,monospace.
- Size variables: --m 56px, --gut 24px, --nav 64px.
- Media queries: max-width 1024px, max-width 760px, prefers-reduced-motion.
- No media files.
- Script: none, CSS only.

## Content to replace
- [Brand]: one short name
- [Links]: four section names
- [CTA]: one word

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

Same page

More from Quader

See the page