diff --git a/app/client.js b/app/client.js index 3ebbe7e..29a3db1 100755 --- a/app/client.js +++ b/app/client.js @@ -34,6 +34,7 @@ function main() { app.use(ssr()); app.route("/", page(require("./views/home"))); + app.route("/spec", page(require("./views/spec"))); app.route("/api/*", page(require("./views/api"))); app.route("/*", page(require("./views/redirect"))); diff --git a/app/components/footer.js b/app/components/footer.js index 88d392b..47170a9 100644 --- a/app/components/footer.js +++ b/app/components/footer.js @@ -19,6 +19,9 @@ const config = local("/config"); // E X P O R T export default state => { + if (state.hideFooter) { + return ""; + } return html`
${emailSubscribe()} diff --git a/app/views/spec.js b/app/views/spec.js new file mode 100644 index 0000000..ace746b --- /dev/null +++ b/app/views/spec.js @@ -0,0 +1,33 @@ +"use strict"; + + + +// I M P O R T + +import html from "choo/html"; + + + +// E X P O R T + +export default state => { + state.hideFooter = true; + return html` +
+ +
+ + `; +};