-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
371 lines (339 loc) · 14.3 KB
/
index.html
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<!DOCTYPE html>
<html>
<head>
<title>Cambridge University Eco Racing - Solar Kilometres</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="semantic/dist/semantic.min.css">
<style type="text/css">
header {
width: 100%;
color: #fff;
height: 25pt;
margin-bottom: 10pt;
}
header .ui.container {
padding: 5pt;
}
h1,
h2,
h3,
h4,
h5 {
font-weight: lighter;
}
.lead {
font-size: 16pt;
}
.cuer-green {
background-color: #92C41F!important;
/* cuer green */
}
.cuer-green-fg {
color: #92C41F;
/* cuer green */
}
.cuer-green-border {
border-color: #92c41f;
/* cuer green */
}
.light-grey-fg {
color: #9B9B9B;
}
.ui.cuer-green-border.segment:not(.inverted) {
border-top: 2px solid #92c41f;
border-bottom: 0;
}
.extra.images a img {
height: auto!important;
}
</style>
</head>
<body>
<header class="cuer-green">
<div class="ui container">
CUER Solar Miles (Prototype)
</div>
</header>
<div class="ui container">
<div class="ui mobile reversed stackable grid">
<div class="ui ten wide column">
<div class="ui embed" data-source="youtube" data-id="f4p7Uz91nnk"></div>
</div>
<div class="ui six wide column">
<h1 class="cuer-green-fg">Solar Kilometres</h1>
<p class="lead light-grey-fg">
Help support Cambridge University Eco Racing by sponsoring a kilometre of the Bridgestone World Solar Challenge.
</p>
<!-- TODO: use a nicer way of adding a gap -->
<p>
<strong>2950km</strong> of 3000km
</p>
<div class="ui tiny progress">
<div class="cuer-green bar" style="width: 98.333%;"></div>
</div>
<div class="ui labeled button" id="support-button" tabindex="0">
<div class="ui cuer-green button">
<i class="road icon"></i> Support Us
</div>
<a class="ui basic cuer-green-border left pointing label">
1,048
</a>
</div>
</div>
</div>
<div class="ui stackable grid">
<div class="ui ten wide column" id="main-content">
<h2>Why Solar Kilometres?</h2>
<div class="ui cuer-green-border vertical segment">
<p>Last time we got 2047km. Help us go even further and faster next time.</p>
<div class="ui right floated small statistic">
<div class="value">
<i class="sun icon"></i> 2,047km
</div>
<div class="label">
travelled
</div>
</div>
<p>
Things about how great CUER is and how we're going to do pretty well in WSC next year because there are loads of great people and we know what we're doing, obviously!
</p>
<p>
We're running this campaign pretty much just to give out green unicorns (the best kind of unicorns) and things like that. We just really love unicorns.
</p>
<p>
Don't you want to see us <em>this</em> happy?
</p>
<img class="ui image" src="http://www.cuer.co.uk/img/gallery/DSC_0104%20(1024x689).jpg" />
</div>
</div>
<div id="side-rewards" class="ui four wide right floated column">
<h2>Rewards</h2>
<div class="ui cuer-green-border vertical segment">
<div class="ui one cards">
<div class="ui card" style="border-radius: 0; box-shadow: none; margin: 0;">
<div class="content" style="padding: 1em 0;">
<div class="header">
1km
</div>
<div class="meta">
800 supporters
</div>
<div class="description">
You're awesome! You get a free CUER unicorn!
</div>
</div>
</div>
<div class="ui card" style="border-radius: 0; box-shadow: none; margin: 0;">
<div class="content" style="padding: 1em 0;">
<div class="header">
5km
</div>
<div class="meta">
230 supporters
</div>
<div class="description">
What's better than a CUER unicorn? You guessed it, TWO CUER unicorns. Twice the unicorniness.
</div>
</div>
</div>
<div class="ui card" style="border-radius: 0; box-shadow: none; margin: 0;">
<div class="content" style="padding: 1em 0;">
<div class="header">
20km
</div>
<div class="meta">
50 supporters (limit of 100)
</div>
<div class="description">
Wow! You've discovered the best level that's only for people who are the best, you get three CUER unicorns and a 3D printed model of EVO.
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui stackable grid">
<div class="ui ten wide column">
<h3>Recent Updates</h3>
<div class="ui cuer-green-border vertical segment">
<div class="ui feed">
<div class="event">
<div class="label">
<i class="smile icon"></i>
</div>
<div class="content">
<div class="summary">
<a class="user">
Matthew Else
</a> bought 200 Solar Kilometres
<div class="date">
1 minute ago
</div>
</div>
<div class="extra text emojis">
So looking forward to my unicorns.
</div>
</div>
</div>
<div class="event">
<div class="label">
<img src="http://www.cuer.co.uk/images/team-15-16/frank-bloomfield.jpg">
</div>
<div class="content">
<div class="summary">
<a class="user">
Frank
</a> posted an update
<div class="extra images">
<a><img src="http://cuer.co.uk/img/gallery/DSC_0029-2_New.jpg">
</a>
<a><img src="http://cuer.co.uk/img/gallery/10-Oct3 (1024x683).jpg">
</a>
</div>
<div class="date">
1 Hour Ago
</div>
</div>
</div>
</div>
<div class="event">
<div class="label">
<i class="icon road"></i>
</div>
<div class="content">
<div class="summary">
<a class="user">
Mystery Car Name
</a> reached 2500km
<div class="date">
1 Month Ago
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="support-modal ui modal">
<i class="close icon"></i>
<div class="header top attached">
Buy Solar Kilometres
</div>
<div class="ui three top attached small steps">
<div class="link step">
<i class="road icon"></i>
<div class="content">
<div class="title">Distance</div>
<div class="description">200km</div>
</div>
</div>
<div class="active step">
<i class="credit card icon"></i>
<div class="content">
<div class="title">Details</div>
<div class="description"></div>
</div>
</div>
<div class="disabled step">
<i class="info icon"></i>
<div class="content">
<div class="title">Confirmation</div>
<div class="description"></div>
</div>
</div>
</div>
<div class="content">
<form class="ui form" id="km-form">
<div class="ui inverted dimmer">
<div class="ui text loader">Processing Payment</div>
</div>
<div class="field">
<label>Solar Kilometres</label>
<input type="text" name="kms" disabled="" value="200" />
</div>
<div class="field">
<label>Solar Kilometres</label>
<input type="text" name="email" value="[email protected]" />
</div>
<div class="field">
<div class="ui checkbox">
<input type="checkbox" name="chkbox" />
<label>Subscribe me to the CUER Newsletter</label>
</div>
</div>
<div class="field">
<div class="ui checkbox">
<input type="checkbox" name="chkbox" />
<label>I want my donation to be displayed publically</label>
</div>
</div>
<div class="field">
<label>Message for the team (optional)</label>
<textarea rows="2"></textarea>
</div>
<button class="ui blue labeled icon button" id="km-button">
<i class="stripe icon"></i> Pay with Stripe
</button>
</form>
</div>
<div class="actions">
<div class="ui cuer-green right labeled icon button">
Continue
<i class="chevron right icon"></i>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script src="semantic/dist/semantic.min.js"></script>
<script src="https://checkout.stripe.com/checkout.js"></script>
<script>
$(function() {
$(".ui.embed").embed();
// $('#side-rewards')
// .sticky({
// context: '#main-content'
// }
// );
$('#support-button').click(function() {
$('.ui.modal.support-modal').modal('show');
});
var handler = StripeCheckout.configure({
key: 'pk_test_gFEcikEO5wymbIvVv1suM0aj',
image: 'https://pbs.twimg.com/profile_images/418423921130487808/9T9qgDau.png',
locale: 'auto',
token: function(token) {
// You can access the token ID with `token.id`.
// Get the token ID to your server-side code for use.
$('#km-form .dimmer .text').html('Doesn\'t work yet');
},
closed: function() {
$('#km-form .dimmer').removeClass('active');
},
email: "[email protected]"
});
$('#km-button').click(function(e) {
// Open Checkout with further options:
$("#km-form .dimmer").addClass('active');
handler.open({
name: 'Cambridge University Eco Racing',
description: '200 Solar km',
zipCode: true,
amount: 500000,
currency: "gbp"
});
e.preventDefault();
});
// Close Checkout on page navigation:
window.addEventListener('popstate', function() {
handler.close();
});
twemoji.parse(document.body);
});
</script>
</body>
</html>