Pinafore-Web-Client-Frontend/routes/_components/Layout.html

24 lines
383 B
HTML

<:Window bind:online />
<Nav :page />
<div class="container">
<main>
<slot></slot>
</main>
</div>
<script>
import Nav from './Nav.html';
import { store } from '../_store/store'
export default {
oncreate() {
this.observe('online', online => {
this.store.set({online: online})
})
},
components: {
Nav
},
store: () => store
}
</script>