move informational footer to own component

This commit is contained in:
Nolan Lawson 2018-03-12 22:16:52 -07:00
parent a05c691667
commit b0896a4e10
2 changed files with 23 additions and 13 deletions

View file

@ -0,0 +1,20 @@
<HiddenFromSSR>
<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>
</HiddenFromSSR>
<script>
import HiddenFromSSR from './HiddenFromSSR.html'
import ExternalLink from './ExternalLink.html'
export default {
components: {
HiddenFromSSR,
ExternalLink
}
}
</script>

View file

@ -5,28 +5,18 @@
<slot></slot>
</main>
{{#if !$isUserLoggedIn && page === 'home'}}
<HiddenFromSSR>
<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>
</HiddenFromSSR>
<InformationalFooter />
{{/if}}
</div>
<script>
import Nav from './Nav.html';
import { store } from '../_store/store'
import ExternalLink from './ExternalLink.html'
import HiddenFromSSR from './HiddenFromSSR.html'
import InformationalFooter from './InformationalFooter.html'
export default {
components: {
Nav,
ExternalLink,
HiddenFromSSR
InformationalFooter
},
store: () => store
}