diff --git a/app/components/api/header-blockchain.js b/app/components/api/header-blockchain.js
new file mode 100644
index 0000000..301b016
--- /dev/null
+++ b/app/components/api/header-blockchain.js
@@ -0,0 +1,15 @@
+"use strict";
+
+import html from "choo/html";
+
+export default () => {
+ return html`
+
+ `;
+};
diff --git a/app/components/api/header-sdk.js b/app/components/api/header-sdk.js
new file mode 100644
index 0000000..694a66e
--- /dev/null
+++ b/app/components/api/header-sdk.js
@@ -0,0 +1,15 @@
+"use strict";
+
+import html from "choo/html";
+
+export default () => {
+ return html`
+
+ `;
+};
diff --git a/app/sass/pages/_api.scss b/app/sass/pages/_api.scss
index 51fd43b..1533a8c 100644
--- a/app/sass/pages/_api.scss
+++ b/app/sass/pages/_api.scss
@@ -17,7 +17,7 @@
.api__header
{
- color: red;
+ padding: 2rem;
}
@@ -107,27 +107,14 @@
}
-
-/**
- * API | Main Content
- *
- * @class .api__content
- * @class .api__content__body
- * @class .api__content__body__arguments
- *
- * @class .api__content__body__argument
- * @selector {::after}
- * @selector {:last-of-type}
- * @selector {:nth-child}
- *
- * @class .api__content__example
- */
-
.api__content {
- display: grid;
float: right;
- grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
width: calc(100% - 200px);
+}
+
+.api__documentation {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
h1 {
font-size: 1.5rem;
diff --git a/app/views/api.js b/app/views/api.js
index eec4d23..b135a0e 100644
--- a/app/views/api.js
+++ b/app/views/api.js
@@ -7,6 +7,8 @@
import asyncHtml from "choo-async/html";
import dedent from "dedent";
import redirectOr404 from "../modules/redirectOr404";
+import headerBlockchain from "../components/api/header-blockchain";
+import headerSdk from "../components/api/header-sdk";
const fetch = require("make-fetch-happen").defaults({ cacheManager: "./cache" });
@@ -53,8 +55,12 @@ module.exports = exports = state => parseApiFile(state.params.wildcard).then(res
+ ${createApiHeader(state.params.wildcard)}
+
+ ${createApiContent(response)}
+
+
@@ -69,6 +75,15 @@ module.exports = exports = state => parseApiFile(state.params.wildcard).then(res
// H E L P E R S
+function createApiHeader(slug) {
+ switch (slug) {
+ case "sdk":
+ return headerSdk();
+ case "blockchain":
+ return headerBlockchain();
+ }
+}
+
function createApiContent(apiDetails) {
const apiContent = [];