move informational footer to own component
This commit is contained in:
parent
a05c691667
commit
b0896a4e10
20
routes/_components/InformationalFooter.html
Normal file
20
routes/_components/InformationalFooter.html
Normal 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>
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue