diff --git a/app/components/navigation.js b/app/components/navigation.js index 9de7ee9..5693f1d 100644 --- a/app/components/navigation.js +++ b/app/components/navigation.js @@ -39,16 +39,6 @@ export default class Navigation extends Nanocomponent { title: "View LBRY resources", url: "/resources" }, - { - name: "Contribute", - title: "Contribute to LBRY", - url: "/contribute" - }, - { - name: "Build", - title: "View LBRY resources", - url: "/build" - }, { name: "Community", title: "Interact with LBRY", diff --git a/app/components/resources-link-grid.js b/app/components/resources-link-grid.js index 219e41c..5e01c60 100644 --- a/app/components/resources-link-grid.js +++ b/app/components/resources-link-grid.js @@ -5,18 +5,23 @@ import linkGrid from "./link-grid"; export default () => { return linkGrid([{ title: "Whitepaper", - description: "It's a white paper", + description: "Read the formal specification for LBRY.", destination: "/whitepaper", - label: "Read" - }]) + linkGrid([ { - title: "LBRY SDK APIs", - description: "The LBRY SDK is the simplest way to start building with LBRY.", - destination: "/api/protocol", - label: "LBRY SDK API" + label: "Study the Paper" }, { - title: "Blockchain Docs", - description: "Learn how to talk to blockchain real good", + title: "Contributor's Guide", + description: "Can you code, design, write or test? Join us!", + destination: "/contribute", + label: "Read the Guide" + }, { + title: "SDK APIs", + description: "Method signatures and examples for lbry-sdk, the most common way to build on LBRY.", + destination: "/api/sdk", + label: "SDK APIs" + }, { + title: "Blockchain APIs", + description: "Method signatures and examples for lbrycrd, the LBRY blockchain.", destination: "/api/blockchain", - label: "Blockchain API" + label: "Blockchain APIs" }]); }; diff --git a/app/modules/redirectOr404.js b/app/modules/redirectOr404.js index d6e4fa9..15c6636 100644 --- a/app/modules/redirectOr404.js +++ b/app/modules/redirectOr404.js @@ -1,3 +1,15 @@ -export default (url, code = 301) => { - throw "fix this please, needs to redirect to:" + url; +/* +this is fucking awful + */ + +import Page404 from "../views/404.js"; +import redirects from "../data/redirects.json"; + +export default (path) => { + const redirectUrl = redirects[path]; + if (redirectUrl) { + throw "fix this please, needs to redirect to:" + redirectUrl; + } else { + return Page404(); + } }; diff --git a/app/sass/pages/_home.scss b/app/sass/pages/_home.scss index 36d5eda..786872f 100644 --- a/app/sass/pages/_home.scss +++ b/app/sass/pages/_home.scss @@ -52,6 +52,7 @@ body.home { grid-area: header; height: calc(50vh - 4rem); min-height: 300px; justify-content: center; + margin-bottom: 2rem; @media (max-width: 850px) { background-size: cover; diff --git a/app/sass/partials/_link-grid.scss b/app/sass/partials/_link-grid.scss index caf0a78..eb67f9c 100644 --- a/app/sass/partials/_link-grid.scss +++ b/app/sass/partials/_link-grid.scss @@ -3,14 +3,13 @@ display: flex; flex-flow: row wrap; list-style-type: none; - margin-top: 2rem; - margin-bottom: 2rem; } .link-grid__link { position: relative; text-align: center; vertical-align: top; + margin-bottom: 2rem; flex-grow: 1; @media (min-width: 651px) { diff --git a/documents/contribute.md b/documents/contribute.md index 426e751..6c1b0f5 100644 --- a/documents/contribute.md +++ b/documents/contribute.md @@ -1,14 +1,13 @@ --- -title: Contributing +title: Contributor's Guide --- - -## Contributing to LBRY +## Welcome to LBRY! Interested in working on the LBRY protocol, an official LBRY app, or other LBRY infrastructure? Awesome! This guide will get you started. -This guide is for contributing to the code bases maintained by the LBRY organization. For building on top of the LBRY protocol, see [Build](/build). +This guide is for contributing to the code bases maintained by the LBRY organization by [Coding](#coding), [Designing](#designing), [Writing](#writing), and [Testing](#testing). -Contributors that provide accepted pull requests, well-specified issues, or assist in testing and quality assurance typically receive LBC tokens as appreciation. +Contributors that provide accepted pull requests, well-specified issues, or assist in testing and quality assurance typically receive LBC tokens as [appreciation](#appreciation). ## Ecosystem Overview