Yoga About Us
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Serenity Yoga | About Us</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap" rel="stylesheet"> </head> <body> <section class="about-section"> <header class="header" id="header"> <div class="logo"><i class="fas fa-spa"></i> Serenity Yoga</div> <nav class="nav-links"> <a href="#">Home</a> <a href="#">Classes</a> <a href="#">Teachers</a> <a href="#">About</a> <a href="#">Contact</a> </nav> </header> <div class="hero"> <div class="hero-content" id="hero-content"> <h1>Find Your Inner Peace</h1> <p>Welcome to Serenity Yoga, where we help you connect mind, body, and spirit through the ancient practice of yoga. Discover your inner strength and find balance in your life.</p> <a href="#" class="cta-button">Start Your Journey</a> </div> </div> <div class="main-content"> <h2 class="section-title">About Our Studio</h2> <div class="about-content"> <div class="about-text"> <h2>A Sanctuary for Mind and Body</h2> <p>Serenity Yoga was founded in 2010 with a vision to create a peaceful haven where people could escape the stresses of modern life and reconnect with themselves through yoga.</p> <p>Our experienced instructors are dedicated to helping you develop your practice at your own pace, whether you're a complete beginner or an advanced practitioner.</p> <p>We believe that yoga is for every body, and we've created a welcoming, non-competitive environment where you can explore the benefits of this ancient practice.</p> </div> <div class="about-image"> <div class="image-item"> <img src="https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="Yoga Pose 1"> </div> <div class="image-item"> <img src="https://images.unsplash.com/photo-1599901860904-17e6ed7083a0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="Yoga Pose 2"> </div> <div class="image-item"> <img src="https://images.unsplash.com/photo-1599901860904-17e6ed7083a0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="Yoga Pose 3"> </div> <div class="image-item"> <img src="https://images.unsplash.com/photo-1575052814086-f385e2e2ad1b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=80" alt="Yoga Pose 4"> </div> </div> </div> <div class="classes"> <h2 class="section-title">Our Classes</h2> <div class="classes-grid"> <div class="class-card"> <div class="class-icon"> <i class="fas fa-leaf"></i> </div> <div class="class-content"> <h3>Hatha Yoga</h3> <p>A gentle introduction to the most basic yoga postures. Perfect for beginners.</p> <div class="class-time"> <i class="far fa-clock"></i> <span>Mon, Wed, Fri - 9:00 AM</span> </div> </div> </div> <div class="class-card"> <div class="class-icon"> <i class="fas fa-fire"></i> </div> <div class="class-content"> <h3>Vinyasa Flow</h3> <p>A dynamic practice that links movement and breath together in a dance-like flow.</p> <div class="class-time"> <i class="far fa-clock"></i> <span>Tue, Thu - 6:00 PM</span> </div> </div> </div> <div class="class-card"> <div class="class-icon"> <i class="fas fa-mountain"></i> </div> <div class="class-content"> <h3>Yin Yoga</h3> <p>A slow-paced style with poses held for longer periods to target deep tissues.</p> <div class="class-time"> <i class="far fa-clock"></i> <span>Sat - 10:00 AM</span> </div> </div> </div> <div class="class-card"> <div class="class-icon"> <i class="fas fa-child"></i> </div> <div class="class-content"> <h3>Prenatal Yoga</h3> <p>Specially designed for expectant mothers to support pregnancy and preparation for birth.</p> <div class="class-time"> <i class="far fa-clock"></i> <span>Mon, Fri - 11:00 AM</span> </div> </div> </div> </div> </div> <div class="benefits"> <h2 class="section-title" style="color: white;">Benefits of Yoga</h2> <div class="benefits-grid"> <div class="benefit-item"> <div class="benefit-icon"> <i class="fas fa-heart"></i> </div> <h3>Improves Flexibility</h3> <p>Increase your range of motion and reduce risk of injury</p> </div> <div class="benefit-item"> <div class="benefit-icon"> <i class="fas fa-brain"></i> </div> <h3>Reduces Stress</h3> <p>Calm your nervous system and relax your mind</p> </div> <div class="benefit-item"> <div class="benefit-icon"> <i class="fas fa-shield-alt"></i> </div> <h3>Strengthens Immunity</h3> <p>Boost your immune system and overall health</p> </div> <div class="benefit-item"> <div class="benefit-icon"> <i class="fas fa-balance-scale"></i> </div> <h3>Improves Balance</h3> <p>Enhance your stability and body awareness</p> </div> </div> </div> </div> </section> </body> </html>
CSS
* { margin: 0; padding: 0; box-sizing: border-box; } body { overflow-x: hidden; font-family: 'Montserrat', sans-serif; background: linear-gradient(to bottom, #f8f6f2, #eae6dd); color: #4a4a4a; line-height: 1.6; } .about-section { width: 100vw; min-height: 100vh; display: flex; flex-direction: column; position: relative; } /* Header styling */ .header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 3rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); position: fixed; width: 100%; z-index: 1000; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); transition: all 0.4s ease; } .header.scrolled { padding: 1rem 3rem; background: rgba(255, 255, 255, 0.95); } .logo { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: #7e9d8b; display: flex; align-items: center; } .logo i { margin-right: 10px; color: #d4af37; } .nav-links { display: flex; gap: 2rem; } .nav-links a { text-decoration: none; color: #5a5a5a; font-weight: 500; transition: all 0.3s; position: relative; padding: 5px 0; } .nav-links a:after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: #7e9d8b; transition: width 0.3s; } .nav-links a:hover:after { width: 100%; } .nav-links a:hover { color: #7e9d8b; } /* Hero Section */ .hero { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1820&q=80'); background-size: cover; background-position: center; color: white; text-align: center; padding: 0 2rem; } .hero-content { max-width: 800px; transform: translateY(50px); opacity: 0; transition: all 1s ease; } .hero-content.visible { transform: translateY(0); opacity: 1; } .hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 1.5rem; color: white; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); } .hero p { font-size: 1.2rem; margin-bottom: 2rem; line-height: 1.6; } .cta-button { display: inline-block; padding: 1rem 2.5rem; background: #7e9d8b; color: white; text-decoration: none; border-radius: 30px; font-weight: 600; transition: all 0.3s; border: 2px solid #7e9d8b; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .cta-button:hover { background: transparent; color: white; transform: translateY(-3px); } /* Main content styling */ .main-content { display: flex; flex-direction: column; padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; } .section-title { font-family: 'Playfair Display', serif; font-size: 2.8rem; margin-bottom: 3rem; text-align: center; position: relative; color: #5a5a5a; } .section-title:after { content: ''; position: absolute; width: 100px; height: 3px; background: #d4af37; bottom: -15px; left: 50%; transform: translateX(-50%); } .about-content { display: flex; flex-wrap: wrap; gap: 3rem; margin-bottom: 5rem; } .about-text { flex: 1; min-width: 300px; } .about-text h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 1.5rem; color: #7e9d8b; } .about-text p { line-height: 1.8; margin-bottom: 1.5rem; font-size: 1.1rem; } .about-image { flex: 1; min-width: 300px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 15px; } .image-item { overflow: hidden; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); position: relative; opacity: 0; transform: translateY(30px); transition: all 0.8s ease; } .image-item.visible { opacity: 1; transform: translateY(0); } .image-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; } .image-item:hover img { transform: scale(1.05); } /* Classes Section */ .classes { margin: 4rem 0; } .classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; } .class-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; opacity: 0; transform: translateY(30px); } .class-card.visible { opacity: 1; transform: translateY(0); } .class-card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1); } .class-icon { background: #7e9d8b; color: white; font-size: 2.5rem; padding: 1.5rem; text-align: center; } .class-content { padding: 1.5rem; } .class-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 1rem; color: #5a5a5a; } .class-content p { line-height: 1.6; color: #666; margin-bottom: 1rem; } .class-time { color: #7e9d8b; font-weight: 600; display: flex; align-items: center; gap: 8px; } /* Benefits Section */ .benefits { background: #7e9d8b; color: white; padding: 5rem 2rem; margin: 4rem 0; text-align: center; border-radius: 10px; } .benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; } .benefit-item { padding: 1.5rem; background: rgba(255, 255, 255, 0.1); border-radius: 10px; transition: all 0.3s ease; } .benefit-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.15); } .benefit-icon { font-size: 2.5rem; margin-bottom: 1rem; color: #d4af37; } .benefit-item h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 1rem; } /* Responsive design */ @media (max-width: 992px) { .hero h1 { font-size: 2.8rem; } .about-content { flex-direction: column; } } @media (max-width: 768px) { .header { flex-direction: column; padding: 1rem; } .nav-links { margin-top: 1rem; gap: 1rem; flex-wrap: wrap; justify-content: center; } .hero h1 { font-size: 2.2rem; } .hero p { font-size: 1rem; } .section-title { font-size: 2.2rem; } .about-image { grid-template-columns: 1fr; } }
JavaScript
document.addEventListener('DOMContentLoaded', function() { // Header scroll effect const header = document.getElementById('header'); window.addEventListener('scroll', function() { if (window.scrollY > 50) { header.classList.add('scrolled'); } else { header.classList.remove('scrolled'); } }); // Hero content animation const heroContent = document.getElementById('hero-content'); setTimeout(function() { heroContent.classList.add('visible'); }, 300); // Image items animation on scroll const imageItems = document.querySelectorAll('.image-item'); const classCards = document.querySelectorAll('.class-card'); const benefitItems = document.querySelectorAll('.benefit-item'); // Function to check if element is in viewport function isInViewport(element) { const rect = element.getBoundingClientRect(); return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) * 1.2 && rect.right <= (window.innerWidth || document.documentElement.clientWidth) ); } // Function to handle scroll animations function checkScroll() { imageItems.forEach(item => { if (isInViewport(item)) { item.classList.add('visible'); } }); classCards.forEach(card => { if (isInViewport(card)) { card.classList.add('visible'); } }); benefitItems.forEach(item => { if (isInViewport(item)) { item.style.opacity = "1"; item.style.transform = "translateY(0)"; } }); } // Initial check and add scroll listener checkScroll(); window.addEventListener('scroll', checkScroll); // Testimonial rotation const testimonials = document.querySelectorAll('.testimonial'); let currentTestimonial = 0; function showNextTestimonial() { testimonials[currentTestimonial].classList.remove('active'); currentTestimonial = (currentTestimonial + 1) % testimonials.length; testimonials[currentTestimonial].classList.add('active'); } // Change testimonial every 5 seconds setInterval(showNextTestimonial, 5000); // Animate benefits on page load setTimeout(function() { benefitItems.forEach(item => { item.style.transition = "all 0.8s ease"; }); }, 100); });
Output Preview
Desktop
Mobile
Fullscreen