Green Haven Plant Nursery Hero Section
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>Green Haven Plant Nursery</title> </head> <body> <section class="hero-section"> <div class="hero-container"> <div class="hero-content"> <div class="hero-badge"> Your Local Plant Paradise Since 2005 </div> <h1 class="hero-title"> Grow Your Dream<br> <span class="highlight">Garden Today</span> </h1> <p class="hero-subtitle"> Discover thousands of healthy plants, expert gardening advice, and everything you need to create your perfect green space. From indoor houseplants to outdoor garden essentials, we nurture your growing passion. </p> <div class="hero-actions"> <a href="#" class="btn-primary" onclick="alert(' Browse our amazing plant collection!'); return false;"> Shop Plants <span></span> </a> <a href="#" class="btn-secondary" onclick="alert(' Get expert gardening advice!'); return false;"> <span></span> Garden Guide </a> </div> <div class="hero-stats"> <div class="stat-item"> <span class="stat-number">5000+</span> <div class="stat-label">Plant Varieties</div> </div> <div class="stat-item"> <span class="stat-number">15K+</span> <div class="stat-label">Happy Gardeners</div> </div> <div class="stat-item"> <span class="stat-number">18+</span> <div class="stat-label">Years Growing</div> </div> </div> </div> <div class="hero-visual"> <div class="visual-container"> <div class="main-showcase"> <div class="showcase-frame"> <div class="showcase-content"> <div class="showcase-badge"> Green Haven Nursery </div> </div> </div> </div> </div> </div> </div> </section> </body> </html>
CSS
body { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; overflow-x: hidden; } .hero-section { min-height: 100vh; background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 50%, #e6ffe6 100%); position: relative; display: flex; align-items: center; padding: 2rem; overflow: hidden; } .hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 25% 25%, rgba(34, 139, 34, 0.08) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(107, 142, 35, 0.06) 0%, transparent 50%); animation: gentleGlow 12s ease-in-out infinite; } .hero-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: center; width: 100%; z-index: 2; position: relative; } .hero-content { animation: slideInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); } .hero-badge { display: inline-flex; align-items: center; background: linear-gradient(135deg, rgba(34, 139, 34, 0.12) 0%, rgba(107, 142, 35, 0.08) 100%); backdrop-filter: blur(20px); border: 1px solid rgba(34, 139, 34, 0.25); padding: 0.8rem 2rem; border-radius: 50px; color: #228b22; font-size: 0.9rem; font-weight: 600; animation: fadeInUp 1s ease-out 0.3s both; } .hero-badge::before { content: ''; margin-right: 0.8rem; font-size: 1.1rem; } .hero-title { font-size: 4.5rem; font-weight: 700; color: #1b4332; line-height: 1.1; margin-bottom: 1rem; animation: fadeInUp 1.2s ease-out 0.5s both; letter-spacing: -0.02em; } .hero-title .highlight { background: linear-gradient(135deg, #228b22 0%, #32cd32 50%, #6b8e23 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; } .hero-subtitle { font-size: 1.1rem; color: #2d5016; line-height: 1.6; margin-bottom: 1rem; animation: fadeInUp 1.2s ease-out 0.7s both; max-width: 90%; } .hero-actions { display: flex; gap: 1.5rem; margin-bottom: 1rem; animation: fadeInUp 1.2s ease-out 1.1s both; } .btn-primary { background: linear-gradient(135deg, #228b22 0%, #32cd32 100%); color: white; padding: 1.3rem 2.5rem; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.4s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 0.8rem; box-shadow: 0 10px 30px rgba(34, 139, 34, 0.3); } .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(34, 139, 34, 0.4); } .btn-secondary { background: transparent; color: #228b22; padding: 1.3rem 2.5rem; border: 2px solid rgba(34, 139, 34, 0.3); border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.4s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 0.8rem; backdrop-filter: blur(10px); } .btn-secondary:hover { background: rgba(34, 139, 34, 0.1); border-color: rgba(34, 139, 34, 0.5); transform: translateY(-2px); } .hero-stats { display: flex; gap: 3rem; animation: fadeInUp 1.2s ease-out 1.3s both; } .stat-item { text-align: left; } .stat-number { font-size: 2rem; font-weight: 700; background: linear-gradient(135deg, #228b22 0%, #6b8e23 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; line-height: 1; } .stat-label { font-size: 0.9rem; color: #2d5016; margin-top: 0.3rem; font-weight: 500; } .hero-visual { position: relative; display: flex; align-items: center; justify-content: center; animation: slideInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); } .visual-container { position: relative; width: 100%; max-width: 500px; height: 600px; } .main-showcase { width: 400px; height: 500px; position: relative; margin: 0 auto; } .showcase-frame { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 245, 232, 0.8) 100%); backdrop-filter: blur(30px); border: 2px solid rgba(34, 139, 34, 0.25); border-radius: 25px; position: relative; overflow: hidden; box-shadow: 0 25px 60px rgba(34, 139, 34, 0.15); animation: gentleFloat 8s ease-in-out infinite; } .showcase-content { width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1438109382753-8368e7e1e7cf?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTZ8fGdhcmRlbmluZ3xlbnwwfHwwfHx8MA%3D%3D') center/cover; border-radius: 23px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2rem; } .showcase-badge { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); padding: 1rem 2rem; border-radius: 25px; color: #228b22; font-weight: 700; font-size: 1rem; box-shadow: 0 10px 30px rgba(34, 139, 34, 0.2); animation: slideUpBadge 1s ease-out 2s both; } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } } @keyframes slideInRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideUpBadge { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes gentleFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } } @keyframes floatPlant { 0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0; } 20%, 80% { opacity: 1; } 50% { transform: translateY(-25px) translateX(10px) scale(1.05); opacity: 1; } } @keyframes gentleGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } } @media (max-width: 1024px) { .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; } .hero-title { font-size: 3.5rem; } .main-showcase { width: 350px; height: 450px; } .plant-categories { grid-template-columns: 1fr; } .hero-subtitle { max-width: 100%; } } @media (max-width: 768px) { .hero-section { padding: 1rem; } .hero-title { font-size: 2.8rem; } .hero-subtitle { font-size: 1.1rem; } .hero-stats { gap: 2rem; justify-content: center; } .main-showcase { width: 300px; height: 400px; } .hero-actions { flex-direction: column; gap: 1rem; } .btn-primary, .btn-secondary { width: 100%; justify-content: center; } .visual-container { height: 450px; } } @media (max-width: 480px) { .hero-title { font-size: 2.2rem; } .hero-stats { flex-direction: column; gap: 1rem; text-align: center; } .main-showcase { width: 250px; height: 350px; } .visual-container { height: 400px; } }
JavaScript
Output Preview
Desktop
Mobile
Fullscreen