-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-page.js
264 lines (253 loc) · 11.8 KB
/
home-page.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
const { APP_NAME, WWW_DOMAIN } = process.env
const { html } = require('../../helpers')
const joinForm = require('./../join-form')
const yourLegislators = require('./../your-legislators')
const video = require('./../video')
module.exports = (state, dispatch) => {
return html`
<style>
.reveal { visibility: hidden; }
</style>
<section onconnected="${activateScrollReveal}" class="hero is-link is-bold is-fullheight subtract-toolbar">
<div class="hero-body">
<div class="container reveal">
<h2 class="title is-2 is-size-1-desktop is-size-3-mobile delayed">
L'assemblée la plus PUISSANTE pour défendre l'intérêt général et la séparation des pouvoirs
</h2>
<br />
<br />
<h3 class="subtitle is-3 is-size-4-mobile delayed1">Une assemblée plus intelligente et moins corruptible</h3>
<h4 class="subtitle is-3 is-size-4-mobile delayed1">Conçue pour le processus législatif</h4>
<h4 class="subtitle is-3 is-size-4-mobile delayed1">Invitez facilement votre communauté à soutenir votre position</h4>
<br />
<br />
<div class="delayed2 has-text-centered-mobile">
${!state.user ? html`
<a class="button is-link is-inverted is-medium" href="https://democratie.assemblee-liquide.fr">
<span class="icon"><i class="fa fa-star"></i></span>
<span><strong>En savoir plus</strong></span>
</a>
` : ''}
${!state.user ? html`
<a class="button is-link is-inverted is-medium" href="https://democratie.gitlab.io/wiki/fr/a-propos.html">
<span class="icon"><i class="fa fa-star"></i></span>
<span><strong>En discuter</strong></span>
</a>
` : ''}
</div>
</div>
</div>
<div class="hero-footer">
<div class="container has-text-centered" style="position: relative; bottom: 40px; opacity: .4">
<span class="learn-more is-hidden-mobile" style="cursor: default">En découvrir davantage</span><br />
<span class="icon is-large down-arrow"><i class="fa fa-2x fa-chevron-down"></i></span>
</div>
</div>
<style>
.hero.is-fullheight.subtract-toolbar {
min-height: calc(100vh - 64px);
}
.delayed {
animation: delayed-animation 0.6s cubic-bezier(0.6, 0.2, 0.1, 1);
}
@keyframes delayed-animation {
0% { opacity: 0; transform: scale(0.9) translate(0, 20px); }
100% { opacity: 1; transform: scale(1) translate(0, 0); }
}
.delayed1 {
animation: delayed1-animation 1.8s cubic-bezier(0.6, 0.2, 0.1, 1);
}
@keyframes delayed1-animation {
0% { opacity: 0; }
55% { opacity: 0; transform: scale(0.9) translate(0, 20px); }
100% { opacity: 1; transform: scale(1) translate(0, 0); }
}
.delayed2 {
animation: delayed2-animation 2.8s cubic-bezier(0.6, 0.2, 0.1, 1);
}
@keyframes delayed2-animation {
0% { opacity: 0; }
71% { opacity: 0; transform: scale(0.9) translate(0, 20px); }
100% { opacity: 1; transform: scale(1) translate(0, 0); }
}
.down-arrow {
animation: down-arrow-animation 2s infinite;
animation-delay: 3s;
opacity: 0;
}
@keyframes down-arrow-animation {
0% { transform: translate(0, 0); opacity: 0; }
50% { opacity: 1; }
100% { transform: translate(0px, 20px); opacity: 0; }
}
.learn-more {
animation: fadein 4s;
}
@keyframes fadein {
0% { opacity: 0; }
75% { opacity: 0; }
100% { opacity: 1; }
}
</style>
</section>
<!--
<section class="hero is-dark is-bold is-fullheight">
<div class="hero-body">
<div class="container">
<h2 class="title is-3 is-size-2-desktop is-size-4-mobile reveal">Most petitions today do not verify who is signing. Liquid <span class="has-text-info">verifies constituent identities</span> so reps know what real residents want.</h2>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<p class="subtitle is-3 is-size-2-desktop is-size-4-mobile reveal">We identify real constituents by cross-referencing phone numbers with the national voter file.</p>
</div>
</div>
</section>
-->
<section class="hero is-light is-bold is-fullheight">
<div class="hero-body">
<div class="container">
<h2 class="title is-2 is-size-1-desktop is-size-3-mobile reveal"><strong>You control your privacy</strong></h2>
<br />
<br />
<br />
<h3 class="subtitle is-4 is-size-3-desktop reveal">You always stay in control</h3>
<br />
<br />
<br />
<h3 class="subtitle is-4 is-size-3-desktop reveal">Lead your community publicly when you want</h3>
<br />
<br />
<br />
<h4 class="subtitle is-4 is-size-3-desktop reveal">Weigh in privately when preferred</h4>
</div>
</div>
</section>
<section class="hero is-dark is-bold is-fullheight">
<div class="hero-body">
<div class="container">
<h2 class="title is-2 is-size-1-desktop is-size-3-mobile reveal"><span class="has-text-info">${APP_NAME}</span> makes a new kind of democracy possible:</h2>
<br />
<br />
<br />
<h4 class="subtitle is-3 is-size-4-mobile reveal">Vote directly on policy when you want, and choose personal proxies to represent you the rest of the time.</h4>
</div>
</div>
</section>
<section class="hero is-link is-bold is-fullheight">
<style>
.hero.is-bold a:hover > * {
text-decoration: underline;
}
.hero.is-bold a:hover .icon {
text-decoration: none;
}
</style>
<div class="hero-body">
<div class="container">
<br />
<br />
<br />
<h2 class="title is-2 is-size-1-desktop is-size-3-mobile reveal" style="margin-bottom: 35px">How we reach a healthier democracy:</h2>
<h4 class="subtitle is-4 is-size-4-desktop reveal">Without first needing to change any laws</h4>
<br />
<br />
<br />
<div class="reveal">
<h3 class="title is-4 is-size-3-desktop" style="margin-bottom: 35px">Phase 1 - ${APP_NAME} Scorecards</h3>
<h4 class="subtitle is-5 is-size-4-desktop">Politicians are <em>automatically graded</em> for how much they follow their constituents' votes.</h4>
${yourLegislators(state)}
<br />
<br />
${!state.user ?
html`<h4 class="subtitle is-5 is-size-4-desktop"><a href="/join"><span class="icon is-size-5"><i class="fa fa-caret-right" style="position:relative;bottom: 2px;"></i></span> <strong>Join Now</strong></a> to help create a transparent accountability record.</h4>`
: ''
}
</div>
<br />
<br />
<br />
<br />
<br />
<div class="reveal">
<h3 class="title is-4 is-size-3-desktop" style="margin-bottom: 35px">Phase 2 — Liquid Candidates</h3>
<h4 class="subtitle is-5 is-size-4-desktop">Pledged to vote on everything as directed by their local liquid democracy.</h4>
<h4 class="subtitle is-5 is-size-4-desktop">Voters can elect this upgraded representation, <em>when we're ready</em>, one seat at a time.</h4>
<h4 class="subtitle is-5 is-size-4-desktop"><a href="http://liquidcandidates.com" target="_blank"><span class="icon"><i class="fa fa-star"></i></span> <span>Meet the <strong>growing list of Digital Democracy Candidates</strong></span></a>.</h4>
</div>
<br />
<br />
<br />
</div>
</div>
</section>
${!state.user ? joinSection(state, dispatch) : html``}
<section class="hero is-medium">
<div class="hero-body">
<div class="container">
<section class="section">
<h2 class="title is-2 reveal">Learn More</h2>
</section>
<div class="columns">
<div class="column">
<section class="section space-out-multiline">
<h4 class="title is-4 reveal">Introduction</h4>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2016/09/21/what-is-liquid-democracy/`}" target="_blank">What is Liquid Democracy?</a></p>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2017/07/04/running-liquid-democracy-candidates/`}" target="_blank">Liquid Democracy Candidates: How to Upgrade Our Legislature, One Seat at a Time</a></p>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2018/10/02/introducing-liquid-us/`}" target="_blank">Introducing Liquid US and Support for All 50 States and Local Legislatures</a></p>
</section>
<section class="section space-out-multiline">
<h4 class="title is-4 reveal">Further Reading</h4>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2017/03/06/how-to-move-past-two-parties/`}" target="_blank">How to Move Past A Two Party System</a></p>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2017/10/23/democracy-vs-corruption/`}" target="_blank">Liquid Democracy is the Most Promising Way to Fix Money in Politics</a></p>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2017/04/17/liquid-democracy-and-a-free-political-economy/`}" target="_blank">Liquid Democracy and A Free Political Economy</a></p>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2017/05/12/liquid-democracy-can-completely-eliminate-gerrymandering/`}" target="_blank">Liquid Democracy Can Completely Eliminate Gerrymandering</a></p>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2017/10/27/liquid-democracy-is-not-direct-democracy/`}" target="_blank">Liquid Democracy Is Not Direct Democracy, and That's a Good Thing</a></p>
<p class="reveal"><a href="${`https://blog.${WWW_DOMAIN}/2016/10/13/dont-care-about-politics/`}" target="_blank">Don't Care About Politics? Liquid Democracy Is Easier for You Too</a></p>
<p class="reveal"><a href="${`http://secure.${WWW_DOMAIN}`}" target="_blank">Secure Internet Voting</a></p>
</section>
<style>
.space-out-multiline p {
margin-bottom: 7px;
}
</style>
</div>
<div class="column">
${video({ url: 'https://www.youtube.com/embed/5jCW9lYSPdg' })}
</div>
</div>
</div>
</div>
</section>
`
}
const activateScrollReveal = () => {
const ScrollReveal = require('scrollreveal').default
const sr = ScrollReveal({ duration: 800 }) // eslint-disable-line no-undef
sr.reveal('.reveal')
}
const joinSection = (state, dispatch) => {
return html`
<section class="hero is-medium">
<div class="hero-body">
${joinForm(state, dispatch)}
</div>
</section>
<section class="hero is-medium no-vertical-padding">
<div class="hero-body">
<p class="subtitle is-4 has-text-centered">Or ask a question: <strong>
<a onclick=${(event) => dispatch({ type: 'contactForm:toggled', event })}>click here</a></strong> to send us a message.</p>
</div>
</section>
<style>
.hero.is-medium.no-vertical-padding .hero-body {
padding-top: 0;
padding-bottom: 0;
}
</style>
`
}