Skip to content

Commit 53ca622

Browse files
committed
Calm the hub layout: fewer competing blocks, more room
- Hero: one message and two actions (start-point quiz, curriculum); the five sites as a quiet list; partner lines without extra copy - Numbers as four plain figures; the duplicate curriculum ladder in the hero is gone - Curriculum opens on the step-by-step view; the track map is the second tab - Builder gets its own section: top three, everyone else as a static grid, medals and the full history folded behind two rows - Events: the next Data Forum large, past ones as single rows; academic events as a plain card - Cards sit on a gray page without outlines; one heading and one line per section - Phones: full-width hero buttons, goals in one swipeable row
1 parent d93b3db commit 53ca622

3 files changed

Lines changed: 204 additions & 61 deletions

File tree

‎assets/css/hub.css‎

Lines changed: 148 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -950,13 +950,13 @@ button.btn.sm { font-size: 14px; }
950950

951951
/* Cohort chips: only the cohorts a Builder took part in */
952952
.ro-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
953-
.cc { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
954-
.cc b { font-size: 12.5px; font-weight: 800; }
955-
.cc i { font-style: normal; font-weight: 800; opacity: .85; }
956-
.cc.b { background: var(--c); color: var(--on-line); }
957-
.cc.b.live { background: transparent; color: var(--ink); outline: 1.5px dashed var(--c); outline-offset: -1.5px; }
958-
.cc.r { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, var(--rule)); }
959-
.cc.r b { color: var(--ink); }
953+
.ro-strip .cc, .roster-legend .cc { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
954+
.ro-strip .cc b, .roster-legend .cc b { font-size: 12.5px; font-weight: 800; }
955+
.ro-strip .cc i { font-style: normal; font-weight: 800; opacity: .85; }
956+
.ro-strip .cc.b, .roster-legend .cc.b { background: var(--c); color: var(--on-line); }
957+
.ro-strip .cc.b.live, .roster-legend .cc.b.live { background: transparent; color: var(--ink); outline: 1.5px dashed var(--c); outline-offset: -1.5px; }
958+
.ro-strip .cc.r, .roster-legend .cc.r { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, var(--rule)); }
959+
.ro-strip .cc.r b, .roster-legend .cc.r b { color: var(--ink); }
960960
.roster-legend .cc { margin-right: 6px; }
961961
.ro-medal, .pc-medal { display: inline-flex; vertical-align: -4px; margin-left: 6px; }
962962
.ro-medal .medal, .pc-medal .medal { height: 21px; width: auto; }
@@ -1058,3 +1058,144 @@ button.btn.sm { font-size: 14px; }
10581058
/* inside a dialog on phones the toast sits at the bottom, clear of the close button */
10591059
@media (max-width: 900px) { dialog .toast { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 180%); } dialog .toast.show { transform: translate(-50%, 0); } }
10601060
.bp-badge pre code { font-size: inherit; }
1061+
1062+
/* ==========================================================================
1063+
Calm layout: gray page, white cards without outlines, more room, fewer
1064+
competing details. Comes last so it settles the look of every page.
1065+
========================================================================== */
1066+
:root:not([data-theme="dark"]) { --paper: #F2F4F6; --rule: #E5E8EC; --muted: #4E5568; }
1067+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0E1020; --rule: #2C3150; --muted: #A2A6C2; } }
1068+
1069+
/* cards: separated by the page colour, not by lines */
1070+
.tile, .ladder-card, .map-card, .roster, .event, .steps li, .medal-ladder, .continue, .fresh,
1071+
.bp-badge, .lab-panel, .lab-chart, .gm-card, .notice, .daily, .article-card { border: 0 !important; box-shadow: none; }
1072+
.ep > button, .pcard > button, .bi-list a, .bp-repos a { border-color: transparent; }
1073+
.ep > button:hover, .pcard > button:hover, .bi-list a:hover, .bp-repos a:hover { border-color: transparent; box-shadow: 0 6px 20px rgba(20, 22, 43, .08); }
1074+
.tile, .map-card, .roster, .event, .steps li, .medal-ladder, .daily, .lab-panel, .lab-chart, .gm-card, .bp-badge { border-radius: 20px; }
1075+
1076+
/* sections: one heading, one line under it, generous space */
1077+
.band { padding-block: 72px; }
1078+
.band + .band { border-top: 0; }
1079+
.section-head { display: block; margin-bottom: 28px; }
1080+
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
1081+
.section-head p { margin-top: 8px; font-size: 16px; max-width: 46em; }
1082+
@media (max-width: 720px) { .band { padding-block: 52px; } }
1083+
1084+
/* hero: brand panel with one message, two actions, and the five sites */
1085+
.hero { padding-block: 24px 0; }
1086+
.banner { padding: 52px 56px; gap: 28px 56px; }
1087+
.banner::before { background: radial-gradient(50% 80% at 90% 10%, rgba(255, 255, 255, .1), transparent 60%); }
1088+
.banner-lede { font-size: 18px; line-height: 1.6; }
1089+
.banner-cta { margin-top: 30px; }
1090+
.banner-cta .pill { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; }
1091+
.banner-cta .pill:not(.solid) { border-color: transparent; background: rgba(255, 255, 255, .14); }
1092+
.banner-cta .pill:not(.solid):hover { background: rgba(255, 255, 255, .22); }
1093+
.banner-mark { display: none; }
1094+
.featured { gap: 4px; }
1095+
.featured a { border: 0; background: transparent; padding: 10px 12px; border-radius: 12px; }
1096+
.featured a:hover { background: rgba(255, 255, 255, .12); }
1097+
.featured .tag { width: auto; min-width: 0; padding: 0; background: none; color: rgba(255, 255, 255, .62); font-weight: 700; text-align: left; order: 2; }
1098+
.featured .tx { order: 1; }
1099+
.featured .st { order: 3; }
1100+
.featured .out { order: 4; }
1101+
.banner-side { padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .08); align-self: stretch; justify-content: center; }
1102+
.partner { border-top: 0; margin-top: 30px; padding-top: 0; }
1103+
.partner-k span { display: none; }
1104+
.partner-list a { border: 0 !important; background: rgba(255, 255, 255, .1) !important; }
1105+
.academy a { border: 0; background: transparent; padding: 6px 0; }
1106+
@media (max-width: 860px) { .banner { padding: 32px 22px; } .banner-side { margin-top: 24px; } }
1107+
1108+
/* numbers: four big figures, no charts */
1109+
.hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
1110+
.growth { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
1111+
.tile { min-height: 0; padding: 20px 22px; gap: 4px; }
1112+
.tile .spark, .tile .mini-bars, .tile .spark-empty { display: none; }
1113+
.tile-value { font-size: 34px; }
1114+
@media (max-width: 760px) { .growth { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-value { font-size: 28px; } .tile { padding: 16px; } }
1115+
1116+
/* today's question */
1117+
.daily-band { padding-block: 12px 0; }
1118+
.daily { padding: 26px 28px; }
1119+
.daily-claim { background: var(--surface-2); }
1120+
.daily-claim span { color: var(--muted); }
1121+
1122+
/* goals and tabs */
1123+
.goal-row { margin-bottom: 4px; }
1124+
.chip { border: 0; background: var(--surface); min-height: 42px; padding: 8px 16px; }
1125+
.chip:hover { background: var(--surface-2); }
1126+
.chip.quiz-chip { border: 0; background: var(--accent-soft); }
1127+
.tabs.big { border-bottom: 0; gap: 6px; padding: 0; margin: 18px 0 14px; }
1128+
.tabs.big button { border-radius: 999px; min-height: 40px; padding: 8px 16px; }
1129+
.tabs.big button[aria-selected="true"] { background: var(--ink); color: var(--surface); }
1130+
.tabs.big button[aria-selected="true"] .tab-n { background: rgba(255, 255, 255, .2); color: inherit; }
1131+
1132+
/* Builder section */
1133+
.tcard > button { background: var(--surface); border: 0; }
1134+
.tcard > button:hover { transform: none; box-shadow: 0 8px 24px rgba(20, 22, 43, .08); }
1135+
.t-rank { color: color-mix(in srgb, var(--c) 70%, var(--surface)); }
1136+
.tcard.is-picked > button, .pcard.is-picked > button { box-shadow: 0 0 0 2px var(--c); }
1137+
.rail-head { margin-top: 8px; }
1138+
.people-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
1139+
.people-grid .pcard { width: auto; }
1140+
.people-grid .pcard > button { width: 100%; background: var(--surface); }
1141+
.people-rail { overflow: visible; -webkit-mask-image: none; mask-image: none; }
1142+
.fold { margin-top: 10px; border-radius: 20px; background: var(--surface); }
1143+
.fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 20px 22px; }
1144+
.fold > summary::-webkit-details-marker { display: none; }
1145+
.fold > summary span { font-size: 17px; font-weight: 800; }
1146+
.fold > summary small { font-size: 14px; color: var(--muted); }
1147+
.fold > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); align-self: center; transition: transform .15s ease; }
1148+
.fold[open] > summary::after { transform: rotate(-135deg); }
1149+
.fold > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 20px; }
1150+
.fold > :not(summary) { margin: 0 22px 22px; }
1151+
.fold .medal-ladder { margin: 0 10px 10px; padding: 8px 12px 16px; background: none; }
1152+
.fold .ml-head h3 { display: none; }
1153+
.fold .roster { box-shadow: inset 0 0 0 1px var(--rule); }
1154+
1155+
/* events: the next one large, the past ones as rows */
1156+
.events { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
1157+
.event.next { padding: 28px; gap: 10px; }
1158+
.event.next .soon-tag { background: var(--l-exp); }
1159+
.event.next .ord { font-size: 44px; }
1160+
.event.next h3 { font-size: 20px; }
1161+
.event.next .btn.sm, .event.next .ppl { margin-top: auto; }
1162+
.event-past { background: var(--surface); border-radius: 20px; padding: 22px 24px; }
1163+
.ev-sum { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
1164+
.event-past ol { list-style: none; margin: 0; padding: 0; }
1165+
.event.past { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-radius: 0; background: none; }
1166+
.event.past + .event.past { border-top: 1px solid var(--rule); }
1167+
.event.past .ord { font-size: 18px; }
1168+
.event.past .ev-name { display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 600; }
1169+
.event.past .ev-name a { color: var(--ink); text-decoration: none; }
1170+
.event.past .ev-name a:hover { text-decoration: underline; }
1171+
.event.past .ev-n { font-size: 14px; color: var(--muted); white-space: nowrap; }
1172+
.event.past .ev-n b { font-family: var(--f-display); font-size: 18px; color: var(--ink); }
1173+
@media (max-width: 860px) { .events { grid-template-columns: minmax(0, 1fr); } .event.next { padding: 22px; } }
1174+
1175+
/* academic events: a quiet card instead of a second banner */
1176+
.stage { background: var(--surface); color: var(--ink); padding: 26px 28px; border-radius: 20px; margin-top: 12px; }
1177+
.stage-k { color: var(--accent); }
1178+
.stage-head p { color: var(--muted); }
1179+
.stage-list a { background: var(--surface-2); border: 0; color: var(--ink); }
1180+
.stage-list a:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); border: 0; }
1181+
.sg-en, .sg-when { color: var(--muted); }
1182+
.sg-about { color: var(--ink); }
1183+
.sg-go { color: var(--accent); }
1184+
.stage-list a:focus-visible { outline-color: var(--focus); }
1185+
1186+
/* reading and joining */
1187+
.article-card { background: var(--surface); border-radius: 20px; }
1188+
.steps li { background: var(--surface); }
1189+
/* this week's pick: a plain card, the colour only as a thin edge */
1190+
.spot { background: var(--surface); border: 0; }
1191+
.spot::before { width: 4px; }
1192+
.week { margin: 28px 0 0; }
1193+
.shelf-foot { margin-top: 4px; }
1194+
@media (max-width: 760px) {
1195+
.banner-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
1196+
.banner-cta .pill { justify-content: center; width: 100%; }
1197+
/* goals in one swipeable row instead of four lines */
1198+
.goal-row .route-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 2px var(--gutter-r) 6px var(--gutter-l); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
1199+
.goal-row .route-chips::-webkit-scrollbar { display: none; }
1200+
.goal-row .route-chips .chip { flex-shrink: 0; }
1201+
}

0 commit comments

Comments
 (0)