diff --git a/.gitignore b/.gitignore index 6f06927b..188e03a8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ public/js/app.js npm-debug.log REVISION version.json +reports/ +selenium-debug.log diff --git a/client/js/app.js b/client/js/app.js index f41a214f..395af2eb 100644 --- a/client/js/app.js +++ b/client/js/app.js @@ -6,7 +6,7 @@ app.model(require('./models/archive')) // define routes: app.router((route) => [ - route('/', require('./pages/home')), + route('/', require('./pages/landing')), route('/:archiveKey', require('./pages/archive')) ]) diff --git a/client/js/pages/home/index.js b/client/js/pages/landing/index.js similarity index 100% rename from client/js/pages/home/index.js rename to client/js/pages/landing/index.js diff --git a/server/pages/landing/index.js b/server/pages/landing/index.js new file mode 100644 index 00000000..1b0654f2 --- /dev/null +++ b/server/pages/landing/index.js @@ -0,0 +1,36 @@ +const html = require('choo/html') +const header = require('./../../components/header') + +const landingPage = (state, prev) => { + return html` + + + + + + ${header(state, prev)} +
+
+ Dat is a dataset sharing system. +
+ Give it a try: +
+
+ +
+

Create New Dat

+

+ Drag and drop files to upload and start sharing your data +

+
+ +
+

Or Open An Existing Dat

+ +
+
+
+ ` +} + +module.exports = landingPage