forge
Explore
Log in

Don't you dare go Hollow

Landing spreads into two, then three columns as the window widens — the whole dashboard fits a desktop screen at full zoom

Browse files at this commit

4170b82aaefb204f981635e546ecda288f7e1e9bAhmet Kaan GümüşParent: 26edc8c
crates/im-web/assets/main.cssmodified+66 -0
@@ -286,6 +286,72 @@ body:has(.auth-stage) > .auth-stage::-webkit-scrollbar {
286 gap: 10px;286 gap: 10px;
287 }287 }
288 288
289+@media (min-width: 900px) {
290+ .landing {
291+ width: 1060px;
292+ display: grid;
293+ grid-template-columns: 1fr 1fr;
294+ align-items: start;
295+ gap: 16px;
296+ }
297+ .landing > .wordmark {
298+ grid-column: 1/-1;
299+ }
300+ .landing > :nth-child(2) {
301+ grid-column: 1;
302+ grid-row: 2;
303+ }
304+ .landing > :nth-child(3) {
305+ grid-column: 2;
306+ grid-row: 2;
307+ }
308+ .landing > :nth-child(4) {
309+ grid-column: 2;
310+ grid-row: 3;
311+ }
312+ .landing > :nth-child(5) {
313+ grid-column: 2;
314+ grid-row: 4;
315+ }
316+ .landing > :nth-child(6) {
317+ grid-column: 1;
318+ grid-row: 3;
319+ }
320+ .landing > :nth-child(7) {
321+ grid-column: 1;
322+ grid-row: 4;
323+ }
324+}
325+@media (min-width: 1100px) {
326+ .landing {
327+ width: 1320px;
328+ grid-template-columns: 1fr 1fr 1fr;
329+ }
330+ .landing > :nth-child(2) {
331+ grid-column: 1;
332+ grid-row: 2;
333+ }
334+ .landing > :nth-child(3) {
335+ grid-column: 1;
336+ grid-row: 3;
337+ }
338+ .landing > :nth-child(4) {
339+ grid-column: 2;
340+ grid-row: 2;
341+ }
342+ .landing > :nth-child(5) {
343+ grid-column: 2;
344+ grid-row: 3;
345+ }
346+ .landing > :nth-child(6) {
347+ grid-column: 3;
348+ grid-row: 2;
349+ }
350+ .landing > :nth-child(7) {
351+ grid-column: 3;
352+ grid-row: 3;
353+ }
354+}
289 .wordmark {355 .wordmark {
290 display: flex;356 display: flex;
291 align-items: center;357 align-items: center;
crates/im-web/src/pages.rsmodified+4 -2
@@ -228,7 +228,9 @@ async fn totp(cx: &Cx) -> Result<Response> {
228 </div>228 </div>
229 </main>229 </main>
230 };230 };
231- shell(cx, t(lang, Key::TitleTotp), None, stage).await?.into_response(cx)231+ shell(cx, t(lang, Key::TitleTotp), None, stage)
232+ .await?
233+ .into_response(cx)
232 }234 }
233 _ => see_other("/login").into_response(cx),235 _ => see_other("/login").into_response(cx),
234 }236 }
@@ -581,7 +583,7 @@ async fn signed_in(cx: &Cx, user: &im_core::model::User) -> Result {
581 let stage = view! {583 let stage = view! {
582 cx =>584 cx =>
583 <main class="auth-stage">585 <main class="auth-stage">
584- <div class="auth-column">586+ <div class="auth-column landing">
585 (wordmark(cx).await?)587 (wordmark(cx).await?)
586 <div class="auth-card">588 <div class="auth-card">
587 <div class="profile-head">589 <div class="profile-head">
style/main.scssmodified+40 -0
@@ -236,6 +236,46 @@ body:has(.auth-stage) {
236 gap: 10px;236 gap: 10px;
237 }237 }
238 238
239+// The signed-in landing is a dashboard, not a gate: six cards in one 520px
240+// column run twice the height of a desktop window. Wide viewports spread the
241+// cards across columns so the whole page is on screen; narrow ones keep the
242+// single file. Placement is explicit per card (source order: wordmark,
243+// profile, stats, sessions, preferences, password, sign-out) so the columns
244+// balance by height instead of pairing by source order.
245+@media (min-width: 900px) {
246+ .landing {
247+ width: 1060px;
248+ display: grid;
249+ grid-template-columns: 1fr 1fr;
250+ align-items: start;
251+ gap: 16px;
252+
253+ > .wordmark { grid-column: 1 / -1; }
254+ // Tall cards (profile, password) anchor the left; the short ones stack
255+ // right. Row heights couple, so this pairing is what keeps it shortest.
256+ > :nth-child(2) { grid-column: 1; grid-row: 2; } // profile
257+ > :nth-child(3) { grid-column: 2; grid-row: 2; } // stats
258+ > :nth-child(4) { grid-column: 2; grid-row: 3; } // sessions
259+ > :nth-child(5) { grid-column: 2; grid-row: 4; } // preferences
260+ > :nth-child(6) { grid-column: 1; grid-row: 3; } // password
261+ > :nth-child(7) { grid-column: 1; grid-row: 4; } // sign out
262+ }
263+}
264+
265+@media (min-width: 1100px) {
266+ .landing {
267+ width: 1320px;
268+ grid-template-columns: 1fr 1fr 1fr;
269+
270+ > :nth-child(2) { grid-column: 1; grid-row: 2; } // profile
271+ > :nth-child(3) { grid-column: 1; grid-row: 3; } // stats
272+ > :nth-child(4) { grid-column: 2; grid-row: 2; } // sessions
273+ > :nth-child(5) { grid-column: 2; grid-row: 3; } // preferences
274+ > :nth-child(6) { grid-column: 3; grid-row: 2; } // password
275+ > :nth-child(7) { grid-column: 3; grid-row: 3; } // sign out
276+ }
277+}
278+
239 // The brand lockup. Lower case, and not by taste: capitalised, the dotted279 // The brand lockup. Lower case, and not by taste: capitalised, the dotted
240 // `i` becomes `I` and the name reads as the English word. The tittle is the280 // `i` becomes `I` and the name reads as the English word. The tittle is the
241 // Turkish one, in the word as it is in the mark.281 // Turkish one, in the word as it is in the mark.