lbry.tech/views/pages/home.js
2018-08-09 09:38:42 -05:00

111 lines
3.8 KiB
JavaScript
Executable file

"use strict";
// P A C K A G E
const html = require("choo-async/html");
// E X P O R T
module.exports = exports = () => async () => html`
<div>
<section class="hero">
<div>
<h1>
LBRY is a free, open, and community-run digital marketplace.<br/>
Build the future of content freedom.
</h1>
</div>
</section>
<section class="features">
<ul class="home__features">
<li class="home__feature">
<p class="home__feature__title"><strong>New to LBRY?</strong></p>
<p class="home__feature__description">Learn how LBRY works with 3 easy examples</p>
<a class="home__feature__cta" href="/tour">Take the Tour</a>
</li>
<li class="home__feature">
<p class="home__feature__title"><strong>Want to contribute?</strong></p>
<p class="home__feature__description">Help make LBRY better!</p>
<a class="home__feature__cta" href="/contribute">Explore our repos</a>
</li>
</ul>
</section>
<section class="intro">
<div class="inner-wrap">
<h3>Intro/Overview</h3>
<p>What if anyone in the world could publish a piece of digital content, anyone else in the world could access it, for free or for payment, and that entire system worked end-to-end without any centralized authority or point of control?</p>
<p>That's the idea behind LBRY. To create a market for accessing and publishing information that is global, decentralized, robust, optimal and complete.</p>
<a class="cta" href="/overview">Learn more about our mission</a>
</div>
</section>
<section class="docs">
<div class="inner-wrap">
<h3>Documentation</h3>
<p>LBRY has enough moving parts to warrant comprehensive documentation. Whether you are interested in learning the technical details of our technology stack or you want to integrate LBRY into your life, you will find everything you need in our docs.</p>
<a class="cta" href="/resources">Explore our documentation</a>
</div>
</section>
<div id="github-feed" class="github-feed">
<h3>GitHub</h3>
<h5 class="last-updated">Unable to fetch latest GitHub data</h5>
</div>
<section class="contribute">
<div class="inner-wrap">
<h3>Contribute</h3>
<p>Interested in progressing content freedom? Awesome! No matter your experience or skill level, <strong>you</strong> can make a difference.</p>
<ul>
<li><a href="" title="">Raising Issues</a></li>
<li><a href="" title="">Coding</a></li>
<li><a href="" title="">Creative</a></li>
<li><a href="" title="">Translating</a></li>
<li><a href="" title="">Testing</a></li>
</ul>
</div>
</section>
<section class="develop">
<div class="inner-wrap">
<h3>Development</h3>
<p>Like a bit of documentation but would prefer to jump in and make your mark on the blockchain? Perhaps add cats to it?</p>
<a class="cta" href="/api" title="Learn the LBRY API">Learn the LBRY API</a>
</div>
</section>
<section class="community">
<div class="inner-wrap">
<h3>Community</h3>
<p>Hang out with us! We have a vibrant community of lbryians and would be <em>delighted</em> if you joined us.</p>
<ul>
<li><a href="//chat.lbry.io" title="LBRY on Discord">Discord</a></li>
<li><a href="//www.reddit.com/r/lbry" title="LBRY on Reddit">Reddit</a></li>
</ul>
</div>
</section>
</div>
<script>
$(function () {
send(JSON.stringify({
"message": "landed on homepage"
}));
});
document.getElementsByTagName("body")[0].classList.add("home"); // TODO: make this happen in components/layout
</script>
`;