-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
428 lines (403 loc) · 10.8 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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="BubblyPlanet is an AR (Augmented Reality) app for iOS that lets you write in your world.">
<meta name="keywords" content="BubblyPlanet, AR, Social, Augmented Reality, best iOS app 2017">
<meta name="author" content="Daniel Reed">
<title>BubblyPlanet | Augmented Reality meets the World</title>
<link rel="icon" href="media/favicon.png">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i" rel="stylesheet">
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-104971485-1', 'auto');
ga('send', 'pageview');
</script>
<div class="viewcontainer">
<div class="header">
<div class="logo-icon"></div>
</div>
<div class="section main">
<div class="column">
<div class="logo-text"></div>
<div class="subheader">BubblyPlanet is a simple and fun way to express your thoughts to people nearby.</div>
<div class="downloadbutton">Coming this Fall to iOS</div>
</div>
<div class="column column-floatright">
<div class="iphoneframe">
<video class="demovideo" autoplay loop>
<source src="media/test.m4v" type="video/mp4">
</video>
</div>
</div>
</div>
<div class="section section-bordered">
<h2><span class="beta">Beta</span> Get Notified when the App is Ready</h2>
<form onsubmit="return submitForm()">
<input type="text" placeholder="First name" class="forminput" id="firstname">
<input type="text" placeholder="Last name" class="forminput" id="lastname">
<input type="text" placeholder="Email address" class="forminput email" id="email">
<div class="errormessage" id="error"></div>
<button class="formsubmit" onclick="submitForm(event)">Submit</button>
</form>
</div>
<div class="section section-bordered section-centered">
<h5>Get in touch</h5>
<a href="mailto:danielmreed@icloud.com?Subject=Hey%20Dan!" target="_top">
<div class="socialcon email"></div>
</a>
<a href="https://twitter.com/BubblyPlanetHQ" target="blank">
<div class="socialcon twitter"></div>
</a>
<br>
<!-- <div class="footer-logo"></div> -->
<div class="copyright">© Daniel Reed, 2017</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/4.2.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyDrxjD98nsuHS_EXlXrp6rkFmzK0H7T-6E",
authDomain: "bubblyplanet-d78eb.firebaseapp.com",
databaseURL: "https://bubblyplanet-d78eb.firebaseio.com",
projectId: "bubblyplanet-d78eb",
storageBucket: "bubblyplanet-d78eb.appspot.com",
messagingSenderId: "361107415040"
};
firebase.initializeApp(config);
</script>
<script>
function validateEmail(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}
function submitForm(e) {
if (e) {
e.preventDefault();
e.stopImmediatePropagation();
}
let el_fn = document.getElementById("firstname")
let el_ln = document.getElementById("lastname")
let el_em = document.getElementById("email")
let fn = el_fn.value.trim()
let ln = el_ln.value.trim()
let em = el_em.value.trim()
console.log(fn, ln, em)
let err = document.getElementById("error")
if (!fn || !ln) {
err.style.display = "block"
err.innerHTML = "* Please enter valid name."
return false
}
if (!validateEmail(em)) {
err.style.display = "block"
err.innerHTML = "* Please enter a valid email."
return false
}
var ref = firebase.database().ref();
ref.child("betalist").once('value', function(snapshot) {
var exists = false;
snapshot.forEach(function(childSnapshot){
if(em == childSnapshot.val().email){
exists = true;
}
})
userExistsCallback(em, exists);
})
function userExistsCallback(em, exists) {
if (!exists) {
ref.child("betalist").push().set({
firstName : fn,
lastName : ln,
email: em
}, function(error) {
if (error) {
console.log(error)
}
err.style.display = "block"
err.innerHTML = "Done! You'll get an email from us when the app is ready."
err.style.color = "green"
el_fn.value = "";
el_ln.value = "";
el_em.value = "";
})
} else {
err.style.display = "block"
err.innerHTML = "This email is already in use. Please try another."
err.style.color = "red"
}
}
return false
}
</script>
</body>
<style>
body, html {
font-family: 'Open Sans';
box-sizing: border-box;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
}
* div {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
a {
color:inherit;
text-decoration: none;
}
h2 {
color: #6b6b6b;
font-weight: 300;
margin-bottom: 28px;
}
h4 {
font-weight: 400;
font-size: 16px;
color: #6b6b6b;
}
h5 {
color: #6b6b6b;
font-weight: 500;
font-size: 16px;
margin-bottom: 22px;
}
.errormessage {
color: red;
display: none;
margin-top: 20px;
font-size: 14px;
}
.beta {
color: rgb(240,155,0);
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 4px 10px;
margin-right: 4px;
}
.viewcontainer {
max-width: 860px;
width:100%;
padding: 0 40px;
margin: auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.header{
width: 100%;
height: 50px
}
.logo-icon {
width: 60px;
margin-top: 8px;
height: 60px;
background: url(media/logo-icon.png) center / contain no-repeat;
}
.logo-text {
width: 220px;
margin-top: 130px;
height: 60px;
background: url(media/logo-text.png) center / contain no-repeat;
}
.section {
display: block;
clear: both;
}
.section-bordered {
border-top: 1px solid #eee;
padding: 20px 0 30px;
}
.section-centered {
text-align: center;
}
.column {
vertical-align: top;
display: inline-block;
}
.column-floatright {
float:right;
}
.subheader {
font-size: 24px;
font-weight: 300;
color: #6d6d6d;
width: 330px;
margin-top: 10px;
}
.downloadbutton {
padding: 12px 26px;
font-weight: 500;
color: #fff;
margin-top: 60px;
font-size: 14px;
border-radius: 50px;
background-color: #333;
display: inline-block;
}
.iphoneframe {
width: 380px;
height: 660px;
margin-right: 20px;
margin-top: -60px;
position: relative;
background: url(media/iphone.png) center / contain no-repeat;
}
.forminput {
border: 2px solid #eee;
padding: 10px 14px;
margin-right: 6px;
border-radius: 4px;
font-size: 16px;
}
.forminput.email {
width: 376px;
margin-top: 10px;
display: block;
}
.formsubmit {
color: #009ae7;
border: none;
font-weight: 600;
padding: 8px;
background: #fff;
font-size: 16px;
margin-top: 20px;
}
.demovideo {
position: absolute;
top: 112px;
border-radius: 5px;
left: 72px;
width: 236px;
height: 420px;
}
.footer-logo{
display: inline-block;
width: 40px;
margin-top: 8px;
height: 40px;
background: url(media/logo-icon.png) center / contain no-repeat;
}
.copyright {
margin-top: 30px;
color: #ccc;
font-size: 14px;
font-weight: 300;
}
.socialcon {
width: 30px;
height: 30px;
display: inline-block;
margin: 10px;
}
.socialcon.email {
background: url(media/envelope.png) center / contain no-repeat;
}
.socialcon.twitter {
background: url(media/twitter.png) center / contain no-repeat;
}
@media only screen and (max-device-width: 480px){
.viewcontainer {
max-width: 100%;
width: 100%;
padding: 0 75px;
}
.logo-icon {
width: 120px;
margin-top: 46px;
height: 116px;
}
.column {
display: block;
}
.section-bordered {
border-top: 2px solid #eee;
padding: 45px 0 60px;
}
.logo-text {
width: 455px;
margin: 200px 0 0;
height: 130px;}
.subheader {
font-size: 59px;
width: 100%;
margin-top: 10px;
}
.downloadbutton {
padding: 22px 60px;
font-weight: 500;
color: #fff;
margin-top: 60px;
font-size: 30px;
}
.iphoneframe {
width: 800px;
height: 1500px;
margin: auto;
margin-top: 0;}
.demovideo {
position: absolute;
top: 17.3%;
border-radius: 5px;
left: 17.2%;
width: 530px;
height: 950px;
}
.column-floatright {
float: none;
}
h2 {
color: #6b6b6b;
font-weight: 300;
margin-bottom: 48px;
font-size: 54px;
}
.forminput {
border: 4px solid #eee;
padding: 20px 34px;
margin-right: 6px;
width: 100%;
margin-bottom: 24px;
border-radius: 14px;
font-size: 42px;
box-sizing: border-box;
}
.forminput.email {
width: 100%;
margin-top: 0;
}
.formsubmit {
color: #009ae7;
border: none;
padding: 8px;
font-size: 42px;
margin-top: 20px;
}
h5 {
font-size: 32px;
}
.socialcon {
width: 54px;
height: 54px;
display: inline-block;
margin: 30px;
}
.copyright {
margin-top: 50px;
font-size: 20px;
}
}
@media only screen and (min-device-width: 768px){
}
</style>
</html>