Yoga Classes Hero Earthy Brown
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>Yoga Classes - Earthy Brown Theme</title> <!-- Google Fonts --> <link href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Outfit:wght@300;400;500;600&display=swap" rel="stylesheet"> </head> <body> <!-- Navigation --> <header> <a href="#" class="logo">AuraYoga.</a> <ul class="nav-links"> <li><a href="#">Home</a></li> <li><a href="#">Classes</a></li> <li><a href="#">Instructors</a></li> <li><a href="#">Contact</a></li> </ul> <a href="#" class="nav-btn">Book a Trial</a> <div class="hamburger">☰</div> </header> <!-- Hero Section --> <section class="hero"> <!-- Text Area --> <div class="hero-content"> <span class="tagline">Find Your Balance</span> <h1>Harmony of Body, Mind, and <span>Soul.</span></h1> <p>Step onto the mat and reconnect with yourself. Join our expert-led yoga classes designed to build strength, increase flexibility, and bring deep relaxation into your everyday life.</p> <div class="hero-buttons"> <a href="#" class="btn-primary">Start Your Journey</a> <a href="#" class="btn-secondary">View Schedule</a> </div> </div> <!-- Image Area --> <div class="hero-image-wrapper"> <div class="blob"></div> <!-- High-quality Unsplash image of Yoga --> <img src="https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?q=80&w=1000&auto=format&fit=crop" alt="Woman doing yoga outdoors" class="hero-image"> <div class="floating-badge"> <div class="badge-icon">?♀️</div> <div class="badge-text"> <h4>5k+ Yogis</h4> <p>Found their peace</p> </div> </div> </div> </section> </body> </html>
CSS
/* CSS Variables for Earthy Brown Theme */ :root { --bg-cream: #FAF7F2; --text-dark: #3E2723; --primary-brown: #6D4C41; --accent-brown: #8D6E63; --light-brown: #D7CCC8; --white: #FFFFFF; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Outfit', sans-serif; background-color: var(--bg-cream); color: var(--text-dark); overflow-x: hidden; } /* Navigation */ header { padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center; } .logo { font-family: 'Lora', serif; font-size: 1.8rem; font-weight: 600; color: var(--primary-brown); text-decoration: none; } .nav-links { display: flex; gap: 2.5rem; list-style: none; } .nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color 0.3s; } .nav-links a:hover { color: var(--accent-brown); } .nav-btn { background-color: var(--primary-brown); color: var(--white); padding: 0.7rem 1.8rem; border-radius: 30px; text-decoration: none; font-weight: 500; transition: background 0.3s, transform 0.2s; } .nav-btn:hover { background-color: var(--text-dark); transform: translateY(-2px); } /* Mobile Menu Icon */ .hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-brown); } /* Hero Section */ .hero { display: flex; align-items: center; justify-content: space-between; padding: 3rem 5% 5rem; min-height: 85vh; gap: 4rem; } /* Hero Content (Left) */ .hero-content { flex: 1; max-width: 600px; animation: slideUp 1s ease-out forwards; } .tagline { display: inline-block; color: var(--primary-brown); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 1rem; background: var(--light-brown); padding: 0.4rem 1.2rem; border-radius: 20px; } .hero h1 { font-family: 'Lora', serif; font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; color: var(--text-dark); } .hero h1 span { color: var(--accent-brown); font-style: italic; } .hero p { font-size: 1.1rem; line-height: 1.6; color: #5D4037; margin-bottom: 2.5rem; } /* Buttons */ .hero-buttons { display: flex; gap: 1.5rem; } .btn-primary { background-color: var(--primary-brown); color: var(--white); padding: 1rem 2.5rem; border-radius: 30px; text-decoration: none; font-weight: 500; font-size: 1.1rem; transition: all 0.3s ease; border: 2px solid var(--primary-brown); } .btn-primary:hover { background-color: var(--text-dark); border-color: var(--text-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(109, 76, 65, 0.2); } .btn-secondary { background-color: transparent; color: var(--primary-brown); padding: 1rem 2.5rem; border-radius: 30px; text-decoration: none; font-weight: 500; font-size: 1.1rem; border: 2px solid var(--primary-brown); transition: all 0.3s ease; } .btn-secondary:hover { background-color: var(--light-brown); border-color: var(--light-brown); } /* Hero Image (Right) */ .hero-image-wrapper { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; animation: fadeIn 1.5s ease-out forwards; } /* Trendy Arched Image */ .hero-image { width: 100%; max-width: 450px; height: 600px; object-fit: cover; border-radius: 250px 250px 20px 20px; box-shadow: 0 20px 40px rgba(62, 39, 35, 0.1); } /* Floating Badge */ .floating-badge { position: absolute; bottom: 40px; left: -30px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 1rem 1.5rem; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 1rem; animation: float 3s ease-in-out infinite; } .badge-icon { font-size: 2rem; } .badge-text h4 { font-size: 1.2rem; color: var(--text-dark); } .badge-text p { font-size: 0.9rem; margin-bottom: 0; color: var(--accent-brown); } /* Decorative Shape */ .blob { position: absolute; top: -20px; right: -20px; width: 300px; height: 300px; background: var(--light-brown); border-radius: 50%; z-index: -1; filter: blur(50px); opacity: 0.6; } /* Animations */ @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; scale: 0.95; } to { opacity: 1; scale: 1; } } @keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } } /* --- RESPONSIVE DESIGN --- */ /* Tablet / Small Desktop */ @media (max-width: 992px) { .hero h1 { font-size: 3.2rem; } .hero-image { height: 500px; max-width: 400px; } .hero { gap: 2rem; } } /* Mobile */ @media (max-width: 768px) { header { padding: 1.2rem 5%; } .nav-links, .nav-btn { display: none; } .hamburger { display: block; } .hero { flex-direction: column; text-align: center; padding: 2rem 5% 4rem; min-height: auto; } .hero-content { max-width: 100%; } .hero h1 { font-size: 2.8rem; } .hero-buttons { justify-content: center; flex-direction: column; } .hero-image-wrapper { margin-top: 2rem; width: 100%; } .hero-image { height: 400px; border-radius: 200px 200px 20px 20px; } .floating-badge { left: 50%; transform: translateX(-50%); bottom: -20px; width: 80%; justify-content: center; animation: none; /* Disable float on mobile to prevent overflow */ } }
JavaScript
Output Preview
Desktop
Mobile
Fullscreen