diff --git a/app/app.vue b/app/app.vue index bd056fa..f8eacfa 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,82 +1,5 @@ - - - - diff --git a/app/assets/css/main.css b/app/assets/css/main.css deleted file mode 100644 index 82d940b..0000000 --- a/app/assets/css/main.css +++ /dev/null @@ -1,555 +0,0 @@ -html, -body, -#__nuxt { - min-height: 100%; -} - -body { - margin: 0; - background: var(--onyx-color-base-neutral-100); -} - -.page { - width: 100%; - max-width: 1440px; - margin-inline: auto; -} - -.page-stack { - display: flex; - flex-direction: column; - gap: var(--onyx-density-xl); -} - -.page-header { - display: flex; - flex-wrap: wrap; - align-items: flex-end; - justify-content: space-between; - gap: var(--onyx-density-md); -} - -.eyebrow { - margin: 0 0 var(--onyx-density-xs); - color: var(--onyx-color-text-icons-primary-bold); - font-size: 0.8125rem; - font-weight: 600; - letter-spacing: 0.08em; - text-transform: uppercase; -} - -.lede { - max-width: 72ch; - margin: var(--onyx-density-sm) 0 0; - color: var(--onyx-color-text-icons-neutral-medium); - font-size: 1rem; - line-height: 1.5; -} - -.muted { - color: var(--onyx-color-text-icons-neutral-medium); -} - -.small { - font-size: 0.8125rem; - line-height: 1.45; -} - -.mono { - font-family: var(--onyx-font-family-mono); - font-size: 0.8125rem; -} - -.hero { - padding: clamp(1.25rem, 2.5vw, 2rem); - border: 1px solid var(--onyx-color-base-primary-200); - border-radius: var(--onyx-radius-component-container-soft); - background: - radial-gradient(circle at 100% 0%, var(--onyx-color-base-primary-200), transparent 42%), - linear-gradient(135deg, var(--onyx-color-base-primary-100), var(--onyx-color-base-neutral-100) 68%); -} - -.hero-grid { - display: grid; - gap: var(--onyx-density-xl); - align-items: start; -} - -.hero-copy { - display: flex; - flex-direction: column; - gap: var(--onyx-density-md); -} - -.hero-copy h1 { - max-width: 22ch; - margin: 0; -} - -.hero-copy p { - margin: 0; -} - -.hero-actions { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--onyx-density-sm); -} - -.hero-decision { - padding: var(--onyx-density-lg); - border: 1px solid var(--onyx-color-base-primary-300); - border-radius: var(--onyx-radius-component-container-soft); - background: var(--onyx-color-base-neutral-100); -} - -.hero-decision__value { - margin: 0; - font-size: clamp(2rem, 3vw, 3rem); - font-weight: 700; - line-height: 1.05; - color: var(--onyx-color-text-icons-primary-intense); -} - -.hero-decision__label { - margin: var(--onyx-density-xs) 0 0; - color: var(--onyx-color-text-icons-neutral-medium); -} - -.summary-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: var(--onyx-density-sm); -} - -.stat-card { - height: 100%; -} - -/* Onyx badges are flex children inside cards and otherwise stretch to full width. */ -.onyx-badge { - width: fit-content; -} - -.stat-label { - margin: 0; - color: var(--onyx-color-text-icons-neutral-medium); - font-size: 0.8125rem; - font-weight: 600; -} - -.stat-value { - margin: var(--onyx-density-xs) 0 0; - font-size: clamp(1.35rem, 2vw, 1.75rem); - font-weight: 700; - line-height: 1.15; -} - -.stat-hint { - margin: var(--onyx-density-xs) 0 0; - color: var(--onyx-color-text-icons-neutral-soft); - font-size: 0.8125rem; - line-height: 1.35; -} - -.split-grid { - display: grid; - gap: var(--onyx-density-lg); - align-items: start; -} - -.card-stack { - display: flex; - min-width: 0; - flex-direction: column; - gap: var(--onyx-density-md); -} - -/* Keep wide Onyx tables scrolling inside their card instead of widening the page - (Onyx wrappers are flex items and grid tracks default to min-width: auto). */ -.split-grid > *, -.summary-grid > *, -.onyx-card, -.onyx-table-wrapper, -.onyx-table-wrapper__container { - min-width: 0; - max-width: 100%; -} - -/* Onyx marks some wide tables as "no scroll" before layout settles. Keep the - scrollport so a phone never scrolls the whole page sideways. */ -.onyx-table-wrapper__container, -.onyx-table-wrapper__container--no-scroll { - overflow: auto; -} - -.card-header { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: var(--onyx-density-xs); - margin-bottom: var(--onyx-density-sm); -} - -.card-header h2, -.card-header h3 { - margin: 0; -} - -.form-grid { - display: grid; - gap: var(--onyx-density-md); -} - -.form-grid > *, -.onyx-form-element-v2, -.onyx-form-element-v2 > * { - min-width: 0; -} - -.form-actions { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--onyx-density-sm); -} - -.assumption-grid { - display: grid; - gap: var(--onyx-density-md); -} - -.shift-tags { - display: flex; - flex-wrap: wrap; - gap: var(--onyx-density-2xs); -} - -.day-card-list { - display: none; - flex-direction: column; - gap: var(--onyx-density-sm); -} - -.day-card__header { - display: flex; - align-items: baseline; - justify-content: space-between; - gap: var(--onyx-density-sm); -} - -.day-card__date { - margin: 0; - font-weight: 600; -} - -.day-card__metrics { - display: flex; - flex-wrap: wrap; - gap: var(--onyx-density-sm); - margin-top: var(--onyx-density-sm); - color: var(--onyx-color-text-icons-neutral-medium); - font-size: 0.8125rem; -} - -.weather-strip { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); - gap: var(--onyx-density-2xs); - padding-bottom: var(--onyx-density-2xs); -} - -.weather-day { - display: flex; - min-width: 0; - flex-direction: column; - gap: 0.25rem; - padding: var(--onyx-density-xs); - border: 1px solid var(--onyx-color-base-neutral-300); - border-radius: var(--onyx-radius-component-container-soft); - background: var(--onyx-color-base-neutral-100); - font-size: 0.75rem; -} - -.weather-day strong { - font-size: 0.8125rem; -} - -.why-list { - display: flex; - flex-direction: column; - gap: var(--onyx-density-sm); - margin: 0; - padding: 0; - list-style: none; -} - -.why-list li { - display: flex; - gap: var(--onyx-density-xs); - align-items: flex-start; - line-height: 1.4; -} - -.why-list .onyx-icon { - flex: none; - margin-top: 0.1rem; -} - -.map-frame { - position: relative; - min-height: 320px; - overflow: hidden; - border: 1px solid var(--onyx-color-base-neutral-300); - border-radius: var(--onyx-radius-component-container-soft); - background: - linear-gradient(var(--onyx-color-base-neutral-200) 1px, transparent 1px), - linear-gradient(90deg, var(--onyx-color-base-neutral-200) 1px, transparent 1px), - var(--onyx-color-base-neutral-100); - background-size: 2.5rem 2.5rem; -} - -.map-frame__label { - position: absolute; - top: var(--onyx-density-sm); - left: var(--onyx-density-sm); - z-index: 2; - max-width: 14rem; -} - -.sensor-pin { - position: absolute; - display: flex; - flex-direction: column; - align-items: center; - gap: 0.15rem; - transform: translate(-50%, -50%); - border: 0; - background: transparent; - color: inherit; - cursor: pointer; - font: inherit; -} - -.sensor-pin__dot { - display: grid; - width: 2.25rem; - height: 2.25rem; - place-items: center; - border: 2px solid var(--onyx-color-base-neutral-100); - border-radius: 999px; - background: var(--onyx-color-base-primary-600); - color: var(--onyx-color-text-icons-neutral-inverted); - box-shadow: var(--onyx-shadow-soft-bottom); - font-size: 0.75rem; - font-weight: 700; -} - -.sensor-pin--active .sensor-pin__dot { - background: var(--onyx-color-base-primary-800); - outline: 3px solid var(--onyx-color-base-primary-300); -} - -.sensor-pin__name { - max-width: 7rem; - overflow: hidden; - padding: 0.1rem 0.3rem; - border-radius: 0.2rem; - background: color-mix(in srgb, var(--onyx-color-base-neutral-100) 88%, transparent); - font-size: 0.6875rem; - line-height: 1.2; - text-align: center; - text-overflow: ellipsis; - white-space: nowrap; -} - -.bar-chart { - display: flex; - height: 96px; - align-items: flex-end; - gap: 2px; - padding-top: var(--onyx-density-sm); -} - -.bar-chart__bar { - flex: 1; - min-width: 3px; - border-radius: 2px 2px 0 0; - background: var(--onyx-color-base-primary-500); -} - -.bar-chart__bar--now { - background: var(--onyx-color-base-primary-800); -} - -.reading-row { - display: flex; - flex-wrap: wrap; - align-items: baseline; - gap: var(--onyx-density-sm); -} - -.reading-value { - margin: 0; - font-size: clamp(2.5rem, 6vw, 4rem); - font-weight: 700; - line-height: 1; -} - -.legend { - display: flex; - flex-wrap: wrap; - gap: var(--onyx-density-sm); - align-items: center; -} - -.legend__item { - display: inline-flex; - align-items: center; - gap: 0.35rem; - color: var(--onyx-color-text-icons-neutral-medium); - font-size: 0.75rem; -} - -.legend__swatch { - width: 0.75rem; - height: 0.75rem; - border-radius: 2px; - background: var(--onyx-color-base-primary-500); -} - -.legend__swatch--under { - background: var(--onyx-color-base-danger-500); -} - -.legend__swatch--over { - background: var(--onyx-color-base-warning-500); -} - -.table-note { - margin: var(--onyx-density-xs) 0 0; -} - -.callout { - padding: var(--onyx-density-sm) var(--onyx-density-md); - border-left: 3px solid var(--onyx-color-base-primary-500); - border-radius: 0 var(--onyx-radius-component-container-soft) var(--onyx-radius-component-container-soft) 0; - background: var(--onyx-color-base-primary-100); -} - -.callout--warning { - border-left-color: var(--onyx-color-base-warning-500); - background: var(--onyx-color-base-warning-100); -} - -.scenario-grid { - display: grid; - gap: var(--onyx-density-sm); -} - -.scenario-card { - cursor: pointer; -} - -.scenario-card--active { - outline: 2px solid var(--onyx-color-base-primary-500); - outline-offset: 2px; -} - -.metric-list { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: var(--onyx-density-md); - margin: 0; -} - -.metric-list div { - min-width: 0; -} - -.metric-list dt { - color: var(--onyx-color-text-icons-neutral-medium); - font-size: 0.75rem; -} - -.metric-list dd { - margin: 0.15rem 0 0; - font-weight: 600; -} - -.train-status { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--onyx-density-sm); - margin-top: var(--onyx-density-sm); -} - -@media (min-width: 577px) { - .assumption-grid { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } -} - -@media (min-width: 769px) { - .summary-grid { - grid-template-columns: repeat(4, minmax(0, 1fr)); - } - - .day-card-list { - display: none; - } -} - -@media (min-width: 993px) { - .hero-grid { - grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 1fr); - } - - .split-grid { - grid-template-columns: minmax(0, 1.9fr) minmax(20rem, 1fr); - } - - .scenario-grid { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } -} - -@media (max-width: 768px) { - .desktop-table { - display: none; - } - - .day-card-list { - display: flex; - } -} - -@media (max-width: 576px) { - .sensor-pin__name { - display: none; - } - - .map-frame { - min-height: 360px; - } - - .card-header { - flex-direction: column; - align-items: stretch; - } - - .card-header .onyx-badge { - align-self: flex-start; - } -} - -@media print { - .hero-actions, - .form-actions, - .desktop-table { - display: none !important; - } -} diff --git a/app/assets/css/tailwind.css b/app/assets/css/tailwind.css new file mode 100644 index 0000000..55bb043 --- /dev/null +++ b/app/assets/css/tailwind.css @@ -0,0 +1,30 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + html, + body { + margin: 0; + padding: 0; + } + + body { + overscroll-behavior: none; + background-color: #081723; + color: #FFFFFF; + font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + } + + main > :first-child { + margin-top: 0 !important; + } + + main > :last-child { + margin-bottom: 0 !important; + } +} + +::-webkit-scrollbar { + display: none; +} diff --git a/app/components/LiveStatusBadge.vue b/app/components/LiveStatusBadge.vue deleted file mode 100644 index 9b4fbd9..0000000 --- a/app/components/LiveStatusBadge.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - - - diff --git a/app/components/MetricCard.vue b/app/components/MetricCard.vue deleted file mode 100644 index dec4119..0000000 --- a/app/components/MetricCard.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - - - diff --git a/app/components/SensorClusterMap.vue b/app/components/SensorClusterMap.vue deleted file mode 100644 index a03b8b7..0000000 --- a/app/components/SensorClusterMap.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/app/components/TrainModelCard.vue b/app/components/TrainModelCard.vue deleted file mode 100644 index c462d9a..0000000 --- a/app/components/TrainModelCard.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - diff --git a/app/components/WeatherStrip.vue b/app/components/WeatherStrip.vue deleted file mode 100644 index ba55608..0000000 --- a/app/components/WeatherStrip.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/app/composables/useLiveScenario.ts b/app/composables/useLiveScenario.ts deleted file mode 100644 index e092f3c..0000000 --- a/app/composables/useLiveScenario.ts +++ /dev/null @@ -1,276 +0,0 @@ -import { - LIVE_LABELS, - liveStatus, - parseScenarioEvent, - scenarioChanged, - SCENARIO_POLL_MS, - SSE_FAILURES_BEFORE_POLLING, - SSE_STALE_MS, -} from '#shared/live' -import type { LiveConnection } from '#shared/live' -import type { ScenarioState } from '#shared/types' - -interface LiveStore { - status: LiveConnection - serverScenario: ScenarioState | null - lastEventAt: string - lastPollAt: string - sseFailures: number - pollFailures: number - revision: number - error: string -} - -// One stream per browser tab. The module-level store survives page navigation -// and is only mutated from onMounted/EventSource callbacks (never during SSR). -const store = reactive({ - status: 'connecting', - serverScenario: null, - lastEventAt: '', - lastPollAt: '', - sseFailures: 0, - pollFailures: 0, - revision: 0, - error: '', -}) - -let source: EventSource | null = null -let pollTimer: ReturnType | null = null -let staleTimer: ReturnType | null = null -let reconnectTimer: ReturnType | null = null -let subscribers = 0 -let started = false -let lastStaleRetry = 0 - -function nowIso(): string { - return new Date().toISOString() -} - -function refreshStatus() { - store.status = liveStatus({ - online: import.meta.client ? navigator.onLine !== false : true, - sseOpen: source?.readyState === EventSource.OPEN, - sseFailures: store.sseFailures, - polling: pollTimer !== null, - pollFailures: store.pollFailures, - }) -} - -function clearPolling() { - if (pollTimer) clearInterval(pollTimer) - pollTimer = null -} - -function applyScenario(next: ScenarioState, origin: 'sse' | 'poll') { - const changed = scenarioChanged(store.serverScenario, next) - store.serverScenario = next - store.lastEventAt = nowIso() - store.error = '' - if (origin === 'poll') store.lastPollAt = store.lastEventAt - if (changed) store.revision += 1 -} - -async function pollScenario(): Promise { - if (!import.meta.client) return - try { - const next = await $fetch('/api/scenario', { - headers: { accept: 'application/json' }, - timeout: 5000, - }) - store.pollFailures = 0 - applyScenario(next, 'poll') - // A successful poll proves the API is reachable; stay "Polling" until SSE - // opens again, so the audience can see the fallback is active. - if (store.status === 'offline') store.status = 'polling' - } catch (error) { - store.pollFailures += 1 - store.error = (error as { statusMessage?: string })?.statusMessage ?? 'Scenario polling failed' - } - refreshStatus() -} - -function startPolling() { - if (!import.meta.client || pollTimer) return - void pollScenario() - pollTimer = setInterval(() => void pollScenario(), SCENARIO_POLL_MS) - refreshStatus() -} - -function closeSource() { - if (source) { - source.close() - source = null - } - if (reconnectTimer) clearTimeout(reconnectTimer) - reconnectTimer = null -} - -function connectSse() { - if (!import.meta.client) return - closeSource() - - if (navigator.onLine === false) { - store.status = 'offline' - startPolling() - return - } - - const eventSource = new EventSource('/api/stream') - source = eventSource - - eventSource.onopen = () => { - if (source !== eventSource) return - store.sseFailures = 0 - store.pollFailures = 0 - store.error = '' - // Start the stale watchdog now: a proxy can accept the SSE headers and - // then buffer the body, so "open" does not prove events are flowing. - store.lastEventAt = nowIso() - clearPolling() - refreshStatus() - } - - eventSource.addEventListener('scenario', (event) => { - if (source !== eventSource) return - const parsed = parseScenarioEvent((event as MessageEvent).data) - if (!parsed) { - store.error = 'Ignored a malformed scenario event' - return - } - store.sseFailures = 0 - applyScenario(parsed, 'sse') - refreshStatus() - }) - - eventSource.addEventListener('ping', () => { - if (source !== eventSource) return - store.sseFailures = 0 - store.lastEventAt = nowIso() - if (pollTimer && eventSource.readyState === EventSource.OPEN) clearPolling() - refreshStatus() - }) - - eventSource.onerror = () => { - if (source !== eventSource) return - store.sseFailures += 1 - - // A non-200 response (Nitro 502/503, proxy error) leaves EventSource in - // CLOSED and the browser will not retry it. Treat that as a definitive - // failure: start polling now and try the stream again on a timer. Network - // errors while CONNECTING still use the browser's own retry loop. - const fatal = eventSource.readyState === EventSource.CLOSED - if (fatal) { - store.sseFailures = Math.max(store.sseFailures, SSE_FAILURES_BEFORE_POLLING) - if (!reconnectTimer) { - reconnectTimer = setTimeout(() => { - if (!started) return - connectSse() - }, 5000) - } - } - - if (store.sseFailures >= SSE_FAILURES_BEFORE_POLLING) startPolling() - refreshStatus() - } -} - -function checkStale() { - if (!import.meta.client || !started) return - const sseOpen = source?.readyState === EventSource.OPEN - if (sseOpen && store.lastEventAt) { - const age = Date.now() - Date.parse(store.lastEventAt) - if (age > SSE_STALE_MS) { - // Connection is open but no ping arrived: Cloudflare/path buffering. - // Polling is the contract fallback; retry SSE once a minute. - store.sseFailures = Math.max(store.sseFailures, SSE_FAILURES_BEFORE_POLLING) - startPolling() - refreshStatus() - if (Date.now() - lastStaleRetry > 60000) { - lastStaleRetry = Date.now() - connectSse() - } - } - } - if (store.pollFailures > 0) refreshStatus() -} - -function start() { - if (!import.meta.client || started) return - started = true - store.sseFailures = 0 - store.pollFailures = 0 - store.lastEventAt = '' - store.error = '' - store.status = 'connecting' - window.addEventListener('online', handleOnline) - window.addEventListener('offline', handleOffline) - staleTimer = setInterval(checkStale, 5000) - connectSse() -} - -function stop() { - if (!import.meta.client) return - started = false - closeSource() - clearPolling() - if (staleTimer) clearInterval(staleTimer) - staleTimer = null - window.removeEventListener('online', handleOnline) - window.removeEventListener('offline', handleOffline) - store.status = 'connecting' -} - -function handleOnline() { - if (!started) return - store.pollFailures = 0 - connectSse() - void pollScenario() -} - -function handleOffline() { - if (!started) return - store.status = 'offline' - if (pollTimer) clearInterval(pollTimer) - pollTimer = null -} - -/** - * Subscribe the current page to the Go scenario stream through Nitro. - * - * The first render uses `initial` from SSR; after mount the composable opens - * `/api/stream`, shows Live/Polling/Offline, and falls back to GET - * /api/scenario every 5 s when SSE fails or is buffered. - */ -export function useLiveScenario(initial?: ScenarioState | null) { - const initialScenario = initial ?? null - - const current = computed(() => store.serverScenario ?? initialScenario) - const scenarioId = computed(() => current.value?.scenario.scenario ?? 'base') - const status = computed(() => store.status) - const statusLabel = computed(() => LIVE_LABELS[store.status]) - - onMounted(() => { - // Seed after hydration so the first client paint matches the SSR HTML. - if (initialScenario && !store.serverScenario) store.serverScenario = initialScenario - subscribers += 1 - start() - }) - onBeforeUnmount(() => { - subscribers = Math.max(0, subscribers - 1) - if (subscribers === 0) stop() - }) - - return reactive({ - scenario: current, - scenarioId, - version: computed(() => current.value?.version ?? 0), - scenarioAt: computed(() => current.value?.at ?? ''), - status, - statusLabel, - lastEventAt: computed(() => store.lastEventAt), - lastPollAt: computed(() => store.lastPollAt), - error: computed(() => store.error), - revision: computed(() => store.revision), - pollNow: pollScenario, - }) -} diff --git a/app/layouts/default.vue b/app/layouts/default.vue new file mode 100644 index 0000000..4b28616 --- /dev/null +++ b/app/layouts/default.vue @@ -0,0 +1,129 @@ + + + diff --git a/app/pages/about.vue b/app/pages/about.vue deleted file mode 100644 index e6a91f5..0000000 --- a/app/pages/about.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - diff --git a/app/pages/control.vue b/app/pages/control.vue deleted file mode 100644 index 7e4bf36..0000000 --- a/app/pages/control.vue +++ /dev/null @@ -1,269 +0,0 @@ - - - - - diff --git a/app/pages/forecast.vue b/app/pages/forecast.vue deleted file mode 100644 index 6eb6c03..0000000 --- a/app/pages/forecast.vue +++ /dev/null @@ -1,320 +0,0 @@ - - - - - diff --git a/app/pages/index.vue b/app/pages/index.vue index 43c6c84..a6a3fe2 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,268 +1,257 @@ - - + + diff --git a/app/pages/live.vue b/app/pages/live.vue deleted file mode 100644 index 9204f35..0000000 --- a/app/pages/live.vue +++ /dev/null @@ -1,324 +0,0 @@ - - - - - diff --git a/app/pages/plan.vue b/app/pages/plan.vue deleted file mode 100644 index 536ba68..0000000 --- a/app/pages/plan.vue +++ /dev/null @@ -1,800 +0,0 @@ - - - - - diff --git a/app/pages/simulate.vue b/app/pages/simulate.vue deleted file mode 100644 index c6261a1..0000000 --- a/app/pages/simulate.vue +++ /dev/null @@ -1,270 +0,0 @@ - - - diff --git a/app/pages/stage.vue b/app/pages/stage.vue deleted file mode 100644 index e37ea00..0000000 --- a/app/pages/stage.vue +++ /dev/null @@ -1,560 +0,0 @@ - - - - - diff --git a/app/router.options.ts b/app/router.options.ts deleted file mode 100644 index 2f8222d..0000000 --- a/app/router.options.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { RouterConfig } from '@nuxt/schema' - -// Onyx scrolls inside .onyx-page__main, not the window, so the default Nuxt -// scroll behaviour does not reach the page container. -export default { - scrollBehavior: createOnyxScrollBehavior(), -} satisfies RouterConfig diff --git a/app/utils/api-error.ts b/app/utils/api-error.ts deleted file mode 100644 index be2b380..0000000 --- a/app/utils/api-error.ts +++ /dev/null @@ -1,27 +0,0 @@ -interface ApiErrorLike { - status?: number - statusCode?: number - statusMessage?: string - message?: string - data?: { - error?: { message?: string; code?: string } - message?: string - } -} - -/** Human-readable message from a Nuxt/$fetch error, without leaking tokens. */ -export function apiErrorMessage(error: unknown, fallback: string): string { - const value = error as ApiErrorLike | undefined - return ( - value?.data?.error?.message ?? - value?.data?.message ?? - value?.statusMessage ?? - value?.message ?? - fallback - ) -} - -export function apiErrorStatus(error: unknown): number | undefined { - const value = error as ApiErrorLike | undefined - return value?.status ?? value?.statusCode -} diff --git a/app/utils/format.ts b/app/utils/format.ts deleted file mode 100644 index 960fdf2..0000000 --- a/app/utils/format.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { BERLIN_TZ } from '#shared/staffing' - -const dateFormatter = new Intl.DateTimeFormat('en-GB', { - timeZone: BERLIN_TZ, - day: 'numeric', - month: 'short', - year: 'numeric', -}) - -const shortDateFormatter = new Intl.DateTimeFormat('en-GB', { - timeZone: BERLIN_TZ, - day: 'numeric', - month: 'short', -}) - -const weekdayFormatter = new Intl.DateTimeFormat('en-GB', { - timeZone: BERLIN_TZ, - weekday: 'long', -}) - -const weekdayShortFormatter = new Intl.DateTimeFormat('en-GB', { - timeZone: BERLIN_TZ, - weekday: 'short', -}) - -const dateTimeFormatter = new Intl.DateTimeFormat('en-GB', { - timeZone: BERLIN_TZ, - day: 'numeric', - month: 'short', - hour: '2-digit', - minute: '2-digit', - hourCycle: 'h23', -}) - -const timeFormatter = new Intl.DateTimeFormat('en-GB', { - timeZone: BERLIN_TZ, - hour: '2-digit', - minute: '2-digit', - hourCycle: 'h23', -}) - -const euroFormatter = new Intl.NumberFormat('en-GB', { - style: 'currency', - currency: 'EUR', - maximumFractionDigits: 0, -}) - -const numberFormatter = new Intl.NumberFormat('en-GB') - -/** Date-only strings are parsed at noon UTC so the local date never shifts. */ -function toDate(value: string): Date { - return value.length > 10 ? new Date(value) : new Date(`${value}T12:00:00Z`) -} - -function formatWith(formatter: Intl.DateTimeFormat, value: string): string { - const date = toDate(value) - return Number.isNaN(date.getTime()) ? '—' : formatter.format(date) -} - -export function formatDate(date: string): string { - return formatWith(dateFormatter, date) -} - -export function formatShortDate(date: string): string { - return formatWith(shortDateFormatter, date) -} - -export function formatWeekday(date: string): string { - return formatWith(weekdayFormatter, date) -} - -export function formatWeekdayShort(date: string): string { - return formatWith(weekdayShortFormatter, date) -} - -/** Format a wire timestamp in Heilbronn local time. */ -export function formatDateTime(iso: string): string { - return formatWith(dateTimeFormatter, iso) -} - -export function formatTime(iso: string): string { - return formatWith(timeFormatter, iso) -} - -export function formatEuro(value: number): string { - return euroFormatter.format(value) -} - -export function formatNumber(value: number): string { - return numberFormatter.format(value) -} - -export function formatPercent(value: number, digits = 0): string { - return `${value.toFixed(digits)}%` -} - -export function weekLabel(start: string, end: string): string { - return `${formatShortDate(start)} – ${formatDate(end)}` -} diff --git a/design/NOTES.md b/design/NOTES.md new file mode 100644 index 0000000..e83da1e --- /dev/null +++ b/design/NOTES.md @@ -0,0 +1,17 @@ +# Stitch hero — claims to reconcile before the pitch + +The page copy is frozen 1:1 with `design/stitch-hero.html` for this visual pass. +Do not change the page yet. Before presenting, reconcile the following claims: + +- Footer says **© 2024**, which is stale. Use the current year (2026) once copy changes are allowed. +- **Model metrics** in the accuracy badge ("Backtest MAE 4.2", "MAPE 3.8%", + "730 days backtested") do not match the paper's verified results + (**MAE 3.32, WAPE 27.5%, R² 0.777**). Replace with the verified metrics and + state the actual data window rather than "730 days". +- **"GDPR / ISO 27701 compliant"** in the footer overstates the position. + Verify whether certification has actually been obtained; otherwise phrase it + as "privacy by design" or "designed for GDPR / ISO 27701 alignment". +- **"Zero PII" / "Zero personally identifiable information (PII) processed"** + is too absolute. Phrase precisely what the sensor pipeline processes + (anonymous counts rather than identities) and avoid claiming zero PII across + the entire system unless that has been verified end to end. diff --git a/design/stitch-hero.html b/design/stitch-hero.html new file mode 100644 index 0000000..9bfa8ed --- /dev/null +++ b/design/stitch-hero.html @@ -0,0 +1,237 @@ + + + + +
Schwarz Sensing Engine Logo
Schwarz ITSensing Engine
person
+ + + +
+
+ +
+ +
+ +
+ + + Schwarz IT · Sensing & Prediction Platform + +
+ +

+ You bring the data.
+We bring the engine. +

+ +

+ Privacy-preserving sensor counts in, decisions out. Turn raw edge signals into verified operational foresight without compromising individual identity. +

+ + + +
+verified_user +Zero personally identifiable information (PII) processed. GDPR Art. 25 Privacy by Design. +
+
+ +
+
+ +
+
+ +Real-Time Core Pipeline +
+v2.4-deterministic +
+ +
+ +
+ +
+
+sensors +
+Anonymous Counts +LiDAR, FLUX, In/Out Edge Turnstile +
+ Σ counts/min +
+
+ +
+
+
+
+100% PII-Free +
+ +
+
+
+hub +
+SENSING ENGINE +Fuse + Predict +
+ +
+
+
+
+Inference +
+ +
+
+bolt +
+Decisions +Staff shift, dynamic routing, bin dispatch +
+ Action Output +
+
+
+ +
+
+Contextual Signals Fused in Real-Time +4 Global Feeds Active +
+
+
+☀️ +
+Sun Position +Solar Azimuth +
+
+
+🌦️ +
+DWD Weather +Hyperlocal Rain/Temp +
+
+
+📅 +
+Calendar Sync +Retail, Holidays, Paydays +
+
+
+🗺️ +
+Geo-Mesh Map +Store & Depot Spatial +
+
+
+
+
+ +
+
+speed +Pipeline Latency: < 42ms +
+
+sync +Edge aggregation: 60s epoch +
+
+
+
+
+ +
+ +
+ +
+
+check_circle +
+
+Privacy-Preserving Sensors +No identities, only counts. +
+
+ +
+
+check_circle +
+
+Real-World Context +Weather, sun, calendar, map. +
+
+ +
+
+check_circle +
+
+Intuitive Visual Story +One answer per screen. +
+
+ +
+
+check_circle +
+
+Predictive Engine +Hindsight becomes foresight. +
+
+
+ +
+
+
+verified +
+
+Model Accuracy +
+Backtest MAE 4.2 +· +MAPE 3.8% +
+
+
+ +
+
+
+
+
© 2024 Schwarz IT KG. All rights reserved.|verified_userGDPR / ISO 27701 compliant
System Status: All Engines Operational
|v2.4-prod
\ No newline at end of file diff --git a/design/stitch-hero.png b/design/stitch-hero.png new file mode 100644 index 0000000..da27c4c Binary files /dev/null and b/design/stitch-hero.png differ diff --git a/design/verify-desktop.png b/design/verify-desktop.png new file mode 100644 index 0000000..1a77792 Binary files /dev/null and b/design/verify-desktop.png differ diff --git a/design/verify-mobile-menu.png b/design/verify-mobile-menu.png new file mode 100644 index 0000000..82966a2 Binary files /dev/null and b/design/verify-mobile-menu.png differ diff --git a/design/verify-mobile.png b/design/verify-mobile.png new file mode 100644 index 0000000..2cde73d Binary files /dev/null and b/design/verify-mobile.png differ diff --git a/nuxt.config.ts b/nuxt.config.ts index 6876eb5..70092e1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -6,9 +6,38 @@ const useMock = export default defineNuxtConfig({ compatibilityDate: '2026-11-01', ssr: true, - modules: ['@sit-onyx/nuxt'], - css: ['~/assets/css/main.css'], + modules: ['@nuxt/icon'], + css: ['~/assets/css/tailwind.css'], + postcss: { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, + }, devtools: { enabled: false }, + icon: { + mode: 'svg', + serverBundle: { collections: ['material-symbols'] }, + clientBundle: { + icons: [ + 'material-symbols:menu', + 'material-symbols:close', + 'material-symbols:arrow-forward', + 'material-symbols:visibility-outline', + 'material-symbols:verified-user', + 'material-symbols:sensors', + 'material-symbols:hub-outline', + 'material-symbols:bolt-outline', + 'material-symbols:speed', + 'material-symbols:sync', + 'material-symbols:check-circle', + 'material-symbols:verified-outline', + 'material-symbols:verified-user-outline', + ], + scan: true, + }, + fallbackToApi: false, + }, runtimeConfig: { // Server-side Go API. K8s sets NUXT_API_INTERNAL_BASE=http://api:8080. apiBase: @@ -32,18 +61,21 @@ export default defineNuxtConfig({ }, app: { head: { - htmlAttrs: { lang: 'en' }, - title: 'PulseCast — next week’s staffing plan', + htmlAttrs: { lang: 'en', class: 'dark' }, + title: 'Schwarz IT — Sensing Engine', meta: [ { name: 'viewport', content: 'width=device-width, initial-scale=1' }, + { name: 'theme-color', content: '#081723' }, + ], + link: [ + { rel: 'preconnect', href: 'https://fonts.googleapis.com' }, + { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }, { - name: 'description', - content: - 'PulseCast turns inner-city footfall into a transparent next-week staffing plan for Heilbronn retailers.', + rel: 'stylesheet', + href: 'https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap', }, - { name: 'theme-color', content: '#0f766e' }, + { rel: 'icon', type: 'image/svg+xml', href: '/schwarz-it-logo.svg' }, ], - link: [{ rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }], }, }, nitro: { diff --git a/package-lock.json b/package-lock.json index 8edd813..39cfa1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,11 +17,43 @@ "sit-onyx": "1.22.0" }, "devDependencies": { + "@iconify-json/material-symbols": "^1.2.99", + "@nuxt/icon": "^2.6.2", "@types/qrcode": "1.5.5", + "autoprefixer": "^10.6.2", + "postcss": "^8.5.33", + "tailwindcss": "3.4.17", "typescript": "5.9.3", "vitest": "3.2.4" } }, + "node_modules/@alloc/quick-lru": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz", + "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@antfu/install-pkg": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-2.1.0.tgz", + "integrity": "sha512-sdg9NxU3zR4Mnawfbc/x6GB5Wf17WYud5qOuEuxXjaKpYpMkISSJEjItGebXJ2bQ4DIcly4NYH23mtkGJjvKUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "package-manager-detector": "^1.8.0", + "tinyexec": "^1.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, "node_modules/@babel/code-frame": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", @@ -974,6 +1006,61 @@ "node": ">=18" } }, + "node_modules/@iconify-json/material-symbols": { + "version": "1.2.99", + "resolved": "https://registry.npmjs.org/@iconify-json/material-symbols/-/material-symbols-1.2.99.tgz", + "integrity": "sha512-c7CBI249CmvZDeT7sml1iwKEjsbiB8NUG2Bg1KPd7jnvLQ/8iQv7TQWnqq9a2357SkPjnyVTxxTgkWO2rlUtCw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@iconify/types": "*" + } + }, + "node_modules/@iconify/collections": { + "version": "1.0.764", + "resolved": "https://registry.npmjs.org/@iconify/collections/-/collections-1.0.764.tgz", + "integrity": "sha512-cjPAaJBUaQMSfPF3pBwB35GHJWrD8u26B6aLx/aWo+abiaPyOHF1j0BJ7zBviiCU3TC1j9Mje2rV+X/9evaIBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@iconify/types": "*" + } + }, + "node_modules/@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@iconify/utils": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.7.tgz", + "integrity": "sha512-JZHlwdID+dy+lTgbYC8NEC4zeugqeYsc6jewvzb4c58kHauJn+X7rNwQjxz5p2qSjqaEeQoLkCIQ9v/H4PK0/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@antfu/install-pkg": "^2.0.1", + "@iconify/types": "^2.0.0", + "import-meta-resolve": "^4.2.0" + } + }, + "node_modules/@iconify/vue": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@iconify/vue/-/vue-5.0.5.tgz", + "integrity": "sha512-O4SHjEKCQ2KTupa0tOd7MIuDdi8Pg6y9fCvsqccX8nYW8Wuy+ZbEgpzw7gZTN3ThyFjY9uo29ZLZ8MQjjMJRBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@iconify/types": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/cyberalien" + }, + "peerDependencies": { + "vue": ">=3.0.0" + } + }, "node_modules/@ioredis/commands": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.10.0.tgz", @@ -1381,6 +1468,30 @@ "devtools-wizard": "cli.mjs" } }, + "node_modules/@nuxt/icon": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@nuxt/icon/-/icon-2.6.2.tgz", + "integrity": "sha512-eNVXbKzj1fmrkzcakkix8Pn/7lpd0I1b7xG0shjrlefr2wWIG3o0DrU9EvvT1BCf9UD33MAzoLF1l2Z99CKoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@iconify/collections": "^1.0.755", + "@iconify/types": "^2.0.0", + "@iconify/utils": "^3.1.7", + "@iconify/vue": "^5.0.4", + "@nuxt/devtools-kit": "^3.4.4", + "@nuxt/kit": "^4.6.3", + "consola": "^3.4.2", + "fnv1a-64": "^0.1.2", + "local-pkg": "^1.2.1", + "mlly": "^1.8.2", + "ohash": "^2.0.12", + "picomatch": "^4.0.7", + "std-env": "^4.3.0", + "tinyglobby": "^0.2.17", + "ufo": "^1.6.4" + } + }, "node_modules/@nuxt/kit": { "version": "4.6.4", "resolved": "https://registry.npmjs.org/@nuxt/kit/-/kit-4.6.4.tgz", @@ -3305,6 +3416,13 @@ "node": ">=14" } }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -3362,6 +3480,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, "node_modules/args-tokenizer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/args-tokenizer/-/args-tokenizer-0.3.0.tgz", @@ -3685,6 +3810,19 @@ "require-from-string": "^2.0.2" } }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/bindings": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", @@ -3866,6 +4004,16 @@ "node": ">=6" } }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, "node_modules/caniuse-api": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-4.0.0.tgz", @@ -4395,6 +4543,13 @@ "node": ">=18" } }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, "node_modules/diff": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/diff/-/diff-9.0.0.tgz", @@ -4410,6 +4565,13 @@ "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==", "license": "MIT" }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, "node_modules/dot-prop": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-10.2.0.tgz", @@ -5162,6 +5324,17 @@ "integrity": "sha512-rKANCbmsJCZ3/q87GTWZ+8MhOvhPLjsScznVtqvBoTu6Tyq8FzdPoBUMl/ZxQXy+/5I+C1vxXwS1jSwmHgmDLQ==", "license": "MIT" }, + "node_modules/import-meta-resolve": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/impound": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/impound/-/impound-1.2.1.tgz", @@ -5224,6 +5397,19 @@ "url": "https://github.com/sponsors/brc-dd" } }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/is-core-module": { "version": "2.18.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.18.0.tgz", @@ -5796,6 +5982,26 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/lilconfig": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.5.tgz", + "integrity": "sha512-aRAOI9Ia43ygL4o1EOmC/sc/0OFxrm7qcQngiIyWaqVnSnz932ybJ07zyCcgMNGSDP8Yxaf88Xj1zHEXmvQ4SA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, "node_modules/listhen": { "version": "1.10.1", "resolved": "https://registry.npmjs.org/listhen/-/listhen-1.10.1.tgz", @@ -6214,6 +6420,18 @@ } } }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, "node_modules/nanoid": { "version": "3.3.20", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", @@ -6661,6 +6879,26 @@ } } }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, "node_modules/object-identity": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/object-identity/-/object-identity-0.2.3.tgz", @@ -6934,6 +7172,16 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, "node_modules/pkg-types": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.4.0.tgz", @@ -6997,6 +7245,125 @@ "postcss": "^8.5.29" } }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.6.tgz", + "integrity": "sha512-BK87/Qgti3DIcgS2PaCVoteFIkjIFvCJBizZDIVSjdlFNg4Jv+SRqbN2JONb/qQUH4ZFqfXYF+izg15W2HVRvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/postcss-value-parser": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", @@ -7281,6 +7648,13 @@ "destr": "^2.0.5" } }, + "node_modules/read-cache": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.2.tgz", + "integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==", + "dev": true, + "license": "MIT" + }, "node_modules/readable-stream": { "version": "4.8.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.8.0.tgz", @@ -8015,6 +8389,39 @@ "integrity": "sha512-10ZL5r77LhknxlP1FBiCW+VdnuWOEFLdSS2SKtjyEV+L4qP1hUEIMIZW94LC3jKxRmT/Dj7KkD1mqh/IY6lhKQ==", "license": "ISC" }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/sucrase/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, "node_modules/supports-color": { "version": "10.2.2", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", @@ -8051,6 +8458,131 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/tailwindcss": { + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz", + "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.6", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tailwindcss/node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/tailwindcss/node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/tailwindcss/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/tailwindcss/node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/tailwindcss/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/tailwindcss/node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, "node_modules/tar": { "version": "7.5.23", "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.23.tgz", @@ -8124,6 +8656,29 @@ "b4a": "^1.6.4" } }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, "node_modules/tiny-invariant": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", @@ -8243,6 +8798,13 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "license": "MIT" }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, "node_modules/tslib": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", @@ -9598,6 +10160,22 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "license": "ISC" }, + "node_modules/yaml": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "devOptional": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, "node_modules/yargs": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz", diff --git a/package.json b/package.json index f285bda..fcfbeca 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,12 @@ "sit-onyx": "1.22.0" }, "devDependencies": { + "@iconify-json/material-symbols": "^1.2.99", + "@nuxt/icon": "^2.6.2", "@types/qrcode": "1.5.5", + "autoprefixer": "^10.6.2", + "postcss": "^8.5.33", + "tailwindcss": "3.4.17", "typescript": "5.9.3", "vitest": "3.2.4" } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..2e7af2b --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/public/schwarz-it-logo.svg b/public/schwarz-it-logo.svg new file mode 100644 index 0000000..7a0e0ef --- /dev/null +++ b/public/schwarz-it-logo.svg @@ -0,0 +1,33 @@ + + \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..da6a0dc --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,51 @@ +/** @type {import('tailwindcss').Config} */ +export default { + darkMode: 'class', + content: ['./app/**/*.{vue,js,ts}'], + theme: { + extend: { + colors: { + 'dark-bg': '#081723', + 'dark-card': '#0e2233', + 'dark-surface': '#132b40', + 'dark-border': '#1e3a52', + 'dark-text': '#FFFFFF', + 'dark-muted': '#94A3B8', + 'dark-accent': '#00C3CD', + }, + borderRadius: { + DEFAULT: '0.25rem', + lg: '0.5rem', + xl: '0.75rem', + full: '9999px', + }, + spacing: { + 'space-xl': '1.5rem', + 'space-2xl': '2rem', + 'space-xs': '0.25rem', + gutter: '1rem', + margin: '1rem', + 'margin-desktop': '2rem', + 'gutter-desktop': '1.5rem', + 'space-sm': '0.5rem', + 'space-lg': '1rem', + 'space-md': '0.75rem', + }, + fontFamily: { + 'headline-lg': ['Inter'], + 'body-sm': ['Inter'], + 'headline-xl': ['Inter'], + 'tabular-stat-md': ['Inter'], + 'body-md': ['Inter'], + 'tabular-stat-lg': ['Inter'], + 'headline-md': ['Inter'], + 'headline-sm': ['Inter'], + 'body-lg': ['Inter'], + 'label-md': ['Inter'], + 'label-sm': ['Inter'], + 'headline-xl-mobile': ['Inter'], + }, + }, + }, + plugins: [], +}