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

+2 -11
View File
@@ -7,7 +7,7 @@ export default defineNuxtConfig({
compatibilityDate: '2026-11-01',
ssr: true,
modules: ['@sit-onyx/nuxt'],
css: ['~/assets/css/main.css'],
css: ['~/assets/css/main.css', '~/assets/css/cool.css'],
devtools: { enabled: false },
runtimeConfig: {
// Server-side Go API. K8s sets NUXT_API_INTERNAL_BASE=http://api:8080.
@@ -43,16 +43,7 @@ export default defineNuxtConfig({
},
{ name: 'theme-color', content: '#f4efe6' },
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' },
{
rel: 'preload',
href: '/fonts/archivo-latin-var.woff2',
as: 'font',
type: 'font/woff2',
crossorigin: 'anonymous',
},
],
link: [{ rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }],
},
},
nitro: {