diff --git a/crates/im-web/assets/main.css b/crates/im-web/assets/main.css index b636a45..50ba8f2 100644 --- a/crates/im-web/assets/main.css +++ b/crates/im-web/assets/main.css @@ -318,9 +318,15 @@ body:has(.auth-stage) > .auth-stage::-webkit-scrollbar { padding: 4px 0 10px; } -.landing-stage .auth-column { - margin-top: 40px; - margin-bottom: 40px; +.landing-stage { + flex-direction: column; +} +.landing-stage .landing-chrome { + margin: 24px auto 0; + display: flex; + flex-direction: column; + align-items: center; + gap: 6px; } .auth-card { diff --git a/crates/im-web/src/pages.rs b/crates/im-web/src/pages.rs index c7eec45..0884479 100644 --- a/crates/im-web/src/pages.rs +++ b/crates/im-web/src/pages.rs @@ -607,9 +607,11 @@ async fn signed_in(cx: &Cx, user: &im_core::model::User) -> Result { let stage = view! { cx =>
-
+
(wordmark(cx).await?) +
+
if let Some(code) = ok {
(ok_text(&code, lang))
} diff --git a/style/main.scss b/style/main.scss index b6848da..4dbaf26 100644 --- a/style/main.scss +++ b/style/main.scss @@ -279,12 +279,21 @@ body:has(.auth-stage) { padding: 4px 0 10px; } -// The landing top-anchors: sections differ in height, and a centred column -// would move the tab row under the mouse between them. Fixed offset, the -// admin panel's posture; the auth gates stay centred. -.landing-stage .auth-column { - margin-top: 40px; - margin-bottom: 40px; +// The landing pins its chrome — wordmark and section tabs — at the top, so +// the row never moves between sections, and centres the section's cards in +// the room left below. The column's `margin: auto` does the centring and +// still top-anchors when a section outgrows the window; the auth gates keep +// their plain centred stage. +.landing-stage { + flex-direction: column; + + .landing-chrome { + margin: 24px auto 0; + display: flex; + flex-direction: column; + align-items: center; + gap: 6px; + } } .auth-card {