From ec7fa5c9fb1c4073a95b4441a105583302eaf4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 8 Sep 2026 03:29:14 +0300 Subject: [PATCH] =?UTF-8?q?the=20landing=20is=20the=20account's=20own=20pa?= =?UTF-8?q?ge=20again:=20the=20services=20card=20goes=20=E2=80=94=20the=20?= =?UTF-8?q?family=20lives=20in=20the=20chrome's=20wordmark=20trio=20and=20?= =?UTF-8?q?its=20editing=20in=20the=20admin=20panel,=20so=20a=20directory?= =?UTF-8?q?=20under=20the=20profile=20tabs=20was=20a=20third=20copy=20of?= =?UTF-8?q?=20the=20same=20door=20=E2=80=94=20and=20the=20card's=20orphane?= =?UTF-8?q?d=20styles=20ride=20out=20with=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/im-web/assets/main.css | 37 ------------------------------- crates/im-web/src/pages.rs | 32 +++------------------------ style/main.scss | 41 ----------------------------------- 3 files changed, 3 insertions(+), 107 deletions(-) diff --git a/crates/im-web/assets/main.css b/crates/im-web/assets/main.css index 6d01f31..d59b984 100644 --- a/crates/im-web/assets/main.css +++ b/crates/im-web/assets/main.css @@ -352,43 +352,6 @@ body:has(.auth-stage) > .auth-stage::-webkit-scrollbar { margin-bottom: 24px; } -.service-grid { - display: flex; - flex-wrap: wrap; - gap: 10px; -} - -.service-card { - flex: 1 1 140px; - display: flex; - align-items: center; - gap: 10px; - padding: 10px 14px; - border: 1px solid var(--border); - border-radius: var(--radius); - text-decoration: none; - color: inherit; -} -.service-card:hover { - border-color: var(--accent); - color: inherit; -} -.service-card-on { - border-color: var(--accent); - background: var(--accent-tint); -} - -.service-mark { - font-family: var(--font-mono); - font-size: 15px; - font-weight: 500; -} - -.service-name { - font-size: 13px; - color: var(--muted); -} - .auth-card { background: var(--surface); border: 1px solid var(--border); diff --git a/crates/im-web/src/pages.rs b/crates/im-web/src/pages.rs index 3938086..017f853 100644 --- a/crates/im-web/src/pages.rs +++ b/crates/im-web/src/pages.rs @@ -602,29 +602,9 @@ async fn signed_in(cx: &Cx, user: &im_core::model::User) -> Result { ) }) .collect::(); - // The services home: one card per family member — wordmark and name, - // the whole card the link. im's own card reads current. Above the - // profile sections: im is the account center, and its landing is the - // door to the rest. The list is the stored one — the rows `/family` - // serves — read-only here; the admin edits it from the panel. - let services = im_core::services::list(&server::app(cx).store).await?; - let services_html = services - .iter() - .map(|service| { - let current = service.key == "im"; - let open = if current { - r#""#.to_string() - } else { - format!(r#""#, escape(&service.url)) - }; - format!( - r#"{open}{}{}"#, - escape(&service.key), - escape(&service.name), - if current { "span" } else { "a" }, - ) - }) - .collect::(); + // The family lives in the chrome — the wordmark trio under the + // wordmark — and its editing in the admin panel; the landing is the + // account's own page and carries no directory of its own. let stage = view! { cx =>
@@ -632,12 +612,6 @@ async fn signed_in(cx: &Cx, user: &im_core::model::User) -> Result { (wordmark(cx).await?) (service_trio(cx).await?) - if !services_html.is_empty() { -
-
(t(lang, Key::ServicesTitle))
-
(topcoat::view::Unescaped::new_unchecked(services_html))
-
- } if let Some(code) = ok {
(ok_text(&code, lang))
} diff --git a/style/main.scss b/style/main.scss index a40b0df..5ba4ea7 100644 --- a/style/main.scss +++ b/style/main.scss @@ -319,47 +319,6 @@ body:has(.auth-stage) { margin-bottom: 24px; } -// The landing's services home: one card per configured app — wordmark and -// name on one line, the whole card the link. im's own card reads current: -// accent border, tinted, no pointer. -.service-grid { - display: flex; - flex-wrap: wrap; - gap: 10px; -} - -.service-card { - flex: 1 1 140px; - display: flex; - align-items: center; - gap: 10px; - padding: 10px 14px; - border: 1px solid var(--border); - border-radius: var(--radius); - text-decoration: none; - color: inherit; - - &:hover { - border-color: var(--accent); - color: inherit; - } - - &-on { - border-color: var(--accent); - background: var(--accent-tint); - } -} - -.service-mark { - font-family: var(--font-mono); - font-size: 15px; - font-weight: 500; -} - -.service-name { - font-size: 13px; - color: var(--muted); -}