feat(pages): a hero can run full width with points and a form card heading #72

Merged
ngqile merged 1 commits from add-hero-full-width into main 2026-12-04 01:46:45 +00:00
Owner

This change implements the OpenSpec change add-hero-full-width. It brings the INS Hotel technology page close to the standalone INS landing page.

What a hero can now do

  • A "Full width" switch makes the hero span the window edge to edge. It gets a larger serif headline, centred in the first screen, and a lighter left-to-right shade.
  • It can list up to 6 points under its text, shown as bullets. Points are stored as title-only cards.
  • Its form card can open with a heading and a line of text. Both can be typed straight on the canvas, and both are dropped when the form is removed.

Spacing and frames

  • A full-width hero and a Custom HTML block that sit next to each other join with no gap.
  • Custom HTML frames can now shrink to 20 px (the floor was 100 px).
  • The page now asks each frame for its height once it is listening and again when the frame loads. Before, a frame's first height report could arrive too early and be missed, leaving the frame stuck at 600 px.

Server

  • CmsBlockValidator accepts 0 to 6 points on a hero, each a title only, at most 80 characters.
  • Form heading is at most 80 characters and form text at most 200.
  • Both are refused on a hero that has no form.

Labels and release

  • English and Chinese labels are added. The labels file for real environments is in the change folder.
  • docs/deployment.md has a release note.

Tests and checks

  • Every new test failed before its code and passes after it.
  • I changed two existing tests:
    • the header-less spacing test, because spacing is now a top margin on each block row rather than a space-y class;
    • the frame clamp test, for the 20 px floor in the modified spec.
  • vitest exit code 0, tsc clean, lint 0 errors, Maven verify passed for services-counter, and openspec validate --strict passed.
  • I checked the change live on port 3001 by editing and publishing /p/INS/hotel-technology, at 1280 px and at 390 px.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs

This change implements the OpenSpec change `add-hero-full-width`. It brings the INS Hotel technology page close to the standalone INS landing page. **What a hero can now do** - A "Full width" switch makes the hero span the window edge to edge. It gets a larger serif headline, centred in the first screen, and a lighter left-to-right shade. - It can list up to 6 points under its text, shown as bullets. Points are stored as title-only cards. - Its form card can open with a heading and a line of text. Both can be typed straight on the canvas, and both are dropped when the form is removed. **Spacing and frames** - A full-width hero and a Custom HTML block that sit next to each other join with no gap. - Custom HTML frames can now shrink to 20 px (the floor was 100 px). - The page now asks each frame for its height once it is listening and again when the frame loads. Before, a frame's first height report could arrive too early and be missed, leaving the frame stuck at 600 px. **Server** - `CmsBlockValidator` accepts 0 to 6 points on a hero, each a title only, at most 80 characters. - Form heading is at most 80 characters and form text at most 200. - Both are refused on a hero that has no form. **Labels and release** - English and Chinese labels are added. The labels file for real environments is in the change folder. - `docs/deployment.md` has a release note. **Tests and checks** - Every new test failed before its code and passes after it. - I changed two existing tests: - the header-less spacing test, because spacing is now a top margin on each block row rather than a `space-y` class; - the frame clamp test, for the 20 px floor in the modified spec. - vitest exit code 0, tsc clean, lint 0 errors, Maven verify passed for services-counter, and `openspec validate --strict` passed. - I checked the change live on port 3001 by editing and publishing `/p/INS/hotel-technology`, at 1280 px and at 390 px. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile added 1 commit 2026-12-04 01:46:42 +00:00
A full-width hero spans the window with a larger serif headline and a lighter
left-to-right shade. It may list up to 6 points and give its form card a heading
and text. Full-width neighbours join with no gap. Custom HTML frames now shrink
to 20 px and re-report their height when the page asks, so a short top bar no
longer leaves a blank band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile merged commit fae25c11a6 into main 2026-12-04 01:46:45 +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#72