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

35 lines
909 B
HTML
Raw Normal View History

2018-01-28 02:34:08 +01:00
<:Window bind:online />
2018-02-03 19:57:45 +01:00
<Nav :page />
2018-01-07 00:51:25 +01:00
<div class="container">
<main>
<slot></slot>
</main>
2018-03-07 18:25:07 +01:00
{{#if !$isUserLoggedIn && page === 'home'}}
<footer>
<p>
Pinafore is <ExternalLink href="https://github.com/nolanlawson/pinafore">open-source software</ExternalLink>
created by <ExternalLink href="https://nolanlawson.com">Nolan Lawson</ExternalLink> and distributed under the
<ExternalLink href="https://github.com/nolanlawson/pinafore/blob/master/LICENSE">AGPL License</ExternalLink>.
</p>
</footer>
{{/if}}
</div>
2018-01-07 00:51:25 +01:00
<script>
import Nav from './Nav.html';
2018-01-28 22:09:39 +01:00
import { store } from '../_store/store'
2018-03-07 18:25:07 +01:00
import ExternalLink from './ExternalLink.html'
2018-01-07 00:51:25 +01:00
export default {
2018-01-28 02:34:08 +01:00
oncreate() {
this.observe('online', online => {
this.store.set({online: online})
})
},
2018-01-07 00:51:25 +01:00
components: {
2018-03-07 18:25:07 +01:00
Nav,
ExternalLink
},
store: () => store
2018-01-23 06:30:14 +01:00
}
2018-01-07 00:51:25 +01:00
</script>