-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
358 lines (323 loc) · 20.9 KB
/
test.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
<!DOCTYPE html>
<html lang="id" class="notranslate" translate="no">
<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, maximum-scale=1.0, user-scalable=0">
<meta name="color-scheme" content="light only">
<meta name="format-detection" content="telephone=no">
<meta name="google" content="notranslate" />
<title>Digital Invitation</title>
<meta name="title" content="Digital Invitation">
<meta name="description" content="Digital Invitation for Toyota Tsusho Corporation">
<meta itemprop="image" content="https://grahadim.github.io/navbar-bottom/assets/images/favicon.ico">
<link rel="icon" type="image/x-icon" href="https://assets.satumomen.com/images/media/283596-media-1714745205.jpg">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://grahadim.github.io/navbar-bottom">
<meta property="og:title" content="Digital Invitation">
<meta property="og:description" content="Digital Invitation for Toyota Tsusho Corporation">
<meta property="og:image" content="https://grahadim.github.io/navbar-bottom/assets/images/favicon.ico">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link href="https://grahadim.github.io/navbar-bottom/assets/css/style.css" rel="stylesheet">
<!-- <link href="/assets/css/style.css" rel="stylesheet"> -->
</head>
<body>
<!-- Overlay -->
<div id="overlay">
<div class="overlay-content">
<h1 class="animate__animated animate__bounceInDown text-center mb-5">Welcome to Our Event</h1>
<p class="animate__animated animate__bounceIn mt-3">You are invited to join us!</p>
<button class="animate__animated animate__bounceInUp btn btn-glass" onclick="openInvitation()">
Open Invitation
</button>
</div>
</div>
<div class="main">
<!-- Opening Section -->
<section id="opening" class="d-flex flex-column justify-content-center align-items-center text-center">
<div class="container">
<div class="rounded-circle animate__animated animate__bounceIn">
<h1 class="text-center mb-5">Welcome to Our Event</h1>
<p class="mt-3">You are invited to join us!</p>
</div>
</div>
</section>
<!-- Event Section -->
<section id="event" class="text-center">
<div class="container">
<h1 class="text-center mb-5">Event Countdown</h1>
<div class="row mt-4">
<div class="col-md-4">
<p><strong>Date:</strong> Saturday, December 7, 2024</p>
</div>
<div class="col-md-4">
<p><strong>Time:</strong> 08:30 - 12:00 WIB</p>
</div>
<div class="col-md-4">
<p><strong>Venue:</strong> Gedung Auditorium STTD</p>
</div>
</div>
<!-- Countdown Timer -->
<div class="countdown mt-4" id="countdown">
<div class="countdown-item">
<span id="days">0</span>
<small>Hari</small>
</div>
<div class="countdown-item">
<span id="hours">0</span>
<small>Jam</small>
</div>
<div class="countdown-item">
<span id="minutes">0</span>
<small>Menit</small>
</div>
<div class="countdown-item">
<span id="seconds">0</span>
<small>Detik</small>
</div>
</div>
</div>
</section>
<!-- Stars Section -->
<!-- <section id="stars" class="bg-secondary text-white">
<div class="container">
<h1 class="text-center">Stars</h1>
<p class="text-center">Highlight key contributors or special guests.</p>
</div>
</section> -->
<!-- Detail Section -->
<section id="detail" class="text-center">
<div class="container">
<h1 class="text-center mb-5">Detail</h1>
<p class="text-center">Additional details about the event.</p>
</div>
</section>
<!-- Rundown Section -->
<section id="rundown" class="text-center">
<div class="container">
<h1 class="text-center mb-5">Rundown</h1>
<div class="timeline">
<!-- Item -->
<div class="timeline-item">
<div class="time">
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73.13 73.13">
<path
d="M37.65 0h35.47v35.47c0 20.78-16.87 37.65-37.65 37.65H0V37.65C0 16.87 16.87 0 37.65 0Z"
fill="#50a349"></path>
<path
d="M48.08 55.02H24.64c-1.32-.47-1.81-1.11-1.81-2.28V20.39c0-1.37.94-2.28 2.28-2.28h22.45c1.4 0 2.31.91 2.31 2.31v4.03c0 .09 0 .2.03.38.44-.76.82-1.46 1.26-2.13 1.52-2.46 4.91-2.86 6.99-.85 1.49 1.46 1.78 3.68.7 5.55-2.92 5.06-5.85 10.11-8.77 15.2-.12.2-.18.47-.18.7v9.44c0 1.14-.58 1.9-1.7 2.22-.03.03-.06.06-.12.06Zm-22.91-2.31h22.42v-5.67c-.18.12-.29.23-.44.32l-5.7 3.33c-.88.5-1.78-.03-1.78-1.02V48.3H29.59a1.15 1.15 0 0 1-.99-1.05c-.03-.56.32-1.05.85-1.17.18-.03.38-.06.58-.06h9.21c.15 0 .29 0 .44-.03v-2.95h-9.97a1.17 1.17 0 0 1-1.11-1.05c-.06-.56.29-1.08.85-1.2.18-.03.35-.06.53-.06h10.49c.23 0 .38-.06.5-.29.44-.79.91-1.58 1.37-2.37.06-.09.09-.18.15-.32H29.66c-.58-.06-1.05-.53-1.08-1.11s.41-1.08.96-1.17c.15-.03.29-.03.44-.03h12.68c.35 0 .7.06 1.11.12 0 .03.03-.03.06-.09 1.23-2.13 2.46-4.27 3.68-6.4.09-.15.09-.32.09-.47v-7.77c0-.12 0-.23-.03-.35H25.15c.03 10.73.03 21.48.03 32.24Zm30.6-24.55c-1.29-.73-2.54-1.46-3.8-2.19-3.22 5.55-6.37 11.05-9.59 16.6 1.29.73 2.54 1.46 3.8 2.19 3.19-5.55 6.37-11.05 9.59-16.6Zm1.11-2.02c.64-.99.23-2.37-.82-2.98-1.05-.58-2.43-.23-2.95.79 1.29.73 2.51 1.46 3.77 2.19Zm-12.57 20.2c-.79-.47-1.55-.91-2.34-1.34v2.72c.79-.47 1.52-.91 2.34-1.37Z"
fill="#fff"></path>
<path
d="M36.39 30.15H43c.88 0 1.43.76 1.14 1.55-.18.47-.58.76-1.14.76H29.91c-.53 0-.94-.15-1.2-.64-.41-.79.15-1.67 1.08-1.67h6.61ZM36.39 24.89h6.52c.91 0 1.46.76 1.17 1.55-.15.38-.41.64-.82.73-.15.03-.32.03-.47.03H29.87c-.35 0-.7-.06-.96-.29-.35-.32-.5-.73-.32-1.2.15-.47.5-.73.96-.79.2-.03.38 0 .58 0 2.1-.03 4.18-.03 6.25-.03Z"
fill="#fff"></path>
</svg>
</div>
09:00 - 15:00
</div>
<div class="details">Test Drive 2W & 4W</div>
</div>
<!-- Item -->
<div class="timeline-item">
<div class="time">
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73.13 73.13">
<path
d="M37.65 0h35.47v35.47c0 20.78-16.87 37.65-37.65 37.65H0V37.65C0 16.87 16.87 0 37.65 0Z"
fill="#50a349"></path>
<path
d="M48.08 55.02H24.64c-1.32-.47-1.81-1.11-1.81-2.28V20.39c0-1.37.94-2.28 2.28-2.28h22.45c1.4 0 2.31.91 2.31 2.31v4.03c0 .09 0 .2.03.38.44-.76.82-1.46 1.26-2.13 1.52-2.46 4.91-2.86 6.99-.85 1.49 1.46 1.78 3.68.7 5.55-2.92 5.06-5.85 10.11-8.77 15.2-.12.2-.18.47-.18.7v9.44c0 1.14-.58 1.9-1.7 2.22-.03.03-.06.06-.12.06Zm-22.91-2.31h22.42v-5.67c-.18.12-.29.23-.44.32l-5.7 3.33c-.88.5-1.78-.03-1.78-1.02V48.3H29.59a1.15 1.15 0 0 1-.99-1.05c-.03-.56.32-1.05.85-1.17.18-.03.38-.06.58-.06h9.21c.15 0 .29 0 .44-.03v-2.95h-9.97a1.17 1.17 0 0 1-1.11-1.05c-.06-.56.29-1.08.85-1.2.18-.03.35-.06.53-.06h10.49c.23 0 .38-.06.5-.29.44-.79.91-1.58 1.37-2.37.06-.09.09-.18.15-.32H29.66c-.58-.06-1.05-.53-1.08-1.11s.41-1.08.96-1.17c.15-.03.29-.03.44-.03h12.68c.35 0 .7.06 1.11.12 0 .03.03-.03.06-.09 1.23-2.13 2.46-4.27 3.68-6.4.09-.15.09-.32.09-.47v-7.77c0-.12 0-.23-.03-.35H25.15c.03 10.73.03 21.48.03 32.24Zm30.6-24.55c-1.29-.73-2.54-1.46-3.8-2.19-3.22 5.55-6.37 11.05-9.59 16.6 1.29.73 2.54 1.46 3.8 2.19 3.19-5.55 6.37-11.05 9.59-16.6Zm1.11-2.02c.64-.99.23-2.37-.82-2.98-1.05-.58-2.43-.23-2.95.79 1.29.73 2.51 1.46 3.77 2.19Zm-12.57 20.2c-.79-.47-1.55-.91-2.34-1.34v2.72c.79-.47 1.52-.91 2.34-1.37Z"
fill="#fff"></path>
<path
d="M36.39 30.15H43c.88 0 1.43.76 1.14 1.55-.18.47-.58.76-1.14.76H29.91c-.53 0-.94-.15-1.2-.64-.41-.79.15-1.67 1.08-1.67h6.61ZM36.39 24.89h6.52c.91 0 1.46.76 1.17 1.55-.15.38-.41.64-.82.73-.15.03-.32.03-.47.03H29.87c-.35 0-.7-.06-.96-.29-.35-.32-.5-.73-.32-1.2.15-.47.5-.73.96-.79.2-.03.38 0 .58 0 2.1-.03 4.18-.03 6.25-.03Z"
fill="#fff"></path>
</svg>
</div>
09:00 - 15:00
</div>
<div class="details">Test Drive 2W & 4W</div>
</div>
<!-- Item -->
<div class="timeline-item">
<div class="time">
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 73.13 73.13">
<path
d="M37.65 0h35.47v35.47c0 20.78-16.87 37.65-37.65 37.65H0V37.65C0 16.87 16.87 0 37.65 0Z"
fill="#50a349"></path>
<path
d="M48.08 55.02H24.64c-1.32-.47-1.81-1.11-1.81-2.28V20.39c0-1.37.94-2.28 2.28-2.28h22.45c1.4 0 2.31.91 2.31 2.31v4.03c0 .09 0 .2.03.38.44-.76.82-1.46 1.26-2.13 1.52-2.46 4.91-2.86 6.99-.85 1.49 1.46 1.78 3.68.7 5.55-2.92 5.06-5.85 10.11-8.77 15.2-.12.2-.18.47-.18.7v9.44c0 1.14-.58 1.9-1.7 2.22-.03.03-.06.06-.12.06Zm-22.91-2.31h22.42v-5.67c-.18.12-.29.23-.44.32l-5.7 3.33c-.88.5-1.78-.03-1.78-1.02V48.3H29.59a1.15 1.15 0 0 1-.99-1.05c-.03-.56.32-1.05.85-1.17.18-.03.38-.06.58-.06h9.21c.15 0 .29 0 .44-.03v-2.95h-9.97a1.17 1.17 0 0 1-1.11-1.05c-.06-.56.29-1.08.85-1.2.18-.03.35-.06.53-.06h10.49c.23 0 .38-.06.5-.29.44-.79.91-1.58 1.37-2.37.06-.09.09-.18.15-.32H29.66c-.58-.06-1.05-.53-1.08-1.11s.41-1.08.96-1.17c.15-.03.29-.03.44-.03h12.68c.35 0 .7.06 1.11.12 0 .03.03-.03.06-.09 1.23-2.13 2.46-4.27 3.68-6.4.09-.15.09-.32.09-.47v-7.77c0-.12 0-.23-.03-.35H25.15c.03 10.73.03 21.48.03 32.24Zm30.6-24.55c-1.29-.73-2.54-1.46-3.8-2.19-3.22 5.55-6.37 11.05-9.59 16.6 1.29.73 2.54 1.46 3.8 2.19 3.19-5.55 6.37-11.05 9.59-16.6Zm1.11-2.02c.64-.99.23-2.37-.82-2.98-1.05-.58-2.43-.23-2.95.79 1.29.73 2.51 1.46 3.77 2.19Zm-12.57 20.2c-.79-.47-1.55-.91-2.34-1.34v2.72c.79-.47 1.52-.91 2.34-1.37Z"
fill="#fff"></path>
<path
d="M36.39 30.15H43c.88 0 1.43.76 1.14 1.55-.18.47-.58.76-1.14.76H29.91c-.53 0-.94-.15-1.2-.64-.41-.79.15-1.67 1.08-1.67h6.61ZM36.39 24.89h6.52c.91 0 1.46.76 1.17 1.55-.15.38-.41.64-.82.73-.15.03-.32.03-.47.03H29.87c-.35 0-.7-.06-.96-.29-.35-.32-.5-.73-.32-1.2.15-.47.5-.73.96-.79.2-.03.38 0 .58 0 2.1-.03 4.18-.03 6.25-.03Z"
fill="#fff"></path>
</svg>
</div>
09:00 - 15:00
</div>
<div class="details">Test Drive 2W & 4W</div>
</div>
</div>
</div>
</section>
<!-- Maps Section -->
<section id="maps" class="text-center">
<div class="container">
<h1 class="text-center mb-5">Maps</h1>
<p class="text-center">Event location with an embedded map can be added here.</p>
<div class="map-container mt-5"
style="border:5px solid rgb(140, 280, 140, 0.5);border-radius: 3rem 0.5rem; overflow: hidden;">
<!-- Embed Google Maps -->
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d247.90208105497314!2d106.88238911867255!3d-6.206436644436585!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2e69f49a1fa61d4d%3A0xf5ef5ff3cf204070!2sGg.%20Gading%20VIII%20No.18%2C%20RT.5%2FRW.10%2C%20Pisangan%20Tim.%2C%20Kec.%20Pulo%20Gadung%2C%20Kota%20Jakarta%20Timur%2C%20Daerah%20Khusus%20Ibukota%20Jakarta%2013230!5e0!3m2!1sen!2sid!4v1733300430675!5m2!1sen!2sid"
width="100%" height="250" style="border:0;" allowfullscreen="" loading="lazy" frameborder="0"
style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"
referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
</div>
</section>
<!-- Thanks Section -->
<section id="thanks" class="text-center">
<div class="container">
<h1 class="text-center mb-5">Thanks</h1>
<p class="text-center">Thank you for your participation!</p>
</div>
</section>
<!-- Navbar -->
<nav class="navbar">
<div class="container-fluid">
<ul class="navbar-nav flex-row w-100 justify-content-around">
<li class="nav-item">
<a class="nav-link text-white active" href="#opening"><i class="fa-solid fa-house"></i>
Opening</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#event"><i class="fa-solid fa-calendar-alt"></i> Event</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link text-white" href="#stars"><i class="fa-solid fa-star"></i> Stars</a>
</li> -->
<li class="nav-item">
<a class="nav-link text-white" href="#detail"><i class="fa-solid fa-info-circle"></i> Detail</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#rundown"><i class="fa-solid fa-clock"></i> Rundown</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#maps"><i class="fa-solid fa-map-marked-alt"></i> Maps</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#thanks"><i class="fa-solid fa-heart"></i> Thanks</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- Scripts -->
<script>
AOS.init();
// Open Invitation Page
function openInvitation() {
document.getElementById('overlay').classList.add('hidden');
document.body.classList.remove('blur-active');
}
document.addEventListener("DOMContentLoaded", function () {
const overlay = document.getElementById('overlay');
if (overlay && !overlay.classList.contains('hidden')) {
document.body.classList.add('blur-active');
}
});
// Navbar navigation
document.addEventListener("DOMContentLoaded", function () {
const navLinks = document.querySelectorAll(".nav-link");
const sections = document.querySelectorAll("section"); // Pastikan setiap bagian memiliki tag <section>
navLinks.forEach(link => {
link.addEventListener('click', function (event) {
event.preventDefault();
// Remove the active class and animations from all nav-links and sections
navLinks.forEach(navLink => navLink.classList.remove('active'));
sections.forEach(section => {
section.classList.remove('animate__zoomIn', 'animate__zoomOut');
});
// Add the active class to the clicked nav-link
link.classList.add('active');
// Get the target section
const targetSection = document.querySelector(link.getAttribute('href'));
// Add animations
sections.forEach(section => {
if (section !== targetSection) {
section.classList.add('animate__animated', 'animate__zoomOut');
} else {
section.classList.add('animate__animated', 'animate__zoomIn');
}
});
});
});
function updateActiveNavLink() {
let currentSection = null;
sections.forEach((section) => {
const sectionTop = section.offsetTop - 50; // Menyesuaikan jarak navbar
const sectionBottom = sectionTop + section.offsetHeight;
if (window.scrollY >= sectionTop && window.scrollY < sectionBottom) {
currentSection = section.getAttribute("id");
}
});
navLinks.forEach((link) => {
if (link.getAttribute("href").substring(1) === currentSection) {
link.classList.add("active");
} else {
link.classList.remove("active");
}
});
}
// Jalankan fungsi saat halaman di-scroll
window.addEventListener("scroll", updateActiveNavLink);
// Jalankan fungsi saat halaman dimuat
updateActiveNavLink();
// Tambahkan klik untuk berpindah tanpa mengubah URL di browser
navLinks.forEach((link) => {
link.addEventListener("click", function (e) {
e.preventDefault();
const targetId = this.getAttribute("href").substring(1);
const targetElement = document.getElementById(targetId);
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 0,
behavior: "smooth",
});
}
});
});
});
// Countdown Display
function updateCountdown() {
const eventDate = new Date('December 7, 2024 08:30:00').getTime();
const now = new Date().getTime();
const timeRemaining = eventDate - now;
const days = Math.floor(timeRemaining / (1000 * 60 * 60 * 24));
const hours = Math.floor((timeRemaining % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((timeRemaining % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((timeRemaining % (1000 * 60)) / 1000);
document.getElementById('days').textContent = days;
document.getElementById('hours').textContent = hours;
document.getElementById('minutes').textContent = minutes;
document.getElementById('seconds').textContent = seconds;
if (timeRemaining <= 0) {
clearInterval(countdownInterval);
document.getElementById('countdown').innerHTML = '<p>Event has started!</p>';
}
}
const countdownInterval = setInterval(updateCountdown, 1000);
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/js/all.min.js"></script>
<!-- AOS.js (Animation on Scroll) -->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
</body>
</html>