diff --git a/app/client.js b/app/client.js index 566f813..1bd34f5 100755 --- a/app/client.js +++ b/app/client.js @@ -37,7 +37,6 @@ function main() { app.use(ssr()); app.route("/", page(require("./views/home"))); - app.route("/api", page(require("./views/api"))); app.route("/api/*", page(require("./views/api"))); app.route("/*", page(require("./views/redirect"))); diff --git a/app/data/redirects.json b/app/data/redirects.json index f17a7a8..eb101d2 100644 --- a/app/data/redirects.json +++ b/app/data/redirects.json @@ -1,6 +1,7 @@ { "/tour" : "/playground", "/play" : "/playground", + "/api" : "/resources", "/api/protocol" : "/api/sdk", "/api/lbry" : "/api/sdk", "/api/lbrycrd" : "/api/blockchain", diff --git a/app/sass/pages/_api.scss b/app/sass/pages/_api.scss index 1533a8c..4e596e2 100644 --- a/app/sass/pages/_api.scss +++ b/app/sass/pages/_api.scss @@ -106,7 +106,6 @@ } } - .api__content { float: right; width: calc(100% - 200px); diff --git a/app/sass/partials/_feature-links.scss b/app/sass/partials/_feature-links.scss index 89880cc..eb3b76f 100644 --- a/app/sass/partials/_feature-links.scss +++ b/app/sass/partials/_feature-links.scss @@ -38,8 +38,8 @@ $width-feature-link: 320px; } .feature-link__title { - top: 85px; position: relative; + top: 85px; font-weight: normal; text-align: center; z-index: 1; diff --git a/app/views/api.js b/app/views/api.js index b135a0e..4aa87e1 100644 --- a/app/views/api.js +++ b/app/views/api.js @@ -1,9 +1,5 @@ "use strict"; - - -// P A C K A G E S - import asyncHtml from "choo-async/html"; import dedent from "dedent"; import redirectOr404 from "../modules/redirectOr404"; @@ -12,28 +8,6 @@ import headerSdk from "../components/api/header-sdk"; const fetch = require("make-fetch-happen").defaults({ cacheManager: "./cache" }); -/* -module.exports = exports = state => parseApiFile(state.params.wildcard).then(response => asyncHtml` -