Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d71b9122c | ||
|
|
de8ff61fe0 | ||
|
|
12296ac203 | ||
|
|
6164263208 |
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -831,3 +831,18 @@ Section headings on landing pages SHALL use the serif typeface that the full-wid
|
||||
|
||||
- **WHEN** a visitor opens a page with a Feature cards block
|
||||
- **THEN** its heading uses the serif typeface
|
||||
|
||||
### Requirement: First Screen Fits The Hero And Trust Strip
|
||||
|
||||
A page with a top bar, a full-width hero with its sign-up form, and a trust strip SHALL show all three in full within the first 950 px of a desktop browser window. To fit, the trust strip band SHALL use less padding than other bands, and the landing-page form SHALL keep its fields, dropdown and button at least 44 px tall.
|
||||
|
||||
#### Scenario: INS page on a 1080p desktop
|
||||
|
||||
- **GIVEN** page `/p/INS/hotel-technology` with a top bar, a full-width hero with a form, and a trust strip
|
||||
- **WHEN** a visitor opens it in a 1920×1080 browser window
|
||||
- **THEN** the bottom of the trust strip is within 950 px of the top of the page
|
||||
|
||||
#### Scenario: Form controls stay easy to tap
|
||||
|
||||
- **WHEN** a visitor opens a landing page with a sign-up form
|
||||
- **THEN** each text field, the service dropdown and the Register button are at least 44 px tall
|
||||
@@ -222,6 +222,15 @@ describe("LandingPage thank-you text and footer", () => {
|
||||
expect(within(foot).getByText(/^© 2026/)).toHaveClass("border-t");
|
||||
});
|
||||
|
||||
it("ends the page at the footer: no blank strip below a closing footer", () => {
|
||||
const { unmount } = render(<LandingPage company={company} page={page([{ type: "FAQ", items: [{ question: "Q", answer: "A" }] }, footer])} />);
|
||||
expect(screen.getByRole("main")).not.toHaveClass("pb-8");
|
||||
expect(screen.getByRole("main")).not.toHaveClass("py-8");
|
||||
unmount();
|
||||
render(<LandingPage company={company} page={page([footer, { type: "FAQ", items: [{ question: "Q", answer: "A" }] }])} />);
|
||||
expect(screen.getByRole("main").className).toMatch(/p[by]-8/);
|
||||
});
|
||||
|
||||
it("keeps markup in footer text as text", () => {
|
||||
render(<LandingPage company={company} page={page([{ type: "FOOTER", cards: [{ title: "Call", text: "<b>Call</b> +60 12-833 2775" }] }])} />);
|
||||
const foot = screen.getByRole("contentinfo");
|
||||
|
||||
@@ -334,7 +334,8 @@ export function LandingPage({ company, page, banner, preview, frameBase, edit }:
|
||||
)}
|
||||
</div>
|
||||
</header>}
|
||||
<main className={page.hideHeader ? "pb-8" : "py-8"}>
|
||||
{/* A closing footer is the page's end: no padding below it. */}
|
||||
<main className={`${page.hideHeader ? "" : "pt-8"} ${page.blocks.at(-1)?.type === "FOOTER" ? "" : "pb-8"}`}>
|
||||
<h1 className={page.hideHeader ? "sr-only" : `${WIDTH} mb-10 text-3xl font-semibold sm:text-4xl`}>{page.title}</h1>
|
||||
<div>
|
||||
{page.blocks.map((block, i) => (
|
||||
|
||||
Reference in new issue
Block a user