From 83d82acf0c271a5a220274a827b6f2a574f49e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 5 Sep 2026 08:16:58 +0300 Subject: [PATCH] =?UTF-8?q?Landing=20chrome=20pins=20to=20the=20top=20whil?= =?UTF-8?q?e=20the=20section's=20cards=20centre=20in=20the=20room=20below?= =?UTF-8?q?=20=E2=80=94=20tabs=20stationary,=20content=20mid-screen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/im-web/assets/main.css | 12 +++++++++--- crates/im-web/src/pages.rs | 4 +++- style/main.scss | 21 +++++++++++++++------ 3 files changed, 27 insertions(+), 10 deletions(-) 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 {