feat(pages): a top bar section, section labels and serif headings #80

Merged
ngqile merged 1 commits from add-landing-page-polish into main 2026-12-04 04:28:21 +00:00
Owner

OpenSpec change: add-landing-page-polish.

  • New Top bar section (TOPBAR): the company logo (or its name) and an optional button. Its row is sticky, so it stays at the top of the window while the visitor scrolls. It can only be the first section; the server refuses it anywhere else with PagesTopBarFirst, and refuses any field other than the button and the link name. Used with "hide page header", it gives INS's layout.
  • Section labels (eyebrow, at most 40 characters) on Feature cards, Steps, Image with text, FAQ and Call to action. They show in small uppercase letters in the accent colour, darkened on light backgrounds so they stay readable. They can be edited in the side panel or in place on the canvas.
  • Serif section headings on every landing page.
  • Named blocks get a scroll margin, so a #name jump lands clear of the sticky bar.
  • Labels in EN and zh_CN, plus sql/01-polish-labels.sql.

No database change: everything new lives in the block JSON.

Verification:

  • services-counter mvn verify: 384 tests, all passing.
  • Portal: vitest exit 0 (2019 passed); tsc and lint clean.
  • openspec validate --strict passes.
  • Live check on port 3001 through the editor, on /p/INS/hotel-technology-native:
    • added the top bar with "Get My Free Consultation" linking to #consult;
    • added four labels;
    • published, then checked the page at 1280 px (including while scrolling) and at 390 px.

CI is expected to fail until solvway is available.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs

OpenSpec change: `add-landing-page-polish`. - New **Top bar** section (`TOPBAR`): the company logo (or its name) and an optional button. Its row is sticky, so it stays at the top of the window while the visitor scrolls. It can only be the first section; the server refuses it anywhere else with `PagesTopBarFirst`, and refuses any field other than the button and the link name. Used with "hide page header", it gives INS's layout. - **Section labels** (`eyebrow`, at most 40 characters) on Feature cards, Steps, Image with text, FAQ and Call to action. They show in small uppercase letters in the accent colour, darkened on light backgrounds so they stay readable. They can be edited in the side panel or in place on the canvas. - **Serif section headings** on every landing page. - Named blocks get a scroll margin, so a `#name` jump lands clear of the sticky bar. - Labels in EN and zh_CN, plus `sql/01-polish-labels.sql`. No database change: everything new lives in the block JSON. Verification: - services-counter `mvn verify`: 384 tests, all passing. - Portal: vitest exit 0 (2019 passed); tsc and lint clean. - `openspec validate --strict` passes. - Live check on port 3001 through the editor, on `/p/INS/hotel-technology-native`: - added the top bar with "Get My Free Consultation" linking to `#consult`; - added four labels; - published, then checked the page at 1280 px (including while scrolling) and at 390 px. CI is expected to fail until solvway is available. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile added 1 commit 2026-12-04 04:28:18 +00:00
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
ngqile merged commit c21a31e10f into main 2026-12-04 04:28:21 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#80