Files
co-lite/openspec/changes/archive/2026-12-04-add-hero-fits-screen/tasks.md
T

1.2 KiB
Raw Blame History

Tasks

1. Portal

  • 1.1 CmsBlocks.tsx:

    • a TRUST band uses py-5; other bands keep py-12;
    • the full-width hero grid uses pt-8 pb-8;
    • the hero form card uses space-y-3.

    RegistrationForm.tsx, compact only: space-y-3 between fields, and text-sm in the consent box.

    Verify: render tests fail first, then pass; vitest exit 0, tsc and lint clean.

2. Verification

  • 2.1 Use Playwright on port 3001 to measure /p/INS/hotel-technology at 1920×1080: the trust strip's bottom is at most 950 px, and the controls are at least 44 px tall. Take screenshots at 1920×1080, 1280×900 and 390 px.
  • 2.2 Run openspec validate add-hero-fits-screen --strict.

Notes (2026-12-04)

  • Red first: the new render tests failed on the trust band padding, the hero padding, the card gap, the compact form gap and the consent text size.
  • Changed existing tests: none.
  • Measured on /p/INS/hotel-technology at 1920×1080 with Playwright:
    • before: hero 886 px, trust strip bottom 1077 px;
    • with pt-10 pb-10: 953 px, still over the 950 px target, so the hero padding became pt-8 pb-8;
    • final: hero 802 px, trust strip bottom 937 px. Every text field, the dropdown and the Register button are 44 px.