2018-07-12 17:21:42 +02:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// P A C K A G E S
|
|
|
|
|
|
|
|
const html = require("choo-async/html");
|
|
|
|
const local = require("app-root-path").require;
|
|
|
|
|
|
|
|
// V A R I A B L E S
|
|
|
|
|
2018-07-27 20:33:27 +02:00
|
|
|
const config = local("/config");
|
2018-07-12 17:21:42 +02:00
|
|
|
const editLink = local("/views/partials/edit-link");
|
|
|
|
const emailSubscribe = local("/views/partials/email-subscribe");
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-13 23:58:24 +02:00
|
|
|
// E X P O R T
|
2018-07-12 17:21:42 +02:00
|
|
|
|
2018-07-13 23:58:24 +02:00
|
|
|
module.exports = exports = state => html`
|
2018-07-12 17:21:42 +02:00
|
|
|
<section class="email-subscribe-container">
|
|
|
|
${emailSubscribe()}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="alert" id="alert-beta">
|
|
|
|
<div class="inner-wrap">
|
2018-07-27 22:57:34 +02:00
|
|
|
<p><strong>This website is in beta and under heavy development.</strong><br/>All information should be considered incomplete and possibly incorrect and things may not work as expected.</p>
|
2018-07-12 17:21:42 +02:00
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
|
2018-07-27 20:04:05 +02:00
|
|
|
<p>Please do not share or link this site publicly while this message is here. This website is open source and you can <a href="https://github.com/lbryio/lbry.tech" target="_blank" rel="noopener noreferrer">contribute to it on Github</a>.</p>
|
2018-07-12 17:21:42 +02:00
|
|
|
|
|
|
|
<button id="close-alert">×</button>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="inner-wrap">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="//lbry.io" title="Rediscover content freedom">← LBRY.io</a> |
|
|
|
|
${editLink(state.href)}
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li><a href="/overview" title="LBRY overview">Overview</a></li>
|
|
|
|
<li><a href="/resources" title="View LBRY resources">Resources</a></li>
|
|
|
|
<li><a href="/contribute" title="Contribute to LBRY">Contribute</a></li>
|
|
|
|
<li><a href="/community" title="Interact with LBRY">Community</a></li>
|
|
|
|
<li><a href="/sitemap" title="">Sitemap</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<script src="/assets/scripts/app.js"></script>
|
2018-07-27 20:33:27 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
|
|
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
|
})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");
|
|
|
|
|
2018-07-27 20:42:07 +02:00
|
|
|
ga("create", "${config.ga}", "auto");
|
2018-07-27 20:33:27 +02:00
|
|
|
ga("send", "pageview");
|
|
|
|
</script>
|
2018-07-12 17:21:42 +02:00
|
|
|
`;
|