move informational footer to own component
This commit is contained in:
parent
a05c691667
commit
b0896a4e10
|
@ -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>
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue