From d908c3264da61d5000fe12ebc48e41a1ad830e66 Mon Sep 17 00:00:00 2001 From: Noel Sabia Date: Sat, 14 Nov 2026 14:15:28 +0100 Subject: [PATCH] feat: simplify the Cool City phone decision - replace the three stacked route cards with a Shortest | Shaded | Accessible segmented control and one large card - default to Accessible for Ruth; keep the 16:00 trade-off visible as one sentence - fold the audience vote into the card's primary action so the mobile action stays above the fold - soften cards with a 28 px radius, soft shadow and one subtle selected ring - leave the stage and city information architecture intact --- app/assets/css/cool.css | 125 +-------- app/components/CoolRouteCard.vue | 276 +++++++++---------- app/pages/cool/city.vue | 11 +- app/pages/cool/index.vue | 460 ++++++++++++++++--------------- app/pages/cool/stage.vue | 45 +-- app/utils/cool.ts | 1 + 6 files changed, 391 insertions(+), 527 deletions(-) diff --git a/app/assets/css/cool.css b/app/assets/css/cool.css index f70a87a..6b6cf4c 100644 --- a/app/assets/css/cool.css +++ b/app/assets/css/cool.css @@ -146,15 +146,6 @@ body.pc-cool-presentation, padding: 0.4rem 0 0.7rem; } -.cc-ruth__label { - margin: 0; - color: var(--cc-muted); - font-size: 0.72rem; - font-weight: 650; - letter-spacing: 0.06em; - text-transform: uppercase; -} - .cc-ruth h1 { max-width: 13ch; margin: 0; @@ -233,83 +224,6 @@ body.pc-cool-presentation, accent-color: var(--cc-shade); } -.cc-routes { - display: flex; - flex-direction: column; - gap: 0.2rem; -} - -.cc-routes__head { - display: flex; - flex-wrap: wrap; - align-items: baseline; - justify-content: space-between; - gap: 0.45rem; -} - -.cc-routes__head h2 { - margin: 0; - font-size: 1.55rem; - font-weight: 800; - letter-spacing: -0.04em; - line-height: 1; -} - -.cc-model { - margin: 0; - color: var(--cc-muted); - font-size: 0.72rem; - line-height: 1.35; -} - -.cc-model strong { - color: var(--cc-ink); - font-weight: 750; -} - -.cc-vote { - display: flex; - flex-direction: column; -} - -.cc-vote__head { - display: flex; - flex-wrap: wrap; - align-items: baseline; - justify-content: space-between; - gap: 0.45rem; -} - -.cc-vote__head h2 { - margin: 0; - font-size: 1.45rem; - font-weight: 800; - letter-spacing: -0.04em; -} - -.cc-vote__lede { - max-width: 52ch; - margin: 0.35rem 0 0.8rem; - color: var(--cc-muted); - font-size: 0.84rem; - line-height: 1.45; -} - -.cc-vote__lede strong { - color: var(--cc-ink); -} - -.cc-vote__status { - margin: 0.5rem 0 0; - color: var(--cc-muted); - font-size: 0.86rem; - line-height: 1.45; -} - -.cc-vote__status strong { - color: var(--cc-ink); -} - .cc-vote-only { display: flex; min-height: calc(100dvh - 62px); @@ -464,22 +378,6 @@ body.pc-cool-presentation, font-size: 0.92rem; } -.cc-vote__buttons, -.cc-vote-only__buttons { - display: grid; - grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: 0.45rem; -} - -.cc-vote__buttons :deep(.onyx-button), -.cc-vote-only__buttons :deep(.onyx-button) { - width: 100%; -} - -.cc-vote__buttons :deep(.onyx-button__label) { - font-size: 0.84rem; -} - /* Stage ----------------------------------------------------------------- */ .cc-stage { @@ -564,7 +462,6 @@ body.pc-cool-presentation, grid-template-areas: "ruth routes" "time routes" - "vote routes" "details details" "footer footer"; gap: 1rem 1.5rem; @@ -585,22 +482,10 @@ body.pc-cool-presentation, grid-area: time; } - .cc-vote { - grid-area: vote; - } - - .cc-routes { + .cc-route { grid-area: routes; } - .cc-routes__head h2 { - font-size: 2rem; - } - - .cc-routes .cc-route-list { - gap: 0.75rem; - } - .cc-details { grid-area: details; margin-top: 0.5rem; @@ -630,14 +515,6 @@ body.pc-cool-presentation, .cc-phone { padding-inline: 0.8rem; } - - .cc-vote__buttons { - grid-template-columns: minmax(0, 1fr); - } - - .cc-vote__buttons :deep(.onyx-button) { - min-height: 48px; - } } @media (prefers-reduced-motion: reduce) { diff --git a/app/components/CoolRouteCard.vue b/app/components/CoolRouteCard.vue index ae90012..f4b5664 100644 --- a/app/components/CoolRouteCard.vue +++ b/app/components/CoolRouteCard.vue @@ -1,60 +1,43 @@ diff --git a/app/pages/cool/city.vue b/app/pages/cool/city.vue index 842323e..17633c6 100644 --- a/app/pages/cool/city.vue +++ b/app/pages/cool/city.vue @@ -59,7 +59,6 @@ useHead({
-

Cooling gap · relative model

Where the city should act first.

Eight sensor catchments, ranked by footfall, shade deficit, access deficit and vulnerability. @@ -101,8 +100,8 @@ useHead({

-

Rank {{ selected.rank }} · {{ selected.sensor_name }}

What would help

+

Rank {{ selected.rank }} · {{ selected.sensor_name }} · {{ selected.sensor_id }}

{{ selected.reason }}

  • {{ item }}
  • @@ -164,13 +163,11 @@ useHead({ padding-bottom: 1.1rem; } -.cc-city__kicker { - margin: 0; +.cc-city__rankline { + margin: 0.25rem 0 0.3rem; color: var(--cc-muted); font-size: 0.7rem; - font-weight: 650; - letter-spacing: 0.06em; - text-transform: uppercase; + font-variant-numeric: tabular-nums; } .cc-city__head h1 { diff --git a/app/pages/cool/index.vue b/app/pages/cool/index.vue index 7681898..dc3397c 100644 --- a/app/pages/cool/index.vue +++ b/app/pages/cool/index.vue @@ -1,6 +1,7 @@