feat: build the Cool City public route demo
ci / check (push) Successful in 55s

- 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:
Noel Sabia committed 2026-11-14 13:49:22 +01:00
1 parent 33063afbdf
commit 2bc52a314d
28 files changed
+8633 -45

No files matched your search

+12 -4
View File
@@ -14,7 +14,14 @@ const usingMock = computed(() => {
return value === true || value === '1' || value === 'true'
})
const isPresentation = computed(() => route.path === '/stage' || route.path === '/live')
const isCool = computed(() => route.path.startsWith('/cool'))
const isDarkPresentation = computed(
() => route.path === '/stage' || route.path === '/live' || route.path === '/cool/stage',
)
const isStandalone = computed(() => isCool.value || isDarkPresentation.value)
const bodyClass = computed(() =>
isDarkPresentation.value ? 'pc-presentation' : isCool.value ? 'pc-cool-presentation' : '',
)
const navigation = [
{ to: '/', label: 'Now', icon: iconHome },
@@ -30,7 +37,7 @@ const activeLabel = computed(
)
useHead(() => ({
bodyAttrs: { class: isPresentation.value ? 'pc-presentation' : '' },
bodyAttrs: { class: bodyClass.value },
}))
// Onyx renders its overflow navigation as a `menubar` whose direct child is a
@@ -51,7 +58,7 @@ onBeforeUnmount(() => navRoleObserver?.disconnect())
</script>
<template>
<NuxtPage v-if="isPresentation" />
<NuxtPage v-if="isStandalone" />
<OnyxAppLayout v-else>
<template #navBar>
@@ -78,7 +85,8 @@ onBeforeUnmount(() => navRoleObserver?.disconnect())
<span><strong>PulseCast</strong> — staff the pulse, not the noise.</span>
<span class="pc-small">
Decision support, not an optimizer.
<NuxtLink to="/about">Method &amp; limits</NuxtLink>
<NuxtLink to="/about">Method &amp; limits</NuxtLink> ·
<NuxtLink to="/cool">Cool City public module</NuxtLink>
<template v-if="usingMock"> · demo data</template>
</span>
</footer>