-
Notifications
You must be signed in to change notification settings - Fork 43
/
index.html
266 lines (245 loc) · 13.2 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="./images/favicon.ico">
<title>BackSpace Academy Cognito Lab</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<!-- Custom styles for this template -->
<link href="./css/jumbotron.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">BackSpace Academy</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu" aria-labelledby="dropdown01">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
</div>
</nav>
<main role="main">
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1 class="display-3">Hello, AWS Cognito!</h1>
<p>This is a Bootstrap 4 template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<div id="spinnerShow">
<img src="./images/spinner.gif">
</div>
<div id="buttonSection" style="display: none"><p>
<button type="button" class="btn btn-success btn-lg" data-toggle="modal" data-target="#signUpModal">Sign Up! »</button>
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#signInModal">Sign In »</button>
<button id="btnSignOut" type="button" class="btn btn-info btn-lg">Sign Out »</button>
<button type="button" class="btn btn-success btn-lg" data-toggle="modal" data-target="#updateModal">Update Profile »</button>
<button id="btnSync" type="button" class="btn btn-info btn-lg">Add Sync Record »</button>
<button id="btnS3" type="button" class="btn btn-info btn-lg">Create S3 Object »</button>
<a href="#"><p id="forgotPassword" class="text-primary">Forgot password</p></a>
</p></div>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
</div>
<hr>
</div> <!-- /container -->
</main>
<footer class="container">
<p>© Company 2017-2018</p>
</footer>
<!-- Sign up modal -->
<div id="signUpModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="signUpModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Sign Up</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="inputEmail">Email address</label>
<input type="email" class="form-control" id="inputEmail" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="inputPassword">Password</label>
<input type="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
<div class="form-group">
<label for="inputGivenName">Given Name</label>
<input type="text" class="form-control" id="inputGivenName" placeholder="Given Name">
</div>
<div class="form-group">
<label for="inputFamilyName">Family Name</label>
<input type="text" class="form-control" id="inputFamilyName" placeholder="Family Name">
</div>
<div class="form-group">
<label for="inputPreferredUsername">Preferred Username</label>
<input type="text" class="form-control" id="inputPreferredUsername" placeholder="Preferred Username">
</div>
<div class="form-group">
<label for="inputWebsite">Website</label>
<input type="url" class="form-control" id="inputWebsite" placeholder="Enter address">
</div>
<div class="form-group">
<label for="inputGender">Gender</label>
<input type="text" class="form-control" id="inputGender" placeholder="Enter male or female">
</div>
<div class="form-group">
<label for="inputBirthdate">Birthdate</label>
<input type="date" class="form-control" id="inputBirthdate" placeholder="Enter birthdate">
</div>
<div class="form-group">
<label for="inputLinkedin">LinkedIn profile page</label>
<input type="url" class="form-control" id="inputLinkedin" placeholder="Enter LinkedIn address">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button id="btnSignUp" type="button" class="btn btn-success">Sign Up! »</button>
</div>
</div>
</div>
</div>
<!-- Sign in Modal -->
<div class="modal fade" id="signInModal" tabindex="-1" role="dialog" aria-labelledby="signInModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signInModalLabel">Sign In</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="inputUsername">Email / Username</label>
<input type="text" class="form-control" id="inputUsername" placeholder="Enter Email or Username">
</div>
<div class="form-group">
<label for="inputPassword2">Password</label>
<input type="password" class="form-control" id="inputPassword2" placeholder="Password">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button id="btnSignIn" type="button" class="btn btn-primary">Sign in</button>
</div>
</div>
</div>
</div>
<!-- Update modal -->
<div id="updateModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Update</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="inputGivenName2">Given Name</label>
<input type="text" class="form-control" id="inputGivenName2" placeholder="Given Name">
</div>
<div class="form-group">
<label for="inputFamilyName2">Family Name</label>
<input type="text" class="form-control" id="inputFamilyName2" placeholder="Family Name">
</div>
<div class="form-group">
<label for="inputWebsite2">Website</label>
<input type="url" class="form-control" id="inputWebsite2" placeholder="Enter address">
</div>
<div class="form-group">
<label for="inputGender2">Gender</label>
<input type="text" class="form-control" id="inputGender2" placeholder="Enter male or female">
</div>
<div class="form-group">
<label for="inputBirthdate2">Birthdate</label>
<input type="date" class="form-control" id="inputBirthdate2" placeholder="Enter birthdate">
</div>
<div class="form-group">
<label for="inputLinkedin2">LinkedIn profile page</label>
<input type="url" class="form-control" id="inputLinkedin2" placeholder="Enter LinkedIn address">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button id="btnUpdate" type="button" class="btn btn-success">Update »</button>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script>window.jQuery || document.write('<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"><\/script>')</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="./js/ie10-viewport-bug-workaround.js"></script>
<!-- Bootbox Bootstrap modal alerts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.4.0/bootbox.min.js"></script>
<!-- AWS SDKs
================================================== -->
<!-- AWS Cognito Javascript SDK -->
<!-- Latest AWS Cognito Javascript SDK can be downloaded from AWS Amplify github repository:-->
<!-- https://raw.githubusercontent.com/aws/aws-amplify/master/packages/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js -->
<script src="./js/amazon-cognito-identity.min.js"></script>
<!-- AWS Javascript SDK -->
<!-- Latest AWS Javascript SDK can be downloaded from AWS Javascript SDK github repository:-->
<!-- https://raw.githubusercontent.com/aws/aws-sdk-js/master/dist/aws-sdk.min.js -->
<script src="./js/aws-sdk-2.211.0.min.js"></script>
<!-- Where the magic happens! -->
<script type="module" src="./js/app.js"></script>
</body>
</html>