71 lines
1.8 KiB
Vue
71 lines
1.8 KiB
Vue
<script setup lang="ts">
|
|
import {
|
|
iconCalendar,
|
|
iconChart,
|
|
iconCircleInformation,
|
|
iconFlash,
|
|
iconHome,
|
|
} from '@sit-onyx/icons'
|
|
|
|
const route = useRoute()
|
|
|
|
const navigation = [
|
|
{ to: '/', label: 'Now', icon: iconHome },
|
|
{ to: '/forecast', label: 'Forecast', icon: iconChart },
|
|
{ to: '/plan', label: 'Plan', icon: iconCalendar },
|
|
{ to: '/simulate', label: 'Simulate', icon: iconFlash },
|
|
{ to: '/about', label: 'About', icon: iconCircleInformation },
|
|
]
|
|
|
|
const activeLabel = computed(
|
|
() => navigation.find((item) => item.to === route.path)?.label ?? 'PulseCast',
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<OnyxAppLayout>
|
|
<template #navBar>
|
|
<OnyxNavBar app-name="PulseCast" logo-url="/logo.svg" mobile="sm">
|
|
<OnyxUnstableNavButton
|
|
v-for="item in navigation"
|
|
:key="item.to"
|
|
:link="item.to"
|
|
:label="item.label"
|
|
:icon="item.icon"
|
|
/>
|
|
<template #contextArea>
|
|
<OnyxBadge color="warning">Mock data</OnyxBadge>
|
|
</template>
|
|
<template #mobileActivePage>{{ activeLabel }}</template>
|
|
</OnyxNavBar>
|
|
</template>
|
|
|
|
<OnyxPageLayout>
|
|
<NuxtPage />
|
|
<template #footer>
|
|
<footer class="app-footer">
|
|
<span><strong>PulseCast</strong> — staff the pulse, not the noise.</span>
|
|
<span class="muted small">
|
|
Prototype · mock forecast and weather · estimated devices, not people · 8 sensors in a 580 m cluster
|
|
</span>
|
|
</footer>
|
|
</template>
|
|
</OnyxPageLayout>
|
|
</OnyxAppLayout>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.app-footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: var(--onyx-density-sm);
|
|
width: 100%;
|
|
max-width: 1440px;
|
|
margin-inline: auto;
|
|
padding-block: var(--onyx-density-sm);
|
|
color: var(--onyx-color-text-icons-neutral-medium);
|
|
font-size: 0.8125rem;
|
|
}
|
|
</style>
|