Spaces:
Running
Running
Download index.html from weblm/first-project: direct link, hf CLI and curl.
- Browser
- Download file 32 kB
-
https://huggingface.co/spaces/weblm/first-project/resolve/main/index.html
- Command line
-
hf download hf://spaces/weblm/first-project/index.html
-
curl -L -o index.html https://huggingface.co/spaces/weblm/first-project/resolve/main/index.html
32 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Serene Yoga | Mindful Movement for Modern Life</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap'); | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| scroll-behavior: smooth; | |
| } | |
| .heading-font { | |
| font-family: 'Playfair Display', serif; | |
| } | |
| .hero { | |
| background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1545205597-3d9d398c2152?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80'); | |
| background-size: cover; | |
| background-position: center; | |
| background-attachment: fixed; | |
| } | |
| .nav-link { | |
| position: relative; | |
| } | |
| .nav-link::after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 2px; | |
| bottom: -2px; | |
| left: 0; | |
| background-color: #f59e0b; | |
| transition: width 0.3s ease; | |
| } | |
| .nav-link:hover::after { | |
| width: 100%; | |
| } | |
| .class-card { | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .class-card:hover { | |
| transform: translateY(-10px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .testimonial-card { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| transition: opacity 0.5s ease, transform 0.5s ease; | |
| } | |
| .testimonial-card.active { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| .floating { | |
| animation: floating 3s ease-in-out infinite; | |
| } | |
| @keyframes floating { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-15px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 text-gray-800"> | |
| <!-- Navigation --> | |
| <nav class="fixed w-full bg-white bg-opacity-90 shadow-sm z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-20 items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <span class="text-2xl font-bold heading-font text-amber-500">Serene</span> | |
| <span class="text-2xl font-bold heading-font text-gray-800">Yoga</span> | |
| </div> | |
| <div class="hidden md:block"> | |
| <div class="ml-10 flex items-baseline space-x-8"> | |
| <a href="#home" class="nav-link text-gray-800 hover:text-amber-500 px-3 py-2 text-sm font-medium">Home</a> | |
| <a href="#about" class="nav-link text-gray-800 hover:text-amber-500 px-3 py-2 text-sm font-medium">About</a> | |
| <a href="#classes" class="nav-link text-gray-800 hover:text-amber-500 px-3 py-2 text-sm font-medium">Classes</a> | |
| <a href="#testimonials" class="nav-link text-gray-800 hover:text-amber-500 px-3 py-2 text-sm font-medium">Testimonials</a> | |
| <a href="#contact" class="nav-link text-gray-800 hover:text-amber-500 px-3 py-2 text-sm font-medium">Contact</a> | |
| </div> | |
| </div> | |
| <div class="md:hidden"> | |
| <button id="mobile-menu-button" class="text-gray-800 hover:text-amber-500 focus:outline-none"> | |
| <i class="fas fa-bars text-2xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile menu --> | |
| <div id="mobile-menu" class="hidden md:hidden bg-white shadow-lg"> | |
| <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3"> | |
| <a href="#home" class="block px-3 py-2 text-base font-medium text-gray-800 hover:text-amber-500">Home</a> | |
| <a href="#about" class="block px-3 py-2 text-base font-medium text-gray-800 hover:text-amber-500">About</a> | |
| <a href="#classes" class="block px-3 py-2 text-base font-medium text-gray-800 hover:text-amber-500">Classes</a> | |
| <a href="#testimonials" class="block px-3 py-2 text-base font-medium text-gray-800 hover:text-amber-500">Testimonials</a> | |
| <a href="#contact" class="block px-3 py-2 text-base font-medium text-gray-800 hover:text-amber-500">Contact</a> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <section id="home" class="hero min-h-screen flex items-center justify-center text-center text-white pt-20"> | |
| <div class="max-w-4xl px-6"> | |
| <h1 class="text-4xl md:text-6xl font-bold heading-font mb-6">Find Your Center</h1> | |
| <p class="text-xl md:text-2xl mb-8">Mindful movement for modern life with certified yoga instructor Sarah Johnson</p> | |
| <div class="flex flex-col sm:flex-row justify-center gap-4"> | |
| <a href="#classes" class="bg-amber-500 hover:bg-amber-600 text-white font-bold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">Explore Classes</a> | |
| <a href="#contact" class="border-2 border-white hover:bg-white hover:text-gray-800 text-white font-bold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">Book a Session</a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- About Section --> | |
| <section id="about" class="py-20 bg-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex flex-col md:flex-row items-center"> | |
| <div class="md:w-1/2 mb-10 md:mb-0 md:pr-10"> | |
| <img src="https://images.unsplash.com/photo-1575052814080-fadca42850d0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80" alt="Sarah Johnson" class="rounded-lg shadow-xl floating"> | |
| </div> | |
| <div class="md:w-1/2"> | |
| <h2 class="text-3xl md:text-4xl font-bold heading-font mb-6">About Sarah</h2> | |
| <p class="text-lg mb-4">With over 15 years of experience, Sarah brings a holistic approach to yoga that combines traditional techniques with modern understanding of body mechanics.</p> | |
| <p class="text-lg mb-6">Certified in Hatha, Vinyasa, and Yin yoga, Sarah creates classes that are accessible to all levels while challenging students to grow in their practice.</p> | |
| <div class="flex flex-wrap gap-4"> | |
| <div class="flex items-center"> | |
| <div class="bg-amber-100 p-3 rounded-full mr-3"> | |
| <i class="fas fa-award text-amber-500"></i> | |
| </div> | |
| <span>500+ Hours Certified</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="bg-amber-100 p-3 rounded-full mr-3"> | |
| <i class="fas fa-heart text-amber-500"></i> | |
| </div> | |
| <span>Mind-Body Connection</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="bg-amber-100 p-3 rounded-full mr-3"> | |
| <i class="fas fa-users text-amber-500"></i> | |
| </div> | |
| <span>All Levels Welcome</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Classes Section --> | |
| <section id="classes" class="py-20 bg-gray-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl md:text-4xl font-bold heading-font mb-4">Yoga Classes</h2> | |
| <p class="text-xl max-w-2xl mx-auto">Choose from a variety of classes designed to meet you where you are</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <!-- Class 1 --> | |
| <div class="class-card bg-white rounded-lg overflow-hidden shadow-md"> | |
| <div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=920&q=80');"></div> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="text-xl font-bold heading-font">Vinyasa Flow</h3> | |
| <span class="bg-amber-100 text-amber-800 text-xs font-semibold px-2.5 py-0.5 rounded">Dynamic</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">A dynamic sequence of poses synchronized with breath to build strength and flexibility.</p> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center text-amber-500"> | |
| <i class="fas fa-clock mr-1"></i> | |
| <span>60 min</span> | |
| </div> | |
| <span class="font-bold">$25/session</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Class 2 --> | |
| <div class="class-card bg-white rounded-lg overflow-hidden shadow-md"> | |
| <div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1545389336-cf090694435e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1064&q=80');"></div> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="text-xl font-bold heading-font">Yin Yoga</h3> | |
| <span class="bg-green-100 text-green-800 text-xs font-semibold px-2.5 py-0.5 rounded">Restorative</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">Slow-paced style with poses held for longer periods to target deep connective tissues.</p> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center text-amber-500"> | |
| <i class="fas fa-clock mr-1"></i> | |
| <span>75 min</span> | |
| </div> | |
| <span class="font-bold">$30/session</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Class 3 --> | |
| <div class="class-card bg-white rounded-lg overflow-hidden shadow-md"> | |
| <div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1545205597-3d9d398c2152?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');"></div> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="text-xl font-bold heading-font">Beginner's Hatha</h3> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-semibold px-2.5 py-0.5 rounded">Gentle</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">Foundational poses with emphasis on alignment and breath for new practitioners.</p> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center text-amber-500"> | |
| <i class="fas fa-clock mr-1"></i> | |
| <span>45 min</span> | |
| </div> | |
| <span class="font-bold">$20/session</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center mt-12"> | |
| <a href="#contact" class="inline-block bg-amber-500 hover:bg-amber-600 text-white font-bold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">View All Classes</a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials Section --> | |
| <section id="testimonials" class="py-20 bg-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl md:text-4xl font-bold heading-font mb-4">What Students Say</h2> | |
| <p class="text-xl max-w-2xl mx-auto">Hear from those who've transformed their practice</p> | |
| </div> | |
| <div class="relative"> | |
| <div class="testimonial-carousel overflow-hidden"> | |
| <div class="flex transition-transform duration-500 ease-in-out" id="testimonial-slider"> | |
| <!-- Testimonial 1 --> | |
| <div class="testimonial-card min-w-full px-4 active"> | |
| <div class="bg-gray-50 p-8 rounded-lg shadow-sm max-w-3xl mx-auto"> | |
| <div class="flex items-center mb-6"> | |
| <img src="https://randomuser.me/api/portraits/women/43.jpg" alt="Lisa M." class="w-16 h-16 rounded-full object-cover mr-4"> | |
| <div> | |
| <h4 class="font-bold">Lisa M.</h4> | |
| <div class="flex text-amber-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-lg italic">"Sarah's classes have completely transformed my relationship with my body. Her cues are so clear and her adjustments are always spot on. After just 3 months of regular practice, my chronic back pain has significantly improved."</p> | |
| </div> | |
| </div> | |
| <!-- Testimonial 2 --> | |
| <div class="testimonial-card min-w-full px-4"> | |
| <div class="bg-gray-50 p-8 rounded-lg shadow-sm max-w-3xl mx-auto"> | |
| <div class="flex items-center mb-6"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="James T." class="w-16 h-16 rounded-full object-cover mr-4"> | |
| <div> | |
| <h4 class="font-bold">James T.</h4> | |
| <div class="flex text-amber-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-lg italic">"As someone who was intimidated by yoga, Sarah made me feel completely at ease. Her beginner classes are perfectly paced and she offers modifications for every pose. I've gained so much flexibility and surprisingly, it's helped my golf game too!"</p> | |
| </div> | |
| </div> | |
| <!-- Testimonial 3 --> | |
| <div class="testimonial-card min-w-full px-4"> | |
| <div class="bg-gray-50 p-8 rounded-lg shadow-sm max-w-3xl mx-auto"> | |
| <div class="flex items-center mb-6"> | |
| <img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Priya K." class="w-16 h-16 rounded-full object-cover mr-4"> | |
| <div> | |
| <h4 class="font-bold">Priya K.</h4> | |
| <div class="flex text-amber-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star-half-alt"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-lg italic">"Sarah's Yin classes are my weekly reset button. She creates such a peaceful atmosphere and her knowledge of anatomy helps me understand exactly what each pose is targeting. I leave every class feeling both relaxed and energized."</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-center mt-8 space-x-2"> | |
| <button class="testimonial-dot w-3 h-3 rounded-full bg-amber-300 focus:outline-none active-dot" data-index="0"></button> | |
| <button class="testimonial-dot w-3 h-3 rounded-full bg-gray-300 focus:outline-none" data-index="1"></button> | |
| <button class="testimonial-dot w-3 h-3 rounded-full bg-gray-300 focus:outline-none" data-index="2"></button> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Contact Section --> | |
| <section id="contact" class="py-20 bg-gray-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex flex-col md:flex-row"> | |
| <div class="md:w-1/2 mb-10 md:mb-0 md:pr-10"> | |
| <h2 class="text-3xl md:text-4xl font-bold heading-font mb-6">Get In Touch</h2> | |
| <p class="text-lg mb-6">Ready to begin your yoga journey or have questions about classes? Reach out below.</p> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="bg-amber-100 p-3 rounded-full mr-4"> | |
| <i class="fas fa-map-marker-alt text-amber-500"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-bold">Studio Location</h4> | |
| <p>123 Wellness Way, Suite 200<br>San Francisco, CA 94110</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="bg-amber-100 p-3 rounded-full mr-4"> | |
| <i class="fas fa-phone-alt text-amber-500"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-bold">Contact</h4> | |
| <p>(415) 555-7890<br>hello@sereneyoga.com</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="bg-amber-100 p-3 rounded-full mr-4"> | |
| <i class="fas fa-clock text-amber-500"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-bold">Hours</h4> | |
| <p>Monday - Friday: 7am - 8pm<br>Saturday: 8am - 6pm<br>Sunday: 9am - 4pm</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-8"> | |
| <h4 class="font-bold mb-4">Follow Along</h4> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="bg-amber-100 hover:bg-amber-200 p-3 rounded-full text-amber-600 transition duration-300"> | |
| <i class="fab fa-instagram"></i> | |
| </a> | |
| <a href="#" class="bg-amber-100 hover:bg-amber-200 p-3 rounded-full text-amber-600 transition duration-300"> | |
| <i class="fab fa-facebook-f"></i> | |
| </a> | |
| <a href="#" class="bg-amber-100 hover:bg-amber-200 p-3 rounded-full text-amber-600 transition duration-300"> | |
| <i class="fab fa-youtube"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="md:w-1/2"> | |
| <div class="bg-white p-8 rounded-lg shadow-md"> | |
| <h3 class="text-2xl font-bold heading-font mb-6">Book a Session</h3> | |
| <form id="contact-form"> | |
| <div class="mb-4"> | |
| <label for="name" class="block text-gray-700 mb-2">Name</label> | |
| <input type="text" id="name" name="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-300 focus:border-amber-300 outline-none transition"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="email" class="block text-gray-700 mb-2">Email</label> | |
| <input type="email" id="email" name="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-300 focus:border-amber-300 outline-none transition"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="phone" class="block text-gray-700 mb-2">Phone</label> | |
| <input type="tel" id="phone" name="phone" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-300 focus:border-amber-300 outline-none transition"> | |
| </div> | |
| <div class="mb-4"> | |
| <label for="class" class="block text-gray-700 mb-2">Class Interest</label> | |
| <select id="class" name="class" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-300 focus:border-amber-300 outline-none transition"> | |
| <option value="">Select a class</option> | |
| <option value="vinyasa">Vinyasa Flow</option> | |
| <option value="yin">Yin Yoga</option> | |
| <option value="hatha">Beginner's Hatha</option> | |
| <option value="private">Private Session</option> | |
| </select> | |
| </div> | |
| <div class="mb-6"> | |
| <label for="message" class="block text-gray-700 mb-2">Message</label> | |
| <textarea id="message" name="message" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-300 focus:border-amber-300 outline-none transition"></textarea> | |
| </div> | |
| <button type="submit" class="w-full bg-amber-500 hover:bg-amber-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300 transform hover:scale-105">Send Message</button> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-800 text-white py-12"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div> | |
| <div class="flex items-center mb-4"> | |
| <span class="text-2xl font-bold heading-font text-amber-500">Serene</span> | |
| <span class="text-2xl font-bold heading-font text-white">Yoga</span> | |
| </div> | |
| <p class="text-gray-300">Mindful movement for modern life. Helping you find balance, strength, and peace through yoga.</p> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Quick Links</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#home" class="text-gray-300 hover:text-amber-400 transition">Home</a></li> | |
| <li><a href="#about" class="text-gray-300 hover:text-amber-400 transition">About</a></li> | |
| <li><a href="#classes" class="text-gray-300 hover:text-amber-400 transition">Classes</a></li> | |
| <li><a href="#testimonials" class="text-gray-300 hover:text-amber-400 transition">Testimonials</a></li> | |
| <li><a href="#contact" class="text-gray-300 hover:text-amber-400 transition">Contact</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Newsletter</h4> | |
| <p class="text-gray-300 mb-4">Subscribe for yoga tips, special offers, and class updates.</p> | |
| <form class="flex"> | |
| <input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-lg focus:outline-none text-gray-800 w-full"> | |
| <button type="submit" class="bg-amber-500 hover:bg-amber-600 px-4 py-2 rounded-r-lg transition"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-12 pt-8 text-center text-gray-400"> | |
| <p>© 2023 Serene Yoga. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Mobile menu toggle | |
| const mobileMenuButton = document.getElementById('mobile-menu-button'); | |
| const mobileMenu = document.getElementById('mobile-menu'); | |
| mobileMenuButton.addEventListener('click', () => { | |
| mobileMenu.classList.toggle('hidden'); | |
| }); | |
| // Smooth scrolling for navigation links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| // Close mobile menu if open | |
| mobileMenu.classList.add('hidden'); | |
| const targetId = this.getAttribute('href'); | |
| const targetElement = document.querySelector(targetId); | |
| window.scrollTo({ | |
| top: targetElement.offsetTop - 80, | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| // Testimonial slider | |
| const testimonialSlider = document.getElementById('testimonial-slider'); | |
| const testimonialCards = document.querySelectorAll('.testimonial-card'); | |
| const dots = document.querySelectorAll('.testimonial-dot'); | |
| let currentIndex = 0; | |
| function showTestimonial(index) { | |
| // Hide all testimonials | |
| testimonialCards.forEach(card => { | |
| card.classList.remove('active'); | |
| }); | |
| // Show selected testimonial | |
| testimonialCards[index].classList.add('active'); | |
| // Update dots | |
| dots.forEach(dot => { | |
| dot.classList.remove('bg-amber-300', 'active-dot'); | |
| dot.classList.add('bg-gray-300'); | |
| }); | |
| dots[index].classList.remove('bg-gray-300'); | |
| dots[index].classList.add('bg-amber-300', 'active-dot'); | |
| // Update slider position | |
| testimonialSlider.style.transform = `translateX(-${index * 100}%)`; | |
| } | |
| // Dot click events | |
| dots.forEach(dot => { | |
| dot.addEventListener('click', () => { | |
| currentIndex = parseInt(dot.getAttribute('data-index')); | |
| showTestimonial(currentIndex); | |
| }); | |
| }); | |
| // Auto-rotate testimonials | |
| setInterval(() => { | |
| currentIndex = (currentIndex + 1) % testimonialCards.length; | |
| showTestimonial(currentIndex); | |
| }, 5000); | |
| // Form submission | |
| const contactForm = document.getElementById('contact-form'); | |
| contactForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| // Get form values | |
| const name = document.getElementById('name').value; | |
| const email = document.getElementById('email').value; | |
| // Show success message (in a real app, you would send this to a server) | |
| alert(`Thanks for your message, ${name}! We'll contact you at ${email} soon.`); | |
| // Reset form | |
| contactForm.reset(); | |
| }); | |
| // Add scroll animation for elements | |
| function checkScroll() { | |
| const elements = document.querySelectorAll('.testimonial-card'); | |
| elements.forEach(element => { | |
| const elementPosition = element.getBoundingClientRect().top; | |
| const screenPosition = window.innerHeight / 1.2; | |
| if (elementPosition < screenPosition) { | |
| element.classList.add('active'); | |
| } | |
| }); | |
| } | |
| window.addEventListener('scroll', checkScroll); | |
| window.addEventListener('load', checkScroll); | |
| </script> | |
| <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=Joekeke/first-project" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |