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

Commit cdc2e59

Browse files
committed
update landing, footer, style fixes
1 parent 88f3260 commit cdc2e59

5 files changed

Lines changed: 106 additions & 131 deletions

File tree

client/js/components/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ module.exports = function (state, emit) {
2323
return html`
2424
<header>
2525
${message(state.message)}
26-
<nav class="bg-white bb b--neutral-10 dt w-100 w-100 border-box pa2 ph4-l">
26+
<nav class="bg-white bb b--neutral-10 dt w-100 border-box pa2 ph4-l">
2727
<div class="dtc v-mid w-75">
2828
<a class="${logoCss} v-mid dib link dim mr2 w2 h2" href="/" title="DatBase">
2929
<img src="/public/img/dat-hexagon.svg" alt="Dat Logo">
3030
</a>
31-
<a class="mr3 v-mid link dim color-neutral hover-color-neutral b f5 f3-ns dib-ns dn" href="/" title="DatBase">Dat<span class="color-neutral-60">Base</span></a>
31+
<a class="mr3 v-mid link dim color-neutral hover-color-neutral b f5 f3-ns dib-ns dn" href="/" title="datBase">dat<span class="color-neutral-60">Base</span></a>
3232
${importButton(emit)}
3333
<a href="http://docs.datproject.org" class="ml3 link dim color-neutral ttu tracked f6 f5-ns dib">Docs</a>
3434
<a href="http://chat.datproject.org" class="ml3 link dim color-neutral ttu tracked f6 f5-ns dib-l dn">Chat</a>

client/js/elements/footer/index.js

Lines changed: 31 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,43 @@ const html = require('choo/html')
22
const css = require('sheetify')
33

44
module.exports = function () {
5-
const rule = css`
6-
:host {
7-
&:after {
8-
content: '';
9-
display: block;
10-
width: 2rem;
11-
height: 4px;
12-
background-color: var(--color-neutral-70);
13-
margin-top: .75rem;
14-
margin-bottom: 1.5rem;
15-
}
16-
}
17-
`
18-
19-
const datList = css`
20-
:host {
21-
text-indent: -20px;
22-
margin-left: -20px;
23-
}
24-
25-
:host li:before {
26-
content: '';
27-
display: inline-block;
28-
position: relative;
29-
top: -0.125rem;
30-
width: .5rem;
31-
height: .5rem;
32-
margin-right: .75rem;
33-
background-image: url(/public/img/dat-hexagon.svg);
34-
background-size: 100%;
35-
background-repeat: no-repeat;
36-
}
37-
`
38-
395
return html`
40-
<footer class="pv2 bg-neutral white absolute bottom-0 w-100">
41-
<section class="pa2 ph4-m mw8-ns center-ns">
42-
<div class="pt2 cf">
43-
<div class="fl w-third">
44-
<h4 class="f4 ${rule}">Explore</h4>
45-
<ul class="${datList} p0 list lh-copy">
46-
${liLink('/explore', 'Explore Datasets')}
47-
${liLink('https://blog.datproject.org', 'Dat Blog')}
48-
</ul>
49-
</div>
50-
<div class="fl w-third">
51-
<h4 class="f4 ${rule}">Learn</h4>
52-
<ul class="${datList} p0 list lh-copy">
53-
${liLink('/about', 'About Dat')}
54-
${liLink('http://docs.datproject.org', 'Docs')}
55-
</ul>
6+
<footer class="pv2 bg-neutral white w-100">
7+
<section class="ph2 ph4-m mw8-ns center-ns">
8+
<div class="pt3">
9+
<div class="mb2 lh-copy">
10+
<a class="f4 b white dib dim link hover-color-white mr3 mt1" href="/" title="Dat Project">
11+
<img src="/public/img/dat-hexagon.svg" class="dib w2 h2 mr2 v-mid mb1" alt="Dat Project">
12+
datBase
13+
</a>
14+
<a class="f4 link white hover-color-neutral-40 b dib mr3 mb3" href="http://blog.datproject.org" title="Blog - Dat Project">
15+
Blog
16+
</a>
5617
</div>
57-
<div class="fl w-third">
58-
<h4 class="f4 ${rule}">Connect</h4>
59-
<ul class="${datList} list p0 lh-copy">
60-
${liLink('https://twitter.com/dat_project', 'Twitter')}
61-
${liLink('https://github.com/datproject', 'Github')}
62-
${liLink('https://www.stickermule.com/en/marketplace/9709-dat-data-v3', 'Get Stickers')}
63-
</ul>
18+
<div class="mt3">
19+
<a class="white hover-color-white ba b--green no-underline grow b inline-flex items-center mr3 mb3 pv2 ph3" href="https://datproject.org" title="Dat Project Home">
20+
<div class="color-green dib mr2"><svg class="w2 h2"><use xlink:href="#daticon-happy-dat"/></svg></div>
21+
<span>Dat Project Home</span>
22+
</a>
23+
<a class="white hover-color-white ba b--green no-underline grow b inline-flex items-center mr3 mb3 pv2 ph3" href="http://chat.datproject.org" title="Join our Chat">
24+
<div class="color-green dib mr2"><svg class="w2 h2"><use xlink:href="#daticon-question"/></svg></div>
25+
<span>
26+
Curious? Join Our Chat
27+
</span>
28+
</a>
29+
<a class="white hover-color-white ba b--green no-underline grow b inline-flex items-center mb3 pv2 ph3" href="https://donate.datproject.org" title="Donate to Code for Science & Society">
30+
<div class="color-green dib mr2"><svg class="w2 h2"><use xlink:href="#daticon-star-dat"/></svg></div>
31+
<span>Donate to Support Public Data</span>
32+
</a>
6433
</div>
34+
<p class="f6 measure copy lh-copy">
35+
Have questions? Join our chat or ask on <a href="http://twitter.com/dat_project" class="color-blue no-underline underline-hover">Twitter</a> or <a href="http://github.com/datproject" class="color-pink no-underline underline-hover color-green">Github</a>.
36+
</p>
6537
</div>
66-
<p class="bt b--dat-neutral-80 color-neutral-50 tc f7 pv3">
67-
<strong>Dat</strong> 2017 • Page source on <a class="color-neutral-50 hover-color-pink" href="https://github.com/datproject/datproject.org">github</a>
38+
<p class="bt b--dat-neutral-80 color-neutral-50 tc f7 pv2">
39+
<strong>Dat</strong> 2017 • Page source on <a class="color-neutral-50 hover-color-pink" href="https://github.com/datproject/datbase.org">github</a>
6840
</p>
6941
</section>
7042
</footer>
7143
`
72-
73-
function liLink (url, text) {
74-
return html`
75-
<li>
76-
<a class="f5 fw6 link color-neutral-20 hover-color-pink" href="${url}">${text}</a>
77-
</li>
78-
`
79-
}
8044
}

client/js/elements/home-section/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function (props) {
4141
subtitle.innerHTML = props.subtitle
4242

4343
return html`
44-
<section class="pt4 ${props.bgColor} ${props.color ? props.color : ''}">
44+
<section class="pv4 ${props.bgColor} ${props.color ? props.color : ''}">
4545
<div class="pv2 ph3 pa4-m mw8-ns center-ns">
4646
<header>
4747
<h2 class="f2 mb0">${props.title}</h2>
@@ -60,7 +60,7 @@ module.exports = function (props) {
6060
function cta () {
6161
if (!props.cta) return
6262
return html`
63-
<p class="pv4">
63+
<p class="pt4">
6464
<a href="${props.cta.link}" class="f5 white bg-animate hover-color-white bg-green hover-bg-dark-green pa3 link">${props.cta.text}</a>
6565
</p>
6666
`

client/js/pages/landing/index.js

Lines changed: 70 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const html = require('choo/html')
22
const css = require('sheetify')
33
const footer = require('../../elements/footer')
44
const datIcon = require('../../elements/icon')
5+
const importButton = require('../../elements/import-button')
56
const homeSection = require('../../elements/home-section')
67
const panel = require('../../components/auth/user-panel')
78
const loginButton = require('../../components/login-button')
@@ -10,100 +11,110 @@ const message = require('../../elements/message')
1011
module.exports = function (state, emit) {
1112
const splash = css`
1213
:host {
13-
background-repeat: repeat-y;
14-
background-position: center -75px;
14+
background-repeat: no-repeat;
15+
background-position: center -50px;
16+
background-size:100%;
1517
1618
@media screen and (min-width: 30em) {
1719
/* ns - not small breakpoint from tachyons */
18-
background-position: center -175px;
20+
background-position: center -200px;
1921
}
2022
}
2123
`
2224
const backgroundImageUrl = '/public/img/bg-landing-page.svg'
23-
const hex = datIcon('hexagon-up', {class: 'color-green-darker'})
25+
const hex = datIcon('hexagon-up', {class: 'color-green-disabled'})
2426
return html`
25-
<div class="min-vh-100 pb7">
26-
<div class="absolute w-100">
27+
<div class="home">
28+
<div class="absolute dt w-100">
2729
${message(state.message)}
28-
<div class="tr pa2 ph4-l">
30+
<div class="dtc v-mid w-75 pa2 ph4-l">
31+
${importButton(emit)}
32+
</div>
33+
<div class="dtc v-mid w-25 tr pa2 ph4-l">
2934
${loginButton(state, emit)}
3035
${panel(state, emit)}
3136
</div>
3237
</div>
33-
<div class="${splash} pb6-ns pb4 w-100 center" style="background-image: url(${backgroundImageUrl})">
34-
<section class="tc pa3 pt5-ns">
35-
<h1 class="f3 f2-m f1-l fw2 black-90 mv3 tracked">
38+
<div class="bg-neutral color-white ${splash} pb4 w-100 center" style="background-image: url(${backgroundImageUrl})">
39+
<section class="tc pa3 pt6">
40+
<h1 class="f3 f2-m f1-l fw2 mv3 tracked">
3641
<span class="dib grow w2 h2 hex-title-icon">
3742
${hex}
3843
</span>datBase
3944
</h1>
40-
<h2 class="f5 fw2 color-neutral-60 mb4 lh-copy">
41-
Search for data preprints on DatBase!
45+
<h2 class="f4 fw3 color-neutral-10 mb4 lh-copy">
46+
Open data powered by Dat<br>
47+
Future-friendly apps for your research data pipeline
4248
</h2>
43-
<div class="w-90 w-50-l center">
44-
${search()}
45-
</div>
46-
</section>
47-
<section class="bg-white mt4 mt3-ns mw7-ns center pa3 ph5-ns">
48-
<p class="f4 lh-copy measure-wide">
49-
Research papers are becoming increasingly accessible through open access and preprint servers.
50-
Research data is still behind locked custom APIs, confusing interfaces, or slow HTTP servers.
51-
We dream of world when all this data can be accessed as easy as the web.
52-
<a href="#"> Imagine with us</a>.
53-
</p>
54-
<p class="f3 lh-copy measure-wide">
55-
DatBase is distributed preprints for data!
56-
Built by <a href="http://datproject.org">Dat Project</a>.
57-
</p>
5849
</section>
5950
</div>
60-
<section class="pa3 w-100 bg-neutral-04">
61-
<div class="mw7 center">
62-
<div class="pa4-l">
63-
<form class="mb0 pa4 br2-ns ba b--green">
64-
<fieldset class="cf bn ma0 pa0">
65-
<legend class="pa0 f5 f4-ns mb3 black-80">Get updates! We promise to only send the very exciting stuff.</legend>
66-
<div class="cf">
67-
<label class="clip" for="email-address">Email Address</label>
68-
<input class="f6 f5-l input-reset bn fl black-80 bg-white pa3 lh-solid w-100 w-75-m w-80-l br2-ns br--left-ns" placeholder="Your Email Address" type="text" name="email-address" value="" id="email-address">
69-
<input class="f6 f5-l button-reset fl pv3 tc bn bg-animate bg-black-70 hover-bg-black white pointer w-100 w-25-m w-20-l br2-ns br--right-ns" type="submit" value="Subscribe">
70-
</div>
71-
</fieldset>
72-
</form>
73-
</div>
74-
</div>
75-
</section>
7651
${homeSection({
77-
'title': 'What are Data Preprints?',
78-
'subtitle': 'With data preprints you can make data public & shareable before you are ready to publish.',
52+
'title': 'Coming to a computer near you...',
53+
'subtitle': 'Built on the Dat Protocol, we imagine existing research tools enhanced with data-first infrastructure.',
7954
'sections': [
8055
{
81-
'title': 'User Friendly',
56+
'title': 'Try Dat',
8257
'text': `
83-
Dat's simple to use command line tool works alognside apps like Dropbox or Google Drive.
84-
Keep data private until you are ready to prepublish without changing your data management software.
58+
See what it is like to use Dat!
59+
The Try Dat workshop will walk you through sharing and downloading data.
60+
It showcases unique properties of the Dat Protocol.
61+
<br>
62+
<a class="f5 b w-auto dib mt3 color-green hover-color-green-hover ba b--green pv2 ph3 link" href="http://try-dat.com">
63+
Try Dat Now!
64+
</a>
8565
`
8666
},
8767
{
88-
'title': 'Reproducible History',
68+
'title': 'Dat in the Lab',
8969
'text': `
90-
Dat uses cryptographic registers to certify data ownership and track changes over time.
91-
A history of changes improves data reproducibility and transparency.
70+
A collaboration with the California Digitial Library, funded by the Moore Foundation.
71+
Learn more about our pilot to integrate Dat into research data workflows.
72+
<br>
73+
<a class="f5 b w-auto dib mt3 color-green hover-color-green-hover ba b--green pv2 ph3 link" href="http://blog.datproject.org/tag/science">
74+
Follow on our Blog
75+
</a>
9276
`
9377
},
9478
{
95-
'title': 'One-Click Publish',
79+
'title': 'About Dat Project',
9680
'text': `
97-
In the future, DatBase will have one-click publishing to data repositories such as Zenodo or Dataverse.
98-
Dat's innovative storage makes it the perfect intermediate between files on your computer and data publishing sites.
81+
Dat is a nonprofit-backed community & open protocol for building apps of the future.
82+
We set out to improve access to public data and created the Dat Protocol along the way.
83+
<br>
84+
<a class="f5 b w-auto dib mt3 color-green hover-color-green-hover ba b--green pv2 ph3 link" href="http://datproject.org">
85+
Learn About Dat
86+
</a>
9987
`
10088
}
101-
],
102-
'cta': {
103-
'link': 'http://datproject.org',
104-
'text': 'Learn more about Dat Project'
105-
}
89+
]
10690
})}
91+
<section class="pa3 w-100 bg-neutral-04">
92+
<div class="mw7 center">
93+
<div class="pa4-l">
94+
<!-- Begin MailChimp Signup Form -->
95+
<div id="mc_embed_signup">
96+
<form action="//datproject.us16.list-manage.com/subscribe/post?u=993df3c1e35c9b224b64ccf72&amp;id=128a796b8e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="mb0 pa4 br2-ns ba b--green validate" target="_blank" novalidate>
97+
<div class="cf bn ma0 pa0">
98+
<legend class="pa0 f5 f4-ns mb3 color-neutral-90">Get updates! Join our newsletter to receive annoucements.</legend>
99+
<div>
100+
<label class="clip" for="mce-EMAIL">Email Address </label>
101+
<input class="f6 f5-l input-reset bn fl black-80 bg-white pa3 lh-solid w-100 w-75-m w-80-l br2-ns br--left-ns" placeholder="Your Email Address" type="email" value="" name="EMAIL" id="mce-EMAIL">
102+
</div>
103+
<div id="mce-responses" class="clear">
104+
<div class="response" id="mce-error-response" style="display:none"></div>
105+
<div class="response" id="mce-success-response" style="display:none"></div>
106+
</div>
107+
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_993df3c1e35c9b224b64ccf72_128a796b8e" tabindex="-1" value=""></div>
108+
<div class="clear">
109+
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="f6 f5-l button-reset fl pv3 tc bn bg-animate bg-green hover-bg-green-hover white pointer w-100 w-25-m w-20-l br2-ns br--right-ns" >
110+
</div>
111+
</div>
112+
</form>
113+
</div>
114+
<!--End mc_embed_signup-->
115+
</div>
116+
</div>
117+
</section>
107118
${footer()}
108119
</div>
109120
`

client/js/pages/wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const footer = require('../elements/footer')
55
module.exports = function (view, opts) {
66
return function (state, emit) {
77
return html`
8-
<div class="min-vh-100 pb7">
8+
<div class="">
99
${header(state, emit)}
1010
${view(state, emit)}
1111
${footer()}

0 commit comments

Comments
 (0)