Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
changes from master
Browse files Browse the repository at this point in the history
  • Loading branch information
laurengarcia committed Aug 4, 2016
2 parents 0047407 + 8dd4be6 commit f625f51
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ public/js/app.js
npm-debug.log
REVISION
version.json
reports/
selenium-debug.log
2 changes: 1 addition & 1 deletion client/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
])

Expand Down
File renamed without changes.
36 changes: 36 additions & 0 deletions server/pages/landing/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const html = require('choo/html')
const header = require('./../../components/header')

const landingPage = (state, prev) => {
return html`<html>
<head>
<link rel="icon" type="image/png" href="public/img/dat-data-blank.png" />
<link rel="stylesheet" type="text/css" href="public/css/main.css"/>
</head>
<body>
${header(state, prev)}
<div class="tmp-home-view">
<div class="landing-header">
Dat is a dataset sharing system.
<br>
Give it a try:
</div>
<div class="landing-main container">
<div class="landing-create-new-dat">
<h3>Create New Dat</h3>
<p>
Drag and drop files to upload and start sharing your data
</p>
</div>
<div class="landing-import-dat">
<h3>Or Open An Existing Dat</h3>
<input />
</div>
</div>
</div>
</body></html>`
}

module.exports = landingPage

0 comments on commit f625f51

Please sign in to comment.