2018-08-28 18:57:18 -05:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-29 17:29:14 -06:00
|
|
|
// I M P O R T
|
2018-08-28 18:57:18 -05:00
|
|
|
|
|
|
|
import html from "choo/html";
|
|
|
|
|
2018-10-10 12:56:35 -05:00
|
|
|
// U T I L S
|
2018-08-28 18:57:18 -05:00
|
|
|
|
2018-11-30 14:46:22 -06:00
|
|
|
import editLink from "./edit-link";
|
|
|
|
import emailSubscribe from "./email-subscribe";
|
|
|
|
|
2018-08-28 18:57:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
// E X P O R T
|
|
|
|
|
2018-10-03 14:14:38 -05:00
|
|
|
export default state => {
|
2019-01-25 10:36:43 -06:00
|
|
|
if (state.hideFooter)
|
2019-01-24 14:09:52 -05:00
|
|
|
return "";
|
2019-01-25 10:36:43 -06:00
|
|
|
|
2018-08-28 18:57:18 -05:00
|
|
|
return html`
|
|
|
|
<section class="email-subscribe-container">
|
|
|
|
${emailSubscribe()}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="inner-wrap">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2019-04-11 15:41:07 -04:00
|
|
|
<a href="//${process.env.NODE_ENV === "development" ? "localhost:8000" : "lbry.com"}" title="Rediscover content freedom">← LBRY.com</a> |
|
2018-08-28 18:57:18 -05:00
|
|
|
${editLink(state.href)}
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li><a href="/overview" title="LBRY overview">Overview</a></li>
|
2018-09-30 23:58:33 -04:00
|
|
|
<li><a href="/playground" title="Play with LBRY">Playground</a></li>
|
2018-08-28 18:57:18 -05:00
|
|
|
<li><a href="/resources" title="View LBRY resources">Resources</a></li>
|
2018-09-30 23:58:33 -04:00
|
|
|
<li><a href="/community" title="Hang with LBRY">Community</a></li>
|
2018-08-28 18:57:18 -05:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<script src="/assets/scripts/app.js"></script>
|
|
|
|
`;
|
2018-10-03 14:14:38 -05:00
|
|
|
};
|