diff --git a/crates/izlek-web/src/board.rs b/crates/izlek-web/src/board.rs index 72cb1f7..9b8c0c2 100644 --- a/crates/izlek-web/src/board.rs +++ b/crates/izlek-web/src/board.rs @@ -573,10 +573,7 @@ pub async fn board_page(cx: &Cx, user: &User) -> Result { view! { cx =>
- - "izlek" - - + (crate::layout::mark(cx).await?) (crate::layout::topbar_nav(cx, crate::layout::NavPage::Board, user.role, lang).await?)
(crate::layout::user_menu(cx, &crate::detail::Me::from(user), lang).await?) diff --git a/crates/izlek-web/src/layout.rs b/crates/izlek-web/src/layout.rs index b535195..146754b 100644 --- a/crates/izlek-web/src/layout.rs +++ b/crates/izlek-web/src/layout.rs @@ -18,6 +18,57 @@ use izlek_core::board::Person; use crate::i18n::{Key, Lang, t}; use crate::server::current_user; +/// The İz monogram again, as the tab icon: the same drawing as `wordmark`, +/// inlined because it must carry its own colours — a data URI has no page to +/// inherit `currentColor` or the accent token from, so the two themes are +/// spelled out in a media query inside the SVG. +const FAVICON: &str = "data:image/svg+xml,\ + \ + \ + \ + \ + "; + +/// The İz monogram — a dotted `i` beside a stroked `z`, the trace the product +/// is named for. It takes `currentColor` for its strokes and the accent for +/// its tittle, so one drawing serves both skins and both themes. +/// +/// The monogram and the wordmark are alternates, never a pair: `İz` spells the +/// first two letters of `İzlek`, so standing them side by side reads as a +/// stutter no amount of space or framing repairs. The mark carries the chrome, +/// where the name is already known and the room is 44px; the word carries the +/// front door, where a stranger arrives and nothing else has said it yet. +pub(crate) async fn mark(cx: &Cx) -> Result { + view! { + cx => + + + + } +} + +/// The wordmark, the monogram's other half: the name alone, in the one face +/// both skins agree on. The sign-in and setup pages wear it — see `mark`. +pub(crate) async fn wordmark(cx: &Cx) -> Result { + view! { + cx => + + "İzlek" + + } +} + /// A person as a circle (or, on the Instrument skin, a square) — the initials /// avatar when there is no photo, an `` reading `/photo/{id}` otherwise. /// Shared by the board, the modal and every topbar user menu. @@ -450,7 +501,8 @@ async fn root_layout(cx: &Cx, slot: Result) -> Result { rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,wght@0,400;0,600;1,400;1,600&display=swap" > - "Izlek" + "İzlek" + topcoat::runtime::script() topcoat::dev::script() diff --git a/crates/izlek-web/src/logs.rs b/crates/izlek-web/src/logs.rs index 85654f0..1f3f6ac 100644 --- a/crates/izlek-web/src/logs.rs +++ b/crates/izlek-web/src/logs.rs @@ -924,10 +924,7 @@ async fn logs_screen( view! { cx =>
- - "izlek" - - + (crate::layout::mark(cx).await?) (crate::layout::topbar_nav(cx, crate::layout::NavPage::Logs, me.role, lang).await?)
(crate::layout::user_menu(cx, &me, lang).await?) diff --git a/crates/izlek-web/src/pages.rs b/crates/izlek-web/src/pages.rs index 98a0c48..65b3db7 100644 --- a/crates/izlek-web/src/pages.rs +++ b/crates/izlek-web/src/pages.rs @@ -69,15 +69,12 @@ async fn topbar(cx: &Cx) -> Result { view! { cx =>
- - "izlek" - - + (crate::layout::wordmark(cx).await?)
} } -/// "Set up Izlek" — the first account in an empty workspace. +/// "Set up İzlek" — the first account in an empty workspace. async fn setup_card(cx: &Cx) -> Result { let refusal = refusal_of(cx, "claim_workspace"); let lang = Lang::En; diff --git a/crates/izlek-web/src/rules.rs b/crates/izlek-web/src/rules.rs index babf993..27afb0c 100644 --- a/crates/izlek-web/src/rules.rs +++ b/crates/izlek-web/src/rules.rs @@ -878,10 +878,7 @@ async fn rules_page(cx: &Cx) -> Result { view! {
- - "izlek" - - + (crate::layout::mark(cx).await?) (crate::layout::topbar_nav(cx, crate::layout::NavPage::Rules, user.role, lang).await?)
(crate::layout::user_menu(cx, &crate::detail::Me::from(&user), lang).await?) diff --git a/crates/izlek-web/src/settings.rs b/crates/izlek-web/src/settings.rs index c0d61ea..a198aa8 100644 --- a/crates/izlek-web/src/settings.rs +++ b/crates/izlek-web/src/settings.rs @@ -1069,10 +1069,7 @@ async fn settings_page(cx: &Cx) -> Result { view! { cx =>
- - "izlek" - - + (crate::layout::mark(cx).await?) (crate::layout::topbar_nav(cx, crate::layout::NavPage::Settings, user.role, lang).await?)
(crate::layout::user_menu(cx, &crate::detail::Me::from(&user), lang).await?) diff --git a/style/_instrument.scss b/style/_instrument.scss index 5b93112..60fdd62 100644 --- a/style/_instrument.scss +++ b/style/_instrument.scss @@ -9,7 +9,7 @@ [data-ui="instrument"] { - // --- Instrument skin: chrome (topbar, wordmark, nav) ----------------------- + // --- Instrument skin: chrome (topbar, nav) --------------------------------- // 44px chrome strip. .topbar { @@ -20,16 +20,6 @@ height: 40px; } - // The wordmark reads as an engraved panel label: mono, uppercase, tracked - // wide. - .wordmark-text { - font-family: var(--font-mono); - font-size: 13px; - font-weight: 700; - letter-spacing: 0.12em; - text-transform: uppercase; - } - // Active nav underlines in accent, not ink. .topbar-nav-on { box-shadow: inset 0 -2px 0 var(--accent); diff --git a/style/_ledger.scss b/style/_ledger.scss index 6b43e4e..84a217c 100644 --- a/style/_ledger.scss +++ b/style/_ledger.scss @@ -9,15 +9,10 @@ [data-ui="ledger"] { // --- Ledger skin: typography ------------------------------------------------- - // The display face carries named things: the wordmark, page/board/panel - // titles, task titles, people. Keys, dates, counts and labels stay IBM - // Plex Mono 10px uppercase — main.scss's metadata idiom is left alone. - .wordmark-text { - font-family: var(--font-display); - font-size: 21px; - font-weight: 600; - } - + // The display face carries named things: page/board/panel titles, task + // titles, people. Keys, dates, counts and labels stay IBM Plex Mono 10px + // uppercase — main.scss's metadata idiom is left alone, and so is the + // wordmark, which is the same lockup on both skins. .auth-title, .settings-title, .detail-title, diff --git a/style/main.scss b/style/main.scss index 945ab86..ecce49f 100644 --- a/style/main.scss +++ b/style/main.scss @@ -364,28 +364,45 @@ a { padding: 0 24px; } +// The brand lockup is the one thing the two skins do NOT restyle: same +// monogram, same face, same size in Instrument and Ledger, light and dark. +// The mark takes the ink from `currentColor` and the tittle from the accent, +// so it re-tints with the theme without a second drawing. .wordmark { display: flex; - align-items: baseline; - gap: 1px; + align-items: center; + gap: 10px; text-decoration: none; color: inherit; &:hover { color: inherit; } - &-text { + &-mark { + flex: none; + display: block; + width: 24px; + height: 24px; + } + + // The word without the mark, on the sign-in and setup pages: nothing else + // in that chrome, so it can take the room the topbar version cannot. + &-lone &-text { font-size: 18px; - font-weight: 700; - letter-spacing: -0.02em; + letter-spacing: 0.01em; } - &-dot { - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--accent); - display: inline-block; - margin-left: 3px; + &-tittle { + fill: var(--accent); + } + + // Lower case, and not by taste: capitalised, the dotted `i` becomes `I` and + // the name reads as the English word. The tittle is the Turkish one, in the + // word as it is in the mark. + &-text { + font-family: var(--font-mono); + font-size: 15px; + font-weight: 500; + letter-spacing: 0.02em; } }