-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
executable file
·398 lines (341 loc) · 14.9 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
<!DOCTYPE html>
<html>
<head>
<title>QLOUD.</title>
<script src="vendor.bundle.js" type="text/javascript" charset="utf-8"></script>
<script src="bundle.js" type="text/javascript" charset="utf-8"></script>
<link href='https://fonts.googleapis.com/css?family=Poiret+One|Dosis:300,400,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link href="assets/styles/index.css" rel="stylesheet">
</head>
<body class="bg-image">
<!-- Navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">QLOUD.</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="myaccount-dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">My Account<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" data-toggle="modal" data-target="#change-password-modal">Change Password</a></li>
<li><a href="#" data-toggle="modal" data-target="#sign-out-modal">Sign Out</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<!-- Landing Header -->
<div class="landing-header">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="intro-message">
<h1>Welcome to the QLOUD.</h1>
<h3>Secure cloud storage.</h3>
<ul class="list-inline intro-social-buttons">
<li>
<a href="#" data-toggle="modal" data-target="#sign-in-modal">Sign In</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Landing Header -->
<!-- Body Wrapper -->
<div id="wrapper" class="page-content">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li><span class="glyphicon glyphicon-file" aria-hidden="true"></span>
<a href="#" data-dismiss="modal" data-toggle="modal" data-target="#upload-file-modal">Upload File</a>
</li>
<li><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
<a href="#" data-dismiss="modal" data-toggle="modal" data-target="#create-folder-modal">Create a Folder</a>
</li>
</ul>
</div>
<!-- End Sidebar -->
<!-- Page Content Wrapper-->
<div id="page-content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 breadcrumb-header">
<h2>
<ol class="breadcrumb">
<li class="root active">Home</li>
</ol>
</h2>
<!-- Button for getting nodes: <a id="get-nodes" class="btn btn-success"><span class="glyphicon glyphicon-cloud-download"></span>Get Nodes</a> -->
<div id="all-nodes" class="all-nodes" data-spy="scroll" data-target=".header" >
</div>
</div>
</div>
</div>
</div>
<!-- End Page Content Wrapper -->
</div>
<!-- End Body Wrapper -->
<!-- All Modals -->
<!-- Sign Up Modal -->
<div id="sign-up-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Create an Account</h4>
</div>
<div class="modal-body">
<form id="sign-up">
<div class="form-group">
<input id="email" type="email" class="form-control" name="credentials[email]" placeholder="Email">
</div>
<div class="form-group">
<input id="password" type="password" class="form-control" name="credentials[password]" placeholder="Password">
</div>
<div class="form-group">
<input id="password" type="password" class="form-control" name="credentials[password_confirmation]" placeholder="Password">
</div>
<button type="submit" class="btn btn-success btn-lg"><span class="glyphicon glyphicon-cloud"></span>Sign Up</button>
</form>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" data-toggle="modal" data-target="#sign-in-modal">Already have an account? Log in here</a>
</div>
</div>
</div>
</div>
<!-- End Sign Up Modal -->
<!-- Sign In Modal -->
<div class="modal fade" id="sign-in-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Log In</h4>
</div>
<div class="modal-body">
<!--Sign In Form -->
<form id="sign-in">
<div class="form-group">
<input type="email" name="credentials[email]" class="form-control" id="exampleInputEmail1" placeholder="Email">
</div>
<div class="form-group">
<input type="password" name="credentials[password]" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<button id="btn-submit" type="submit" class="btn btn-success btn-lg"><span class="glyphicon glyphicon-cloud"></span>Log In</button>
</form>
<!--End Sign In Form -->
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" data-toggle="modal" data-target="#sign-up-modal">Need to create an account? Sign up here.</a>
</div>
</div>
</div>
</div>
<!-- End Sign In Modal -->
<!-- Modal Change Password -->
<div class="modal fade" id="change-password-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Change Password</h4>
</div>
<div class="modal-body">
<!--Change Password Form -->
<form id="change-password">
<div class="form-group">
<input type="password" name="passwords[old]" class="form-control" id="exampleInputPassword1" placeholder="Current Password">
</div>
<div class="form-group">
<input type="password" name="passwords[new]" class="form-control" id="exampleInputPassword1" placeholder="New Password">
</div>
<button type="submit" class="btn btn-primary" id="btn-submit">Change</button>
</form>
<!--End Change Password Form -->
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<!-- Sign Out Modal -->
<div class="modal fade" id="sign-out-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Are you sure you want to log out?</h4>
</div>
<div class="modal-body">
<form id="sign-out">
<button type="submit" class="btn btn-primary" id="btn-logout">Log Out</button>
<a href="#" data-dismiss="modal" data-toggle="modal">Cancel</a>
</form>
</div>
</div>
</div>
</div>
<!-- End Sign Out Modal -->
<!-- Modal Change Password Success-->
<div class="modal fade" id="change-password-success-modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Password Changed</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">Close</button>
</div>
</div>
</div>
</div>
<!-- End Modal Change Password Success-->
<!-- Modal Change Password Fail-->
<div class="modal fade" id="change-password-fail-modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Unable to change password</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" data-toggle="modal" data-target="#change-password-modal">Try Again</button>
</div>
</div>
</div>
</div>
<!-- Modal Change Password Fail-->
<!-- Sign In Fail-->
<div class="modal fade" id="sign-in-fail-modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">The email address and password you entered did not match our records. Please double-check and try again.</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" data-toggle="modal" data-target="#sign-in-modal">Back</button>
</div>
</div>
</div>
</div>
<!-- End Sign In Fail-->
<!-- Sign Up Fail-->
<div class="modal fade" id="sign-up-fail-modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">The email address you entered has already been taken.</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" data-toggle="modal" data-target="#sign-up-modal">Back</button>
<a href="#" data-dismiss="modal" data-toggle="modal" data-target="#sign-in-modal">Already have an account? Log in here.</a>
</div>
</div>
</div>
</div>
<!-- End Sign Up Fail-->
<!-- Edit Tag Modal -->
<div id="edit-tags-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Add Tags</h4>
</div>
<div class="modal-body">
<form id="edit-tag-form">
<input type="text" name="node[tags]" placeholder="favorites">
<button class="btn btn-success edit-tags-btn" type="submit" name="action"><span class="glyphicon glyphicon-tags"></button>
</form>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" data-toggle="modal">Close</a>
</div>
</div>
</div>
</div>
<!--End Edit Tags Modal -->
<!--Delete File Modal-->
<div id="delete-file-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Delete Item</h4>
</div>
<div class="modal-body">
<p> Are you sure you want to delete this item?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-trash delete-node-btn"><span class="glyphicon glyphicon-trash"></button>
<a href="#" data-dismiss="modal" data-toggle="modal">Close</a>
</div>
</div>
</div>
</div>
<!--End Delete File Modal -->
<!-- Upload File Modal -->
<div class="modal fade" id="upload-file-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Select a file to upload</h4>
</div>
<div class="modal-body">
<div class="upload-file">
<form class="upload-form" id="application-x-www-form-urlencoded" action="http://localhost:3000/create-file" method="post" enctype="application/x-www-form-data">
<div class="form-group">
<input type="file" name="node[file]">
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-success" type="submit" name="action"><span class="glyphicon glyphicon-cloud-upload"></span>Upload</button>
</form>
<a href="#" data-dismiss="modal" data-toggle="modal">Close</a>
</div>
</div>
</div>
</div>
<!-- Upload File Modal -->
<!--- Add Create Foder Modal Here-->
<div class="modal fade" id="create-folder-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Add a folder</h4>
</div>
<div class="modal-body">
<form id="create-folder-form">
<div class="form-group">
<input id="name" type="text" class="form-control" name="node[name]" placeholder="My Folder">
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success btn-lg"><span class="glyphicon glyphicon-folder"></span>Add</button>
</form>
<a href="#" data-dismiss="modal" data-toggle="modal">Close</a>
</div>
</div>
</div>
</div>
</body>
</html>