Reference index

Blocks

Masthead

Block: the nameplate, folio line with the language switch, and the section nav.

Preview

The Eloquent

Pham Do Nhat MinhAgentic Software EngineerHo Chi Minh City

ENVI

Install

bash

npx shadcn add @eloquent/masthead

Usage

tsx

import { Masthead } from "@/components/blocks/masthead";

<Masthead
  nameplate="The Eloquent"
  nameplateHref="/"
  folio={{ name: "Pham Do Nhat Minh", title: "Agentic Software Engineer", city: "Ho Chi Minh City" }}
  languageSwitch={{ locale: "en", label: "Language", hrefFor: (locale) => `/${locale}` }}
  nav={{ label: "Sections", items: [{ label: "Work", href: "/work", current: true }, { label: "Contact", href: "/contact" }] }}
/>

States

The Eloquent

Nameplate and folio only

The Eloquent

Pham Do Nhat MinhAgentic Software EngineerHo Chi Minh City

ENVI

The Eloquent

Mobile widthThe switch gets its own rowHo Chi Minh City

ENVI
StateTreatment
Nameplate and folio onlyOmit languageSwitch and nav
Current sectionaria-current="page", bold, 2px ink underline
MobileThe language switch takes its own right-aligned row above the nav

Keyboard

KeyAction
TabNameplate link, language link, then each section link in reading order
Shift+TabBack through the same stops
EnterFollows the focused link

Vietnamese

The Eloquent

Phạm Đỗ Nhật MinhKỹ sư phần mềm AgenticTP. Hồ Chí Minh

ENVI

The nameplate "The Eloquent" stays English in the Vietnamese edition.

Ink adaptation

Block with no upstream. A heavy ink rule opens the head, hairlines frame the folio line and close the nav, and the current section is shown by an underline rather than colour. Links have no hover effect.