-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
111 lines (98 loc) · 4.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Share2Care</title>
<!-- <link rel="manifest" href="manifest.json"> -->
<link rel="icon" href="assets/logo.jpeg" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<script src="https://kit.fontawesome.com/91ee564bc9.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="main-res/styles.css">
<link rel="manifest" href="manifest.json">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"></script>
<div class="container-fluid whole p-0 m-0">
<div class="row gx-0">
<!-- map div -->
<div class="col-12 col-9 col-md-9 order-md-2 order-lg-2">
<!-- <div class="col-md-9 col-lg-9 order-md-2 order-lg-2"> -->
<div id="map"></div>
<div class="dropdown">
<button class="btn btn-dark position-fixed dropdown-toggle top-0 end-0 m-3" id="account-button" type="button"
data-bs-toggle="dropdown" aria-expanded="false"><i class="bi bi-person-circle"></i>
</button>
<ul class="dropdown-menu" style="z-index: 999;">
<li><a class="dropdown-item" href="#" id="user-name"></a></li>
<li><a class="dropdown-item" href="#" id="logout-button">Login</a></li>
</ul>
</div>
<button class="btn btn-dark position-fixed bottom-0 end-0 m-3 btn-lg" id="donate-button"><i
class="bi bi-heart-fill"></i> Donate</button>
</div>
<!-- selector div -->
<div class="col-md-3 col-lg-3 order-md-1 order-lg-1 left-pane">
<!-- inside objects -->
<div class="row gx-2 p-2 m-1 col-12 top-bar">
<!-- search bar -->
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Search" aria-describedby="button-addon"
id="search-input">
<button class="btn btn-dark" type="button" id="button-addon"><i class="bi bi-search "></i></button>
</div>
</div>
<div class=" all-listings" id="listings-container">
<!-- list 1 list 2 list3 -->
</div>
</div>
</div>
</div>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBSveNwWsrMaVOoeJhdzfeX9PvjHt4cHHU&libraries=places"></script>
<script type="module" src="main-res/scripts.js"></script>
<!-- The Modal -->
<div class="modal fade" id="welcomeModal" tabindex="-1" aria-labelledby="welcomeModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="container" style="text-align: center;">
<div class="row">
<img src="assets/logo-trans.png" width=50% alt="logo" class="img-fluid">
<h1>Welcome to Share2Care</h1>
</div>
<div class="row">
<p>Share2Care is a platform dedicated to connecting individuals wanting to make a positive difference in their communities by sharing not only excess food but also clothes, stationary, and more.</p>
<button type="button" class="btn btn-dark" data-bs-dismiss="modal">Get started</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
window.addEventListener('load', () => {
registerSW();
});
// Register the Service Worker
async function registerSW() {
if ('serviceWorker' in navigator) {
try {
await navigator
.serviceWorker
.register('serviceworker.js');
}
catch (e) {
console.log('SW registration failed');
}
}
}
</script>
</html>