embedingHF commited on
Commit
56fdaf5
·
verified ·
1 Parent(s): 9eecc1b

Update homepage.html

Browse files
Files changed (1) hide show
  1. homepage.html +228 -26
homepage.html CHANGED
@@ -394,6 +394,98 @@
394
  color: #a78bfa;
395
  }
396
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
  /* CTA Section */
398
  .cta {
399
  padding: 6rem 2rem;
@@ -538,6 +630,10 @@
538
  .section-title {
539
  font-size: 2rem;
540
  }
 
 
 
 
541
  }
542
  </style>
543
  </head>
@@ -555,6 +651,7 @@
555
  <a onclick="renderPage('features')">Features</a>
556
  <a onclick="renderPage('testimonials')">Testimonials</a>
557
  <a onclick="renderPage('pricing')">Pricing</a>
 
558
  <a onclick="renderPage('faq')">FAQ</a>
559
  <button class="download-btn-nav" id="navDownload"><i class="fas fa-download"></i> Download Now</button>
560
  </div>
@@ -569,6 +666,7 @@
569
  <a onclick="renderPage('features')">Features</a>
570
  <a onclick="renderPage('testimonials')">Testimonials</a>
571
  <a onclick="renderPage('pricing')">Pricing</a>
 
572
  <a onclick="renderPage('faq')">FAQ</a>
573
  <button class="btn-primary" id="mobileDownload" style="margin-top: 1rem;">Download Now</button>
574
  </div>
@@ -588,6 +686,40 @@
588
  linkedin: "https://www.linkedin.com/in/generatewithali"
589
  };
590
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
  const footerHTML = `
592
  <footer class="footer">
593
  <div class="footer-grid">
@@ -611,19 +743,55 @@
611
  <h4>Resources</h4>
612
  <a onclick="renderPage('faq')">FAQ</a>
613
  <a onclick="renderPage('testimonials')">Testimonials</a>
614
- <a href="mailto:${YOUR_EMAIL}">Support</a>
615
  </div>
616
  <div class="footer-col">
617
- <h4>Legal</h4>
618
- <a>Privacy Policy</a>
619
- <a>Terms of Service</a>
620
- <a href="https://wa.me/${WHATSAPP_NUMBER}" target="_blank">Contact</a>
621
  </div>
622
  </div>
623
  <div class="copyright">© 2026 All File Converter. Created by BahadurAli's Team. All rights reserved.</div>
624
  </footer>
625
  `;
626
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
627
  // Pages Content
628
  const pages = {
629
  home: `
@@ -646,22 +814,10 @@
646
 
647
  <section class="stats">
648
  <div class="stats-grid">
649
- <div class="stat-card">
650
- <div class="stat-number">200+</div>
651
- <div class="stat-label">File Formats Supported</div>
652
- </div>
653
- <div class="stat-card">
654
- <div class="stat-number">50K+</div>
655
- <div class="stat-label">Happy Users</div>
656
- </div>
657
- <div class="stat-card">
658
- <div class="stat-number">99.9%</div>
659
- <div class="stat-label">Success Rate</div>
660
- </div>
661
- <div class="stat-card">
662
- <div class="stat-number">24/7</div>
663
- <div class="stat-label">Premium Support</div>
664
- </div>
665
  </div>
666
  </section>
667
 
@@ -682,9 +838,10 @@
682
  <h2 class="section-title">Trusted by Professionals</h2>
683
  <div class="section-subtitle">Join 50,000+ satisfied users worldwide</div>
684
  <div class="testimonials-grid">
685
- <div class="testimonial-card"><div class="testimonial-text">"Best file converter I've ever used! Batch processing saved me hours of work. Highly recommended!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Sheza Abid</div><div class="author-title">Software Engineer</div></div></div></div>
686
- <div class="testimonial-card"><div class="testimonial-text">"Fast, reliable, and completely offline. Perfect for sensitive documents. The AI enhancement is incredible!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Aiman Imran</div><div class="author-title">Graphic Designer</div></div></div></div>
687
- <div class="testimonial-card"><div class="testimonial-text">"The batch processing feature alone is worth it. Converted 500+ images in minutes. Five stars!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Fatima Akram
 
688
  </section>
689
 
690
  <section class="cta">
@@ -716,7 +873,7 @@
716
  <h2 class="section-title">💬 What Our Users Say</h2>
717
  <div class="testimonials-grid">
718
  <div class="testimonial-card"><div class="testimonial-text">"Amazing software! The speed and quality are unmatched. Highly recommended for professionals."</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Ali Hassan</div><div class="author-title">Content Creator</div></div></div></div>
719
- <div class="testimonial-card"><div class="testimonial-text">"Finally a converter that handles everything offline. Love the AI enhancement feature!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Fatima Khan</div><div class="author-title">Business Owner</div></div></div></div>
720
  <div class="testimonial-card"><div class="testimonial-text">"The batch processing feature is a game changer for my daily workflow. Five stars!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Omar Farooq</div><div class="author-title">Photographer</div></div></div></div>
721
  </div>
722
  </section>
@@ -735,6 +892,11 @@
735
  ${footerHTML}
736
  `,
737
 
 
 
 
 
 
738
  faq: `
739
  <section style="padding: 8rem 2rem 4rem; max-width: 800px; margin: 0 auto;">
740
  <h2 class="section-title">❓ Frequently Asked Questions</h2>
@@ -743,13 +905,48 @@
743
  <div class="feature-card" style="text-align: left;"><h3 style="margin-bottom: 0.5rem;">Does it work offline?</h3><p style="color: #b0b0d0;">Absolutely! No internet connection required after installation. All processing happens locally on your computer.</p></div>
744
  <div class="feature-card" style="text-align: left;"><h3 style="margin-bottom: 0.5rem;">What file formats are supported?</h3><p style="color: #b0b0d0;">Over 200 formats including images (JPG, PNG, HEIC), documents (PDF, DOCX), video (MP4, AVI), and audio (MP3, WAV).</p></div>
745
  <div class="feature-card" style="text-align: left;"><h3 style="margin-bottom: 0.5rem;">Is there a file size limit?</h3><p style="color: #b0b0d0;">No limits! Convert files of any size. The software is optimized for large files.</p></div>
 
746
  </div>
747
  </section>
748
  ${footerHTML}
749
  `
750
  };
751
 
752
- // Render page function - make it global
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
753
  window.renderPage = function(pageId) {
754
  const content = pages[pageId] || pages.home;
755
  document.getElementById('mainContent').innerHTML = content;
@@ -764,6 +961,11 @@
764
  });
765
  }
766
  });
 
 
 
 
 
767
  };
768
 
769
  // Mobile menu
 
394
  color: #a78bfa;
395
  }
396
 
397
+ /* Contact Form Section */
398
+ .contact-section {
399
+ padding: 6rem 2rem;
400
+ max-width: 800px;
401
+ margin: 0 auto;
402
+ }
403
+
404
+ .contact-form {
405
+ background: rgba(255, 255, 255, 0.05);
406
+ backdrop-filter: blur(10px);
407
+ padding: 3rem;
408
+ border-radius: 30px;
409
+ border: 1px solid rgba(255, 255, 255, 0.1);
410
+ }
411
+
412
+ .form-group {
413
+ margin-bottom: 1.5rem;
414
+ }
415
+
416
+ .form-group label {
417
+ display: block;
418
+ margin-bottom: 0.5rem;
419
+ font-weight: 500;
420
+ color: #e5e5e5;
421
+ }
422
+
423
+ .form-group input,
424
+ .form-group select,
425
+ .form-group textarea {
426
+ width: 100%;
427
+ padding: 1rem;
428
+ background: rgba(255, 255, 255, 0.1);
429
+ border: 1px solid rgba(255, 255, 255, 0.2);
430
+ border-radius: 12px;
431
+ font-family: inherit;
432
+ font-size: 1rem;
433
+ color: white;
434
+ transition: 0.3s;
435
+ }
436
+
437
+ .form-group input:focus,
438
+ .form-group select:focus,
439
+ .form-group textarea:focus {
440
+ outline: none;
441
+ border-color: #8b5cf6;
442
+ background: rgba(255, 255, 255, 0.15);
443
+ }
444
+
445
+ .form-group input::placeholder,
446
+ .form-group textarea::placeholder {
447
+ color: rgba(255, 255, 255, 0.5);
448
+ }
449
+
450
+ .submit-btn {
451
+ width: 100%;
452
+ padding: 1rem;
453
+ background: linear-gradient(135deg, #8b5cf6, #6366f1);
454
+ border: none;
455
+ border-radius: 12px;
456
+ color: white;
457
+ font-weight: 700;
458
+ font-size: 1rem;
459
+ cursor: pointer;
460
+ transition: 0.3s;
461
+ }
462
+
463
+ .submit-btn:hover {
464
+ transform: translateY(-2px);
465
+ box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
466
+ }
467
+
468
+ .form-message {
469
+ margin-top: 1rem;
470
+ padding: 1rem;
471
+ border-radius: 12px;
472
+ display: none;
473
+ }
474
+
475
+ .form-success {
476
+ background: rgba(16, 185, 129, 0.2);
477
+ border: 1px solid #10b981;
478
+ color: #10b981;
479
+ display: block;
480
+ }
481
+
482
+ .form-error {
483
+ background: rgba(239, 68, 68, 0.2);
484
+ border: 1px solid #ef4444;
485
+ color: #ef4444;
486
+ display: block;
487
+ }
488
+
489
  /* CTA Section */
490
  .cta {
491
  padding: 6rem 2rem;
 
630
  .section-title {
631
  font-size: 2rem;
632
  }
633
+
634
+ .contact-form {
635
+ padding: 1.5rem;
636
+ }
637
  }
638
  </style>
639
  </head>
 
651
  <a onclick="renderPage('features')">Features</a>
652
  <a onclick="renderPage('testimonials')">Testimonials</a>
653
  <a onclick="renderPage('pricing')">Pricing</a>
654
+ <a onclick="renderPage('contact')">Contact</a>
655
  <a onclick="renderPage('faq')">FAQ</a>
656
  <button class="download-btn-nav" id="navDownload"><i class="fas fa-download"></i> Download Now</button>
657
  </div>
 
666
  <a onclick="renderPage('features')">Features</a>
667
  <a onclick="renderPage('testimonials')">Testimonials</a>
668
  <a onclick="renderPage('pricing')">Pricing</a>
669
+ <a onclick="renderPage('contact')">Contact</a>
670
  <a onclick="renderPage('faq')">FAQ</a>
671
  <button class="btn-primary" id="mobileDownload" style="margin-top: 1rem;">Download Now</button>
672
  </div>
 
686
  linkedin: "https://www.linkedin.com/in/generatewithali"
687
  };
688
 
689
+ // Formspree endpoint
690
+ const FORMSPREE_URL = "https://formspree.io/f/mojrrdov";
691
+
692
+ // Send email via Formspree
693
+ async function sendEmailNotification(name, email, subject, message) {
694
+ const formData = new FormData();
695
+ formData.append('name', name);
696
+ formData.append('email', email);
697
+ formData.append('subject', subject);
698
+ formData.append('message', message);
699
+ formData.append('_to', YOUR_EMAIL);
700
+ formData.append('_subject', `New Support Request from ${name}`);
701
+ formData.append('_replyto', email);
702
+
703
+ try {
704
+ const response = await fetch(FORMSPREE_URL, {
705
+ method: 'POST',
706
+ body: formData,
707
+ headers: {
708
+ 'Accept': 'application/json'
709
+ }
710
+ });
711
+
712
+ if (response.ok) {
713
+ return { success: true };
714
+ } else {
715
+ throw new Error('Formspree error');
716
+ }
717
+ } catch (error) {
718
+ console.error('Error:', error);
719
+ return { success: false, error: error.message };
720
+ }
721
+ }
722
+
723
  const footerHTML = `
724
  <footer class="footer">
725
  <div class="footer-grid">
 
743
  <h4>Resources</h4>
744
  <a onclick="renderPage('faq')">FAQ</a>
745
  <a onclick="renderPage('testimonials')">Testimonials</a>
746
+ <a onclick="renderPage('contact')">Contact Us</a>
747
  </div>
748
  <div class="footer-col">
749
+ <h4>Support</h4>
750
+ <a href="mailto:${YOUR_EMAIL}">Email Support</a>
751
+ <a href="https://wa.me/${WHATSAPP_NUMBER}" target="_blank">WhatsApp</a>
 
752
  </div>
753
  </div>
754
  <div class="copyright">© 2026 All File Converter. Created by BahadurAli's Team. All rights reserved.</div>
755
  </footer>
756
  `;
757
 
758
+ // Contact Form Component
759
+ const contactFormHTML = `
760
+ <section class="contact-section">
761
+ <h2 class="section-title">📧 Get in Touch</h2>
762
+ <div class="section-subtitle">Have questions? We'd love to hear from you!</div>
763
+ <div class="contact-form">
764
+ <form id="contactForm">
765
+ <div class="form-group">
766
+ <label>Full Name *</label>
767
+ <input type="text" id="contactName" placeholder="Enter your full name" required>
768
+ </div>
769
+ <div class="form-group">
770
+ <label>Email Address *</label>
771
+ <input type="email" id="contactEmail" placeholder="you@example.com" required>
772
+ </div>
773
+ <div class="form-group">
774
+ <label>Subject *</label>
775
+ <select id="contactSubject">
776
+ <option value="Software Support">Software Support</option>
777
+ <option value="Bug Report">Bug Report</option>
778
+ <option value="Feature Request">Feature Request</option>
779
+ <option value="Business Inquiry">Business Inquiry</option>
780
+ </select>
781
+ </div>
782
+ <div class="form-group">
783
+ <label>Message *</label>
784
+ <textarea id="contactMessage" rows="5" placeholder="Tell us how we can help..." required></textarea>
785
+ </div>
786
+ <button type="submit" class="submit-btn">
787
+ <i class="fas fa-paper-plane"></i> Send Message
788
+ </button>
789
+ <div id="formResponse" class="form-message"></div>
790
+ </form>
791
+ </div>
792
+ </section>
793
+ `;
794
+
795
  // Pages Content
796
  const pages = {
797
  home: `
 
814
 
815
  <section class="stats">
816
  <div class="stats-grid">
817
+ <div class="stat-card"><div class="stat-number">200+</div><div class="stat-label">File Formats Supported</div></div>
818
+ <div class="stat-card"><div class="stat-number">50K+</div><div class="stat-label">Happy Users</div></div>
819
+ <div class="stat-card"><div class="stat-number">99.9%</div><div class="stat-label">Success Rate</div></div>
820
+ <div class="stat-card"><div class="stat-number">24/7</div><div class="stat-label">Premium Support</div></div>
 
 
 
 
 
 
 
 
 
 
 
 
821
  </div>
822
  </section>
823
 
 
838
  <h2 class="section-title">Trusted by Professionals</h2>
839
  <div class="section-subtitle">Join 50,000+ satisfied users worldwide</div>
840
  <div class="testimonials-grid">
841
+ <div class="testimonial-card"><div class="testimonial-text">"Best file converter I've ever used! Batch processing saved me hours of work. Highly recommended!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Sheza Abid</div><div class="author-title">Website Developer</div></div></div></div>
842
+ <div class="testimonial-card"><div class="testimonial-text">"Fast, reliable, and completely offline. Perfect for sensitive documents. The AI enhancement is incredible!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Fatima Akram</div><div class="author-title">Graphic Designer</div></div></div></div>
843
+ <div class="testimonial-card"><div class="testimonial-text">"The batch processing feature alone is worth it. Converted 500+ images in minutes. Five stars!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Aiman Imran</div><div class="author-title">Content Writer</div></div></div></div>
844
+ </div>
845
  </section>
846
 
847
  <section class="cta">
 
873
  <h2 class="section-title">💬 What Our Users Say</h2>
874
  <div class="testimonials-grid">
875
  <div class="testimonial-card"><div class="testimonial-text">"Amazing software! The speed and quality are unmatched. Highly recommended for professionals."</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Ali Hassan</div><div class="author-title">Content Creator</div></div></div></div>
876
+ <div class="testimonial-card"><div class="testimonial-text">"Finally a converter that handles everything offline. Love the AI enhancement feature!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Fatima Akram</div><div class="author-title">Business Owner</div></div></div></div>
877
  <div class="testimonial-card"><div class="testimonial-text">"The batch processing feature is a game changer for my daily workflow. Five stars!"</div><div class="testimonial-author"><div class="author-avatar"><i class="fas fa-user"></i></div><div><div class="author-name">Omar Farooq</div><div class="author-title">Photographer</div></div></div></div>
878
  </div>
879
  </section>
 
892
  ${footerHTML}
893
  `,
894
 
895
+ contact: `
896
+ ${contactFormHTML}
897
+ ${footerHTML}
898
+ `,
899
+
900
  faq: `
901
  <section style="padding: 8rem 2rem 4rem; max-width: 800px; margin: 0 auto;">
902
  <h2 class="section-title">❓ Frequently Asked Questions</h2>
 
905
  <div class="feature-card" style="text-align: left;"><h3 style="margin-bottom: 0.5rem;">Does it work offline?</h3><p style="color: #b0b0d0;">Absolutely! No internet connection required after installation. All processing happens locally on your computer.</p></div>
906
  <div class="feature-card" style="text-align: left;"><h3 style="margin-bottom: 0.5rem;">What file formats are supported?</h3><p style="color: #b0b0d0;">Over 200 formats including images (JPG, PNG, HEIC), documents (PDF, DOCX), video (MP4, AVI), and audio (MP3, WAV).</p></div>
907
  <div class="feature-card" style="text-align: left;"><h3 style="margin-bottom: 0.5rem;">Is there a file size limit?</h3><p style="color: #b0b0d0;">No limits! Convert files of any size. The software is optimized for large files.</p></div>
908
+ <div class="feature-card" style="text-align: left;"><h3 style="margin-bottom: 0.5rem;">How do I get support?</h3><p style="color: #b0b0d0;">Contact us via the contact form, email at ${YOUR_EMAIL}, or WhatsApp at +${WHATSAPP_NUMBER}. Response within 24 hours.</p></div>
909
  </div>
910
  </section>
911
  ${footerHTML}
912
  `
913
  };
914
 
915
+ // Contact form handler
916
+ function initContactForm() {
917
+ const contactForm = document.getElementById('contactForm');
918
+ if (contactForm) {
919
+ contactForm.addEventListener('submit', async (e) => {
920
+ e.preventDefault();
921
+
922
+ const name = document.getElementById('contactName').value;
923
+ const email = document.getElementById('contactEmail').value;
924
+ const subject = document.getElementById('contactSubject').value;
925
+ const message = document.getElementById('contactMessage').value;
926
+ const responseDiv = document.getElementById('formResponse');
927
+
928
+ responseDiv.className = 'form-message';
929
+ responseDiv.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Sending message...';
930
+ responseDiv.style.display = 'block';
931
+
932
+ const result = await sendEmailNotification(name, email, subject, message);
933
+
934
+ if (result.success) {
935
+ responseDiv.className = 'form-message form-success';
936
+ responseDiv.innerHTML = '✓ Message sent successfully! Our team will respond within 24 hours.';
937
+ contactForm.reset();
938
+ setTimeout(() => {
939
+ responseDiv.style.display = 'none';
940
+ }, 5000);
941
+ } else {
942
+ responseDiv.className = 'form-message form-error';
943
+ responseDiv.innerHTML = '❌ Failed to send. Please email us directly at ' + YOUR_EMAIL;
944
+ }
945
+ });
946
+ }
947
+ }
948
+
949
+ // Render page function
950
  window.renderPage = function(pageId) {
951
  const content = pages[pageId] || pages.home;
952
  document.getElementById('mainContent').innerHTML = content;
 
961
  });
962
  }
963
  });
964
+
965
+ // Initialize contact form if on contact page
966
+ if (pageId === 'contact') {
967
+ initContactForm();
968
+ }
969
  };
970
 
971
  // Mobile menu