-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
717 lines (629 loc) · 25.8 KB
/
index.html
File metadata and controls
717 lines (629 loc) · 25.8 KB
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
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Path Guard</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<style>
:root {
--primary-color: #f75c03;
--secondary-color: #2c3e50;
--background-color: #1a232c;
--text-color: #e4e7eb;
--card-bg: #27303c;
--font-family: 'Poppins', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-family);
background: var(--background-color);
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
transition: background-color 0.5s, color 0.5s;
}
h1, h2, h3 {
font-weight: 700;
color: var(--primary-color);
text-shadow: 0 0 15px rgba(247, 92, 3, 0.2);
}
/* Navigation */
.navbar {
position: fixed;
top: 0;
right: 0;
z-index: 100;
display: flex;
align-items: center;
gap: 2rem;
padding: 1.5rem 2rem;
background: rgba(26, 35, 44, 0.9);
backdrop-filter: blur(10px);
border-radius: 0 0 0 20px;
transition: background 0.3s;
}
.nav-links {
display: flex;
gap: 1.5rem;
list-style: none;
}
.nav-links a {
color: var(--text-color);
text-decoration: none;
font-weight: 600;
transition: color 0.3s, transform 0.3s;
cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active {
color: var(--primary-color);
transform: translateY(-2px);
}
#theme-toggle {
font-size: 1.8rem;
cursor: pointer;
background: none;
border: none;
color: var(--text-color);
transition: color 0.3s, transform 0.3s;
}
#theme-toggle:hover {
color: var(--primary-color);
transform: scale(1.1);
}
/* Pages */
.page {
display: none;
min-height: 100vh;
}
.page.active {
display: block;
}
.hero {
position: relative;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
overflow: hidden;
}
.background-animation {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(-45deg, var(--background-color), var(--secondary-color), var(--card-bg));
background-size: 400% 400%;
animation: gradientFlow 15s ease infinite;
opacity: 0.8;
z-index: -1;
}
.hero-content {
position: relative;
z-index: 1;
}
.hero h1 {
font-size: clamp(2.5rem, 8vw, 5rem);
margin-bottom: 0.8rem;
background: linear-gradient(45deg, var(--primary-color), #ff9a00);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textGlow 2s ease-in-out infinite alternate;
}
.hero p {
font-size: clamp(1rem, 3vw, 1.5rem);
color: var(--text-color);
max-width: 600px;
margin: 0 auto 2rem;
}
.btn {
display: inline-block;
padding: 1rem 2.5rem;
background: var(--primary-color);
color: var(--background-color);
border-radius: 50px;
font-weight: bold;
text-decoration: none;
transition: transform 0.3s, box-shadow 0.3s;
box-shadow: 0 4px 20px rgba(247, 92, 3, 0.3);
cursor: pointer;
border: none;
}
.btn:hover {
transform: translateY(-5px) scale(1.05);
box-shadow: 0 8px 25px rgba(247, 92, 3, 0.5);
}
.btn-secondary {
display: inline-block;
padding: 1rem 2.5rem;
background: var(--secondary-color);
color: var(--text-color);
border-radius: 50px;
font-weight: bold;
text-decoration: none;
transition: transform 0.3s, box-shadow 0.3s;
box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
cursor: pointer;
border: none;
margin-top: 2rem;
}
.btn-secondary:hover {
transform: translateY(-5px) scale(1.05);
box-shadow: 0 8px 25px rgba(44, 62, 80, 0.5);
}
.section {
padding: 5rem 1.5rem;
max-width: 1200px;
margin: auto;
}
.section-title {
font-size: clamp(2rem, 5vw, 3rem);
margin-bottom: 1rem;
text-align: center;
}
.section-description {
text-align: center;
margin-bottom: 4rem;
font-size: clamp(1rem, 2vw, 1.15rem);
color: var(--text-color);
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.stats-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 2rem;
}
.stat-box {
background: var(--card-bg);
color: var(--text-color);
padding: 2.5rem;
border-radius: 20px;
flex: 1;
min-width: 250px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
}
.stat-box:hover {
transform: translateY(-15px) scale(1.05);
background: var(--secondary-color);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.stat-box h3 {
font-size: clamp(2rem, 5vw, 3.5rem);
margin-bottom: 0.5rem;
color: var(--primary-color);
}
.branches-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.branch-card {
background: var(--card-bg);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
overflow: hidden;
transition: transform 0.4s, box-shadow 0.4s;
border: 1px solid rgba(255, 255, 255, 0.05);
cursor: pointer;
text-decoration: none;
color: inherit;
}
.branch-card:hover {
transform: translateY(-10px) scale(1.03);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.branch-card img {
width: 100%;
height: 200px;
object-fit: cover;
transition: transform 0.6s;
}
.branch-card:hover img {
transform: scale(1.1);
}
.branch-card-content {
padding: 1.5rem;
text-align: center;
}
.branch-card-content h3 {
margin-bottom: 0.5rem;
color: var(--primary-color);
font-size: 1.5rem;
}
/* About Page Specific */
.image-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 3rem 0;
}
.image-card {
background: var(--card-bg);
border-radius: 20px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
transition: transform 0.3s;
}
.image-card:hover {
transform: translateY(-5px);
}
.image-card img {
width: 100%;
height: 250px;
object-fit: cover;
}
.image-card-content {
padding: 1.5rem;
}
.image-card h4 {
color: var(--primary-color);
margin-bottom: 0.5rem;
}
/* Contact Form */
.contact-form {
max-width: 600px;
margin: 0 auto;
background: var(--card-bg);
padding: 3rem;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: var(--primary-color);
font-weight: 600;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 1rem;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
background: var(--background-color);
color: var(--text-color);
font-family: var(--font-family);
transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.form-group textarea {
resize: vertical;
min-height: 120px;
}
.footer {
background: var(--secondary-color);
color: var(--text-color);
text-align: center;
padding: 2.5rem;
font-size: 0.9rem;
margin-top: 5rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes gradientFlow {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
@keyframes textGlow {
0% { text-shadow: 0 0 5px rgba(247, 92, 3, 0.5), 0 0 10px rgba(247, 92, 3, 0.2); }
100% { text-shadow: 0 0 15px rgba(247, 92, 3, 0.8), 0 0 25px rgba(247, 92, 3, 0.4); }
}
/* Light Mode */
body.light-mode {
--primary-color: #2c3e50;
--secondary-color: #e4e7eb;
--background-color: #f0f2f5;
--text-color: #1a232c;
--card-bg: #ffffff;
}
body.light-mode .navbar {
background: rgba(240, 242, 245, 0.9);
}
body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
color: var(--primary-color);
text-shadow: none;
}
body.light-mode .hero h1 {
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: none;
}
body.light-mode .btn {
color: var(--card-bg);
background: var(--primary-color);
box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
}
body.light-mode .btn:hover {
box-shadow: 0 8px 25px rgba(44, 62, 80, 0.5);
}
body.light-mode .btn-secondary {
background: var(--secondary-color);
color: var(--text-color);
box-shadow: 0 4px 20px rgba(228, 231, 235, 0.3);
}
body.light-mode .btn-secondary:hover {
box-shadow: 0 8px 25px rgba(228, 231, 235, 0.5);
}
body.light-mode .stat-box,
body.light-mode .branch-card,
body.light-mode .image-card,
body.light-mode .contact-form {
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
body.light-mode .stat-box:hover {
background: #e4e7eb;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* Responsive */
@media (max-width: 768px) {
.navbar {
padding: 1rem;
border-radius: 0;
}
.nav-links {
gap: 1rem;
}
.nav-links a {
font-size: 0.9rem;
}
}
</style>
</head>
<body class="light-mode">
<nav class="navbar">
<ul class="nav-links">
<li><a href="#" class="nav-link active" data-page="home">Home</a></li>
<li><a href="#" class="nav-link" data-page="about">About</a></li>
<li><a href="#" class="nav-link" data-page="contact">Contact</a></li>
</ul>
<button id="theme-toggle">☀️</button>
</nav>
<!-- Home Page -->
<div id="home" class="page active">
<header class="hero">
<div class="background-animation"></div>
<div class="hero-content">
<h1>Path Guard</h1>
<p>Preparing kids and teens with vital safety drills through interactive learning.</p>
<a href="https://aaronshen.itch.io/path-guard" target="_blank" class="btn">Play on Itch.io</a>
</div>
</header>
<main>
<section class="section">
<h2 class="section-title">Summary of Path Guard</h2>
<p class="section-description">
Path Guard is an engaging educational game built to teach children and teens
how to respond safely during active threat situations. By combining
interactive gameplay with real-world preparedness strategies, Path Guard
helps youth build confidence and knowledge in a safe, supportive way.
</p>
<div class="stats-container">
<div class="stat-box"><h3>180+</h3><p>Active Users</p></div>
<div class="stat-box"><h3>11</h3><p>Library Branches</p></div>
<div class="stat-box"><h3>1 Goal</h3><p>Expand Nationwide</p></div>
</div>
</section>
<section class="section">
<h2 class="section-title">Our Library Partners</h2>
<p class="section-description">We are proud to be available at the following library branches, bringing safety education to communities across the region.</p>
<div class="branches-grid" id="branches-grid">
</div>
<div style="text-align: center; margin-top: 3rem;">
<a href="https://cityofpasadena.libguides.com/webteen/wellness" target="_blank" class="btn-secondary">
View on Pasadena Teen Web Guide
</a>
</div>
</section>
</main>
<footer class="footer">
© 2025 Path Guard | Empowering youth through safety and preparedness
</footer>
</div>
<!-- About Page -->
<div id="about" class="page">
<section class="section" style="padding-top: 8rem;">
<h2 class="section-title">Our Story</h2>
<p class="section-description">
Path Guard was created with a mission to empower young people with the knowledge and confidence
needed to stay safe in emergency situations. Our interactive approach makes learning engaging
and memorable, ensuring that critical safety skills are retained when they matter most.
</p>
<div class="image-gallery">
<div class="image-card">
<img src="https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=500&h=300&fit=crop" alt="Children learning">
<div class="image-card-content">
<h4>Interactive Learning</h4>
<p>Engaging gameplay that makes safety education memorable and effective.</p>
</div>
</div>
<div class="image-card">
<img src="https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=500&h=300&fit=crop" alt="Library setting">
<div class="image-card-content">
<h4>Library Partnership</h4>
<p>Working with local libraries to reach communities where they gather.</p>
</div>
</div>
<div class="image-card">
<img src="https://images.unsplash.com/photo-1544717297-fa95b6ee9643?w=500&h=300&fit=crop" alt="Safety training">
<div class="image-card-content">
<h4>Real-World Skills</h4>
<p>Teaching practical safety strategies through simulation and practice.</p>
</div>
</div>
</div>
<div style="text-align: center; margin-top: 3rem;">
<h2>Our Mission</h2>
<p style="max-width: 800px; margin: 1rem auto; font-size: 1.1rem; line-height: 1.8;">
We believe that every young person deserves to feel safe and confident in their environment.
Path Guard bridges the gap between traditional safety training and modern interactive learning,
creating an experience that is both educational and empowering. Through partnerships with
libraries and community centers, we're building a nationwide network of safety-conscious youth.
</p>
</div>
</section>
</div>
<!-- Contact Page -->
<div id="contact" class="page">
<section class="section" style="padding-top: 8rem;">
<h2 class="section-title">Contact Us</h2>
<p class="section-description">
Get in touch with us to learn more about Path Guard, request a demo, or discuss
partnership opportunities for your library or community center.
</p>
<div style="text-align: center; margin-top: 3rem;">
<h2>Partnership Opportunities</h2>
<p style="max-width: 600px; margin: 1rem auto;">
We're actively seeking partnerships with libraries, schools, and community organizations
to expand Path Guard's reach. Contact us at pathguard.vn@gmail.com to learn about implementation and training programs.
</p>
</div>
</section>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Library branches data with homepage links
const branchesData = [
{
name: 'Allendale',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/Allendale-front-e1537307461515.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/allendale-library/'
},
{
name: 'Hastings',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/Hastings-full-900x555.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/hastings-library/'
},
{
name: 'Hill Avenue',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/Hill-entrance-900x555.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/hill-avenue-branch/'
},
{
name: 'Jefferson Branch',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/JeffersonPhoto2-1110x555.jpeg',
homepage: 'https://www.cityofpasadena.net/library/branches/jefferson-branch-childrens-and-teen-services/'
},
{
name: 'La Pintoresca',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/LaPintoresca-full.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/la-pintoresca-branch/'
},
{
name: 'Lamanda Park',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/Lamanda-entrance-bench-900x555.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/lamanda-park-branch/'
},
{
name: 'Linda Vista',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/LindaVista-full-900x555.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/linda-vista-branch/'
},
{
name: 'San Rafael',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/SanRafael-exterior-patio-900x555.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/san-rafael-branch/'
},
{
name: 'Santa Catalina',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/SantaCatalina-full-300x162.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/santa-catalina-branch/'
},
{
name: 'Villa Park',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/VillaParke-full-900x555.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/villa-parke-community-center-branch/'
},
{
name: 'Central Library',
imageUrl: 'https://www.cityofpasadena.net/library/wp-content/uploads/sites/11/Central-Library-East-Angle-e1537307507928-1110x555.jpg',
homepage: 'https://www.cityofpasadena.net/library/branches/central-library/'
}
];
// Populate branches grid with linked cards
const branchesContainer = document.getElementById('branches-grid');
branchesData.forEach((branch, index) => {
const card = document.createElement('a');
card.className = 'branch-card';
card.href = branch.homepage;
card.target = '_blank';
card.rel = 'noopener noreferrer';
const img = document.createElement('img');
img.src = branch.imageUrl;
img.alt = `Image for ${branch.name} branch`;
const contentDiv = document.createElement('div');
contentDiv.className = 'branch-card-content';
const h3 = document.createElement('h3');
h3.textContent = branch.name;
const p = document.createElement('p');
p.textContent = 'Visit library homepage';
p.style.color = 'var(--text-color)';
p.style.fontSize = '0.9rem';
contentDiv.appendChild(h3);
contentDiv.appendChild(p);
card.appendChild(img);
card.appendChild(contentDiv);
branchesContainer.appendChild(card);
});
// Navigation functionality
const navLinks = document.querySelectorAll('.nav-link');
const pages = document.querySelectorAll('.page');
navLinks.forEach(link => {
link.addEventListener('click', (e) => {
e.preventDefault();
const targetPage = link.getAttribute('data-page');
// Remove active class from all links and pages
navLinks.forEach(l => l.classList.remove('active'));
pages.forEach(p => p.classList.remove('active'));
// Add active class to clicked link and corresponding page
link.classList.add('active');
document.getElementById(targetPage).classList.add('active');
});
});
// Theme toggle functionality
const themeToggleBtn = document.getElementById('theme-toggle');
let isDarkMode = false;
themeToggleBtn.addEventListener('click', () => {
document.body.classList.toggle('light-mode');
isDarkMode = !isDarkMode;
themeToggleBtn.textContent = isDarkMode ? '🌙' : '☀️';
});
// Contact form functionality
const contactForm = document.getElementById('contact-form');
if (contactForm) {
contactForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thank you for your message! We\'ll get back to you soon.');
contactForm.reset();
});
}
});
</script>
</body>
</html>