Landing pages gain a Footer section (1 to 4 columns of title and text, a legal line under a divider) whose phone numbers, emails and web addresses show as links. The Form block and a hero with a form may carry a thank-you text shown after sign-up, with the same links. Full-width heroes get a lighter shade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
3.0 KiB
3.0 KiB
Proposal
Why
The INS Hotel technology page is being rebuilt in Co-Lite without Custom HTML, to match INS's standalone page (~/Projects/ins-landing-page). After add-compact-landing-form, the content matches, but three things still differ, and marketing staff cannot fix them from the editor:
- After signing up, INS shows "Thanks! Our team will contact you shortly. Prefer to talk now? Call +60 12-833 2775", with the number as a tap-to-call link. Our landing form shows the same generic thank-you on every page.
- INS's footer has up to three columns (company and address, "Talk to us" with phone and email, website). The phone, email and web address are gold links, and the © line sits under a thin divider. Ours is one stacked column of plain rich text.
- INS's hero shade is lighter, so more of the photo shows. Ours is near-black on the text side.
What Changes
- Thank-you text. The FORM block and a HERO with an event MAY carry
thanksText(at most 200 characters). After a visitor signs up, it shows under the "Thank you" heading. Phone numbers that start with+, email addresses, andhttps://orwww.web addresses in it become links. Without it, the thank-you stays as it is now. The server refuses it on a HERO without an event. - Footer block. A new block type, FOOTER:
- 1 to 4 columns, each a bold title (80 characters) and text (300 characters, line breaks kept);
- an optional legal line (
text, 300 characters) under a thin divider; - phone numbers, emails and web addresses in the column text become links in the link colour;
- a new footer starts with the dark look; staff may change the look as on any block.
- Lighter full-width hero shade. The full-width hero's shade runs from about half dark on the text side to almost clear at 70% of the width, like INS. On phones, where the text sits over the whole photo, the shade is an even dark layer.
- New editor labels in English and Chinese, with an SQL label file for real environments.
Not changing:
- QR and invitation sign-up thank-you screens.
- The Rich Text block. Existing footers built with it keep working.
- Heroes that are not full width.
Capabilities
New Capabilities
None.
Modified Capabilities
landing-pages: adds "Thank-You Text On Landing Forms" and "Footer Block".
Impact
- services-counter:
CmsBlockgainsthanksText.CmsBlockValidatorchecksthanksTexton FORM and HERO and validates the FOOTER type. - mobile-api: none. Public blocks pass through as maps.
- Portal:
cmsPages.ts: the FOOTER type, its empty block and label;- a small link-finding helper used by the footer and the thank-you text;
CmsBlocks.tsxrenders the footer, passes the thank-you text and lightens the shade;LandingForm.tsxshows the thank-you text;BlockFields.tsxgets the footer's columns and legal line, and the thank-you field on FORM and HERO;- labels in
defaultMessages.tsandzh_CN.seed.json.
- Data: no schema change, because the blocks are JSON. The new labels need a SQL label file in this change folder.