forge
Explore
Log in

Don't you dare go Hollow

The İz monogram carries the chrome, the word the front door

Browse files at this commit

147cc5d9bc914db8e8532689b56a31c51ea33315Ahmet Kaan GümüşParent: 69a60fa
  • feat
    • the İz monogram carries the chrome, the word the front door
Show full message
✨ feat(brand): the İz monogram carries the chrome, the word the front door

The topbar wore the name in lower case beside a loose accent dot, spelled
out again on every page and restyled by each skin. It is one lockup now,
drawn once in `layout.rs`: a dotted `i` beside a stroked `z` — the trace
the product is named for — taking its ink from `currentColor` and its
tittle from the accent, so a single drawing serves both skins in both
themes. Neither skin restyles it any more.

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. The mark takes the chrome, where the name is already known and
the room is 44px; the word takes the sign-in and setup pages, where a
stranger arrives and nothing else has said it yet. It stays lower case on
purpose — capitalised, the dotted `i` becomes `I` and the name reads as
the English word.

The tab gains the same drawing as an inline SVG favicon. A data URI has
no page to inherit tokens from, so its two themes are spelled out in a
media query inside the SVG.
crates/izlek-web/src/board.rsmodified+1 -4
@@ -573,10 +573,7 @@ pub async fn board_page(cx: &Cx, user: &User) -> Result {
573 view! {573 view! {
574 cx =>574 cx =>
575 <header class="topbar">575 <header class="topbar">
576- <a class="wordmark" href="/">576+ (crate::layout::mark(cx).await?)
577- <span class="wordmark-text">"izlek"</span>
578- <span class="wordmark-dot"></span>
579- </a>
580 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Board, user.role, lang).await?)577 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Board, user.role, lang).await?)
581 <div class="spacer"></div>578 <div class="spacer"></div>
582 (crate::layout::user_menu(cx, &crate::detail::Me::from(user), lang).await?)579 (crate::layout::user_menu(cx, &crate::detail::Me::from(user), lang).await?)
crates/izlek-web/src/layout.rsmodified+53 -1
@@ -18,6 +18,57 @@ use izlek_core::board::Person;
18 use crate::i18n::{Key, Lang, t};18 use crate::i18n::{Key, Lang, t};
19 use crate::server::current_user;19 use crate::server::current_user;
20 20
21+/// The İz monogram again, as the tab icon: the same drawing as `wordmark`,
22+/// inlined because it must carry its own colours — a data URI has no page to
23+/// inherit `currentColor` or the accent token from, so the two themes are
24+/// spelled out in a media query inside the SVG.
25+const FAVICON: &str = "data:image/svg+xml,\
26+ <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
27+ <style>.i{fill:%231a1b1d}.t{fill:%2346557b}.s{stroke:%231a1b1d}\
28+ @media(prefers-color-scheme:dark){.i{fill:%23e6e4de}.t{fill:%238ba1e8}\
29+ .s{stroke:%23e6e4de}}</style>\
30+ <rect class='i' x='3.1' y='9.4' width='4.4' height='11.6' rx='2.2'/>\
31+ <circle class='t' cx='5.3' cy='4.9' r='2.6'/>\
32+ <path class='s' d='M11.4 10.6h9.3L11.4 19.8h9.5' fill='none' \
33+ stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>";
34+
35+/// The İz monogram — a dotted `i` beside a stroked `z`, the trace the product
36+/// is named for. It takes `currentColor` for its strokes and the accent for
37+/// its tittle, so one drawing serves both skins and both themes.
38+///
39+/// The monogram and the wordmark are alternates, never a pair: `İz` spells the
40+/// first two letters of `İzlek`, so standing them side by side reads as a
41+/// stutter no amount of space or framing repairs. The mark carries the chrome,
42+/// where the name is already known and the room is 44px; the word carries the
43+/// front door, where a stranger arrives and nothing else has said it yet.
44+pub(crate) async fn mark(cx: &Cx) -> Result {
45+ view! {
46+ cx =>
47+ <a class="wordmark" href="/" aria-label="İzlek">
48+ <svg class="wordmark-mark" width="24" height="24" viewBox="0 0 24 24"
49+ aria-hidden="true">
50+ <rect x="3.1" y="9.4" width="4.4" height="11.6" rx="2.2"
51+ fill="currentColor"></rect>
52+ <circle class="wordmark-tittle" cx="5.3" cy="4.9" r="2.6"></circle>
53+ <path d="M11.4 10.6h9.3L11.4 19.8h9.5" fill="none"
54+ stroke="currentColor" stroke-width="2.5" stroke-linecap="round"
55+ stroke-linejoin="round"></path>
56+ </svg>
57+ </a>
58+ }
59+}
60+
61+/// The wordmark, the monogram's other half: the name alone, in the one face
62+/// both skins agree on. The sign-in and setup pages wear it — see `mark`.
63+pub(crate) async fn wordmark(cx: &Cx) -> Result {
64+ view! {
65+ cx =>
66+ <a class="wordmark wordmark-lone" href="/">
67+ <span class="wordmark-text">"İzlek"</span>
68+ </a>
69+ }
70+}
71+
21 /// A person as a circle (or, on the Instrument skin, a square) — the initials72 /// A person as a circle (or, on the Instrument skin, a square) — the initials
22 /// avatar when there is no photo, an `<img>` reading `/photo/{id}` otherwise.73 /// avatar when there is no photo, an `<img>` reading `/photo/{id}` otherwise.
23 /// Shared by the board, the modal and every topbar user menu.74 /// Shared by the board, the modal and every topbar user menu.
@@ -450,7 +501,8 @@ async fn root_layout(cx: &Cx, slot: Result) -> Result {
450 rel="stylesheet"501 rel="stylesheet"
451 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"502 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"
452 >503 >
453- <title>"Izlek"</title>504+ <title>"İzlek"</title>
505+ <link rel="icon" href=(FAVICON)>
454 <link rel="stylesheet" href=(STYLE)>506 <link rel="stylesheet" href=(STYLE)>
455 topcoat::runtime::script()507 topcoat::runtime::script()
456 topcoat::dev::script()508 topcoat::dev::script()
crates/izlek-web/src/logs.rsmodified+1 -4
@@ -924,10 +924,7 @@ async fn logs_screen(
924 view! {924 view! {
925 cx =>925 cx =>
926 <header class="topbar">926 <header class="topbar">
927- <a class="wordmark" href="/">927+ (crate::layout::mark(cx).await?)
928- <span class="wordmark-text">"izlek"</span>
929- <span class="wordmark-dot"></span>
930- </a>
931 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Logs, me.role, lang).await?)928 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Logs, me.role, lang).await?)
932 <div class="spacer"></div>929 <div class="spacer"></div>
933 (crate::layout::user_menu(cx, &me, lang).await?)930 (crate::layout::user_menu(cx, &me, lang).await?)
crates/izlek-web/src/pages.rsmodified+2 -5
@@ -69,15 +69,12 @@ async fn topbar(cx: &Cx) -> Result {
69 view! {69 view! {
70 cx =>70 cx =>
71 <header class="topbar">71 <header class="topbar">
72- <a class="wordmark" href="/">72+ (crate::layout::wordmark(cx).await?)
73- <span class="wordmark-text">"izlek"</span>
74- <span class="wordmark-dot"></span>
75- </a>
76 </header>73 </header>
77 }74 }
78 }75 }
79 76
80-/// "Set up Izlek" — the first account in an empty workspace.77+/// "Set up İzlek" — the first account in an empty workspace.
81 async fn setup_card(cx: &Cx) -> Result {78 async fn setup_card(cx: &Cx) -> Result {
82 let refusal = refusal_of(cx, "claim_workspace");79 let refusal = refusal_of(cx, "claim_workspace");
83 let lang = Lang::En;80 let lang = Lang::En;
crates/izlek-web/src/rules.rsmodified+1 -4
@@ -878,10 +878,7 @@ async fn rules_page(cx: &Cx) -> Result {
878 878
879 view! {879 view! {
880 <header class="topbar">880 <header class="topbar">
881- <a class="wordmark" href="/">881+ (crate::layout::mark(cx).await?)
882- <span class="wordmark-text">"izlek"</span>
883- <span class="wordmark-dot"></span>
884- </a>
885 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Rules, user.role, lang).await?)882 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Rules, user.role, lang).await?)
886 <div class="spacer"></div>883 <div class="spacer"></div>
887 (crate::layout::user_menu(cx, &crate::detail::Me::from(&user), lang).await?)884 (crate::layout::user_menu(cx, &crate::detail::Me::from(&user), lang).await?)
crates/izlek-web/src/settings.rsmodified+1 -4
@@ -1069,10 +1069,7 @@ async fn settings_page(cx: &Cx) -> Result {
1069 view! {1069 view! {
1070 cx =>1070 cx =>
1071 <header class="topbar">1071 <header class="topbar">
1072- <a class="wordmark" href="/">1072+ (crate::layout::mark(cx).await?)
1073- <span class="wordmark-text">"izlek"</span>
1074- <span class="wordmark-dot"></span>
1075- </a>
1076 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Settings, user.role, lang).await?)1073 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Settings, user.role, lang).await?)
1077 <div class="spacer"></div>1074 <div class="spacer"></div>
1078 (crate::layout::user_menu(cx, &crate::detail::Me::from(&user), lang).await?)1075 (crate::layout::user_menu(cx, &crate::detail::Me::from(&user), lang).await?)
style/_instrument.scssmodified+1 -11
@@ -9,7 +9,7 @@
9 9
10 [data-ui="instrument"] {10 [data-ui="instrument"] {
11 11
12- // --- Instrument skin: chrome (topbar, wordmark, nav) -----------------------12+ // --- Instrument skin: chrome (topbar, nav) ---------------------------------
13 13
14 // 44px chrome strip.14 // 44px chrome strip.
15 .topbar {15 .topbar {
@@ -20,16 +20,6 @@
20 height: 40px;20 height: 40px;
21 }21 }
22 22
23- // The wordmark reads as an engraved panel label: mono, uppercase, tracked
24- // wide.
25- .wordmark-text {
26- font-family: var(--font-mono);
27- font-size: 13px;
28- font-weight: 700;
29- letter-spacing: 0.12em;
30- text-transform: uppercase;
31- }
32-
33 // Active nav underlines in accent, not ink.23 // Active nav underlines in accent, not ink.
34 .topbar-nav-on {24 .topbar-nav-on {
35 box-shadow: inset 0 -2px 0 var(--accent);25 box-shadow: inset 0 -2px 0 var(--accent);
style/_ledger.scssmodified+4 -9
@@ -9,15 +9,10 @@
9 [data-ui="ledger"] {9 [data-ui="ledger"] {
10 // --- Ledger skin: typography -------------------------------------------------10 // --- Ledger skin: typography -------------------------------------------------
11 11
12- // The display face carries named things: the wordmark, page/board/panel12+ // The display face carries named things: page/board/panel titles, task
13- // titles, task titles, people. Keys, dates, counts and labels stay IBM13+ // titles, people. Keys, dates, counts and labels stay IBM Plex Mono 10px
14- // Plex Mono 10px uppercase — main.scss's metadata idiom is left alone.14+ // uppercase — main.scss's metadata idiom is left alone, and so is the
15- .wordmark-text {15+ // wordmark, which is the same lockup on both skins.
16- font-family: var(--font-display);
17- font-size: 21px;
18- font-weight: 600;
19- }
20-
21 .auth-title,16 .auth-title,
22 .settings-title,17 .settings-title,
23 .detail-title,18 .detail-title,
style/main.scssmodified+29 -12
@@ -364,28 +364,45 @@ a {
364 padding: 0 24px;364 padding: 0 24px;
365 }365 }
366 366
367+// The brand lockup is the one thing the two skins do NOT restyle: same
368+// monogram, same face, same size in Instrument and Ledger, light and dark.
369+// The mark takes the ink from `currentColor` and the tittle from the accent,
370+// so it re-tints with the theme without a second drawing.
367 .wordmark {371 .wordmark {
368 display: flex;372 display: flex;
369- align-items: baseline;373+ align-items: center;
370- gap: 1px;374+ gap: 10px;
371 text-decoration: none;375 text-decoration: none;
372 color: inherit;376 color: inherit;
373 377
374 &:hover { color: inherit; }378 &:hover { color: inherit; }
375 379
376- &-text {380+ &-mark {
381+ flex: none;
382+ display: block;
383+ width: 24px;
384+ height: 24px;
385+ }
386+
387+ // The word without the mark, on the sign-in and setup pages: nothing else
388+ // in that chrome, so it can take the room the topbar version cannot.
389+ &-lone &-text {
377 font-size: 18px;390 font-size: 18px;
378- font-weight: 700;391+ letter-spacing: 0.01em;
379- letter-spacing: -0.02em;
380 }392 }
381 393
382- &-dot {394+ &-tittle {
383- width: 6px;395+ fill: var(--accent);
384- height: 6px;396+ }
385- border-radius: 50%;397+
386- background: var(--accent);398+ // Lower case, and not by taste: capitalised, the dotted `i` becomes `I` and
387- display: inline-block;399+ // the name reads as the English word. The tittle is the Turkish one, in the
388- margin-left: 3px;400+ // word as it is in the mark.
401+ &-text {
402+ font-family: var(--font-mono);
403+ font-size: 15px;
404+ font-weight: 500;
405+ letter-spacing: 0.02em;
389 }406 }
390 }407 }
391 408