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