Fix Mobile SDK hero layout: restore demo into hero, lay out as a row
CI / build (push) Canceled after 0s
CI / build (push) Canceled after 0s
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 <noreply@anthropic.com>
This commit is contained in:
+28
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user