-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
301 lines (269 loc) · 7.71 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
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Properties -->
<title>BVP Mozilla Open Source Club</title>
<link rel="stylesheet" type="text/css" href="semantic.min.css">
<style type="text/css">
.hidden.menu {
display: none;
}
.ui.inverted.segment, .ui.primary.inverted.segment{
height: 100vh;
background-image: url('back.png') !important;
background-size: cover !important;
}
.masthead.segment {
min-height: 100vh;
padding: 1em 0em;
}
.masthead .logo.item img {
margin-right: 1em;
}
.masthead .ui.menu .ui.button {
margin-left: 0.5em;
}
.masthead h1.ui.header {
margin-top: 3em;
margin-bottom: 0em;
font-size: 4em;
font-weight: normal;
}
.masthead h2 {
font-size: 1.7em;
font-weight: normal;
}
.ui.vertical.stripe {
padding: 8em 0em;
}
.ui.vertical.stripe h3 {
font-size: 2em;
}
.ui.vertical.stripe .button + h3,
.ui.vertical.stripe p + h3 {
margin-top: 3em;
}
.ui.vertical.stripe .floated.image {
clear: both;
}
.ui.vertical.stripe p {
font-size: 1.33em;
}
.ui.vertical.stripe .horizontal.divider {
margin: 3em 0em;
}
.quote.stripe.segment {
padding: 0em;
}
.quote.stripe.segment .grid .column {
padding-top: 5em;
padding-bottom: 5em;
}
.footer.segment {
padding: 5em 0em;
}
.secondary.pointing.menu .toc.item {
display: none;
}
.custom-seg{
background: rgba(255,255,255,0.95) !important;
}
@media only screen and (max-width: 700px) {
.ui.fixed.menu {
display: none !important;
}
.secondary.pointing.menu .item,
.secondary.pointing.menu .menu {
display: none;
}
.secondary.pointing.menu .toc.item {
display: block;
}
.masthead.segment {
min-height: 350px;
}
.masthead h1.ui.header {
font-size: 2em;
margin-top: 1.5em;
}
.masthead h2 {
margin-top: 0.5em;
font-size: 1.5em;
}
}
</style>
</head>
<body>
<!-- Following Menu -->
<div class="ui large top fixed hidden menu">
<div class="ui container">
<a class="active item">Home</a>
<a class="item">Work</a>
<a class="item">Company</a>
<a class="item">Careers</a>
<div class="right menu">
<div class="item">
<a class="ui button">Log in</a>
</div>
<div class="item">
<a class="ui primary button">Sign Up</a>
</div>
</div>
</div>
</div>
<!-- Sidebar Menu -->
<div class="ui vertical inverted sidebar menu">
<a class="active item">Home</a>
<a class="item">Work</a>
<a class="item">Company</a>
<a class="item">Careers</a>
<a class="item">Login</a>
<a class="item">Signup</a>
</div>
<!-- Page Contents -->
<div class="pusher">
<div class="ui inverted vertical masthead center aligned segment ">
<div class="ui container">
<div class="ui stackable two column middle aligned grid">
<div class="nine wide column">
<h1 class="ui inverted header">
Community for developers
</h1>
<h2>Explore, Learn, Share.</h2>
<!-- <div class="ui huge primary button">Learn More <i class="down arrow icon"></i></div> -->
</div>
<div class="seven wide column">
<div class="ui positive message hidden" id="mess">
<div class="header">
Your user registration is successful.
</div>
</div>
<form style="margin-top:50px" class="ui form attached fluid segment custom-seg">
<div class="ui ">
<div class="field">
<div class="ui left icon input">
<i class="user icon"></i>
<input type="text" name="name" placeholder="Name*">
</div>
</div>
<div class="field">
<div class="ui left icon input">
<i class="mail icon"></i>
<input type="text" name="email" placeholder="E-mail address*">
</div>
</div>
<div class="field">
<div class="ui left icon input">
<i class="github icon"></i>
<input type="url" name="github" placeholder="Github Profile">
</div>
</div>
<div class="field">
<div class="ui left icon input">
<i class="mobile icon"></i>
<input type="text" name="phone" placeholder="Phone Number">
</div>
</div>
<div id="submitForm" class="ui fluid large teal submit button">Count me in <i class="right arrow icon"></i></div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="semantic.min.js"></script>
<script type="text/javascript">
$('.ui .form').submit(function(e){
e.preventDefault()
if( $('.form').form('is valid') == true ){
$('#submitForm').addClass('disabled')
name = $('input[name="name"]').val()
email = $('input[name="email"]').val()
github = $('input[name="github"]').val()
phone = $('input[name="phone"]').val()
writeUserData(name, email, github, phone)
}
})
$(document)
.ready(function() {
$('.ui.form')
.form({
fields: {
email: {
identifier : 'email',
rules: [
{
type : 'empty',
prompt : 'Please enter your e-mail'
},
{
type : 'email',
prompt : 'Please enter a valid e-mail'
}
]
},
name: {
identifier : 'name',
rules: [
{
type : 'empty',
prompt : 'Please enter your name'
}
]
},
phone: {
identifier : 'phone',
rules: [
{
type : 'empty',
prompt : 'Please enter your phone'
}
]
}
},
})
})
;
// }, {
// onSuccess: function(e){
// console.log('sd')
//
// }
</script>
<!-- Firebase Portion -->
<script src="https://www.gstatic.com/firebasejs/4.1.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.1.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.1.1/firebase-messaging.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCY6ZkAsb-CTT2mEu-J4FeaeF90USDCU7k",
authDomain: "learning-5e04c.firebaseapp.com",
databaseURL: "https://learning-5e04c.firebaseio.com",
projectId: "learning-5e04c",
storageBucket: "learning-5e04c.appspot.com",
messagingSenderId: "627769457667"
};
firebase.initializeApp(config);
function writeUserData(name, email, github, phone) {
var today = new Date();
firebase.database().ref('forms').push().set({
name: name,
email: email,
github : github,
phone: phone,
date: today.toString() ,
},
function(){
$('#mess').removeClass('hidden')
});
}
</script>
</body>
</html>