- add /cool, /cool?vote=1, /cool/stage and /cool/city on the existing Nuxt/Onyx stack - wire real route/shade metrics and OSM geometry from the route bundle; city-gap data for the city view - show shade % and direct-sun minutes together; recommend Accessible for Ruth with the 15% ramp trade-off - add in-memory time/scene/round state and one anonymous vote per session, polled every 2 s - keep the retail module linked but out of the Cool City story
This commit is contained in:
1 parent
33063afbdf
commit
2bc52a314d
28 files changed
+8633
-45
No files matched your search
@@ -0,0 +1,649 @@
|
||||
:root {
|
||||
--cc-ground: #f6f3ee;
|
||||
--cc-surface: rgba(255, 255, 255, 0.86);
|
||||
--cc-surface-solid: #fffdf9;
|
||||
--cc-ink: #121212;
|
||||
--cc-ink-2: #343434;
|
||||
--cc-muted: #6b6b6b;
|
||||
--cc-line: rgba(18, 18, 18, 0.12);
|
||||
--cc-line-strong: rgba(18, 18, 18, 0.24);
|
||||
--cc-heat: #e4572e;
|
||||
--cc-heat-text: #a83a19;
|
||||
--cc-heat-soft: #fbe8e2;
|
||||
--cc-shade: #2f6fed;
|
||||
--cc-shade-deep: #1f4fae;
|
||||
--cc-shade-soft: #e5edff;
|
||||
--cc-water: #3aa6b9;
|
||||
--cc-focus: #a83a19;
|
||||
--cc-radius: 28px;
|
||||
--cc-shadow: 0 18px 60px rgba(18, 18, 18, 0.12);
|
||||
--cc-shadow-soft: 0 8px 26px rgba(18, 18, 18, 0.07);
|
||||
--cc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
|
||||
|
||||
--cc-dark: #0b1114;
|
||||
--cc-dark-2: #14191c;
|
||||
--cc-dark-3: #1d2428;
|
||||
--cc-dark-line: rgba(255, 255, 255, 0.14);
|
||||
--cc-dark-muted: #a3a3a3;
|
||||
--cc-heat-bright: #ff6b3d;
|
||||
--cc-shade-bright: #6fa8ff;
|
||||
--cc-water-bright: #7ad1df;
|
||||
--cc-focus-dark: #ff9b76;
|
||||
}
|
||||
|
||||
body.pc-cool-presentation {
|
||||
background: var(--cc-ground);
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
body.pc-cool-presentation,
|
||||
.cc-cool,
|
||||
.cc-stage {
|
||||
font-family: var(--cc-font);
|
||||
}
|
||||
|
||||
.cc-cool,
|
||||
.cc-cool *,
|
||||
.cc-cool *::before,
|
||||
.cc-cool *::after,
|
||||
.cc-stage,
|
||||
.cc-stage *,
|
||||
.cc-stage *::before,
|
||||
.cc-stage *::after,
|
||||
.cc-city,
|
||||
.cc-city *,
|
||||
.cc-city *::before,
|
||||
.cc-city *::after {
|
||||
box-sizing: border-box;
|
||||
font-family: var(--cc-font);
|
||||
}
|
||||
|
||||
.cc-cool {
|
||||
min-height: 100dvh;
|
||||
padding-bottom: 3rem;
|
||||
background: var(--cc-ground);
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
/* Top bar --------------------------------------------------------------- */
|
||||
|
||||
.cc-topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.55rem 0.9rem;
|
||||
min-height: 60px;
|
||||
padding: 0.65rem 1rem;
|
||||
border-bottom: 1px solid var(--cc-line);
|
||||
background: color-mix(in srgb, var(--cc-ground) 88%, transparent);
|
||||
backdrop-filter: blur(18px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
||||
}
|
||||
|
||||
.cc-wordmark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--cc-ink);
|
||||
font-size: 0.96rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.03em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cc-mark {
|
||||
display: block;
|
||||
width: 0.55rem;
|
||||
height: 1.25rem;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(180deg, var(--cc-heat) 0 50%, var(--cc-shade) 50% 100%);
|
||||
}
|
||||
|
||||
.cc-topbar__place {
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.72rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.cc-topbar__status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
margin-inline-start: auto;
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.62rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.cc-topbar__status i {
|
||||
display: block;
|
||||
width: 0.4rem;
|
||||
height: 0.4rem;
|
||||
border-radius: 50%;
|
||||
background: var(--cc-shade);
|
||||
}
|
||||
|
||||
/* Phone ----------------------------------------------------------------- */
|
||||
|
||||
.cc-phone {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
max-width: 35rem;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
margin-inline: auto;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.cc-ruth {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.45rem;
|
||||
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;
|
||||
font-size: clamp(2.6rem, 10.8vw, 4.2rem);
|
||||
font-weight: 850;
|
||||
letter-spacing: -0.06em;
|
||||
line-height: 0.9;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.cc-ruth__copy {
|
||||
max-width: 46ch;
|
||||
margin: 0.15rem 0 0;
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.98rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.cc-ruth__tag {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
margin-top: 0.25rem;
|
||||
padding: 0.18rem 0.5rem;
|
||||
border: 1px solid var(--cc-line);
|
||||
border-radius: 999px;
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.6rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.cc-panel {
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--cc-line);
|
||||
border-radius: var(--cc-radius);
|
||||
background: var(--cc-surface);
|
||||
box-shadow: var(--cc-shadow-soft);
|
||||
backdrop-filter: blur(18px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
||||
}
|
||||
|
||||
.cc-time__head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 0.7rem;
|
||||
margin-bottom: 0.55rem;
|
||||
}
|
||||
|
||||
.cc-time__head h2 {
|
||||
margin: 0;
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cc-time__head strong {
|
||||
font-size: clamp(2.6rem, 10vw, 3.6rem);
|
||||
font-weight: 850;
|
||||
letter-spacing: -0.06em;
|
||||
line-height: 0.9;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.cc-time :deep(.onyx-slider__marks),
|
||||
.cc-time :deep(.onyx-slider__mark-label) {
|
||||
color: var(--cc-muted);
|
||||
font-family: var(--cc-font);
|
||||
font-size: 0.65rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.cc-time :deep(.onyx-slider__track) {
|
||||
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);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2rem 1rem 3rem;
|
||||
}
|
||||
|
||||
.cc-vote-only__inner {
|
||||
width: 100%;
|
||||
max-width: 34rem;
|
||||
}
|
||||
|
||||
.cc-vote-only h1 {
|
||||
max-width: 10ch;
|
||||
margin: 0;
|
||||
font-size: clamp(3rem, 12vw, 5rem);
|
||||
font-weight: 850;
|
||||
letter-spacing: -0.06em;
|
||||
line-height: 0.9;
|
||||
}
|
||||
|
||||
.cc-vote-only__lede {
|
||||
max-width: 34ch;
|
||||
margin: 0.8rem 0 1.4rem;
|
||||
color: var(--cc-muted);
|
||||
font-size: 1rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.cc-vote-only__buttons {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.cc-vote-only__confirmation {
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--cc-line);
|
||||
border-radius: 24px;
|
||||
background: var(--cc-surface);
|
||||
}
|
||||
|
||||
.cc-vote-only__confirmation p {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.cc-details {
|
||||
border: 1px solid var(--cc-line);
|
||||
border-radius: 24px;
|
||||
background: var(--cc-surface);
|
||||
}
|
||||
|
||||
.cc-details summary:focus-visible,
|
||||
.cc-city__method summary:focus-visible {
|
||||
outline: 2px solid var(--cc-focus);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.cc-details summary {
|
||||
padding: 0.9rem 1rem;
|
||||
color: var(--cc-ink);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 650;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cc-details__body {
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
padding: 0 1rem 1rem;
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.82rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.cc-details__body p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.cc-details__body strong {
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
.cc-details__links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.8rem;
|
||||
padding-top: 0.3rem;
|
||||
}
|
||||
|
||||
.cc-details__links a {
|
||||
color: var(--cc-ink);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.cc-phone__footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 0.4rem 1rem;
|
||||
padding-top: 1.1rem;
|
||||
border-top: 1px solid var(--cc-line);
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.68rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
/* Onyx theming on the phone --------------------------------------------- */
|
||||
|
||||
.cc-cool {
|
||||
--onyx-font-family-paragraph: var(--cc-font);
|
||||
--onyx-font-family-h1: var(--cc-font);
|
||||
--onyx-font-family-h2: var(--cc-font);
|
||||
--onyx-font-family-h3: var(--cc-font);
|
||||
--onyx-font-family-h4: var(--cc-font);
|
||||
--onyx-font-family-data: var(--cc-font);
|
||||
--onyx-radius-component-button: 999px;
|
||||
--onyx-radius-component-container-soft: var(--cc-radius);
|
||||
--onyx-radius-component-input: 999px;
|
||||
--onyx-color-base-primary-500: var(--cc-ink);
|
||||
--onyx-color-base-primary-600: var(--cc-ink);
|
||||
--onyx-color-base-primary-900: var(--cc-ink);
|
||||
--onyx-color-component-cta-default: var(--cc-ink);
|
||||
--onyx-color-component-cta-default-hover: #000;
|
||||
--onyx-color-text-icons-neutral-button: #fff;
|
||||
--onyx-color-component-focus-primary: var(--cc-heat);
|
||||
}
|
||||
|
||||
.cc-cool :deep(.onyx-button) {
|
||||
min-height: 52px;
|
||||
border-radius: 999px;
|
||||
font-family: var(--cc-font);
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.cc-cool :deep(.onyx-button--outline) {
|
||||
border-color: var(--cc-line-strong);
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
.cc-cool :deep(.onyx-button--outline:hover) {
|
||||
background: var(--cc-ink);
|
||||
border-color: var(--cc-ink);
|
||||
color: var(--cc-ground);
|
||||
}
|
||||
|
||||
.cc-cool :deep(.onyx-button__label) {
|
||||
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 {
|
||||
position: relative;
|
||||
display: flex;
|
||||
height: 100dvh;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background: var(--cc-dark);
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
.cc-stage__top {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
gap: 0.7rem;
|
||||
padding: 0.65rem clamp(1rem, 2.4vw, 2.4rem);
|
||||
border-bottom: 1px solid var(--cc-line);
|
||||
background: color-mix(in srgb, var(--cc-dark) 86%, transparent);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.cc-stage__wordmark {
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
.cc-stage__place {
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cc-stage__round {
|
||||
margin-inline-start: auto;
|
||||
color: var(--cc-muted);
|
||||
font-size: 0.7rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.cc-dark {
|
||||
--cc-ground: #0b1114;
|
||||
--cc-surface: rgba(23, 28, 31, 0.88);
|
||||
--cc-surface-solid: #131a1e;
|
||||
--cc-ink: #f5f3ef;
|
||||
--cc-ink-2: #dedbd4;
|
||||
--cc-muted: #a3a3a3;
|
||||
--cc-line: rgba(255, 255, 255, 0.14);
|
||||
--cc-line-strong: rgba(255, 255, 255, 0.26);
|
||||
--cc-heat: #ff6b3d;
|
||||
--cc-heat-text: #ff9b76;
|
||||
--cc-heat-soft: #2b1711;
|
||||
--cc-shade: #6fa8ff;
|
||||
--cc-shade-deep: #a9c8ff;
|
||||
--cc-shade-soft: #142238;
|
||||
--cc-water: #7ad1df;
|
||||
--cc-focus: #ff9b76;
|
||||
--cc-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
|
||||
--cc-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
.cc-dark .cc-wordmark {
|
||||
color: var(--cc-ink);
|
||||
}
|
||||
|
||||
.cc-dark .cc-topbar {
|
||||
background: color-mix(in srgb, var(--cc-dark) 86%, transparent);
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.cc-phone {
|
||||
display: grid;
|
||||
max-width: 72rem;
|
||||
grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
|
||||
grid-template-areas:
|
||||
"ruth routes"
|
||||
"time routes"
|
||||
"vote routes"
|
||||
"details details"
|
||||
"footer footer";
|
||||
gap: 1rem 1.5rem;
|
||||
align-items: start;
|
||||
padding: 1.5rem 1.5rem 3rem;
|
||||
}
|
||||
|
||||
.cc-ruth {
|
||||
grid-area: ruth;
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
|
||||
.cc-ruth h1 {
|
||||
font-size: clamp(3rem, 4.6vw, 4.8rem);
|
||||
}
|
||||
|
||||
.cc-time {
|
||||
grid-area: time;
|
||||
}
|
||||
|
||||
.cc-vote {
|
||||
grid-area: vote;
|
||||
}
|
||||
|
||||
.cc-routes {
|
||||
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;
|
||||
}
|
||||
|
||||
.cc-phone__footer {
|
||||
grid-area: footer;
|
||||
grid-column: 1 / -1;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 460px) {
|
||||
.cc-topbar {
|
||||
min-height: 56px;
|
||||
padding: 0.55rem 0.8rem;
|
||||
}
|
||||
|
||||
.cc-topbar__place {
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.cc-topbar__status {
|
||||
font-size: 0.58rem;
|
||||
}
|
||||
|
||||
.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) {
|
||||
.cc-topbar,
|
||||
.cc-panel {
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user