From 34732ef2a595d8b0a76813a9ca5eb9bfea52e9e8 Mon Sep 17 00:00:00 2001 From: ngqile Date: Wed, 2 Dec 2026 17:34:20 +0800 Subject: [PATCH] docs: custom HTML block design Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs --- .../2026-12-02-custom-html-block-design.md | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 docs/superpowers/specs/2026-12-02-custom-html-block-design.md diff --git a/docs/superpowers/specs/2026-12-02-custom-html-block-design.md b/docs/superpowers/specs/2026-12-02-custom-html-block-design.md new file mode 100644 index 0000000..3520f82 --- /dev/null +++ b/docs/superpowers/specs/2026-12-02-custom-html-block-design.md @@ -0,0 +1,73 @@ +# Custom HTML block for landing pages — design + +Date: 2026-12-02. Status: draft for owner approval. + +## Intent + +Marketing staff want to generate page sections with an AI tool and paste the HTML into a landing page, so a page can look like a designed site rather than only the built-in blocks. The owner chose option 1 on 2026-12-02: a "Custom HTML" block shown in a sealed frame. + +## Goals + +- A new block type, **Custom HTML**, holding HTML pasted by staff with `BO_PAGES`. +- The pasted HTML renders as the AI designed it: its own styles, fonts, CDN libraries and scripts. +- The pasted HTML can never act as the visitor or as a staff member on the Co-Lite site: no access to cookies, the back-office APIs, the page around it, or top-level navigation. +- Leads still come only from the built-in Sign-up form block, with consent, interests and UTM tags. + +## Non-goals + +- Forms inside the pasted HTML do not submit. A pasted "contact us" form is decoration; staff add the Sign-up form block for real leads. +- No HTML editor, syntax highlighting or AI generation inside Co-Lite. Staff paste text. +- No search-engine indexing of the framed content. The page title, description and the other blocks still carry the page's search text. + +## Anti-goals + +- Any path where pasted HTML runs with the Co-Lite origin. This includes someone opening the frame's address directly in a browser tab. + +## Approaches + +1. **Sealed frame (chosen).** The HTML is served from its own address with a `sandbox` Content-Security-Policy and shown in an `