Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
725 lines (678 loc) · 39.2 KB
/
Copy pathindex.html
File metadata and controls
725 lines (678 loc) · 39.2 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
718
719
720
721
722
723
724
725
<!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, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
<meta name="author" content="Ashraya Trust">
<title>Ashraya Trust - Serving the Needy Since 2011</title> <!-- Added year to title -->
<meta name="description" content="Operating for over 14 years, Ashraya Trust, founded by Avadhoota Nadananda, is dedicated to serving the needy through food distribution, medical aid, and educational support in Kurnool, AP. Join us in making a difference.">
<meta name="keywords" content="Ashraya Trust, 14+ years service, Avadhoota Nadananda, charity, NGO, Kurnool, donation, volunteer, serve the needy, food distribution, medical camp, education support" />
<script defer src="https://kit.fontawesome.com/bc406c0a10.js" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="images/favicon.webp">
<link href="app.min.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- ② fetch the CSS file ASAP, but don’t block render -->
<link rel="preload"
href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&display=swap"
as="style"
onload="this.rel='stylesheet'">
<noscript>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&display=swap">
</noscript>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" href="images/Ashraya-logo.webp" as="image" fetchpriority="high">
<link rel="preload" href="images/about-guriji.webp" as="image" fetchpriority="high">
<link rel="preload" href="images/mobile.webp" as="image" fetchpriority="high">
<!-- Add specific homepage styles if needed -->
<style>
/* --- Existing styles from your provided code --- */
:root { /* Define colors if not in app.css */
--brand-red: #A70D17;
--brand-green: #00B095;
--brand-blue: #00B0BD;
--brand-beige: #F0EAE7;
--brand-dark-grey: #404041;
--brand-light-grey: #f8f9fa;
--text-color: #404041;
--white: #fff;
}
body {
font-family: "Nunito", sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
overflow-x: hidden;
} /* Define font if not in app.css */
.hero-section {
height: 85vh; /* Adjust as needed */
min-height: 500px;
background: url('images/about-guriji.webp') no-repeat center center; /* Your hero image */
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
position: relative;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text contrast */
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
padding: 20px;
}
.hero-content h1 {
font-size: 2.8em; /* Responsive font size */
margin-bottom: 0.5em;
font-weight: 600;
}
.hero-content p {
font-size: 1.2em;
margin-bottom: 1.5em;
}
.impact-section { background-color: #f8f9fa; padding: 4rem 0; }
.impact-card { text-align: center; margin-bottom: 2rem; }
.impact-card .icon { font-size: 3em; color: #A70D17; margin-bottom: 1rem; }
.impact-card h3 { color: #A70D17; font-size: 2.5em; font-weight: bold; }
.impact-card p { font-size: 1.1em; color: #404041; }
.focus-section { padding: 4rem 0; background-color: #ffffff; }
.focus-card { border: 1px solid #eee; border-radius: 10px; padding: 2rem; margin-bottom: 2rem; text-align: center; transition: box-shadow 0.3s ease; }
.focus-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.focus-card img { max-height: 80px; margin-bottom: 1.5rem; }
.focus-card h3 { margin-bottom: 1rem; color: #A70D17; }
.focus-card .btn-link { font-weight: 500; } /* Existing style */
.story-section { padding: 4rem 0; background-color: #F0EAE7; } /* Beige background */
.story-card { display: flex; align-items: center; margin-bottom: 3rem; }
.story-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin-right: 2rem; }
.story-card blockquote { font-style: italic; border-left: 3px solid #A70D17; padding-left: 1rem; margin: 0; }
.story-card cite { display: block; margin-top: 0.5rem; font-weight: bold; color: #404041;}
.help-section { background: #404041; color: white; padding: 4rem 0; text-align: center;}
.help-section .btn { margin: 0.5rem; }
.blink { animation: blinker 1.5s linear infinite; color: white; font-family: sans-serif; background: #A70D17; font-weight: 600; padding: 0.2em 0; display: block; width: 100%;}
@keyframes blinker { 50% { opacity: 0; } }
/* === CSS RULES SPECIFICALLY FOR THE LONGEVITY HIGHLIGHT === */
.longevity-highlight {
background-color: var(--brand-beige); /* Subtle background */
border-bottom: 1px solid #ddd;
border-top: 1px solid #ddd;
padding: 1.5rem 0; /* Adjust padding */
}
.longevity-highlight h3 {
margin-bottom: 0.5rem;
font-size: 1.6em; /* Make it noticeable */
font-weight: 600; /* Demi-bold */
color: var(--brand-red); /* Use brand red */
}
.longevity-highlight h3 .fas { /* Style the icon */
font-size: 0.9em;
vertical-align: middle;
margin-right: 8px; /* Space after icon */
}
.longevity-highlight p {
font-size: 1.1em;
color: #555;
margin-bottom: 0; /* Remove extra margin */
font-weight: 400; /* Ensure normal weight for paragraph */
}
@media (max-width: 768px) {
.longevity-highlight { padding: 1rem 0; }
.longevity-highlight h3 { font-size: 1.4em; }
.longevity-highlight p { font-size: 1em; }
}
@media (max-width: 768px) {
.hero-content h1 { font-size: 2.2em; }
.hero-content p { font-size: 1.1em; }
.impact-card h3 { font-size: 2em; }
}
@media (max-width: 575.98px) {
.hero-content h1 { font-size: 2em; }
.hero-content p { font-size: 1em; }
.impact-card h3 { font-size: 1.8em; }
}
/* Re-use blink from index.html if needed */
.marquee-container {
background: #A70D17; /* Original background color */
color: white; /* Original text color */
overflow: hidden; /* Crucial: Hides the text outside the container */
position: relative; /* Needed for absolute positioning if used, good practice */
width: 100%; /* Take full width of its parent space */
box-sizing: border-box; /* Include padding in width calculations */
padding: 0.2em 0; /* Original padding */
/* Ensure it aligns correctly within the flex container if needed */
display: flex; /* Use flex to vertically center content if padding isn't enough */
align-items: center; /* Vertically center text */
}
.marquee-content {
display: inline-block; /* Treat as a block, but inline for width calculation */
white-space: nowrap; /* Prevent text from wrapping */
font-family: sans-serif; /* Or inherit from body */
font-weight: 600; /* Original font weight */
will-change: transform; /* Performance hint for the browser */
/* Animation properties */
animation: scroll-left 15s linear infinite; /* Name, Duration, Timing, Iteration */
/* Start the text off-screen to the right */
padding-left: 100%;
box-sizing: border-box;
}
/* Pause animation on hover (optional but good UX) */
.marquee-container:hover .marquee-content {
animation-play-state: paused;
}
/* Define the scrolling animation */
@keyframes scroll-left {
0% {
transform: translateX(0); /* Start position (respecting padding-left) */
}
100% {
/* Move left by its own calculated width (content + padding-left) */
transform: translateX(-100%);
}
}
@media (max-width: 768px) {
/* Adjust breakpoint if needed */
.hero-section{
/* Your hero image */
height: 50vh;
/*min-height: 400px;*/
background: url('images/mobile.webp') no-repeat center top;
}
/* Fix mobile zoom and scaling issues */
body {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
overflow-x: hidden;
}
/* Ensure proper container scaling on mobile */
.container {
max-width: 100%;
padding-left: 15px;
padding-right: 15px;
}
/* Adjust font sizes for mobile */
.hero-content h1 {
font-size: 2.2em !important;
}
.hero-content p {
font-size: 1.1em !important;
}
/* Ensure cards don't overflow on mobile */
.focus-card {
padding: 1.5rem 1rem;
margin-bottom: 1rem;
}
.story-card img {
width: 120px;
height: 120px;
margin-right: 1rem;
}
}
/* Additional mobile fixes to prevent zoom */
@media (max-width: 480px) {
/* Extra small devices */
.hero-content h1 {
font-size: 1.8em !important;
}
.focus-card h3 {
font-size: 1.3em !important;
}
.impact-card h3 {
font-size: 2em !important;
}
/* Ensure buttons are properly sized for touch */
.btn {
min-height: 44px;
padding: 0.75rem 1rem;
}
}
/* Prevent horizontal scrolling on all mobile devices */
html, body {
max-width: 100%;
overflow-x: hidden;
}
/* Ensure images scale properly */
img {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>
<div id="app" class="home">
<!-- Header -->
<!-- <header>-->
<!-- <div id="top-nav" class="text-white text-uppercase px-3 d-flex flex-row-reverse1 py-1 py-md-2">-->
<!-- <div class="marquee-container flex-grow-1"> <!– Added flex-grow-1 –>-->
<!-- <div class="marquee-content">80G Tax Benefits For Donations</div>-->
<!-- </div>-->
<!-- <div class="social d-flex align-items-center">-->
<!-- <a target="_blank" href="https://www.facebook.com/TARASHRAYA" class="text-white d-inline-block mr-3" style="font-size: 1.5em;" aria-label="Facebook"> <i class="fab fa-facebook-f"></i> </a>-->
<!--<!– <a target="_blank" href="#" class="text-white d-inline-block mr-3" style="font-size: 1.5em;" aria-label="Instagram"> <i class="fab fa-instagram"></i> </a>–>-->
<!-- <a target="_blank" href="https://www.youtube.com/@ashrayatrust" class="text-white d-inline-block mr-3" style="font-size: 1.5em;" aria-label="YouTube"> <i class="fab fa-youtube"></i> </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="site-navigation w-100 text-uppercase pb-3 text-red position-relative alt-nav" style="background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">-->
<!-- <div class="container-fluid d-flex align-items-center">-->
<!-- <div class="main-nav d-flex align-items-center mr-auto">-->
<!-- <nav class="navbar navbar-expand-lg">-->
<!-- <a class="navbar-brand" href="index.html"><img src="images/Ashraya-logo.webp" class="main-logo img-fluid" alt="Ashraya Trust Logo" fetchpriority="high"/></a>-->
<!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">-->
<!-- <i class="fas fa-bars text-dark"></i>-->
<!-- </button>-->
<!-- <div class="collapse navbar-collapse ml-2" id="navbarText">-->
<!-- <ul class='navbar-nav mr-auto d-flex align-items-center'>-->
<!-- <li class='nav-item px-2'><a class="nav-link demi text-dark" href="index.html">Home</a></li>-->
<!-- <li class='nav-item px-2'><a class="nav-link demi text-dark" href="about.html">About Us</a></li>-->
<!-- <li class='nav-item px-2'><a class="nav-link demi text-dark" href="our-work.html">Our Work</a></li>-->
<!-- <li class='nav-item px-2'><a class="nav-link demi text-dark" href="get-involved.html">Get Involved</a></li>-->
<!-- <li class='nav-item px-2'><a class="nav-link demi text-dark" href="contact.html">Contact</a></li>-->
<!-- </ul>-->
<!-- </div>-->
<!-- </nav>-->
<!-- </div>-->
<!-- <div class="second-nav d-flex align-items-center">-->
<!-- <nav class="navbar p-0 navbar-expand-lg">-->
<!-- <!– **** ADDED DESKTOP SHARE BUTTON **** –>-->
<!-- <a href="#" class="py-2 px-4 btn btn-outline-danger demi mr-3 share-trigger" style="border-radius: 20px; display: none;">-->
<!-- <i class="fas fa-share-alt mr-1"></i> Share-->
<!-- </a>-->
<!-- <a class="py-2 px-4 btn pulse demi text-white" href="donate.html" style="border-radius: 20px;">DONATE</a>-->
<!-- </nav>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <!– Mobile Nav (Use the same structure as index.html) –>-->
<!-- <div id="mobile-nav" class="d-lg-none"> <!– Show only on smaller screens –>-->
<!-- <div class="wrapper" style="background: #fff; padding: 10px; border-bottom: 1px solid #eee;">-->
<!-- <div class="mobile-top d-flex align-items-center justify-content-between">-->
<!-- <a class="" href="index.html"><img src="images/Ashraya-logo.webp" class="w-50 img-fluid" alt="Ashraya Trust Logo" fetchpriority="high"/></a>-->
<!-- <i class="fas fa-bars navbar-toggle collapsed" data-target="#sidebar-nav" style="font-size: 1.5em; cursor: pointer; color: #404041;"></i>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="" id="sidebar-nav" style="display: none; position: fixed; top: 0; left: 0; height: 100%; width: 80%; background: #404041; z-index: 9999; padding-top: 60px; overflow-y: auto;">-->
<!-- <i class="fas fa-times navbar-toggle" style="position: absolute; top: 20px; right: 20px; font-size: 1.8em; color: white; cursor: pointer;"></i>-->
<!-- <div class="sidebar-wrapper px-3">-->
<!-- <ul class='navbar-nav mr-auto'>-->
<!-- <li class='nav-item py-2'><a class="nav-link demi text-white" href="index.html">Home</a></li>-->
<!-- <li class='nav-item py-2'><a class="nav-link demi text-white" href="about.html">About Us</a></li>-->
<!-- <li class='nav-item py-2'><a class="nav-link demi text-white" href="our-work.html">Our Work</a></li>-->
<!-- <li class='nav-item py-2'><a class="nav-link demi text-white" href="get-involved.html">Get Involved</a></li>-->
<!-- <li class='nav-item py-2'><a class="nav-link demi text-white" href="contact.html">Contact</a></li>-->
<!-- <!– **** ADDED MOBILE SHARE LINK **** –>-->
<!-- <li class='nav-item py-2'>-->
<!-- <a class="nav-link demi text-white share-trigger" href="#" style="display: none;">-->
<!-- <i class="fas fa-share-alt mr-2"></i>Share Our Work-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class='nav-item mt-3'><a class="btn btn-donate d-block text-center text-white" href="donate.html">Donate Now</a></li>-->
<!-- </ul>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </header>-->
<header>
<div id="top-nav" class="text-white text-uppercase px-3 d-flex flex-row-reverse1 py-1 py-md-2">
<div class="marquee-container flex-grow-1"> <!-- Added flex-grow-1 -->
<div class="marquee-content">80G Tax Benefits For Donations</div>
</div>
<div class="social d-flex align-items-center">
<a target="_blank" href="https://www.facebook.com/TARASHRAYA" class="text-white d-inline-block mr-3" style="font-size: 1.5em;" aria-label="Facebook"> <i class="fab fa-facebook-f"></i> </a>
<a target="_blank" href="https://www.youtube.com/@ashrayatrust" class="text-white d-inline-block mr-3" style="font-size: 1.5em;" aria-label="YouTube"> <i class="fab fa-youtube"></i> </a>
</div>
</div>
<div class="site-navigation w-100 text-uppercase pb-3 text-red position-relative alt-nav" style="background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
<div class="container-fluid d-flex align-items-center">
<div class="main-nav d-flex align-items-center mr-auto">
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="index.html"><img src="images/Ashraya-logo.webp" class="main-logo img-fluid" alt="Ashraya Trust Logo" fetchpriority="high"/></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars text-dark"></i>
</button>
<div class="collapse navbar-collapse ml-2" id="navbarText">
<ul class='navbar-nav mr-auto d-flex align-items-center'>
<li class='nav-item px-2'><a class="nav-link demi text-dark" href="index.html">Home</a></li>
<li class='nav-item px-2'><a class="nav-link demi text-dark" href="about.html">About Us</a></li>
<li class='nav-item px-2'><a class="nav-link demi text-dark" href="our-work.html">Our Work</a></li>
<li class='nav-item px-2'><a class="nav-link demi text-dark" href="get-involved.html">Get Involved</a></li>
<!-- NEW LINK ADDED HERE -->
<li class='nav-item px-2'><a class="nav-link demi text-red" href="https://pravachanam.ashrayatrust.org/">Pravachanam</a></li>
<li class='nav-item px-2'><a class="nav-link demi text-dark" href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
</div>
<div class="second-nav d-flex align-items-center">
<nav class="navbar p-0 navbar-expand-lg">
<a href="#" class="py-2 px-4 btn btn-outline-danger demi mr-3 share-trigger" style="border-radius: 20px; display: none;">
<i class="fas fa-share-alt mr-1"></i> Share
</a>
<a class="py-2 px-4 btn pulse demi text-white" href="donate.html" style="border-radius: 20px;">DONATE</a>
</nav>
</div>
</div>
</div>
<!-- Mobile Nav -->
<div id="mobile-nav" class="d-lg-none">
<div class="wrapper" style="background: #fff; padding: 10px; border-bottom: 1px solid #eee;">
<div class="mobile-top d-flex align-items-center justify-content-between">
<a class="" href="index.html"><img src="images/Ashraya-logo.webp" class="w-50 img-fluid" alt="Ashraya Trust Logo" fetchpriority="high"/></a>
<i class="fas fa-bars navbar-toggle collapsed" data-target="#sidebar-nav" style="font-size: 1.5em; cursor: pointer; color: #404041;"></i>
</div>
</div>
<div class="" id="sidebar-nav" style="display: none; position: fixed; top: 0; left: 0; height: 100%; width: 80%; max-width: 80%; background: #404041; z-index: 9999; padding-top: 60px; overflow-y: auto; overflow-x: hidden;">
<i class="fas fa-times navbar-toggle" style="position: absolute; top: 20px; right: 20px; font-size: 1.8em; color: white; cursor: pointer;"></i>
<div class="sidebar-wrapper px-3">
<ul class='navbar-nav mr-auto'>
<li class='nav-item py-2'><a class="nav-link demi text-white" href="index.html">Home</a></li>
<li class='nav-item py-2'><a class="nav-link demi text-white" href="about.html">About Us</a></li>
<li class='nav-item py-2'><a class="nav-link demi text-white" href="our-work.html">Our Work</a></li>
<li class='nav-item py-2'><a class="nav-link demi text-white" href="get-involved.html">Get Involved</a></li>
<!-- NEW LINK ADDED HERE -->
<li class='nav-item py-2'><a class="nav-link demi" href="https://pravachanam.ashrayatrust.org/" style="color: #ffc107;">Pravachanam</a></li>
<li class='nav-item py-2'><a class="nav-link demi text-white" href="contact.html">Contact</a></li>
<li class='nav-item py-2'>
<a class="nav-link demi text-white share-trigger" href="#" style="display: none;">
<i class="fas fa-share-alt mr-2"></i>Share Our Work
</a>
</li>
<li class='nav-item mt-3'><a class="btn btn-donate d-block text-center text-white" href="donate.html">Donate Now</a></li>
</ul>
</div>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="hero-section">
<div class="hero-overlay"></div>
<div class="hero-content">
<h1>Wiping Tears, Spreading Smiles</h1>
<p>"He Who wipes tears of others despite his own tears, is a Divine Soul." - Inspired by Avadhoota Nadananda's vision, we serve the most vulnerable.</p>
<!-- ***** MODIFIED BUTTONS FOR OPTION 1 ***** -->
<!-- Primary action links to learning/helping section -->
<a href="about.html" class="btn btn-donate demi text-white py-2 px-4 mx-2 mt-3">About Us</a>
<a href="#help-section" class="btn btn-outline-light demi py-2 px-4 mx-2 mt-3">See How You Can Contribute</a>
<!-- Secondary action remains volunteer -->
<!-- <a href="get-involved.html" class="btn btn-outline-light demi py-2 px-4 mx-2 mt-3">Volunteer With Us</a>-->
<!-- ***** END MODIFIED BUTTONS ***** -->
</div>
</section>
<!-- **** NEW Longevity Highlight Section **** -->
<section class="longevity-highlight text-center py-4">
<div class="container">
<!-- The span ID allows JS to update the number -->
<h3 class="demi text-red"><i class="fas fa-calendar-check mr-2"></i>Since 2011: <span id="years-of-service"></span>+ Years of Dedicated Service</h3>
<p class="font-l">Building trust and making a tangible difference in Kurnool, year after year.</p>
</div>
</section>
<!-- **** End Longevity Highlight Section **** -->
<!-- Impact Section -->
<section class="impact-section">
<div class="container">
<h2 class="text-center mb-5 demi text-red">Our Impact at a Glance</h2>
<div class="row">
<div class="col-md-3 col-sm-6"> <!-- Changed to col-md-3 to fit 4 items -->
<div class="impact-card">
<div class="icon"><i class="fas fa-utensils"></i></div>
<h3>700+</h3>
<p>Meals distributed weekly (Kshuda Nivarana)</p>
</div>
</div>
<div class="col-md-3 col-sm-6"> <!-- Changed to col-md-3 -->
<div class="impact-card">
<div class="icon"><i class="fas fa-first-aid"></i></div>
<h3>Weekly</h3>
<p>Free Medical Camps & Mobile Dispensary</p>
</div>
</div>
<div class="col-md-3 col-sm-6"> <!-- Changed to col-md-3 -->
<div class="impact-card">
<div class="icon"><i class="fas fa-book-reader"></i></div>
<h3>56+</h3>
<p>Students supported from Leprosy Colony & beyond</p>
</div>
</div>
<!-- **** NEW IMPACT CARD **** -->
<div class="col-md-3 col-sm-6"> <!-- Changed to col-md-3 -->
<div class="impact-card">
<div class="icon"><i class="fas fa-walking"></i></div> <!-- Added walking icon -->
<h3>2 Lakhs+</h3>
<p>Yatris (Pilgrims) Served Annually (Ugadi Seva)</p>
</div>
</div>
<!-- **** END NEW IMPACT CARD **** -->
</div>
<div class="text-center mt-4">
<a href="our-work.html" class="btn btn-outline-danger demi">Learn More About Our Work</a>
</div>
</div>
</section>
<!-- Focus Areas Section -->
<section class="focus-section">
<div class="container">
<h2 class="text-center mb-5 demi text-red">Where We Make a Difference</h2>
<div class="row">
<!-- No d-flex needed here if not aiming for equal height -->
<div class="col-md-4 mb-4"> <!-- Added mb-4 for spacing on mobile -->
<div class="focus-card">
<img src="images/food-delivery.webp" alt="Food Distribution Icon" loading="lazy" >
<h3>Nourishing Lives</h3>
<p>Providing daily meals to the hungry at hospitals, bus stands, and streets.</p>
<a href="our-work.html#food" class="btn btn-link text-red">See Details <i class="fas fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="focus-card">
<img src="images/healthcare.webp" alt="Medical Aid Icon" loading="lazy" >
<h3>Healing Hands</h3>
<p>Offering free medical checkups, medicines, and support through camps and mobile units.</p>
<a href="our-work.html#medical" class="btn btn-link text-red">See Details <i class="fas fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="focus-card">
<img src="images/education_c.svg" alt="Education Icon">
<h3>Empowering Futures</h3>
<p>Supporting underprivileged students with fees, books, transport, and extra classes.</p>
<a href="our-work.html#education" class="btn btn-link text-red">See Details <i class="fas fa-arrow-right"></i></a>
</div>
</div>
</div>
</div>
</section>
<!-- Story Section -->
<!-- <section class="story-section">-->
<!-- <div class="container">-->
<!-- <h2 class="text-center mb-5 demi text-red">Voices of Change</h2>-->
<!-- <div class="row">-->
<!-- <div class="col-md-6">-->
<!-- <div class="story-card">-->
<!-- <img src="images/beneficiary-placeholder-1.jpg" alt="Beneficiary Story 1">-->
<!-- <div>-->
<!-- <blockquote>-->
<!-- "Ashraya Trust gave me the medical help I couldn't afford. I can now work again without pain. They are truly a blessing."-->
<!-- </blockquote>-->
<!-- <cite>– Beneficiary Name, Kurnool</cite> <!– !! REPLACE !! –>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="col-md-6">-->
<!-- <div class="story-card">-->
<!-- <img src="images/volunteer-placeholder-1.jpg" alt="Volunteer Story 1">-->
<!-- <div>-->
<!-- <blockquote>-->
<!-- "Volunteering during Ugadi Seva was exhausting but incredibly rewarding. Seeing the gratitude on the pilgrims' faces makes it all worthwhile."-->
<!-- </blockquote>-->
<!-- <cite>– Volunteer Name</cite> <!– !! REPLACE !! –>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="text-center mt-4">-->
<!-- <a href="get-involved.html" class="btn btn-outline-danger demi">Share Your Story or Join Us</a>-->
<!-- </div>-->
<!-- </div>-->
<!-- </section>-->
<!-- How You Can Help Section -->
<section class="help-section" id="help-section">
<div class="container">
<h2 class="demi mb-4">Be the Ray of Hope</h2>
<p class="mb-4 font-l">Your contribution, big or small, fuels our mission to serve. Join hands with Ashraya Trust today.</p>
<a href="donate.html" class="btn btn-donate demi text-white py-2 px-4">Donate Generously</a>
<a href="get-involved.html" class="btn btn-outline-light demi py-2 px-4">Become a Volunteer</a>
</div>
</section>
<footer class="footer text-white">
<div class="container py-4">
<div class="row">
<!-- Contact Info + Social -->
<div class="col-lg-4 col-md-5 mb-4">
<h5 class="demi mb-3">Contact Us</h5>
<p class="lite mb-1"><strong>Address:</strong> Ashraya Trust, Plot No. 294, Vishnu Township, NH-44, Kurnool, AP 518003</p>
<!-- **** REMOVED bottom margin from first phone number **** -->
<p class="lite mb-0"><strong>Phone:</strong> <a href="tel:+919494508160" class="text-white">+91 9494508160(Shiv Charan)</a></p>
<p class="lite mb-0"><strong>Phone:</strong> <a href="tel:+918885321888" class="text-white">+91 918885321888(Ram Manikanta)</a></p>
<!-- Margin below second Phone (before Email) -->
<p class="lite mb-1"><strong>Email:</strong> <a href="mailto:jaimaa@ashrayatrust.org" class="text-white">jaimaa@ashrayatrust.org</a></p>
<div class="social-icons">
<strong>Follow Us:</strong>
<a target="_blank" href="https://www.facebook.com/TARASHRAYA" class="text-white d-inline-block ml-2 mr-2" style="font-size: 1.4em;" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
<a target="_blank" href="https://www.youtube.com/@ashrayatrust" class="text-white d-inline-block mr-2" style="font-size: 1.4em;" aria-label="YouTube"><i class="fab fa-youtube"></i></a>
<!-- Add other icons here if needed -->
</div>
</div>
<!-- Quick Links -->
<div class="col-lg-2 col-md-3 mb-4">
<h5 class="demi mb-3">Quick Links</h5>
<ul class="list-unstyled">
<li><a href="about.html" class="text-white lite">About Us</a></li>
<li><a href="our-work.html" class="text-white lite">Our Work</a></li>
<li><a href="get-involved.html" class="text-white lite">Get Involved</a></li>
<li><a href="donate.html" class="text-white lite">Donate</a></li>
<li><a href="contact.html" class="text-white lite">Contact</a></li>
</ul>
</div>
<!-- Legal Links -->
<div class="col-lg-3 col-md-4 mb-4">
<h5 class="demi mb-3">Legal</h5>
<ul class="list-unstyled">
<li><a href="terms-conditions.html" class="text-white lite">Terms & Conditions</a></li>
<li><a href="privacy-policy.html" class="text-white lite">Privacy Policy</a></li>
<li><a href="cancellation-refund.html" class="text-white lite">Cancellation & Refund</a></li>
<li><a href="shipping-policy.html" class="text-white lite">Shipping & Delivery</a></li>
</ul>
</div>
</div>
<hr style="border-top: 1px solid rgba(255,255,255,0.2);">
<div class="text-center lite" style="font-size: 0.9em;">
© <span id="copyright-year"></span> Ashraya Trust. All Rights Reserved.
</div>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"></script> <!-- Re-enabled Bootstrap JS -->
<script>
// Mobile nav toggle
$('.navbar-toggle').on('click', function(event){
event.stopPropagation(); // Prevent event bubbling
var target = $(this).data('target');
// Use slideToggle for a smoother effect, or just toggle
$(target).slideToggle(200); // Adjust speed as needed
});
// Close mobile nav if clicked outside
$(document).on('click', function(event) {
if (!$(event.target).closest('#sidebar-nav, .navbar-toggle').length) {
// Check if the sidebar is currently visible before hiding
if ($('#sidebar-nav').is(":visible")) {
$('#sidebar-nav').slideUp(200); // Use slideUp to match slideToggle
}
}
});
// Close mobile nav using the close icon inside
$('#sidebar-nav .fa-times').on('click', function(){
$('#sidebar-nav').slideUp(200); // Use slideUp
});
// Dynamic Copyright Year
document.getElementById('copyright-year').textContent = new Date().getFullYear();
// Calculate and display years of service
(function() {
const startYear = 2011;
const currentYear = new Date().getFullYear();
const years = currentYear - startYear;
const yearsSpan = document.getElementById('years-of-service');
if (yearsSpan && years > 0) {
yearsSpan.textContent = years; // Display the calculated number
} else if (yearsSpan) {
yearsSpan.textContent = "1"; // Fallback if calculation fails or is 0/negative
}
})();
// Ensure carousel starts if using Bootstrap JS
$(document).ready(function(){
$('.carousel').carousel();
});
// **** REVISED Web Share API Logic for all share triggers ****
document.addEventListener('DOMContentLoaded', (event) => {
const shareTriggers = document.querySelectorAll('.share-trigger');
const shareAction = async (e) => {
// For <a> tags, prevent default navigation if event object 'e' is passed
if (e && typeof e.preventDefault === 'function') {
e.preventDefault();
}
const shareData = {
title: 'Ashraya Trust - Serving the Needy', // Customize title
text: 'Support Ashraya Trust in their mission to provide food, medical aid, and education to the needy in Kurnool.', // Customize text
url: window.location.origin // Shares the main website URL (e.g., https://www.yourngo.org)
};
try {
// Check navigator.share again inside the async function, in case support changed
if (navigator.share) {
await navigator.share(shareData);
console.log('Ashraya Trust page shared successfully');
} else {
console.log('Web Share API became unavailable or was not supported when trying to share.');
// Optionally hide the trigger if it was somehow clicked without API support
if (e && e.currentTarget) {
e.currentTarget.style.display = 'none';
}
}
} catch (err) {
console.error('Share failed:', err.message);
// Errors can happen if user cancels, or if sharing is not possible (e.g. no apps)
}
};
if (shareTriggers.length > 0 && navigator.share) {
shareTriggers.forEach(trigger => {
// Set display based on context. 'inline-block' is a good general choice.
// For <a> inside <li> (mobile nav), Bootstrap's .nav-link usually handles block display.
// Explicitly setting it here ensures visibility.
trigger.style.display = 'inline-block';
trigger.addEventListener('click', shareAction);
});
} else {
shareTriggers.forEach(trigger => {
trigger.style.display = 'none'; // Ensure all share triggers are hidden if API not supported
});
if (shareTriggers.length > 0 && !navigator.share) {
console.log('Web Share API not supported. Share buttons/links are hidden.');
} else if (shareTriggers.length === 0) {
// This case should ideally not happen if elements are correctly added with 'share-trigger' class
console.log('No elements with class "share-trigger" found.');
}
}
});
// **** END REVISED Web Share API Logic ****
</script>
</body>
</html>