Saharshgood commited on
Commit
4637b77
·
verified ·
1 Parent(s): 206b28c

Medium big counter. In seperate section - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +25 -2
index.html CHANGED
@@ -25,6 +25,11 @@
25
  .gradient-bg {
26
  background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
27
  }
 
 
 
 
 
28
  .form-shadow {
29
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
30
  }
@@ -45,7 +50,7 @@
45
  <div class="container mx-auto px-4">
46
  <div class="max-w-3xl mx-auto text-center">
47
  <h1 class="text-4xl md:text-5xl font-bold mb-4">TruthLens Foundation</h1>
48
- <p class="text-xl md:text-2xl font-light"</p>
49
  <p class="text-lg italic mt-2">"Empowered to Question, Inspired to Act."</p>
50
  <div class="mt-8">
51
  <i class="fas fa-hands-helping text-4xl opacity-80"></i>
@@ -54,6 +59,15 @@
54
  </div>
55
  </header>
56
 
 
 
 
 
 
 
 
 
 
57
  <!-- Main Content with ARIA landmark -->
58
  <main class="container mx-auto px-4 py-12" role="main">
59
  <div class="flex flex-col lg:flex-row gap-12">
@@ -257,6 +271,10 @@
257
 
258
 
259
  <script>
 
 
 
 
260
  function prepareEmail(event) {
261
  event.preventDefault();
262
 
@@ -287,9 +305,14 @@
287
  // Open mail client
288
  window.location.href = `mailto:saharshkumar450@gmail.com?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
289
 
290
- // Show success message
291
  document.getElementById('successMessage').classList.add('show');
292
  document.getElementById('successMessage').scrollIntoView({ behavior: 'smooth' });
 
 
 
 
 
293
  }
294
 
295
  // For signature upload preview (not implemented in this demo)
 
25
  .gradient-bg {
26
  background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
27
  }
28
+ #volunteerCounter {
29
+ font-size: 4rem;
30
+ line-height: 1;
31
+ text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
32
+ }
33
  .form-shadow {
34
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
35
  }
 
50
  <div class="container mx-auto px-4">
51
  <div class="max-w-3xl mx-auto text-center">
52
  <h1 class="text-4xl md:text-5xl font-bold mb-4">TruthLens Foundation</h1>
53
+ <p class="text-xl md:text-2xl font-light"></p>
54
  <p class="text-lg italic mt-2">"Empowered to Question, Inspired to Act."</p>
55
  <div class="mt-8">
56
  <i class="fas fa-hands-helping text-4xl opacity-80"></i>
 
59
  </div>
60
  </header>
61
 
62
+ <!-- Volunteer Counter Section -->
63
+ <section class="bg-white py-8 shadow-md">
64
+ <div class="container mx-auto px-4 text-center">
65
+ <h2 class="text-2xl font-semibold text-gray-800 mb-2">Join Our Growing Movement</h2>
66
+ <div class="text-5xl font-bold text-blue-600 my-4" id="volunteerCounter">0</div>
67
+ <p class="text-lg text-gray-600">people fighting for transparency</p>
68
+ </div>
69
+ </section>
70
+
71
  <!-- Main Content with ARIA landmark -->
72
  <main class="container mx-auto px-4 py-12" role="main">
73
  <div class="flex flex-col lg:flex-row gap-12">
 
271
 
272
 
273
  <script>
274
+ // Initialize and display the volunteer counter
275
+ let volunteerCount = localStorage.getItem('volunteerCount') || 0;
276
+ document.getElementById('volunteerCounter').textContent = volunteerCount;
277
+
278
  function prepareEmail(event) {
279
  event.preventDefault();
280
 
 
305
  // Open mail client
306
  window.location.href = `mailto:saharshkumar450@gmail.com?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
307
 
308
+ // Show success message and update counter
309
  document.getElementById('successMessage').classList.add('show');
310
  document.getElementById('successMessage').scrollIntoView({ behavior: 'smooth' });
311
+
312
+ // Increment and save the counter
313
+ volunteerCount++;
314
+ localStorage.setItem('volunteerCount', volunteerCount);
315
+ document.getElementById('volunteerCounter').textContent = volunteerCount;
316
  }
317
 
318
  // For signature upload preview (not implemented in this demo)