From 6d89264265d14659c850165f9d70dc513670b434 Mon Sep 17 00:00:00 2001 From: Mehboob Khan Date: Tue, 27 Oct 2026 19:03:46 +0500 Subject: [PATCH] Fix Mobile SDK hero layout: restore demo into hero, lay out as a row The hero's live phone demo had been split into a separate section below the hero in an earlier commit, leaving the heading stranded in an oversized, mostly-empty hero and the demo adrift further down the page. Moves the demo mount back inside .bd-hero-top as originally intended, lays the heading and demo out side by side in a row (falling back to a stacked column below 1480px where the demo's fixed-width block would otherwise clip), compacts the tile grid to two columns, and widens the text column so copy wraps more naturally. Co-Authored-By: Claude Sonnet 5 --- src/site/demos/mobileSdkExplorer.css | 3 +- src/site/siteMarkup.txt | 170 +-------------------------- src/site/styles.css | 33 +++++- 3 files changed, 30 insertions(+), 176 deletions(-) diff --git a/src/site/demos/mobileSdkExplorer.css b/src/site/demos/mobileSdkExplorer.css index a7d744d..6339b5b 100644 --- a/src/site/demos/mobileSdkExplorer.css +++ b/src/site/demos/mobileSdkExplorer.css @@ -19,7 +19,6 @@ grid-template-columns: 268px minmax(0, 420px); column-gap: 32px; align-items: center; - justify-content: space-between; } /* ============================================================ @@ -29,7 +28,7 @@ grid-column: 1; grid-row: 1; display: grid; - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start; } diff --git a/src/site/siteMarkup.txt b/src/site/siteMarkup.txt index 1077b0d..141d520 100644 --- a/src/site/siteMarkup.txt +++ b/src/site/siteMarkup.txt @@ -657,178 +657,10 @@ investment and no subscriber friction.

+
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
BUILT FOR
Retail banksDigital-first banks & fintechMobile operators with FS exposureInsurance diff --git a/src/site/styles.css b/src/site/styles.css index 2c21cbd..52881c9 100644 --- a/src/site/styles.css +++ b/src/site/styles.css @@ -553,16 +553,25 @@ textarea { #pg-p2 .bd-hero-sh .bd-hero-in { display: block; height: auto; - padding: 90px; + padding: 25px; } #pg-p2 .bd-hero-top { display: flex; - flex-direction: column; - align-items: stretch; - gap: 20px; + flex-direction: row; + align-items: center; + justify-content: flex-start; + gap: 44px; } #pg-p2 .bd-hero-top > div:first-child { - max-width: 720px; + width: 500px; + max-width: 500px; + flex: 0 0 auto; +} +#pg-p2 .bd-mobile-demo-mount { + flex: 0 0 auto; +} +#pg-p2 .bd-mobile-demo-mount .bd-mse { + justify-content: flex-start; } #pg-p2 .bd-hero-top .h1 { font-size: clamp(32px, 3.4vw, 44px); @@ -570,6 +579,20 @@ textarea { #pg-p2 .bd-hero-top .hero-sub { margin: 12px 0 18px; } +/* The demo's module grid + phone stage is a fixed ~720px wide block that + doesn't shrink, so below this the row layout clips/overflows — fall + back to the stacked column before that happens. */ +@media (max-width: 1480px) { + #pg-p2 .bd-hero-top { + flex-direction: column; + align-items: stretch; + gap: 24px; + } + #pg-p2 .bd-hero-top > div:first-child { + width: auto; + max-width: 100%; + } +} /* The hero now fits one screen, so the global "scroll down" hint collides with the demo's caption text instead of pointing at hidden content. */ body[data-active-page="p2"] .scroll-hint {