A trust strip band uses less padding, the full-width hero less padding, and the landing-page form tighter gaps with the consent in small text. Controls keep their 44 px height. On the INS page at 1920x1080 the trust strip now ends at 937 px instead of 1077 px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
23 lines
1.6 KiB
Markdown
23 lines
1.6 KiB
Markdown
# Design
|
||
|
||
## Context
|
||
|
||
Measured at 1920×1080 on the INS page: top bar 69 px, hero 886 px (set by the form card), trust strip about 122 px, 1077 px in all. The hero grid has `pt-16 pb-12`. Bands get `py-12`. The compact form uses `space-y-4`, and its consent box holds two lines of normal-size text (English and Malay).
|
||
|
||
## Approaches
|
||
|
||
1. **Trim spacing (chosen).** Trust band padding, hero padding and the compact form's gaps. It is about 150 px in all, with no field taken away and no setting added.
|
||
2. **Side-by-side fields** (Mobile and Email on one row on wide screens). That saves about 80 px more, but the fields get narrower, and the hint and errors under Mobile get harder to lay out. It is kept in reserve.
|
||
3. **A form-size setting for staff.** This adds UI for something the page should simply get right.
|
||
|
||
## Decisions
|
||
|
||
- The trust band padding is `py-5` only for TRUST. Other bands keep `py-12`.
|
||
- The full-width hero grid is `pt-8 pb-8`. The editor's image button still fits in the corner, because it is positioned on the section, not in the padding.
|
||
- In the compact form: `space-y-3` between fields, the consent box text is `text-sm`, and the form card's gap is `space-y-3`. The 44 px control heights stay, for touch targets.
|
||
- The check is a Playwright measurement at 1920×1080: the bottom of the trust strip at or below 950 px from the top. There is no unit test for pixel heights (jsdom has no layout). Render tests pin the classes instead.
|
||
|
||
## Risks
|
||
|
||
- **A tighter consent box is still the consent.** Its text, its checkbox and its required state do not change; only the font size does. `text-sm` (14 px) stays readable.
|