Download index.html from meyubaraj/sample1: direct link, hf CLI and curl.
- Browser
- Download file 26.5 kB
-
https://huggingface.co/spaces/meyubaraj/sample1/resolve/main/index.html
- Command line
-
hf download hf://spaces/meyubaraj/sample1/index.html
-
curl -L -o index.html https://huggingface.co/spaces/meyubaraj/sample1/resolve/main/index.html
26.5 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>MediCare - Your Complete Health Solution</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"> | |
| <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| overflow-x: hidden; | |
| } | |
| .hero-gradient { | |
| background: linear-gradient(135deg, #4f81f7 0%, #6bb8ff 100%); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .hero-gradient::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z" /><path fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="0.5" d="M0,0 L100,100 M100,0 L0,100" /></svg>'); | |
| opacity: 0.3; | |
| animation: gridMove 120s linear infinite; | |
| } | |
| @keyframes gridMove { | |
| 0% { background-position: 0 0; } | |
| 100% { background-position: 1000px 1000px; } | |
| } | |
| .feature-card { | |
| position: relative; | |
| overflow: hidden; | |
| transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); | |
| border: 1px solid rgba(255,255,255,0.1); | |
| backdrop-filter: blur(10px); | |
| background: rgba(255,255,255,0.8) ; | |
| } | |
| .feature-card:hover { | |
| transform: translateY(-10px) scale(1.02); | |
| box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); | |
| } | |
| .feature-card::after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); | |
| transition: 0.5s; | |
| } | |
| .feature-card:hover::after { | |
| left: 100%; | |
| } | |
| .floating { | |
| animation: floating 6s ease-in-out infinite; | |
| } | |
| @keyframes floating { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-20px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| .pulse { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { box-shadow: 0 0 0 0 rgba(79, 129, 247, 0.7); } | |
| 70% { box-shadow: 0 0 0 15px rgba(79, 129, 247, 0); } | |
| 100% { box-shadow: 0 0 0 0 rgba(79, 129, 247, 0); } | |
| } | |
| .glow { | |
| text-shadow: 0 0 10px rgba(255,255,255,0.8); | |
| } | |
| .neon-border { | |
| position: relative; | |
| } | |
| .neon-border::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| border-radius: inherit; | |
| padding: 2px; | |
| background: linear-gradient(45deg, #4f81f7, #6bb8ff, #4f81f7); | |
| -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); | |
| -webkit-mask-composite: xor; | |
| mask-composite: exclude; | |
| animation: rotate 4s linear infinite; | |
| } | |
| @keyframes rotate { | |
| 100% { transform: rotate(360deg); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-sm py-4 sticky top-0 z-50"> | |
| <div class="container mx-auto px-6 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="heart" class="text-blue-500"></i> | |
| <span class="text-xl font-semibold text-blue-600">MediCare</span> | |
| </div> | |
| <div class="hidden md:flex space-x-8"> | |
| <a href="#features" class="text-gray-600 hover:text-blue-500 transition">Features</a> | |
| <a href="#how-it-works" class="text-gray-600 hover:text-blue-500 transition">How It Works</a> | |
| <a href="#testimonials" class="text-gray-600 hover:text-blue-500 transition">Testimonials</a> | |
| <a href="#contact" class="text-gray-600 hover:text-blue-500 transition">Contact</a> | |
| </div> | |
| <div> | |
| <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg transition shadow-md"> | |
| Download App | |
| </button> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <section class="hero-gradient text-white py-20 relative"> | |
| <div class="absolute top-0 left-0 w-full h-full overflow-hidden"> | |
| <div class="absolute top-1/4 left-1/4 w-64 h-64 rounded-full bg-blue-400 opacity-20 filter blur-3xl animate-pulse"></div> | |
| <div class="absolute top-1/3 right-1/3 w-80 h-80 rounded-full bg-indigo-400 opacity-20 filter blur-3xl animate-pulse" style="animation-delay: 1s;"></div> | |
| <div class="absolute bottom-1/4 right-1/4 w-72 h-72 rounded-full bg-purple-400 opacity-20 filter blur-3xl animate-pulse" style="animation-delay: 2s;"></div> | |
| </div> | |
| <div class="container mx-auto px-6 flex flex-col md:flex-row items-center"> | |
| <div class="md:w-1/2 mb-10 md:mb-0" data-aos="fade-right"> | |
| <h1 class="text-4xl md:text-5xl font-bold mb-6">Your Complete Health Solution</h1> | |
| <p class="text-xl mb-8">Access healthcare services anytime, anywhere. Book appointments, consult doctors, get lab tests and track your medical history all in one place.</p> | |
| <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <button class="bg-white text-blue-600 px-6 py-3 rounded-lg font-semibold shadow-lg hover:bg-gray-100 transition"> | |
| Get Started | |
| </button> | |
| <button class="border-2 border-white text-white px-6 py-3 rounded-lg font-semibold hover:bg-white hover:text-blue-600 transition"> | |
| Learn More | |
| </button> | |
| </div> | |
| </div> | |
| <div class="md:w-1/2" data-aos="fade-left"> | |
| <div class="relative floating"> | |
| <img src="http://static.photos/technology/640x360/1" alt="Medical App" class="rounded-xl shadow-2xl neon-border"> | |
| <div class="absolute -bottom-5 -right-5 bg-white p-3 rounded-full shadow-xl"> | |
| <div class="bg-blue-500 text-white p-3 rounded-full pulse"> | |
| <i data-feather="play" class="w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section id="features" class="py-20 bg-white relative overflow-hidden"> | |
| <div class="absolute -top-1/2 -right-1/4 w-full h-full bg-gradient-to-tr from-blue-50 to-transparent opacity-30 transform rotate-12"></div> | |
| <div class="container mx-auto px-6"> | |
| <div class="text-center mb-16" data-aos="fade-up"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-4">Comprehensive Healthcare Features</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">All the healthcare services you need, right at your fingertips</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <!-- Feature 1 --> | |
| <div class="bg-gray-50 p-8 rounded-xl feature-card" data-aos="fade-up" data-aos-delay="100" data-tilt data-tilt-max="10" data-tilt-speed="400" data-tilt-perspective="1000"> | |
| <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mb-6"> | |
| <i data-feather="calendar" class="text-blue-500 w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Online Appointment</h3> | |
| <p class="text-gray-600">Book appointments with top doctors in your area with just a few taps. No more waiting in long queues.</p> | |
| </div> | |
| <!-- Feature 2 --> | |
| <div class="bg-gray-50 p-8 rounded-xl feature-card transition duration-300" data-aos="fade-up" data-aos-delay="200"> | |
| <div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mb-6"> | |
| <i data-feather="droplet" class="text-green-500 w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Lab Tests & Reports</h3> | |
| <p class="text-gray-600">Order lab tests from trusted providers and receive digital reports directly in your app.</p> | |
| </div> | |
| <!-- Feature 3 --> | |
| <div class="bg-gray-50 p-8 rounded-xl feature-card transition duration-300" data-aos="fade-up" data-aos-delay="300"> | |
| <div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mb-6"> | |
| <i data-feather="video" class="text-purple-500 w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Virtual Consultations</h3> | |
| <p class="text-gray-600">Connect with doctors via video, audio or chat from the comfort of your home.</p> | |
| </div> | |
| <!-- Feature 4 --> | |
| <div class="bg-gray-50 p-8 rounded-xl feature-card transition duration-300" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="bg-yellow-100 w-16 h-16 rounded-full flex items-center justify-center mb-6"> | |
| <i data-feather="file-text" class="text-yellow-500 w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Medical History</h3> | |
| <p class="text-gray-600">Securely store and track your complete medical history, prescriptions and test results.</p> | |
| </div> | |
| <!-- Feature 5 --> | |
| <div class="bg-gray-50 p-8 rounded-xl feature-card transition duration-300" data-aos="fade-up" data-aos-delay="200"> | |
| <div class="bg-red-100 w-16 h-16 rounded-full flex items-center justify-center mb-6"> | |
| <i data-feather="bell" class="text-red-500 w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Medication Reminders</h3> | |
| <p class="text-gray-600">Never miss a dose with smart medication reminders and tracking.</p> | |
| </div> | |
| <!-- Feature 6 --> | |
| <div class="bg-gray-50 p-8 rounded-xl feature-card transition duration-300" data-aos="fade-up" data-aos-delay="300"> | |
| <div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mb-6"> | |
| <i data-feather="shield" class="text-indigo-500 w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Health Insurance</h3> | |
| <p class="text-gray-600">Manage your health insurance claims and benefits directly through the app.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- How It Works Section --> | |
| <section id="how-it-works" class="py-20 bg-gray-50"> | |
| <div class="container mx-auto px-6"> | |
| <div class="text-center mb-16" data-aos="fade-up"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-4">How MediCare Works</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">Simple steps to better healthcare</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <!-- Step 1 --> | |
| <div class="text-center" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="bg-white w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-md"> | |
| <span class="text-blue-500 text-2xl font-bold">1</span> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Download & Sign Up</h3> | |
| <p class="text-gray-600">Get the app from App Store or Play Store and create your secure account.</p> | |
| </div> | |
| <!-- Step 2 --> | |
| <div class="text-center" data-aos="fade-up" data-aos-delay="200"> | |
| <div class="bg-white w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-md"> | |
| <span class="text-blue-500 text-2xl font-bold">2</span> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Choose Your Service</h3> | |
| <p class="text-gray-600">Select from doctor appointments, lab tests, or virtual consultations.</p> | |
| </div> | |
| <!-- Step 3 --> | |
| <div class="text-center" data-aos="fade-up" data-aos-delay="300"> | |
| <div class="bg-white w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-md"> | |
| <span class="text-blue-500 text-2xl font-bold">3</span> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-3 text-gray-800">Get Healthcare</h3> | |
| <p class="text-gray-600">Receive quality healthcare services and track everything in your profile.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials Section --> | |
| <section id="testimonials" class="py-20 bg-white"> | |
| <div class="container mx-auto px-6"> | |
| <div class="text-center mb-16" data-aos="fade-up"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-4">What Our Users Say</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">Hear from people who transformed their healthcare experience</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <!-- Testimonial 1 --> | |
| <div class="bg-gray-50 p-8 rounded-xl" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="flex items-center mb-4"> | |
| <img src="http://static.photos/people/200x200/1" alt="User" class="w-12 h-12 rounded-full mr-4"> | |
| <div> | |
| <h4 class="font-semibold">Sarah Johnson</h4> | |
| <p class="text-gray-500 text-sm">Patient</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-600">"MediCare saved me hours of waiting time. The video consultation feature is a game-changer!"</p> | |
| <div class="flex mt-4 text-yellow-400"> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| <!-- Testimonial 2 --> | |
| <div class="bg-gray-50 p-8 rounded-xl" data-aos="fade-up" data-aos-delay="200"> | |
| <div class="flex items-center mb-4"> | |
| <img src="http://static.photos/people/200x200/2" alt="User" class="w-12 h-12 rounded-full mr-4"> | |
| <div> | |
| <h4 class="font-semibold">Michael Chen</h4> | |
| <p class="text-gray-500 text-sm">Patient</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-600">"Having all my medical records in one place has made managing my chronic condition so much easier."</p> | |
| <div class="flex mt-4 text-yellow-400"> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| <!-- Testimonial 3 --> | |
| <div class="bg-gray-50 p-8 rounded-xl" data-aos="fade-up" data-aos-delay="300"> | |
| <div class="flex items-center mb-4"> | |
| <img src="http://static.photos/people/200x200/3" alt="User" class="w-12 h-12 rounded-full mr-4"> | |
| <div> | |
| <h4 class="font-semibold">Dr. Emily Rodriguez</h4> | |
| <p class="text-gray-500 text-sm">Physician</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-600">"As a doctor, I appreciate how MediCare streamlines patient communication and record-keeping."</p> | |
| <div class="flex mt-4 text-yellow-400"> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA Section --> | |
| <section class="py-20 hero-gradient text-white relative overflow-hidden"> | |
| <div class="absolute inset-0"> | |
| <div class="absolute top-0 left-0 w-full h-full"> | |
| <div class="absolute top-10 left-1/4 w-4 h-4 bg-white rounded-full animate-float" style="animation-delay: 0s;"></div> | |
| <div class="absolute top-20 right-1/3 w-3 h-3 bg-white rounded-full animate-float" style="animation-delay: 1s;"></div> | |
| <div class="absolute bottom-1/4 left-1/3 w-5 h-5 bg-white rounded-full animate-float" style="animation-delay: 2s;"></div> | |
| <div class="absolute bottom-1/3 right-1/4 w-4 h-4 bg-white rounded-full animate-float" style="animation-delay: 3s;"></div> | |
| </div> | |
| </div> | |
| <style> | |
| @keyframes float { | |
| 0% { transform: translateY(0) rotate(0deg); opacity: 1; } | |
| 100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; } | |
| } | |
| .animate-float { | |
| animation: float 8s linear infinite; | |
| } | |
| </style> | |
| <div class="container mx-auto px-6 text-center"> | |
| <h2 class="text-3xl md:text-4xl font-bold mb-6" data-aos="fade-up">Ready to Transform Your Healthcare Experience?</h2> | |
| <p class="text-xl mb-8 max-w-2xl mx-auto" data-aos="fade-up" data-aos-delay="100">Join thousands of happy users managing their health with MediCare.</p> | |
| <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4" data-aos="fade-up" data-aos-delay="200"> | |
| <button class="bg-white text-blue-600 px-8 py-4 rounded-lg font-semibold text-lg shadow-lg hover:bg-gray-100 transition"> | |
| Download Now | |
| </button> | |
| <button class="border-2 border-white text-white px-8 py-4 rounded-lg font-semibold text-lg hover:bg-white hover:text-blue-600 transition"> | |
| Contact Us | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer id="contact" class="bg-gray-900 text-white py-12"> | |
| <div class="container mx-auto px-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <div class="flex items-center space-x-2 mb-4"> | |
| <i data-feather="heart" class="text-blue-400"></i> | |
| <span class="text-xl font-semibold">MediCare</span> | |
| </div> | |
| <p class="text-gray-400">Your complete healthcare solution in one app.</p> | |
| <div class="flex space-x-4 mt-6"> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="facebook"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="twitter"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="instagram"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="linkedin"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Company</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">About Us</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Careers</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Press</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Support</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Help Center</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Privacy Policy</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Terms of Service</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Contact Us</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Contact</h4> | |
| <ul class="space-y-2 text-gray-400"> | |
| <li class="flex items-start"> | |
| <i data-feather="map-pin" class="w-5 h-5 mr-2 mt-1"></i> | |
| <span>123 Health St, Medical City, CA 90210</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="mail" class="w-5 h-5 mr-2"></i> | |
| <span>hello@medicare.com</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="phone" class="w-5 h-5 mr-2"></i> | |
| <span>(555) 123-4567</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400"> | |
| <p>© 2023 MediCare. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-tilt/1.7.0/vanilla-tilt.min.js"></script> | |
| <script> | |
| AOS.init({ | |
| duration: 1000, | |
| easing: 'ease-in-out-back', | |
| once: true, | |
| mirror: true | |
| }); | |
| feather.replace(); | |
| // Floating particles | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const ctaSection = document.querySelector('.hero-gradient'); | |
| for (let i = 0; i < 20; i++) { | |
| const particle = document.createElement('div'); | |
| particle.className = 'absolute bg-white rounded-full'; | |
| particle.style.width = Math.random() * 5 + 2 + 'px'; | |
| particle.style.height = particle.style.width; | |
| particle.style.left = Math.random() * 100 + '%'; | |
| particle.style.top = Math.random() * 100 + '%'; | |
| particle.style.opacity = Math.random() * 0.6 + 0.2; | |
| particle.style.animation = `float ${Math.random() * 10 + 5}s linear infinite`; | |
| particle.style.animationDelay = Math.random() * 5 + 's'; | |
| ctaSection.appendChild(particle); | |
| } | |
| }); | |
| // Interactive cursor effects | |
| document.addEventListener('mousemove', function(e) { | |
| const cursor = document.createElement('div'); | |
| cursor.className = 'fixed rounded-full bg-white pointer-events-none'; | |
| cursor.style.width = '10px'; | |
| cursor.style.height = '10px'; | |
| cursor.style.left = e.clientX + 'px'; | |
| cursor.style.top = e.clientY + 'px'; | |
| cursor.style.transform = 'translate(-50%, -50%)'; | |
| cursor.style.opacity = '0.5'; | |
| cursor.style.zIndex = '9999'; | |
| cursor.style.mixBlendMode = 'exclusion'; | |
| document.body.appendChild(cursor); | |
| setTimeout(() => { | |
| cursor.style.transform = 'translate(-50%, -50%) scale(0)'; | |
| cursor.style.opacity = '0'; | |
| setTimeout(() => { | |
| cursor.remove(); | |
| }, 300); | |
| }, 100); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |