-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdashboard.html
364 lines (336 loc) · 12.9 KB
/
dashboard.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<!-- custom css -->
<link rel="stylesheet" href="styles/dashboard.css" type="text/css" />
<title>Bifrost | Dashboard</title>
<!-- favicon -->
<link rel="icon" href="./assets/logo/bifrost-logo.svg" />
</head>
<body>
<main>
<!-- navbar container -->
<div class="container-fluid my-5 rounded-3" id="navbar_container">
<nav>
<!-- brand -->
<div id="brand">
<a class="navbar-brand" href="/index.html"
><img
class="img-src"
src="./assets/brand/bifrost-brand.svg"
width="120px"
height="50px"
alt="bifrost brand"
/></a>
</div>
<!-- brand ends here -->
</nav>
</div>
<!-- navbar container ends here -->
<!-- alert container -->
<div class="container" id="alert_container"></div>
<!-- alert container ends here -->
<!-- content container -->
<div class="container-fluid" id="main_container">
<div class="row">
<!-- content container -->
<div class="col-12 col-md-4 mb-3 mb-md-0" id="content_container">
<!-- headline -->
<div
class="container my-4 box_shadow rounded-3 greyGradiant p-3"
id="headline"
>
<!-- dashboard headline -->
<div id="dashboard_headline">
<h2 class="greenGradiant">Dashboard</h2>
</div>
<!-- dashboard headline ends here -->
<!-- dashboard description -->
<div id="dashboard_description">
<h5>
You can locate any country on the globe by entering its name
in the provided input
</h5>
<br />
<h5>You can also interact with the Globe</h5>
</div>
<!-- dashboard description ends here -->
</div>
<!-- headline ends here -->
<!-- form container -->
<div
class="container box_shadow mb-4 p-3 rounded-3 greyGradiant"
id="countryForm_container"
>
<form autocomplete="off">
<div class="mb-3">
<label for="countryName" class="form-label"
><h5>Entry Country Name</h5></label
>
<input
type="text"
class="form-control"
name="country"
id="countryName"
placeholder="eg: Canada"
required
/>
</div>
<div class="mb-3">
<button
class="btn greenGradiantButton box_shadow"
id="locate_button"
type="submit"
>
<img
class="img-fluid mr-1"
src="./assets/icons/locate.png"
alt="locate icon"
/>
<span>Locate</span>
</button>
</div>
</form>
</div>
<!-- form container ends here -->
<!-- details container -->
<div
class="container box_shadow py-3 mb-2 rounded-3 greyGradiant"
id="details_container"
>
<div class="mb-3" id="description_container">
<h5>Located Country Information</h5>
</div>
<!-- details model -->
<div class="mb-md-3" id="details_button">
<!-- Button trigger modal -->
<button
type="button"
class="btn greenGradiantButton box_shadow"
data-bs-toggle="modal"
data-bs-target="#countryDetailsModal"
id="countryDetailsButton"
disabled
>
<img
class="img-fluid"
src="./assets/icons/details.png"
alt="locate icon"
/>
<span> Country Details</span>
</button>
<!-- Details Modal -->
<div
class="modal fade"
id="countryDetailsModal"
tabindex="-1"
aria-labelledby="countryDetailsModal"
aria-hidden="true"
>
<div class="modal-dialog greyGradiant">
<div class="modal-content grey">
<!-- modal header -->
<div class="modal-header greyGradiant">
<h5 class="modal-title" id="countryDetailsModal_label">
Country Details
</h5>
<button
type="button"
class="btn-close btn-close-white"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<!-- modal header ends here -->
<!-- modal body -->
<div class="modal-body">
<!-- row zero -->
<div class="row mb-3">
<div class="col-6 mb-3 mb-md-0">
<div
class="container p-2 rounded-3 flex_box"
id="countryFlagHolder"
></div>
</div>
</div>
<!-- row zero ends here -->
<!-- row one -->
<div class="row mb-3">
<div class="col-12 col-md-6 mb-3 mb-md-0">
<div
class="container p-2 rounded-3 modal_background flex_box"
>
<h5>Name</h5>
</div>
</div>
<div class="col-12 col-md-6">
<div
class="container p-2 rounded-3 modal_value box_shadow flex_box"
id="countryName_value"
></div>
</div>
</div>
<!-- row one ends here -->
<!-- row two -->
<div class="row mb-3">
<div class="col-12 col-md-6 mb-3 mb-md-0">
<div
class="container p-2 rounded-3 modal_background flex_box"
>
<h5>Capital</h5>
</div>
</div>
<div class="col-12 col-md-6">
<div
class="container p-2 rounded-3 box_shadow modal_value flex_box"
id="countryCapital_value"
></div>
</div>
</div>
<!-- row two ends here -->
<!-- row three -->
<div class="row mb-3">
<div class="col-12 col-md-6 mb-3 mb-md-0">
<div
class="container p-2 rounded-3 modal_background flex_box"
>
<h5>Region</h5>
</div>
</div>
<div class="col-12 col-md-6">
<div
class="container p-2 rounded-3 box_shadow modal_value flex_box"
id="countryRegion_value"
></div>
</div>
</div>
<!-- row three ends here -->
<!-- row four -->
<div class="row mb-3">
<div class="col-12 col-md-6 mb-3 mb-md-0">
<div
class="container p-2 rounded-3 modal_background flex_box"
>
<h5>Subregion</h5>
</div>
</div>
<div class="col-12 col-md-6">
<div
class="container p-2 rounded-3 box_shadow modal_value flex_box"
id="countrySubregion_value"
></div>
</div>
</div>
<!-- row four ends here -->
<!-- row four -->
<div class="row mb-3">
<div class="col-12 col-md-6 mb-3 mb-md-0">
<div
class="container p-2 rounded-3 modal_background flex_box"
>
<h5>Area</h5>
</div>
</div>
<div class="col-12 col-md-6">
<div
class="container p-2 rounded-3 box_shadow modal_value flex_box"
id="countryArea_value"
></div>
</div>
</div>
<!-- row four ends here -->
</div>
<!-- model body ends here -->
</div>
</div>
</div>
<!-- details model ends here -->
</div>
<!-- details model ends here -->
</div>
<!-- details container ends here -->
</div>
<!-- content container ends here -->
<!-- 3D model container -->
<div class="col-12 col-md-8 my-0 my-md-3" id="model_container">
<div id="scene"></div>
</div>
<!-- 3D model container ends here -->
</div>
</div>
<!-- content container ends here -->
<!-- footer -->
<footer class="mb-5">
<!-- social links -->
<div class="my-4" id="socialLinks">
<a href="https://github.com/k99sharma" target="_blank"
><img
class="img-fluid mx-2"
width="22px"
height="22px"
src="./assets/icons/github.png"
alt="github link"
/></a>
<a href="https://twitter.com/kalashsharma99" target="_blank"
><img
class="img-fluid mx-2"
width="22px"
height="22px"
src="./assets/icons/twitter.png"
alt="twitter link"
/></a>
<a href="https://www.linkedin.com/in/kalashsharma99/" target="_blank"
><img
class="img-fluid mx-2"
width="22px"
height="22px"
src="./assets/icons/linkedin.png"
alt="linkedin link"
/></a>
</div>
<!-- social links ends here -->
<!-- designation container -->
<div id="designation">
<small
>Designed & built by
<span
><a
class="greenGradiant"
href="https://www.kalashsharma.me"
target="_blank"
>kalashsharma99</a
></span
></small
>
</div>
<!-- designation container ends here -->
<!-- copyright container -->
<div id="copyright"></div>
<!-- copyright container ends here -->
</footer>
<!-- footer ends here -->
</main>
<!-- bootstrap js -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<script>
const copyright = document.getElementById("copyright");
copyright.innerHTML = `<small>© ${new Date().getFullYear()} Bifrost. All rights reserved</small>`;
</script>
<!-- js script -->
<script type="module" src="./src/dashboard.js"></script>
</body>
</html>