Skip to content

Commit 727406e

Browse files
Edwin Chanclaude
authored andcommitted
fix(ftw): tighten lobby layout and align rules row
- Hero/intro panels now align to start so the rules pills sit at the top of the row instead of vertically centering against the stat card. Reads cleaner when the description wraps. - Rules list rendered as small chips (one per rule) instead of an inline run-on. The 6 pts / 1 pt / 0 cases are visually parallel. - Active topic chip becomes pink in light mode (was near-black, fought the new pink primary CTA). Dark mode unchanged. - Solo run / Host room / Join input share the same 42px height so the control row doesn't stair-step. - Leaderboard / recent panels stretch equal heights, empty states render as boxed dashed messages so the two cards balance. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c8fe144 commit 727406e

1 file changed

Lines changed: 45 additions & 10 deletions

File tree

app/globals.css

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5546,7 +5546,7 @@ html:not(.dark) .typewriter-cursor {
55465546
display: grid;
55475547
grid-template-columns: minmax(0, 1fr) auto;
55485548
gap: 24px;
5549-
align-items: center;
5549+
align-items: start;
55505550
padding: 24px 28px;
55515551
border: 1px solid var(--color-border);
55525552
border-radius: var(--radius-card);
@@ -5563,24 +5563,35 @@ html:not(.dark) .typewriter-cursor {
55635563

55645564
.ftw-intro p {
55655565
color: var(--color-muted);
5566-
margin: 0 0 12px;
5566+
margin: 0 0 14px;
55675567
max-width: 56ch;
55685568
line-height: 1.55;
55695569
}
55705570

55715571
.ftw-rules {
55725572
display: flex;
55735573
flex-wrap: wrap;
5574-
gap: 8px 14px;
5574+
gap: 8px;
55755575
list-style: none;
55765576
padding: 0;
55775577
margin: 0;
55785578
color: var(--color-muted);
5579-
font-size: 0.92rem;
5579+
font-size: 0.85rem;
5580+
}
5581+
5582+
.ftw-rules li {
5583+
display: inline-flex;
5584+
align-items: center;
5585+
gap: 6px;
5586+
padding: 4px 10px;
5587+
border-radius: 999px;
5588+
background: var(--color-surface-alt);
5589+
border: 1px solid var(--color-border);
55805590
}
55815591

55825592
.ftw-rules strong {
55835593
color: var(--color-pink);
5594+
font-weight: 800;
55845595
}
55855596

55865597
.ftw-hero-stat {
@@ -5592,6 +5603,7 @@ html:not(.dark) .typewriter-cursor {
55925603
border-radius: var(--radius-card);
55935604
background: var(--color-surface-alt);
55945605
color: var(--color-pink);
5606+
min-width: 180px;
55955607
}
55965608

55975609
.ftw-hero-stat strong {
@@ -5651,13 +5663,13 @@ html:not(.dark) .typewriter-cursor {
56515663
}
56525664

56535665
.ftw-tag.is-active {
5654-
background: var(--color-text-strong);
5655-
border-color: var(--color-text-strong);
5656-
color: var(--color-surface);
5666+
background: var(--color-pink);
5667+
border-color: var(--color-pink);
5668+
color: #ffffff;
56575669
}
56585670

56595671
.ftw-tag.is-active span {
5660-
color: rgba(255, 255, 255, 0.7);
5672+
color: rgba(255, 255, 255, 0.78);
56615673
}
56625674

56635675
html.dark .ftw-tag.is-active,
@@ -5681,6 +5693,12 @@ html:not(.light) .ftw-tag.is-active {
56815693
display: grid;
56825694
grid-template-columns: repeat(2, minmax(0, 1fr));
56835695
gap: 20px;
5696+
align-items: stretch;
5697+
}
5698+
5699+
.ftw-grid > .panel {
5700+
display: flex;
5701+
flex-direction: column;
56845702
}
56855703

56865704
@media (max-width: 720px) {
@@ -5698,11 +5716,18 @@ html:not(.light) .ftw-tag.is-active {
56985716
flex-direction: column;
56995717
gap: 6px;
57005718
padding-top: 6px;
5719+
flex: 1;
57015720
}
57025721

57035722
.ftw-empty {
57045723
color: var(--color-muted);
5705-
margin: 8px 0;
5724+
margin: 0;
5725+
padding: 18px 6px;
5726+
text-align: center;
5727+
border: 1px dashed var(--color-border);
5728+
border-radius: var(--radius-card);
5729+
background: var(--color-surface-alt);
5730+
font-size: 0.88rem;
57065731
}
57075732

57085733
.ftw-leader-row {
@@ -6139,6 +6164,11 @@ html:not(.light) .ftw-rank.rank-1 {
61396164
flex-wrap: wrap;
61406165
}
61416166

6167+
.ftw-mode-row .primary-action,
6168+
.ftw-mode-row .secondary-action {
6169+
min-height: 42px;
6170+
}
6171+
61426172
.ftw-join-row {
61436173
display: flex;
61446174
gap: 8px;
@@ -6148,9 +6178,14 @@ html:not(.light) .ftw-rank.rank-1 {
61486178
color: var(--color-muted);
61496179
}
61506180

6181+
.ftw-join-row .secondary-action {
6182+
min-height: 42px;
6183+
}
6184+
61516185
.ftw-code-input {
61526186
flex: 1;
6153-
max-width: 160px;
6187+
max-width: 180px;
6188+
height: 42px;
61546189
text-transform: uppercase;
61556190
letter-spacing: 0.18em;
61566191
font-weight: 800;

0 commit comments

Comments
 (0)