Settham79th commited on
Commit
0305ba2
·
verified ·
1 Parent(s): 4b8da5d

Create a non-profit organization website with mission statement hero, our impact statistics, current campaigns, donation form with amounts, volunteer opportunities, success stories, upcoming events, and newsletter signup.

Browse files
Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +133 -0
  3. components/navbar.js +147 -0
  4. index.html +332 -19
  5. script.js +61 -0
  6. style.css +48 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
  title: Helping Hands Initiative
3
- emoji: 🔥
4
- colorFrom: green
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
  title: Helping Hands Initiative
3
+ colorFrom: pink
4
+ colorTo: green
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
components/footer.js ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #1e293b;
8
+ color: white;
9
+ padding: 3rem 0 1.5rem;
10
+ margin-top: auto;
11
+ }
12
+ .container {
13
+ max-width: 1200px;
14
+ margin: 0 auto;
15
+ padding: 0 1rem;
16
+ }
17
+ .footer-content {
18
+ display: grid;
19
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
20
+ gap: 2rem;
21
+ margin-bottom: 2rem;
22
+ }
23
+ .footer-column h3 {
24
+ font-size: 1.25rem;
25
+ margin-bottom: 1rem;
26
+ color: #10b981;
27
+ }
28
+ .footer-column ul {
29
+ list-style: none;
30
+ padding: 0;
31
+ }
32
+ .footer-column ul li {
33
+ margin-bottom: 0.5rem;
34
+ }
35
+ .footer-column a {
36
+ color: #cbd5e1;
37
+ text-decoration: none;
38
+ transition: color 0.2s;
39
+ }
40
+ .footer-column a:hover {
41
+ color: #10b981;
42
+ }
43
+ .social-links {
44
+ display: flex;
45
+ gap: 1rem;
46
+ margin-top: 1rem;
47
+ }
48
+ .social-links a {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ width: 40px;
53
+ height: 40px;
54
+ background: #334155;
55
+ border-radius: 50%;
56
+ transition: background 0.2s;
57
+ }
58
+ .social-links a:hover {
59
+ background: #10b981;
60
+ }
61
+ .copyright {
62
+ border-top: 1px solid #334155;
63
+ padding-top: 1.5rem;
64
+ text-align: center;
65
+ color: #94a3b8;
66
+ font-size: 0.875rem;
67
+ }
68
+ .contact-info div {
69
+ display: flex;
70
+ align-items: center;
71
+ margin-bottom: 0.5rem;
72
+ }
73
+ .contact-info i {
74
+ margin-right: 0.5rem;
75
+ color: #10b981;
76
+ }
77
+ </style>
78
+ <footer>
79
+ <div class="container">
80
+ <div class="footer-content">
81
+ <div class="footer-column">
82
+ <h3>Helping Hands Initiative</h3>
83
+ <p>Dedicated to creating sustainable solutions for communities in need through education, healthcare, and economic development programs.</p>
84
+ <div class="social-links">
85
+ <a href="#"><i data-feather="facebook"></i></a>
86
+ <a href="#"><i data-feather="twitter"></i></a>
87
+ <a href="#"><i data-feather="instagram"></i></a>
88
+ <a href="#"><i data-feather="linkedin"></i></a>
89
+ </div>
90
+ </div>
91
+
92
+ <div class="footer-column">
93
+ <h3>Quick Links</h3>
94
+ <ul>
95
+ <li><a href="#impact">Our Impact</a></li>
96
+ <li><a href="#campaigns">Current Campaigns</a></li>
97
+ <li><a href="#donate">Donate</a></li>
98
+ <li><a href="#volunteer">Volunteer</a></li>
99
+ <li><a href="#events">Events</a></li>
100
+ </ul>
101
+ </div>
102
+
103
+ <div class="footer-column contact-info">
104
+ <h3>Contact Us</h3>
105
+ <div>
106
+ <i data-feather="map-pin"></i>
107
+ <span>123 Charity Street, Suite 100<br>New York, NY 10001</span>
108
+ </div>
109
+ <div>
110
+ <i data-feather="phone"></i>
111
+ <span>(555) 123-4567</span>
112
+ </div>
113
+ <div>
114
+ <i data-feather="mail"></i>
115
+ <span>info@helpinghands.org</span>
116
+ </div>
117
+ </div>
118
+ </div>
119
+
120
+ <div class="copyright">
121
+ <p>&copy; 2023 Helping Hands Initiative. All rights reserved. | EIN: 12-3456789</p>
122
+ </div>
123
+ </div>
124
+ </footer>
125
+ `;
126
+
127
+ // Initialize Feather icons after rendering
128
+ setTimeout(() => {
129
+ feather.replace();
130
+ }, 0);
131
+ }
132
+ }
133
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: rgba(255, 255, 255, 0.95);
8
+ backdrop-filter: blur(10px);
9
+ padding: 1rem 0;
10
+ position: sticky;
11
+ top: 0;
12
+ z-index: 100;
13
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
14
+ }
15
+ .container {
16
+ max-width: 1200px;
17
+ margin: 0 auto;
18
+ padding: 0 1rem;
19
+ display: flex;
20
+ justify-content: space-between;
21
+ align-items: center;
22
+ }
23
+ .logo {
24
+ color: #065f46;
25
+ font-weight: 700;
26
+ font-size: 1.5rem;
27
+ display: flex;
28
+ align-items: center;
29
+ }
30
+ .logo i {
31
+ margin-right: 0.5rem;
32
+ }
33
+ ul {
34
+ display: flex;
35
+ gap: 2rem;
36
+ list-style: none;
37
+ margin: 0;
38
+ padding: 0;
39
+ }
40
+ a {
41
+ color: #333;
42
+ text-decoration: none;
43
+ font-weight: 500;
44
+ transition: color 0.2s;
45
+ position: relative;
46
+ }
47
+ a:hover {
48
+ color: #10b981;
49
+ }
50
+ a::after {
51
+ content: '';
52
+ position: absolute;
53
+ bottom: -5px;
54
+ left: 0;
55
+ width: 0;
56
+ height: 2px;
57
+ background-color: #10b981;
58
+ transition: width 0.3s ease;
59
+ }
60
+ a:hover::after {
61
+ width: 100%;
62
+ }
63
+ .mobile-menu-btn {
64
+ display: none;
65
+ background: none;
66
+ border: none;
67
+ font-size: 1.5rem;
68
+ cursor: pointer;
69
+ color: #333;
70
+ }
71
+ @media (max-width: 768px) {
72
+ .mobile-menu-btn {
73
+ display: block;
74
+ }
75
+ .nav-links {
76
+ position: fixed;
77
+ top: 70px;
78
+ left: 0;
79
+ right: 0;
80
+ background: white;
81
+ flex-direction: column;
82
+ align-items: center;
83
+ padding: 2rem;
84
+ gap: 1.5rem;
85
+ clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
86
+ transition: clip-path 0.4s ease-in-out;
87
+ }
88
+ .nav-links.active {
89
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
90
+ }
91
+ }
92
+ </style>
93
+ <nav>
94
+ <div class="container">
95
+ <a href="/" class="logo">
96
+ <i data-feather="heart"></i>
97
+ Helping Hands
98
+ </a>
99
+
100
+ <button class="mobile-menu-btn" id="menu-toggle">
101
+ <i data-feather="menu"></i>
102
+ </button>
103
+
104
+ <ul class="nav-links" id="nav-links">
105
+ <li><a href="#impact">Impact</a></li>
106
+ <li><a href="#campaigns">Campaigns</a></li>
107
+ <li><a href="#donate">Donate</a></li>
108
+ <li><a href="#volunteer">Volunteer</a></li>
109
+ <li><a href="#events">Events</a></li>
110
+ <li><a href="#stories">Stories</a></li>
111
+ </ul>
112
+ </div>
113
+ </nav>
114
+ `;
115
+
116
+ // Add event listeners after rendering
117
+ setTimeout(() => {
118
+ const menuToggle = this.shadowRoot.getElementById('menu-toggle');
119
+ const navLinks = this.shadowRoot.getElementById('nav-links');
120
+
121
+ menuToggle.addEventListener('click', () => {
122
+ navLinks.classList.toggle('active');
123
+ const menuIcon = menuToggle.querySelector('[data-feather]');
124
+ if (navLinks.classList.contains('active')) {
125
+ menuIcon.setAttribute('data-feather', 'x');
126
+ } else {
127
+ menuIcon.setAttribute('data-feather', 'menu');
128
+ }
129
+ feather.replace();
130
+ });
131
+
132
+ // Close mobile menu when clicking a link
133
+ const links = navLinks.querySelectorAll('a');
134
+ links.forEach(link => {
135
+ link.addEventListener('click', () => {
136
+ navLinks.classList.remove('active');
137
+ const menuIcon = menuToggle.querySelector('[data-feather]');
138
+ menuIcon.setAttribute('data-feather', 'menu');
139
+ feather.replace();
140
+ });
141
+ });
142
+
143
+ feather.replace();
144
+ }, 0);
145
+ }
146
+ }
147
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,332 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Helping Hands Initiative - Making a Difference</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
12
+ </head>
13
+ <body class="min-h-screen flex flex-col bg-gray-50">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <!-- Hero Section -->
17
+ <section id="hero" class="relative py-20 md:py-32 overflow-hidden">
18
+ <div id="vanta-bg" class="absolute inset-0 z-0"></div>
19
+ <div class="container mx-auto px-4 relative z-10">
20
+ <div class="max-w-3xl mx-auto text-center">
21
+ <h1 class="text-4xl md:text-6xl font-bold text-white mb-6">Empowering Communities, Changing Lives</h1>
22
+ <p class="text-xl text-white mb-8">Our mission is to create sustainable solutions for communities in need through education, healthcare, and economic development programs.</p>
23
+ <div class="flex flex-col sm:flex-row gap-4 justify-center">
24
+ <a href="#donate" class="bg-emerald-500 hover:bg-emerald-600 text-white font-bold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">
25
+ Donate Now
26
+ </a>
27
+ <a href="#volunteer" class="bg-white hover:bg-gray-100 text-emerald-700 font-bold py-3 px-8 rounded-full transition duration-300">
28
+ Volunteer
29
+ </a>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </section>
34
+
35
+ <!-- Impact Statistics -->
36
+ <section id="impact" class="py-16 bg-white">
37
+ <div class="container mx-auto px-4">
38
+ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-800">Our Impact</h2>
39
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
40
+ <div class="text-center p-6 bg-emerald-50 rounded-lg shadow-sm">
41
+ <div class="text-4xl font-bold text-emerald-600 mb-2">50K+</div>
42
+ <div class="text-gray-700">People Helped</div>
43
+ </div>
44
+ <div class="text-center p-6 bg-emerald-50 rounded-lg shadow-sm">
45
+ <div class="text-4xl font-bold text-emerald-600 mb-2">120+</div>
46
+ <div class="text-gray-700">Communities Served</div>
47
+ </div>
48
+ <div class="text-center p-6 bg-emerald-50 rounded-lg shadow-sm">
49
+ <div class="text-4xl font-bold text-emerald-600 mb-2">25</div>
50
+ <div class="text-gray-700">Countries Reached</div>
51
+ </div>
52
+ <div class="text-center p-6 bg-emerald-50 rounded-lg shadow-sm">
53
+ <div class="text-4xl font-bold text-emerald-600 mb-2">$2M+</div>
54
+ <div class="text-gray-700">Funds Distributed</div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </section>
59
+
60
+ <!-- Current Campaigns -->
61
+ <section id="campaigns" class="py-16 bg-gray-50">
62
+ <div class="container mx-auto px-4">
63
+ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-800">Current Campaigns</h2>
64
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
65
+ <div class="bg-white rounded-xl shadow-md overflow-hidden transition-transform duration-300 hover:scale-105">
66
+ <img src="http://static.photos/education/640x360/1" alt="Education Campaign" class="w-full h-48 object-cover">
67
+ <div class="p-6">
68
+ <h3 class="text-xl font-bold mb-2 text-gray-800">Education for All</h3>
69
+ <p class="text-gray-600 mb-4">Providing school supplies and scholarships to underprivileged children in rural areas.</p>
70
+ <div class="flex justify-between items-center">
71
+ <span class="text-emerald-600 font-bold">$45,230 raised</span>
72
+ <span class="text-gray-500">75% funded</span>
73
+ </div>
74
+ <div class="mt-4 w-full bg-gray-200 rounded-full h-2.5">
75
+ <div class="bg-emerald-600 h-2.5 rounded-full" style="width: 75%"></div>
76
+ </div>
77
+ <a href="#" class="mt-4 inline-block text-emerald-600 font-medium hover:underline">Learn More →</a>
78
+ </div>
79
+ </div>
80
+ <div class="bg-white rounded-xl shadow-md overflow-hidden transition-transform duration-300 hover:scale-105">
81
+ <img src="http://static.photos/healthcare/640x360/2" alt="Healthcare Campaign" class="w-full h-48 object-cover">
82
+ <div class="p-6">
83
+ <h3 class="text-xl font-bold mb-2 text-gray-800">Healthcare Access</h3>
84
+ <p class="text-gray-600 mb-4">Bringing mobile clinics to remote villages for basic healthcare services.</p>
85
+ <div class="flex justify-between items-center">
86
+ <span class="text-emerald-600 font-bold">$32,180 raised</span>
87
+ <span class="text-gray-500">64% funded</span>
88
+ </div>
89
+ <div class="mt-4 w-full bg-gray-200 rounded-full h-2.5">
90
+ <div class="bg-emerald-600 h-2.5 rounded-full" style="width: 64%"></div>
91
+ </div>
92
+ <a href="#" class="mt-4 inline-block text-emerald-600 font-medium hover:underline">Learn More →</a>
93
+ </div>
94
+ </div>
95
+ <div class="bg-white rounded-xl shadow-md overflow-hidden transition-transform duration-300 hover:scale-105">
96
+ <img src="http://static.photos/sustainability/640x360/3" alt="Sustainability Campaign" class="w-full h-48 object-cover">
97
+ <div class="p-6">
98
+ <h3 class="text-xl font-bold mb-2 text-gray-800">Clean Water Initiative</h3>
99
+ <p class="text-gray-600 mb-4">Installing water purification systems in communities without clean drinking water.</p>
100
+ <div class="flex justify-between items-center">
101
+ <span class="text-emerald-600 font-bold">$58,740 raised</span>
102
+ <span class="text-gray-500">92% funded</span>
103
+ </div>
104
+ <div class="mt-4 w-full bg-gray-200 rounded-full h-2.5">
105
+ <div class="bg-emerald-600 h-2.5 rounded-full" style="width: 92%"></div>
106
+ </div>
107
+ <a href="#" class="mt-4 inline-block text-emerald-600 font-medium hover:underline">Learn More →</a>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </section>
113
+
114
+ <!-- Donation Form -->
115
+ <section id="donate" class="py-16 bg-emerald-50">
116
+ <div class="container mx-auto px-4">
117
+ <div class="max-w-4xl mx-auto">
118
+ <h2 class="text-3xl md:text-4xl font-bold text-center mb-4 text-gray-800">Make a Difference Today</h2>
119
+ <p class="text-center text-gray-600 mb-12">Your contribution helps us continue our vital work in communities around the world.</p>
120
+
121
+ <div class="bg-white rounded-2xl shadow-lg p-8">
122
+ <form id="donation-form" class="space-y-6">
123
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
124
+ <div>
125
+ <label class="block text-gray-700 font-medium mb-2" for="name">Full Name</label>
126
+ <input type="text" id="name" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-emerald-500 focus:border-transparent" required>
127
+ </div>
128
+ <div>
129
+ <label class="block text-gray-700 font-medium mb-2" for="email">Email Address</label>
130
+ <input type="email" id="email" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-emerald-500 focus:border-transparent" required>
131
+ </div>
132
+ </div>
133
+
134
+ <div>
135
+ <label class="block text-gray-700 font-medium mb-2">Donation Amount</label>
136
+ <div class="grid grid-cols-2 sm:grid-cols-4 gap-3 mb-4">
137
+ <button type="button" class="amount-btn py-3 px-4 bg-gray-100 hover:bg-emerald-100 rounded-lg text-center font-medium transition-colors">$25</button>
138
+ <button type="button" class="amount-btn py-3 px-4 bg-gray-100 hover:bg-emerald-100 rounded-lg text-center font-medium transition-colors">$50</button>
139
+ <button type="button" class="amount-btn py-3 px-4 bg-gray-100 hover:bg-emerald-100 rounded-lg text-center font-medium transition-colors">$100</button>
140
+ <button type="button" class="amount-btn py-3 px-4 bg-gray-100 hover:bg-emerald-100 rounded-lg text-center font-medium transition-colors">Other</button>
141
+ </div>
142
+ <div id="other-amount" class="hidden mt-4">
143
+ <label class="block text-gray-700 font-medium mb-2" for="custom-amount">Custom Amount ($)</label>
144
+ <input type="number" id="custom-amount" min="1" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-emerald-500 focus:border-transparent">
145
+ </div>
146
+ </div>
147
+
148
+ <div>
149
+ <label class="block text-gray-700 font-medium mb-2">Payment Method</label>
150
+ <div class="flex space-x-4">
151
+ <label class="inline-flex items-center">
152
+ <input type="radio" name="payment-method" value="credit" class="text-emerald-600" checked>
153
+ <span class="ml-2">Credit Card</span>
154
+ </label>
155
+ <label class="inline-flex items-center">
156
+ <input type="radio" name="payment-method" value="paypal" class="text-emerald-600">
157
+ <span class="ml-2">PayPal</span>
158
+ </label>
159
+ </div>
160
+ </div>
161
+
162
+ <div class="border-t pt-6">
163
+ <button type="submit" class="w-full bg-emerald-600 hover:bg-emerald-700 text-white font-bold py-4 px-6 rounded-lg transition duration-300 transform hover:scale-[1.02]">
164
+ Complete Donation
165
+ </button>
166
+ </div>
167
+ </form>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ </section>
172
+
173
+ <!-- Volunteer Opportunities -->
174
+ <section id="volunteer" class="py-16 bg-white">
175
+ <div class="container mx-auto px-4">
176
+ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-800">Volunteer With Us</h2>
177
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
178
+ <div class="bg-gray-50 p-8 rounded-xl text-center">
179
+ <div class="w-16 h-16 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-6">
180
+ <i data-feather="users" class="text-emerald-600 w-8 h-8"></i>
181
+ </div>
182
+ <h3 class="text-xl font-bold mb-3 text-gray-800">Community Outreach</h3>
183
+ <p class="text-gray-600 mb-4">Join our team visiting local communities to distribute resources and support programs.</p>
184
+ <a href="#" class="text-emerald-600 font-medium hover:underline">Apply Now</a>
185
+ </div>
186
+ <div class="bg-gray-50 p-8 rounded-xl text-center">
187
+ <div class="w-16 h-16 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-6">
188
+ <i data-feather="globe" class="text-emerald-600 w-8 h-8"></i>
189
+ </div>
190
+ <h3 class="text-xl font-bold mb-3 text-gray-800">International Programs</h3>
191
+ <p class="text-gray-600 mb-4">Participate in our overseas initiatives to provide direct aid and support to communities in need.</p>
192
+ <a href="#" class="text-emerald-600 font-medium hover:underline">Apply Now</a>
193
+ </div>
194
+ <div class="bg-gray-50 p-8 rounded-xl text-center">
195
+ <div class="w-16 h-16 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-6">
196
+ <i data-feather="monitor" class="text-emerald-600 w-8 h-8"></i>
197
+ </div>
198
+ <h3 class="text-xl font-bold mb-3 text-gray-800">Remote Volunteering</h3>
199
+ <p class="text-gray-600 mb-4">Support our mission from anywhere by helping with research, translation, or digital marketing.</p>
200
+ <a href="#" class="text-emerald-600 font-medium hover:underline">Apply Now</a>
201
+ </div>
202
+ </div>
203
+ </div>
204
+ </section>
205
+
206
+ <!-- Success Stories -->
207
+ <section id="stories" class="py-16 bg-gray-50">
208
+ <div class="container mx-auto px-4">
209
+ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-800">Success Stories</h2>
210
+ <div class="max-w-4xl mx-auto">
211
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
212
+ <div class="md:flex">
213
+ <div class="md:w-1/3">
214
+ <img src="http://static.photos/people/640x360/4" alt="Maria's Story" class="w-full h-full object-cover">
215
+ </div>
216
+ <div class="p-8 md:w-2/3">
217
+ <div class="text-emerald-600 font-bold mb-2">Education Program</div>
218
+ <h3 class="text-2xl font-bold mb-4 text-gray-800">Maria's Journey to Becoming a Teacher</h3>
219
+ <p class="text-gray-600 mb-4">Thanks to our scholarship program, Maria was able to complete her education and is now teaching in her hometown, inspiring the next generation of students.</p>
220
+ <blockquote class="border-l-4 border-emerald-500 pl-4 italic text-gray-700 my-4">
221
+ "This organization gave me the opportunity to change not just my life, but the lives of countless children in my community."
222
+ </blockquote>
223
+ <a href="#" class="text-emerald-600 font-medium hover:underline">Read Full Story →</a>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </section>
230
+
231
+ <!-- Upcoming Events -->
232
+ <section id="events" class="py-16 bg-white">
233
+ <div class="container mx-auto px-4">
234
+ <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 text-gray-800">Upcoming Events</h2>
235
+ <div class="max-w-4xl mx-auto">
236
+ <div class="space-y-6">
237
+ <div class="flex flex-col sm:flex-row items-start p-6 bg-gray-50 rounded-xl">
238
+ <div class="flex-shrink-0 mb-4 sm:mb-0 sm:mr-6">
239
+ <div class="bg-emerald-100 text-emerald-800 rounded-lg py-2 px-4 text-center">
240
+ <div class="font-bold text-lg">DEC</div>
241
+ <div class="font-bold text-2xl">15</div>
242
+ </div>
243
+ </div>
244
+ <div>
245
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Annual Charity Gala</h3>
246
+ <p class="text-gray-600 mb-2">Join us for our annual fundraising gala featuring keynote speakers, entertainment, and recognition of our volunteers.</p>
247
+ <div class="flex items-center text-gray-500 text-sm">
248
+ <i data-feather="map-pin" class="w-4 h-4 mr-1"></i>
249
+ <span>Grand Ballroom, Downtown Convention Center</span>
250
+ </div>
251
+ </div>
252
+ </div>
253
+
254
+ <div class="flex flex-col sm:flex-row items-start p-6 bg-gray-50 rounded-xl">
255
+ <div class="flex-shrink-0 mb-4 sm:mb-0 sm:mr-6">
256
+ <div class="bg-emerald-100 text-emerald-800 rounded-lg py-2 px-4 text-center">
257
+ <div class="font-bold text-lg">JAN</div>
258
+ <div class="font-bold text-2xl">08</div>
259
+ </div>
260
+ </div>
261
+ <div>
262
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Community Cleanup Day</h3>
263
+ <p class="text-gray-600 mb-2">Help us beautify local parks and neighborhoods while connecting with community members.</p>
264
+ <div class="flex items-center text-gray-500 text-sm">
265
+ <i data-feather="map-pin" class="w-4 h-4 mr-1"></i>
266
+ <span>Riverside Park & Various Neighborhoods</span>
267
+ </div>
268
+ </div>
269
+ </div>
270
+
271
+ <div class="flex flex-col sm:flex-row items-start p-6 bg-gray-50 rounded-xl">
272
+ <div class="flex-shrink-0 mb-4 sm:mb-0 sm:mr-6">
273
+ <div class="bg-emerald-100 text-emerald-800 rounded-lg py-2 px-4 text-center">
274
+ <div class="font-bold text-lg">JAN</div>
275
+ <div class="font-bold text-2xl">22</div>
276
+ </div>
277
+ </div>
278
+ <div>
279
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Virtual Fundraising Workshop</h3>
280
+ <p class="text-gray-600 mb-2">Learn effective fundraising strategies and techniques from our experienced development team.</p>
281
+ <div class="flex items-center text-gray-500 text-sm">
282
+ <i data-feather="video" class="w-4 h-4 mr-1"></i>
283
+ <span>Online Event - Registration Required</span>
284
+ </div>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ </div>
289
+ </div>
290
+ </section>
291
+
292
+ <!-- Newsletter Signup -->
293
+ <section id="newsletter" class="py-16 bg-emerald-600">
294
+ <div class="container mx-auto px-4">
295
+ <div class="max-w-3xl mx-auto text-center">
296
+ <h2 class="text-3xl md:text-4xl font-bold text-white mb-4">Stay Connected</h2>
297
+ <p class="text-emerald-100 mb-8">Subscribe to our newsletter for updates on our work, success stories, and ways to get involved.</p>
298
+ <form id="newsletter-form" class="flex flex-col sm:flex-row gap-4 max-w-xl mx-auto">
299
+ <input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-300" required>
300
+ <button type="submit" class="bg-white text-emerald-700 hover:bg-gray-100 font-bold py-3 px-6 rounded-lg transition duration-300 whitespace-nowrap">
301
+ Subscribe
302
+ </button>
303
+ </form>
304
+ </div>
305
+ </div>
306
+ </section>
307
+
308
+ <custom-footer></custom-footer>
309
+
310
+ <script src="components/navbar.js"></script>
311
+ <script src="components/footer.js"></script>
312
+ <script src="script.js"></script>
313
+ <script>
314
+ feather.replace();
315
+ // Initialize Vanta.js background
316
+ VANTA.GLOBE({
317
+ el: "#vanta-bg",
318
+ mouseControls: true,
319
+ touchControls: true,
320
+ gyroControls: false,
321
+ minHeight: 200.00,
322
+ minWidth: 200.00,
323
+ scale: 1.00,
324
+ scaleMobile: 1.00,
325
+ color: 0x10b981,
326
+ color2: 0x047857,
327
+ backgroundColor: 0x065f46
328
+ })
329
+ </script>
330
+ <script src="https://deepsite.hf.co/deepsite-badge.js"></script>
331
+ </body>
332
+ </html>
script.js ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Shared JavaScript across all pages
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ // Donation amount selection
4
+ const amountButtons = document.querySelectorAll('.amount-btn');
5
+ const otherAmountContainer = document.getElementById('other-amount');
6
+ const customAmountInput = document.getElementById('custom-amount');
7
+
8
+ amountButtons.forEach(button => {
9
+ button.addEventListener('click', function() {
10
+ // Remove active class from all buttons
11
+ amountButtons.forEach(btn => btn.classList.remove('active'));
12
+
13
+ // Add active class to clicked button
14
+ this.classList.add('active');
15
+
16
+ // Show/hide custom amount input
17
+ if (this.textContent === 'Other') {
18
+ otherAmountContainer.classList.remove('hidden');
19
+ customAmountInput.focus();
20
+ } else {
21
+ otherAmountContainer.classList.add('hidden');
22
+ }
23
+ });
24
+ });
25
+
26
+ // Donation form submission
27
+ const donationForm = document.getElementById('donation-form');
28
+ if (donationForm) {
29
+ donationForm.addEventListener('submit', function(e) {
30
+ e.preventDefault();
31
+
32
+ // Get selected amount
33
+ let amount = '';
34
+ const activeButton = document.querySelector('.amount-btn.active');
35
+ if (activeButton) {
36
+ if (activeButton.textContent === 'Other') {
37
+ amount = customAmountInput.value || '0';
38
+ } else {
39
+ amount = activeButton.textContent.replace('$', '');
40
+ }
41
+ }
42
+
43
+ // In a real application, you would process the payment here
44
+ alert(`Thank you for your donation of $${amount}! Your contribution makes a difference.`);
45
+ donationForm.reset();
46
+ document.querySelector('.amount-btn:first-child').classList.add('active');
47
+ otherAmountContainer.classList.add('hidden');
48
+ });
49
+ }
50
+
51
+ // Newsletter form submission
52
+ const newsletterForm = document.getElementById('newsletter-form');
53
+ if (newsletterForm) {
54
+ newsletterForm.addEventListener('submit', function(e) {
55
+ e.preventDefault();
56
+ const email = this.querySelector('input[type="email"]').value;
57
+ alert(`Thank you for subscribing with ${email}! You'll receive our next update soon.`);
58
+ this.reset();
59
+ });
60
+ }
61
+ });
style.css CHANGED
@@ -1,28 +1,57 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Shared styles across all pages */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
3
+
4
+ :root {
5
+ --primary-color: #10b981;
6
+ --secondary-color: #047857;
7
+ --accent-color: #065f46;
8
+ }
9
+
10
+ * {
11
+ margin: 0;
12
+ padding: 0;
13
+ box-sizing: border-box;
14
  }
15
 
16
+ body {
17
+ font-family: 'Inter', sans-serif;
18
+ line-height: 1.6;
19
+ color: #333;
20
  }
21
 
22
+ /* Custom styles for specific elements */
23
+ #hero {
24
+ position: relative;
25
+ overflow: hidden;
 
26
  }
27
 
28
+ #vanta-bg {
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ width: 100%;
33
+ height: 100%;
34
+ z-index: -1;
35
  }
36
 
37
+ .amount-btn.active {
38
+ background-color: var(--primary-color) !important;
39
+ color: white;
40
  }
41
+
42
+ /* Responsive adjustments */
43
+ @media (max-width: 768px) {
44
+ .hero-content {
45
+ padding-top: 2rem;
46
+ }
47
+
48
+ .hero-buttons {
49
+ flex-direction: column;
50
+ gap: 1rem;
51
+ }
52
+
53
+ .hero-buttons a {
54
+ width: 100%;
55
+ text-align: center;
56
+ }
57
+ }