-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
381 lines (306 loc) · 11.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="description" content="Atlas's submission for the 2023 Young Innovator Challlange" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>StraySupport</title>
<link rel="icon" href="./icon.png" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.3/css/bulma.min.css"
integrity="sha512-IgmDkwzs96t4SrChW29No3NXBIBv8baW490zk5aXvhCD8vuZM3yUSkbyTBcXohkySecyzIrUwiF/qV0cuPcL3Q=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@1,300&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin="">
</script>
<style>
body {
margin: 0;
font-family: "rubik", sans-serif;
background: #454b55;
background-color: #454b55;
overflow-x: hidden;
}
.center {
align-items: center;
}
#map {
height: 500px;
width: 100%;
}
.lightgrey {
color: #454b55;
}
.flip {
transform: rotate(180deg);
}
.spacer {
aspect-ratio: 900/50;
width: 100%;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.opacity80 {
opacity: 80%;
}
.peak1 {
background-image: url("./peak1.svg");
}
.peak2 {
background-image: url("./peak2.svg");
}
.header {
background-image: url("./header.svg");
}
.light {
background-color: #f5f5f5;
}
</style>
</head>
<body style=" background-color: #202731" id="center">
<!-- Ni section paling atas -->
<section class="light">
<div class="hero-body">
<center>
<nav class="level">
<!-- Left side -->
<div class="level-left">
<div class="level-item has-text-centered">
<p class="subtitle is-5">
<strong>123</strong> posts
</p>
</div>
<div class="level-item">
<div class="field has-addons">
<p class="control">
<input class="input" type="text" placeholder="Find a post">
</p>
<p class="control">
<button class="button">
Search
</button>
</p>
</div>
</div>
</div>
<figure class="image is-64x64" class="level-item has-text-centered" class="center">
<img class="is-rounded" src="./icon.png" />
</figure>
<p class="level-item has-text-centered">
<a class="title is-strong-weight">StraySupport</a>
</p>
<!-- Right side -->
<div class="level-right">
<p class="level-item has-text-centered"><strong>All</strong></p>
<p class="level-item has-text-centered"><a>Published</a></p>
<p class="level-item has-text-centered"><a>Drafts</a></p>
<p class="level-item has-text-centered"><a>Deleted</a></p>
<p class="level-item has-text-centered"><a class="button is-success">New</a></p>
</div>
</nav>
</center>
</div>
</section>
<div class="spacer header flip"></div>
<br />
<br />
<br />
<div class="notification">
<button class="delete"></button>
Lorem ipsum
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;
$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
<br />
<br />
<center>
<button class="button is-light" class="js-modal-trigger" data-target="addlisting">
Add a listing
</button>
<br />
<br />
<div class="spacer peak1"></div>
<section>
<div id="map">
<script src="leaflet.js"></script>
</div>
</section>
<div class="spacer peak2 flip"></div>
<br /> <br /><br /><br /><br /><br /><br />
<div class="box is-grey-light">
<div class="tile is-ancestor is-grey-light">
<div class="tile is-vertical is-8 is-grey-light">
<div class="tile is-grey-light">
<div class="tile is-parent">
<article class="tile is-child notification is-dark">
<columns>
<center>
<p class="title">StraySupport's Target</p>
</center>
<div class="column">
<div class="card">
<div class="card-image"></div>
</div>
<br />
<p class="subtitle">
The primary aim of our website is to aid individuals who have selflessly volunteered themselves to
help stray animals. We believe that these everyday heroes deserve recognition and support for
their
noble acts.<br><br>
Our website serves as a platform for these volunteers to share their stories and experiences with
others. We encourage them to use our website as a tool to connect with other like-minded
individuals, exchange tips and resources, and seek guidance on how to better care for stray
animals.
<br><br>
In addition to serving as a community for volunteers, our website also provides information on
animal welfare laws, veterinary care, and training resources for those interested in becoming a
volunteer themselves. We strive to make our website a one-stop-shop for all things related to
stray
animal welfare.
<br><br>
Overall, our dedication to supporting everyday heroes who volunteer their time and effort to help
stray animals is the driving force behind our website. We hope to create a community that will
inspire others to join in this noble cause and make a positive impact on the lives of animals in
need.
</p>
</div>
</columns>
</article>
</div>
</div>
</div>
<div class="tile is-parent">
<article class="tile is-child notification is-dark">
<div class="content">
<blockquote class="twitter-tweet" data-lang="en" data-theme="dark">
<p lang="en" dir="ltr">
There is no easy answer to Malaysia's burgeoning stray
animal population.
<a href="https://t.co/d5hVQHJpYk">pic.twitter.com/d5hVQHJpYk</a>
</p>
— Astro AWANI (@501Awani)
<a href="https://twitter.com/501Awani/status/1644525417125249024?ref_src=twsrc%5Etfw">April 8, 2023</a>
</blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</article>
</div>
</div>
</div>
</center>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<footer>
<div class="footer-content">
<h3>StraySupport</h3>
<p>An application created for stray animal's welfare</p>
<sub>
by <a href=""><i>Atlas</i></a>
</sub>
<br>
<br>
<!--<ul class="socials">
<li>
<a href="#"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-google-plus"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-youtube"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-linkedin-square"></i></a>
</li>
</ul>-->
</div>
</footer>
<!--HTML addlisting snippet-->
<script src="./addlisting.js"></script>
<script>
document.addEventListener("DOMContentLoaded", () => {
// Functions to open and close a modal
function openModal($el) {
$el.classList.add("is-active");
}
function closeModal($el) {
$el.classList.remove("is-active");
}
function closeAllModals() {
(document.querySelectorAll(".modal") || []).forEach(($modal) => {
closeModal($modal);
});
}
// Add a click event on buttons to open a specific modal
(document.querySelectorAll(".js-modal-trigger") || []).forEach(
($trigger) => {
const modal = $trigger.dataset.target;
const $target = document.getElementById(modal);
$trigger.addEventListener("click", () => {
openModal($target);
});
}
);
// Add a click event on various child elements to close the parent modal
(
document.querySelectorAll(
".modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button"
) || []
).forEach(($close) => {
const $target = $close.closest(".modal");
$close.addEventListener("click", () => {
closeModal($target);
});
});
// Add a keyboard event to close all modals
document.addEventListener("keydown", (event) => {
const e = event || window.event;
if (e.keyCode === 27) {
// Escape key
closeAllModals();
}
});
});
</script>
<div id="addlisting" class="modal">
<div class="modal-background"></div>
<div class="modal-content">
<div class="box">
<p>Modal JS example</p>
</div>
</div>
<button class="modal-close is-large" aria-label="close"></button>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin="anonymous"></script>
</body>
</html>