Skip to content

pastetaste

hod Header

Navigation

Swiss two-rail navigation for an architecture studio: vertical link rail on the left with a section pager, call to action, coordinates and wordmark on the right; top bar and full-screen menu on phones.

Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.

Install

Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/hod-header.tsx.

npx shadcn@latest add https://pastetaste.com/r/hod-header.json

Prompt

Install the pastetaste component "hod Header" (hod-header) into this Next.js project and use it.

What it is: Swiss two-rail navigation for an architecture studio: vertical link rail on the left with a section pager, call to action, coordinates and wordmark on the right; top bar and full-screen menu on phones.

Before you place it, ask me (one short message, in my language; "skip" = sensible default): which page and section it goes in, my brand colour (hex), the text, labels or images it should show, and whether I want my logo or my own copy in the demo content. Then:

Steps:
1. If the project has no components.json, run: npx shadcn@latest init -y -d. Then run: npx shadcn@latest add https://pastetaste.com/r/hod-header.json
   (it writes components/pastetaste/hod-header.tsx; install any npm packages it reports).
2. Import it: import { HodHeader } from "@/components/pastetaste/hod-header" (check the file for the exact named export).
3. Put it where it fits on the page I name, keep the rest of the page untouched, and pass props for my colours instead of editing the installed file.
4. It does not depend on Tailwind; colours come from CSS variables (--pt-*) or props.
5. It supports prefers-reduced-motion with a still state; do not remove it.

Props (all optional unless the type has no default):
- brand: string = 'hod' — Wordmark text, set in lowercase bold. The header carries no icon; the wordmark is the logo.
- links: { label: string; href: string }[] = six anchor links — Rail links, also the rows of the phone menu.
- activeHref: string = undefined — Force the highlighted link. When omitted the header tracks scroll position over the linked sections.
- ctaLabel / ctaHref: string / string = 'start a project' / '#contact' — Vertical call-to-action text on the right rail.
- coordinates: string = '41.886° N   87.652° W' — Small mono line on the right rail. Empty string drops it.
- menuFoot: string[] = phone, email, address — Lines at the bottom of the full-screen phone menu.
- menuLabel / closeLabel: string / string = 'Menu' / 'Close' — Labels of the phone bar button and the menu close button.
- ink / accent: string = page colours — Optional CSS colour overrides for text and the red active marker.

Live preview: https://pastetaste.com/c/hod-header
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.

Props 8

PropTypeDefaultDescription
brandstring'hod'Wordmark text, set in lowercase bold. The header carries no icon; the wordmark is the logo.
links{ label: string; href: string }[]six anchor linksRail links, also the rows of the phone menu.
activeHrefstringundefinedForce the highlighted link. When omitted the header tracks scroll position over the linked sections.
ctaLabel / ctaHrefstring / string'start a project' / '#contact'Vertical call-to-action text on the right rail.
coordinatesstring'41.886° N 87.652° W'Small mono line on the right rail. Empty string drops it.
menuFootstring[]phone, email, addressLines at the bottom of the full-screen phone menu.
menuLabel / closeLabelstring / string'Menu' / 'Close'Labels of the phone bar button and the menu close button.
ink / accentstringpage coloursOptional CSS colour overrides for text and the red active marker.
View all →