forked from sandhikagalih/dino-wedding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
534 lines (478 loc) · 20.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
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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dhika & Nofa Wedding</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<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=Sacramento&family=Work+Sans:wght@100;300;400;600;700&display=swap"
rel="stylesheet">
<!-- simplyCountdown -->
<link rel="stylesheet" href="countdown/simplyCountdown.theme.default.css" />
<script src="countdown/simplyCountdown.min.js"></script>
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<section id="hero"
class="hero w-100 h-100 p-3 mx-auto text-center d-flex justify-content-center align-items-center text-white">
<main>
<h4>Kepada <span>Bapak/Ibu/Saudara/i, </span></h4>
<h1>Sandhika & Nofariza</h1>
<p>Akan melangsungkan resepsi pernikahan dalam:</p>
<div class="simply-countdown"></div>
<a href="#home" class="btn btn-lg mt-4" onClick="enableScroll()">Lihat Undangan</a>
</main>
</section>
<nav class="navbar navbar-expand-md bg-transparent sticky-top mynavbar">
<div class="container">
<a class="navbar-brand" href="#">Dino</a>
<button class="navbar-toggler border-0" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"
aria-controls="offcanvasNavbar" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">Dino</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="navbar-nav ms-auto">
<a class="nav-link" href="#home">Home</a>
<a class="nav-link" href="#info">Info</a>
<a class="nav-link" href="#story">Story</a>
<a class="nav-link" href="#gallery">Gallery</a>
<a class="nav-link" href="#rsvp">RSVP</a>
<a class="nav-link" href="#gifts">Gifts</a>
</div>
</div>
</div>
</div>
</nav>
<section id="home" class="home">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 text-center">
<h2>Acara Pernikahan</h2>
<h3>Diselenggarakan pada 20 November 2023 di Bandung, Jawa Barat.</h3>
<p>Oleh karena itu, d engan segala hormat, kami bermaksud untuk mengundang Bapak/Ibu, Saudara/i, untuk hadir
pada acara pernikahan kami. </p>
</div>
</div>
<div class="row couple">
<div class="col-lg-6">
<div class="row">
<div class="col-8 text-end">
<h3>Sandhika Galih</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque praesentium aut ipsa perferendis,
incidunt soluta?</p>
<p>Putra dari Bpk. Lorem <br> dan <br> Ibu Ipsum</p>
</div>
<div class="col-4">
<img src="img/sandhika.png" alt="Sandhika Galih" class="img-responsive rounded-circle">
</div>
</div>
</div>
<span class="heart"><i class="bi bi-heart-fill"></i></span>
<div class="col-lg-6">
<div class="row">
<div class="col-4">
<img src="img/nofa.png" alt="Nofariza" class="img-responsive rounded-circle">
</div>
<div class="col-8">
<h3>Nofariza</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque praesentium aut ipsa perferendis,
incidunt soluta?</p>
<p>Putra dari Bpk. Ipsum <br> dan <br> Ibu Lorem</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="info" class="info">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-10 text-center">
<h2>Informasi Acara</h2>
<p class="alamat">Alamat: Gedung Kologdam, Kodiklat TNI AD. <br> Jl. Aceh, Merdeka, Kec. Sumur Bandung, Kota
Bandung</p>
<iframe
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d15843.359732941108!2d107.616864!3d-6.9097349!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2e68e635c9284fc1%3A0x268bddf9bd0971c0!2sKologdam!5e0!3m2!1sen!2ssg!4v1693486483694!5m2!1sen!2ssg"
width="100%" height="250" style="border:0;" allowfullscreen="" loading="lazy"
referrerpolicy="no-referrer-when-downgrade"></iframe>
<a href="https://goo.gl/maps/R9seweCadg9MNyox5" target="_blank" class="btn btn-light btn-sm my-3">Klik untuk
membuka peta</a>
<p class="description">Diharapkan untuk tidak salah alamat dan tanggal. Manakala tiba di tujuan namun tidak
ada tanda-tanda sedang dilangsungkan pernikahan, boleh jadi Anda salah jadwal, atau salah tempat.</p>
</div>
</div>
<div class="row justify-content-center mt-4">
<div class="col-md-5 col-10">
<div class="card text-center text-bg-light mb-5">
<div class="card-header">Akad Nikah</div>
<div class="card-body">
<div class="row justify-content-center">
<div class="col-md-6">
<i class="bi bi-clock d-block"></i>
<span>08.00 - 10.00</span>
</div>
<div class="col-md-6">
<i class="bi bi-calendar3 d-block"></i>
<span>Minggu, 20 November 2023</span>
</div>
</div>
</div>
<div class="card-footer">
Saat acara akad diharapkan untuk kondusif menjaga kekhidmatan dan kekhusyuan seluruh prosesi.
</div>
</div>
</div>
<div class="col-md-5 col-10">
<div class="card text-center text-bg-light">
<div class="card-header">Resepsi</div>
<div class="card-body">
<div class="row justify-content-center">
<div class="col-md-6">
<i class="bi bi-clock d-block"></i>
<span>11.00 - selesai</span>
</div>
<div class="col-md-6">
<i class="bi bi-calendar3 d-block"></i>
<span>Minggu, 20 November 2023</span>
</div>
</div>
</div>
<div class="card-footer">
Saat acara akad diharapkan untuk kondusif menjaga kekhidmatan dan kekhusyuan seluruh prosesi.
</div>
</div>
</div>
</div>
</div>
</section>
<section id="story" class="story">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-10 text-center">
<span>Bagaimana Cinta Kami Bersemi</span>
<h2>Cerita Kami</h2>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Porro, similique non soluta nulla asperiores
voluptatem.</p>
</div>
</div>
<div class="row">
<div class="col">
<ul class="timeline">
<li>
<div class="timeline-image" style="background-image: url(img/sman23.jpg);"></div>
<div class="timeline-panel">
<div class="timeline-heading">
<h3>Pertama Bertemu</h3>
<span>1 Juni 2000</span>
</div>
<div class="timeline-body">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos, modi autem? Commodi autem quo quia?
</p>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-image" style="background-image: url(https://picsum.photos/300/300);"></div>
<div class="timeline-panel">
<div class="timeline-heading">
<h3>Mulai Serius</h3>
<span>1 Januari 2005</span>
</div>
<div class="timeline-body">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Architecto enim eaque obcaecati odit
itaque explicabo quisquam quos at.
</p>
</div>
</div>
</li>
<li>
<div class="timeline-image" style="background-image: url(https://picsum.photos/301/301);"></div>
<div class="timeline-panel">
<div class="timeline-heading">
<h3>Tunangan</h3>
<span>7 November 2009</span>
</div>
<div class="timeline-body">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet, deleniti distinctio. Esse quas sit
explicabo corporis magni qui expedita a.
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<section id="gallery" class="gallery">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-10 text-center">
<span>Memori Kisah Kami</span>
<h2>Galeri Foto</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, itaque?</p>
</div>
</div>
<div class="row row-cols-lg-4 row-cols-md-3 row-cols-sm-2 row-cols-1 justify-content-center">
<div class="col mt-3">
<a href="img/gallery/1.png" data-toggle="lightbox" data-caption="Sandhika & Nofa 1" data-gallery="mygallery">
<img src="img/gallery/thumbnail/1.png" alt="Sandhika & Nofa 1" class="img-fluid w-100 rounded">
</a>
</div>
<div class="col mt-3">
<a href="https://picsum.photos/id/300/1200/768" data-toggle="lightbox" data-caption="Sandhika & Nofa 2"
data-gallery="mygallery">
<img src="https://picsum.photos/id/300/300/400" alt="Sandhika & Nofa 2" class="img-fluid w-100 rounded">
</a>
</div>
<div class="col mt-3">
<a href="https://picsum.photos/id/301/1200/768" data-toggle="lightbox" data-caption="Sandhika & Nofa 3"
data-gallery="mygallery">
<img src="https://picsum.photos/id/301/300/400" alt="Sandhika & Nofa 3" class="img-fluid w-100 rounded">
</a>
</div>
<div class="col mt-3">
<a href="https://picsum.photos/id/302/1200/768" data-toggle="lightbox" data-caption="Sandhika & Nofa 4"
data-gallery="mygallery">
<img src="https://picsum.photos/id/302/300/400" alt="Sandhika & Nofa 4" class="img-fluid w-100 rounded">
</a>
</div>
<div class="col mt-3">
<a href="https://picsum.photos/id/304/1200/768" data-toggle="lightbox" data-caption="Sandhika & Nofa 5"
data-gallery="mygallery">
<img src="https://picsum.photos/id/304/300/400" alt="Sandhika & Nofa 5" class="img-fluid w-100 rounded">
</a>
</div>
<div class="col mt-3">
<a href="https://picsum.photos/id/305/1200/768" data-toggle="lightbox" data-caption="Sandhika & Nofa 6"
data-gallery="mygallery">
<img src="https://picsum.photos/id/305/300/400" alt="Sandhika & Nofa 6" class="img-fluid w-100 rounded">
</a>
</div>
</div>
</div>
</section>
<section id="rsvp" class="rsvp">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-10 text-center">
<h2>Konfirmasi Kehadiran</h2>
<p>Isi form di bawah ini untuk melakukan konfirmasi kehadiran.</p>
</div>
</div>
<form class="row row-cols-md-auto g-3 align-items-center justify-content-center" method="POST"
action="https://script.google.com/macros/s/AKfycbyddFbEJRqwEeA6OmZAuNf0jw_B30ZUOS5qSDwlAKV_nurcW7H6osJx2ZWnIeTmPm_35g/exec"
id="my-form">
<div class="col-12">
<div class="mb-3">
<label for="nama" class="form-label">Nama</label>
<input type="text" class="form-control" id="nama" name="nama">
</div>
</div>
<div class="col-12">
<div class="mb-3">
<label for="jumlah" class="form-label">Jumlah</label>
<input type="number" class="form-control" id="jumlah" name="jumlah" min="1" max="5" length="1" value="1">
</div>
</div>
<div class="col-12">
<div class="mb-3">
<label for="status" class="form-label">Konfirmasi</label>
<select name="status" id="status" class="form-select">
<option selected>Pilih salah satu</option>
<option value="Hadir">Hadir</option>
<option value="Tidak Hadir">Tidak Hadir</option>
</select>
</div>
</div>
<div class="col-12" style="margin-top: 35px;">
<button class="btn btn-primary">Kirim</button>
</div>
</form>
<div class="row justify-content-center mt-5">
<div class="col-md-6">
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
var disqus_config = function () {
this.page.url = 'https://sandhikagalih.me'; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = 'https://sandhikagalih.me'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
(function () { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://dino-wedding-1.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
</div>
</div>
</div>
</section>
<section id="gifts" class="gifts">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-10 text-center">
<span>ungkapan tanda kasih</span>
<h2>Kirim Hadiah</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Magnam iure perferendis provident ab aliquam nemo.
</p>
</div>
</div>
<div class="row justify-content-center text-center">
<div class="col-md-6">
<ul class="list-group">
<li class="list-group-item">
<div class="fw-bold">BCA</div>
123456789 - SANDHIKA GALIH
</li>
<li class="list-group-item">
<div class="fw-bold">MANDIRI</div>
987654321 - SANDHIKA GALIH
</li>
<li class="list-group-item">
<div class="fw-bold">Saweria</div>
<img src="img/saweria.png" alt="Saweria QR" class="img-thumbnail" width="150">
</li>
</ul>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="col text-center">
<small class="block">© 2023 DiNo Wedding. All Rights Reserved.</small>
<small class="block">Design by <a href="https://instagram.com/sandhikagalih">@sandhikagalih</a>.</small>
<ul class="mt-3">
<li><a href="#"><i class="bi bi-instagram"></i></a></li>
<li><a href="#"><i class="bi bi-youtube"></i></a></li>
<li><a href="#"><i class="bi bi-twitter"></i></a></li>
<li><a href="#"><i class="bi bi-facebook"></i></a></li>
<li><a href="#"><i class="bi bi-tiktok"></i></a></li>
</ul>
</div>
</div>
</div>
</footer>
<div id="audio-container">
<audio id="song" autoplay loop>
<source src="audio/save-and-sound.mp3" type="audio/mp3">
</audio>
<div class="audio-icon-wrapper" style="display: none;">
<i class="bi bi-disc"></i>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bs5-lightbox@1.8.3/dist/index.bundle.min.js"></script>
<script>
simplyCountdown('.simply-countdown', {
year: 2023, // required
month: 11, // required
day: 20, // required
hours: 8, // Default is 0 [0-23] integer
words: { //words displayed into the countdown
days: { singular: 'hari', plural: 'hari' },
hours: { singular: 'jam', plural: 'jam' },
minutes: { singular: 'menit', plural: 'menit' },
seconds: { singular: 'detik', plural: 'detik' }
},
});
</script>
<script>
const stickyTop = document.querySelector('.sticky-top');
const offcanvas = document.querySelector('.offcanvas');
offcanvas.addEventListener('show.bs.offcanvas', function () {
stickyTop.style.overflow = 'visible';
});
offcanvas.addEventListener('hidden.bs.offcanvas', function () {
stickyTop.style.overflow = 'hidden';
});
</script>
<script>
const rootElement = document.querySelector(":root");
const audioIconWrapper = document.querySelector('.audio-icon-wrapper');
const audioIcon = document.querySelector('.audio-icon-wrapper i');
const song = document.querySelector('#song');
let isPlaying = false;
function disableScroll() {
scrollTop = window.pageYOffset || document.documentElement.scrollTop;
scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
window.onscroll = function () {
window.scrollTo(scrollTop, scrollLeft);
}
rootElement.style.scrollBehavior = 'auto';
}
function enableScroll() {
window.onscroll = function () { }
rootElement.style.scrollBehavior = 'smooth';
// localStorage.setItem('opened', 'true');
playAudio();
}
function playAudio() {
song.volume = 0.1;
audioIconWrapper.style.display = 'flex';
song.play();
isPlaying = true;
}
audioIconWrapper.onclick = function () {
if (isPlaying) {
song.pause();
audioIcon.classList.remove('bi-disc');
audioIcon.classList.add('bi-pause-circle');
} else {
song.play();
audioIcon.classList.add('bi-disc');
audioIcon.classList.remove('bi-pause-circle');
}
isPlaying = !isPlaying;
}
// if (!localStorage.getItem('opened')) {
// disableScroll();
// }
disableScroll();
</script>
<script>
window.addEventListener("load", function () {
const form = document.getElementById('my-form');
form.addEventListener("submit", function (e) {
e.preventDefault();
const data = new FormData(form);
const action = e.target.action;
fetch(action, {
method: 'POST',
body: data,
})
.then(() => {
alert("Konfirmasi kehadiran berhasil terkirim!");
})
});
});
</script>
<script>
const urlParams = new URLSearchParams(window.location.search);
const nama = urlParams.get('n') || '';
const pronoun = urlParams.get('p') || 'Bapak/Ibu/Saudara/i';
const namaContainer = document.querySelector('.hero h4 span');
namaContainer.innerText = `${pronoun} ${nama},`.replace(/ ,$/, ',');
document.querySelector('#nama').value = nama;
</script>
</body>
</html>