the landing is the account's own page again: the services card goes — the family lives in the chrome's wordmark trio and its editing in the admin panel, so a directory under the profile tabs was a third copy of the same door — and the card's orphaned styles ride out with it
Browse files at this commitec7fa5c9fb1c4073a95b4441a105583302eaf4f5Parent: faf28863 changed files +3 -107
- crates/im-web/assets/main.css +0 -37
- crates/im-web/src/pages.rs +3 -29
- style/main.scss +0 -41
crates/im-web/assets/main.cssmodified+0 -37
| @@ -352,43 +352,6 @@ body:has(.auth-stage) > .auth-stage::-webkit-scrollbar { | |||
| 352 | margin-bottom: 24px; | 352 | margin-bottom: 24px; |
| 353 | } | 353 | } |
| 354 | 354 | ||
| 355 | -.service-grid { | ||
| 356 | - display: flex; | ||
| 357 | - flex-wrap: wrap; | ||
| 358 | - gap: 10px; | ||
| 359 | -} | ||
| 360 | - | ||
| 361 | -.service-card { | ||
| 362 | - flex: 1 1 140px; | ||
| 363 | - display: flex; | ||
| 364 | - align-items: center; | ||
| 365 | - gap: 10px; | ||
| 366 | - padding: 10px 14px; | ||
| 367 | - border: 1px solid var(--border); | ||
| 368 | - border-radius: var(--radius); | ||
| 369 | - text-decoration: none; | ||
| 370 | - color: inherit; | ||
| 371 | -} | ||
| 372 | -.service-card:hover { | ||
| 373 | - border-color: var(--accent); | ||
| 374 | - color: inherit; | ||
| 375 | -} | ||
| 376 | -.service-card-on { | ||
| 377 | - border-color: var(--accent); | ||
| 378 | - background: var(--accent-tint); | ||
| 379 | -} | ||
| 380 | - | ||
| 381 | -.service-mark { | ||
| 382 | - font-family: var(--font-mono); | ||
| 383 | - font-size: 15px; | ||
| 384 | - font-weight: 500; | ||
| 385 | -} | ||
| 386 | - | ||
| 387 | -.service-name { | ||
| 388 | - font-size: 13px; | ||
| 389 | - color: var(--muted); | ||
| 390 | -} | ||
| 391 | - | ||
| 392 | .auth-card { | 355 | .auth-card { |
| 393 | background: var(--surface); | 356 | background: var(--surface); |
| 394 | border: 1px solid var(--border); | 357 | border: 1px solid var(--border); |
crates/im-web/src/pages.rsmodified+3 -29
| @@ -602,29 +602,9 @@ async fn signed_in(cx: &Cx, user: &im_core::model::User) -> Result { | |||
| 602 | ) | 602 | ) |
| 603 | }) | 603 | }) |
| 604 | .collect::<String>(); | 604 | .collect::<String>(); |
| 605 | - // The services home: one card per family member — wordmark and name, | 605 | + // The family lives in the chrome — the wordmark trio under the |
| 606 | - // the whole card the link. im's own card reads current. Above the | 606 | + // wordmark — and its editing in the admin panel; the landing is the |
| 607 | - // profile sections: im is the account center, and its landing is the | 607 | + // account's own page and carries no directory of its own. |
| 608 | - // door to the rest. The list is the stored one — the rows `/family` | ||
| 609 | - // serves — read-only here; the admin edits it from the panel. | ||
| 610 | - let services = im_core::services::list(&server::app(cx).store).await?; | ||
| 611 | - let services_html = services | ||
| 612 | - .iter() | ||
| 613 | - .map(|service| { | ||
| 614 | - let current = service.key == "im"; | ||
| 615 | - let open = if current { | ||
| 616 | - r#"<span class="service-card service-card-on" aria-current="page">"#.to_string() | ||
| 617 | - } else { | ||
| 618 | - format!(r#"<a class="service-card" href="{}">"#, escape(&service.url)) | ||
| 619 | - }; | ||
| 620 | - format!( | ||
| 621 | - r#"{open}<span class="service-mark">{}</span><span class="service-name">{}</span></{}>"#, | ||
| 622 | - escape(&service.key), | ||
| 623 | - escape(&service.name), | ||
| 624 | - if current { "span" } else { "a" }, | ||
| 625 | - ) | ||
| 626 | - }) | ||
| 627 | - .collect::<String>(); | ||
| 628 | let stage = view! { | 608 | let stage = view! { |
| 629 | cx => | 609 | cx => |
| 630 | <main class="auth-stage landing-stage"> | 610 | <main class="auth-stage landing-stage"> |
| @@ -632,12 +612,6 @@ async fn signed_in(cx: &Cx, user: &im_core::model::User) -> Result { | |||
| 632 | (wordmark(cx).await?) | 612 | (wordmark(cx).await?) |
| 633 | (service_trio(cx).await?) | 613 | (service_trio(cx).await?) |
| 634 | <nav class="admin-tabs landing-nav">(topcoat::view::Unescaped::new_unchecked(nav))</nav> | 614 | <nav class="admin-tabs landing-nav">(topcoat::view::Unescaped::new_unchecked(nav))</nav> |
| 635 | - if !services_html.is_empty() { | ||
| 636 | - <div class="auth-card"> | ||
| 637 | - <div class="auth-title">(t(lang, Key::ServicesTitle))</div> | ||
| 638 | - <div class="service-grid">(topcoat::view::Unescaped::new_unchecked(services_html))</div> | ||
| 639 | - </div> | ||
| 640 | - } | ||
| 641 | if let Some(code) = ok { | 615 | if let Some(code) = ok { |
| 642 | <div class="auth-ok">(ok_text(&code, lang))</div> | 616 | <div class="auth-ok">(ok_text(&code, lang))</div> |
| 643 | } | 617 | } |
style/main.scssmodified+0 -41
| @@ -319,47 +319,6 @@ body:has(.auth-stage) { | |||
| 319 | margin-bottom: 24px; | 319 | margin-bottom: 24px; |
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | -// The landing's services home: one card per configured app — wordmark and | ||
| 323 | -// name on one line, the whole card the link. im's own card reads current: | ||
| 324 | -// accent border, tinted, no pointer. | ||
| 325 | -.service-grid { | ||
| 326 | - display: flex; | ||
| 327 | - flex-wrap: wrap; | ||
| 328 | - gap: 10px; | ||
| 329 | -} | ||
| 330 | - | ||
| 331 | -.service-card { | ||
| 332 | - flex: 1 1 140px; | ||
| 333 | - display: flex; | ||
| 334 | - align-items: center; | ||
| 335 | - gap: 10px; | ||
| 336 | - padding: 10px 14px; | ||
| 337 | - border: 1px solid var(--border); | ||
| 338 | - border-radius: var(--radius); | ||
| 339 | - text-decoration: none; | ||
| 340 | - color: inherit; | ||
| 341 | - | ||
| 342 | - &:hover { | ||
| 343 | - border-color: var(--accent); | ||
| 344 | - color: inherit; | ||
| 345 | - } | ||
| 346 | - | ||
| 347 | - &-on { | ||
| 348 | - border-color: var(--accent); | ||
| 349 | - background: var(--accent-tint); | ||
| 350 | - } | ||
| 351 | -} | ||
| 352 | - | ||
| 353 | -.service-mark { | ||
| 354 | - font-family: var(--font-mono); | ||
| 355 | - font-size: 15px; | ||
| 356 | - font-weight: 500; | ||
| 357 | -} | ||
| 358 | - | ||
| 359 | -.service-name { | ||
| 360 | - font-size: 13px; | ||
| 361 | - color: var(--muted); | ||
| 362 | -} | ||
| 363 | 322 | ||
| 364 | 323 | ||
| 365 | 324 | ||