Files
co-lite/openspec/changes/add-landing-page-polish/proposal.md
T
ngqileandClaude Opus 5.5 e4ad18a8a3 feat(pages): a top bar section, section labels and serif headings
Landing pages gain a Top bar section (the company logo and an optional button,
kept at the top of the window, first section only), a short label above the
headings of five section types, and serif section headings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-04 12:28:09 +08:00

2.5 KiB

Proposal

Why

The native INS page (/p/INS/hotel-technology-native) now matches INS's standalone page in content, but it still looks different at the top and in its section headings:

  • INS has a white top bar with the logo on the left and a "Get My Free Consultation" button on the right. The bar stays at the top while the visitor scrolls. Our page has two choices: show the company header and the page title, which INS does not have, or hide both, which also hides the logo.
  • INS puts a small gold uppercase label above each section heading ("Services", "How we work", "Why Infinity", "FAQ"). We have no such label.
  • INS's section headings are serif. Ours are sans-serif, except for the full-width hero.

What Changes

  • Top bar block (TOPBAR). It shows the company logo on the left (the company name when there is no logo) and an optional button on the right (buttonLabel and buttonUrl, with the same link rules as other buttons). It stays at the top of the window while the page scrolls. It may only be the first block. Together with "hide page header", it gives INS's layout: the logo and button stay, and the title and the default header go.
  • Section labels (eyebrow, at most 40 characters). Feature cards, Steps, Image with text, FAQ and Call to action may carry a short label. It shows above the heading in small uppercase letters in the accent colour, darkened on light backgrounds so it stays readable.
  • Serif section headings. Section headings (h2) on landing pages use the same serif as the full-width hero.
  • New editor labels in English and Chinese, with an SQL label file.

Not changing:

  • The page settings and the database. "Hide page header" already exists, and the new fields live in the block JSON.
  • Card and step layout, and the bullet style in rich text.
  • The default company header on pages without a top bar.

Capabilities

New Capabilities

None.

Modified Capabilities

  • landing-pages: adds "Top Bar Block", "Section Labels" and "Serif Section Headings".

Impact

  • services-counter: CmsBlock gains eyebrow. CmsBlockValidator validates TOPBAR and eyebrow.
  • mobile-api: none. Public blocks pass through as maps.
  • Portal:
    • cmsPages.ts: the TOPBAR type, its label and empty block, and eyebrow;
    • CmsBlocks.tsx: renders the top bar, the labels and the serif headings;
    • BlockFields.tsx: the top bar's button and the label field;
    • labels in defaultMessages.ts and zh_CN.seed.json.
  • Data: no schema change. The new labels need a SQL label file in this change folder.