satchcouk commited on
Commit
861aaf2
·
verified ·
1 Parent(s): 8f7c56a

Please change the share link so instead it says, "Share via WhatsApp" and links to this: https://wa.me/?text=Caffeine%20quitting%20tool%20 and also make the gap to the 3 links at the bottom a lot smaller. And give the Donate link just a hashtag symbol so nothing happens when it's clicked. - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +6 -49
index.html CHANGED
@@ -90,7 +90,7 @@
90
  <i class="fas fa-coffee text-4xl text-amber-800"></i>
91
  </div>
92
  <h1 class="text-4xl font-bold text-amber-900 mb-2">Decaf Journey</h1>
93
- <p class="text-lg text-amber-800">Your path to a caffeine-free life</p>
94
  </header>
95
 
96
  <!-- Navigation Tabs -->
@@ -364,11 +364,11 @@
364
 
365
  <!-- Footer -->
366
  <div class="container mx-auto px-4 py-8 max-w-4xl">
367
- <div class="flex flex-wrap justify-center gap-4 mt-12">
368
- <button onclick="shareApp()" class="flex items-center bg-amber-100 hover:bg-amber-200 text-amber-800 font-medium py-2 px-4 rounded-full transition">
369
- <i class="fas fa-share-alt mr-2"></i> Share
370
  </button>
371
- <a href="#donate" class="flex items-center bg-amber-100 hover:bg-amber-200 text-amber-800 font-medium py-2 px-4 rounded-full transition">
372
  <i class="fas fa-heart mr-2"></i> Donate
373
  </a>
374
  <a href="#contact" class="flex items-center bg-amber-100 hover:bg-amber-200 text-amber-800 font-medium py-2 px-4 rounded-full transition">
@@ -396,49 +396,6 @@
396
  </div>
397
 
398
  <script>
399
- // Share function
400
- function shareApp() {
401
- const shareText = "Check out this Caffeine Withdrawal Tracker tool!";
402
- const shareUrl = window.location.href;
403
-
404
- if (navigator.share) {
405
- navigator.share({
406
- title: 'Decaf Journey',
407
- text: shareText,
408
- url: shareUrl
409
- }).catch(err => {
410
- console.log('Error sharing:', err);
411
- fallbackShare(shareText, shareUrl);
412
- });
413
- } else {
414
- fallbackShare(shareText, shareUrl);
415
- }
416
- }
417
-
418
- function fallbackShare(text, url) {
419
- // Fallback for browsers that don't support Web Share API
420
- const shareWindow = window.open('', '_blank');
421
- shareWindow.document.write(`
422
- <html>
423
- <head><title>Share</title></head>
424
- <body style="font-family: sans-serif; padding: 20px;">
425
- <h2>Share this tool</h2>
426
- <p>${text}</p>
427
- <p>${url}</p>
428
- <p>Copy the link above or share via:</p>
429
- <div style="margin-top: 20px;">
430
- <a href="https://wa.me/?text=${encodeURIComponent(text + ' ' + url)}" style="margin-right: 10px; color: #25D366;">
431
- <i class="fab fa-whatsapp" style="font-size: 24px;"></i> WhatsApp
432
- </a>
433
- <a href="mailto:?subject=Caffeine Withdrawal Tracker&body=${encodeURIComponent(text + '\n\n' + url)}" style="margin-right: 10px; color: #EA4335;">
434
- <i class="fas fa-envelope" style="font-size: 24px;"></i> Email
435
- </a>
436
- </div>
437
- <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=satchcouk/decaf" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
438
- </html>
439
- `);
440
- }
441
-
442
  // Simple routing for donate/contact pages
443
  window.addEventListener('hashchange', function() {
444
  const hash = window.location.hash.substring(1);
@@ -636,5 +593,5 @@
636
  updateBenefitsList();
637
  });
638
  </script>
639
- </body>
640
  </html>
 
90
  <i class="fas fa-coffee text-4xl text-amber-800"></i>
91
  </div>
92
  <h1 class="text-4xl font-bold text-amber-900 mb-2">Decaf Journey</h1>
93
+ <p class="text-lg text-amber-800">Your path to a caffeine-free life.</p>
94
  </header>
95
 
96
  <!-- Navigation Tabs -->
 
364
 
365
  <!-- Footer -->
366
  <div class="container mx-auto px-4 py-8 max-w-4xl">
367
+ <div class="flex flex-wrap justify-center gap-2 mt-6">
368
+ <a href="https://wa.me/?text=Caffeine%20quitting%20tool%20" class="flex items-center bg-amber-100 hover:bg-amber-200 text-amber-800 font-medium py-2 px-4 rounded-full transition">
369
+ <i class="fab fa-whatsapp mr-2"></i> Share via WhatsApp
370
  </button>
371
+ <a href="#" class="flex items-center bg-amber-100 hover:bg-amber-200 text-amber-800 font-medium py-2 px-4 rounded-full transition">
372
  <i class="fas fa-heart mr-2"></i> Donate
373
  </a>
374
  <a href="#contact" class="flex items-center bg-amber-100 hover:bg-amber-200 text-amber-800 font-medium py-2 px-4 rounded-full transition">
 
396
  </div>
397
 
398
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  // Simple routing for donate/contact pages
400
  window.addEventListener('hashchange', function() {
401
  const hash = window.location.hash.substring(1);
 
593
  updateBenefitsList();
594
  });
595
  </script>
596
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=satchcouk/decaf" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
597
  </html>