Fruits Corner Template
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>Fruits Corner - Fresh & Healthy</title> <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"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> </head> <body> <!-- Header --> <header id="header"> <div class="container header-container"> <a href="#" class="logo"> <i class="fas fa-apple-alt"></i> <span>Fruits Corner</span> </a> <button class="mobile-menu-btn"> <i class="fas fa-bars"></i> </button> <nav id="nav"> <!-- <button class="close-menu-btn"> <i class="fas fa-times"></i> </button> --> <ul> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> <li><a href="#fruits">Fruits</a></li> <li><a href="#contact">Contact</a></li> </ul> </nav> </div> </header> <!-- Hero Section --> <section class="hero" id="home"> <div class="container"> <div class="hero-content"> <h1>Fresh & Healthy Fruits</h1> <p>Discover the finest selection of organic fruits delivered straight to your doorstep. Enjoy nature's sweetness in every bite!</p> <div class="hero-btns"> <a href="#fruits" class="btn">Shop Now</a> <a href="#about" class="btn btn-secondary">Learn More</a> </div> </div> </div> </section> <!-- About Section --> <section class="section about" id="about"> <div class="container"> <div class="section-title"> <h2>About Fruits Corner</h2> <p>We are committed to providing the freshest, highest quality fruits sourced directly from local farmers and trusted suppliers worldwide.</p> </div> <div class="about-container"> <div class="about-img"> <img src="https://images.unsplash.com/photo-1550258987-190a2d41a8ba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Fresh fruits"> </div> <div class="about-content"> <h3>Our Story</h3> <p>Founded in 2010, Fruits Corner began as a small family-owned fruit stand with a passion for quality and freshness. Today, we've grown into a trusted name in organic fruits delivery, serving thousands of happy customers nationwide.</p> <p>We believe in sustainable farming practices and building direct relationships with farmers to ensure you get the best produce while supporting local communities.</p> <ul class="about-features"> <li><i class="fas fa-check"></i> 100% Organic & Fresh Fruits</li> <li><i class="fas fa-check"></i> Directly Sourced from Farmers</li> <li><i class="fas fa-check"></i> Eco-Friendly Packaging</li> <li><i class="fas fa-check"></i> Fast & Reliable Delivery</li> </ul> <a href="#" class="btn">Read More</a> </div> </div> </div> </section> <!-- Featured Fruits Section --> <section class="section featured-fruits" id="fruits"> <div class="container"> <div class="section-title"> <h2>Our Featured Fruits</h2> <p>Explore our premium selection of seasonal fruits, handpicked for their exceptional quality and taste.</p> </div> <div class="fruits-grid"> <div class="fruit-card" style="animation-delay: 0.1s;"> <div class="fruit-img"> <img src="https://images.unsplash.com/photo-1568702846914-96b305d2aaeb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Apples"> </div> <div class="fruit-info"> <h3>Organic Apples</h3> <p>Crisp and juicy, packed with nutrients and antioxidants.</p> <div class="fruit-price"> <span class="price">$2.99/lb</span> <a href="#" class="btn">Add to Cart</a> </div> </div> </div> <div class="fruit-card" style="animation-delay: 0.2s;"> <div class="fruit-img"> <img src="https://images.unsplash.com/photo-1550258987-190a2d41a8ba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Bananas"> </div> <div class="fruit-info"> <h3>Premium Bananas</h3> <p>Naturally sweet, rich in potassium and easy to digest.</p> <div class="fruit-price"> <span class="price">$1.49/lb</span> <a href="#" class="btn">Add to Cart</a> </div> </div> </div> <div class="fruit-card" style="animation-delay: 0.3s;"> <div class="fruit-img"> <img src="https://images.unsplash.com/photo-1557800636-894a64c1696f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=765&q=80" alt="Oranges"> </div> <div class="fruit-info"> <h3>Juicy Oranges</h3> <p>Bursting with vitamin C and refreshing citrus flavor.</p> <div class="fruit-price"> <span class="price">$3.29/lb</span> <a href="#" class="btn">Add to Cart</a> </div> </div> </div> <div class="fruit-card" style="animation-delay: 0.4s;"> <div class="fruit-img"> <img src="https://images.unsplash.com/photo-1439127989242-c3749a012eac?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Strawberries"> </div> <div class="fruit-info"> <h3>Sweet Strawberries</h3> <p>Plump, red and delicious, perfect for desserts or snacking.</p> <div class="fruit-price"> <span class="price">$4.99/lb</span> <a href="#" class="btn">Add to Cart</a> </div> </div> </div> </div> </div> </section> <!-- Services Section --> <section class="section services" id="services"> <div class="container"> <div class="section-title"> <h2>Our Services</h2> <p>We go beyond just selling fruits. Here's how we make your fruit shopping experience exceptional.</p> </div> <div class="services-grid"> <div class="service-card" style="animation-delay: 0.1s;"> <div class="service-icon"> <i class="fas fa-truck"></i> </div> <h3>Fast Delivery</h3> <p>We deliver your fresh fruits within 24 hours of ordering, ensuring maximum freshness and quality.</p> </div> <div class="service-card" style="animation-delay: 0.2s;"> <div class="service-icon"> <i class="fas fa-seedling"></i> </div> <h3>Organic Guarantee</h3> <p>All our fruits are 100% organic, free from harmful pesticides and chemicals.</p> </div> <div class="service-card" style="animation-delay: 0.3s;"> <div class="service-icon"> <i class="fas fa-recycle"></i> </div> <h3>Eco Packaging</h3> <p>We use biodegradable and recyclable packaging to minimize environmental impact.</p> </div> <div class="service-card" style="animation-delay: 0.4s;"> <div class="service-icon"> <i class="fas fa-calendar-alt"></i> </div> <h3>Subscription Plans</h3> <p>Choose from weekly or monthly fruit boxes tailored to your preferences.</p> </div> <div class="service-card" style="animation-delay: 0.5s;"> <div class="service-icon"> <i class="fas fa-gift"></i> </div> <h3>Fruit Gifts</h3> <p>Beautifully arranged fruit baskets perfect for any occasion.</p> </div> <div class="service-card" style="animation-delay: 0.6s;"> <div class="service-icon"> <i class="fas fa-phone-alt"></i> </div> <h3>24/7 Support</h3> <p>Our customer service team is always ready to assist you with any questions.</p> </div> </div> </div> </section> <!-- Testimonials Section --> <section class="section testimonials" id="testimonials"> <div class="container"> <div class="section-title"> <h2>What Our Customers Say</h2> <p>Don't just take our word for it. Here's what our satisfied customers have to say about us.</p> </div> <div class="testimonial-slider"> <div class="testimonial active"> <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" alt="Sarah J."> <div class="testimonial-rating"> <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> <p>"I've been ordering from Fruits Corner for over a year now, and I'm consistently impressed with the quality and freshness of their fruits. Their delivery is always on time, and their customer service is excellent!"</p> <h4>Sarah J.</h4> <span>Regular Customer</span> </div> <div class="testimonial"> <img src="https://images.unsplash.com/photo-1566492031773-4f4e44671857?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" alt="Michael T."> <div class="testimonial-rating"> <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> <p>"The organic apples from Fruits Corner are the best I've ever tasted. My kids love them, and I love that they're getting healthy snacks. The subscription service makes it so convenient!"</p> <h4>Michael T.</h4> <span>Parent</span> </div> <div class="testimonial"> <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80" alt="Emily R."> <div class="testimonial-rating"> <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> <p>"I ordered a fruit basket for my mother's birthday, and she was thrilled! The presentation was beautiful, and the fruits were perfectly ripe. Will definitely order again for special occasions."</p> <h4>Emily R.</h4> <span>Gift Buyer</span> </div> <div class="slider-controls"> <div class="slider-dot active" data-slide="0"></div> <div class="slider-dot" data-slide="1"></div> <div class="slider-dot" data-slide="2"></div> </div> </div> </div> </section> <!-- Newsletter Section --> <section class="newsletter"> <div class="container"> <h2>Subscribe to Our Newsletter</h2> <p>Get the latest updates, exclusive offers, and seasonal fruit recommendations delivered to your inbox.</p> <form class="newsletter-form"> <input type="email" placeholder="Enter your email address" required> <button type="submit">Subscribe</button> </form> </div> </section> <!-- Gallery Section --> <section class="section gallery"> <div class="container"> <div class="section-title"> <h2>Fruit Gallery</h2> <p>A visual feast of our fresh and colorful fruit selections.</p> </div> <div class="gallery-grid"> <div class="gallery-item" style="animation-delay: 0.1s;"> <img src="https://images.unsplash.com/photo-1568702846914-96b305d2aaeb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Apples"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item" style="animation-delay: 0.2s;"> <img src="https://images.unsplash.com/photo-1559181567-c3190ca9959b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Pineapple"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item" style="animation-delay: 0.3s;"> <img src="https://images.unsplash.com/photo-1550258987-190a2d41a8ba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Bananas"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item" style="animation-delay: 0.4s;"> <img src="https://images.unsplash.com/photo-1557800636-894a64c1696f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=765&q=80" alt="Oranges"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item" style="animation-delay: 0.5s;"> <img src="https://images.unsplash.com/photo-1439127989242-c3749a012eac?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Strawberries"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item" style="animation-delay: 0.6s;"> <img src="https://images.unsplash.com/photo-1550258987-190a2d41a8ba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Fruit mix"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> </div> </div> </section> <!-- Team Section --> <section class="section team"> <div class="container"> <div class="section-title"> <h2>Meet Our Team</h2> <p>The passionate people behind Fruits Corner who work hard to bring you the best fruits.</p> </div> <div class="team-grid"> <div class="team-member" style="animation-delay: 0.1s;"> <div class="team-img"> <img src="https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" alt="John Smith"> </div> <div class="team-info"> <h3>John Smith</h3> <p>Founder & CEO</p> <div class="team-social"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </div> </div> </div> <div class="team-member" style="animation-delay: 0.2s;"> <div class="team-img"> <img src="https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" alt="Sarah Johnson"> </div> <div class="team-info"> <h3>Sarah Johnson</h3> <p>Head of Procurement</p> <div class="team-social"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </div> </div> </div> <div class="team-member" style="animation-delay: 0.3s;"> <div class="team-img"> <img src="https://images.unsplash.com/photo-1568602471122-7832951cc4c5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80" alt="Michael Brown"> </div> <div class="team-info"> <h3>Michael Brown</h3> <p>Quality Control</p> <div class="team-social"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </div> </div> </div> <div class="team-member" style="animation-delay: 0.4s;"> <div class="team-img"> <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80" alt="Emily Davis"> </div> <div class="team-info"> <h3>Emily Davis</h3> <p>Customer Service</p> <div class="team-social"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </div> </div> </div> </div> </div> </section> <!-- Contact Section --> <section class="section contact" id="contact"> <div class="container"> <div class="section-title"> <h2>Contact Us</h2> <p>Have questions or feedback? We'd love to hear from you!</p> </div> <div class="contact-container"> <div class="contact-info"> <h3>Get in Touch</h3> <div class="contact-details"> <div class="contact-item"> <div class="contact-icon"> <i class="fas fa-map-marker-alt"></i> </div> <div class="contact-text"> <h4>Address</h4> <p>123 Fruit Street, Orchard City, CA 90210</p> </div> </div> <div class="contact-item"> <div class="contact-icon"> <i class="fas fa-phone-alt"></i> </div> <div class="contact-text"> <h4>Phone</h4> <p><a href="tel:+18005551234">+1 (800) 555-1234</a></p> </div> </div> <div class="contact-item"> <div class="contact-icon"> <i class="fas fa-envelope"></i> </div> <div class="contact-text"> <h4>Email</h4> <p><a href="mailto:info@fruitscorner.com">info@fruitscorner.com</a></p> </div> </div> </div> <h3>Follow Us</h3> <div class="contact-social"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-pinterest-p"></i></a> </div> </div> <div class="contact-form"> <form> <div class="form-group"> <label for="name">Your Name</label> <input type="text" id="name" placeholder="Enter your name" required> </div> <div class="form-group"> <label for="email">Your Email</label> <input type="email" id="email" placeholder="Enter your email" required> </div> <div class="form-group"> <label for="subject">Subject</label> <input type="text" id="subject" placeholder="Enter subject"> </div> <div class="form-group"> <label for="message">Your Message</label> <textarea id="message" placeholder="Enter your message"></textarea> </div> <button type="submit" class="btn">Send Message</button> </form> </div> </div> </div> </section> <!-- Footer --> <footer> <div class="container"> <div class="footer-container"> <div class="footer-col"> <h3>Fruits Corner</h3> <p>Providing fresh, organic fruits to health-conscious consumers since 2010. Quality you can taste!</p> </div> <div class="footer-col"> <h3>Quick Links</h3> <ul class="footer-links"> <li><a href="#home">Home</a></li> <li><a href="#about">About Us</a></li> <li><a href="#fruits">Our Fruits</a></li> <li><a href="#services">Services</a></li> <li><a href="#testimonials">Testimonials</a></li> <li><a href="#contact">Contact</a></li> </ul> </div> <div class="footer-col"> <h3>Services</h3> <ul class="footer-links"> <li><a href="#">Fruit Delivery</a></li> <li><a href="#">Organic Fruits</a></li> <li><a href="#">Fruit Subscriptions</a></li> <li><a href="#">Corporate Gifts</a></li> <li><a href="#">Seasonal Specials</a></li> <li><a href="#">Custom Fruit Boxes</a></li> </ul> </div> <div class="footer-col"> <h3>Contact Info</h3> <ul class="footer-contact"> <li> <i class="fas fa-map-marker-alt"></i> <span>123 Fruit Street, Orchard City, CA 90210</span> </li> <li> <i class="fas fa-phone-alt"></i> <span>+1 (800) 555-1234</span> </li> <li> <i class="fas fa-envelope"></i> <span>info@fruitscorner.com</span> </li> <li> <i class="fas fa-clock"></i> <span>Mon-Sat: 8:00 AM - 6:00 PM</span> </li> </ul> </div> </div> <div class="footer-bottom"> <p>© 2023 Fruits Corner. All Rights Reserved.</p> </div> </div> </footer> </body> </html>
CSS
:root { --primary-color: #3498db; --primary-dark: #2980b9; --secondary-color: #f1c40f; --light-color: #ecf0f1; --dark-color: #2c3e50; --white: #ffffff; --black: #333333; --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', sans-serif; color: var(--black); line-height: 1.6; overflow-x: hidden; } a { text-decoration: none; color: inherit; } ul { list-style: none; } img { max-width: 100%; height: auto; display: block; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .btn { display: inline-block; padding: 12px 20px; background-color: var(--primary-color); color: var(--white); border: none; border-radius: 50px; cursor: pointer; font-weight: 500; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; } .btn:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } .btn-secondary { background-color: var(--secondary-color); color: var(--black); } .btn-secondary:hover { background-color: #f39c12; } .section { padding: 80px 0; } .section-title { text-align: center; margin-bottom: 50px; position: relative; } .section-title h2 { font-size: 2.5rem; color: var(--dark-color); margin-bottom: 15px; position: relative; display: inline-block; } .section-title h2::after { content: ''; position: absolute; width: 50px; height: 3px; background-color: var(--primary-color); bottom: -10px; left: 50%; transform: translateX(-50%); } .section-title p { color: #777; max-width: 700px; margin: 0 auto; } /* Header */ header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); } header.scrolled { background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); padding: 15px 0; } .header-container { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.8rem; font-weight: 700; color: var(--white); display: flex; align-items: center; } .logo i { color: var(--secondary-color); margin-right: 10px; font-size: 2rem; } header.scrolled .logo { color: var(--dark-color); } nav ul { display: flex; } nav ul li { margin-left: 30px; } nav ul li a { color: var(--white); font-weight: 500; transition: var(--transition); position: relative; } header.scrolled nav ul li a { color: var(--dark-color); } nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; background-color: var(--secondary-color); bottom: -5px; left: 0; transition: var(--transition); } nav ul li a:hover::after { width: 100%; } .mobile-menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; } header.scrolled .mobile-menu-btn { color: var(--dark-color); } /* Hero Section */ .hero { height: 100vh; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1153&q=80') no-repeat center center/cover; display: flex; align-items: center; text-align: center; color: var(--white); animation: fadeIn 1s ease-in-out; } .hero-content { max-width: 800px; margin: 0 auto; } .hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; animation: slideDown 1s ease-in-out; } .hero-content p { font-size: 1.2rem; margin-bottom: 30px; animation: slideUp 1s ease-in-out; } .hero-btns { display: flex; justify-content: center; gap: 20px; animation: fadeIn 1.5s ease-in-out; } /* About Section */ .about { background-color: var(--light-color); } .about-container { display: flex; align-items: center; gap: 50px; } .about-img { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1); animation: slideInLeft 1s ease-in-out; } .about-content { flex: 1; animation: slideInRight 1s ease-in-out; } .about-content h3 { font-size: 2rem; color: var(--dark-color); margin-bottom: 20px; } .about-content p { margin-bottom: 20px; } .about-features { margin-top: 30px; } .about-features li { margin-bottom: 15px; display: flex; align-items: center; } .about-features li i { color: var(--primary-color); margin-right: 10px; font-size: 1.2rem; } /* Featured Fruits */ .featured-fruits { text-align: center; } .fruits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; } .fruit-card { background-color: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: var(--transition); animation: fadeInUp 0.5s ease-in-out; animation-fill-mode: both; } .fruit-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); } .fruit-img { height: 200px; overflow: hidden; } .fruit-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .fruit-card:hover .fruit-img img { transform: scale(1.1); } .fruit-info { padding: 20px; } .fruit-info h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark-color); } .fruit-info p { color: #777; margin-bottom: 15px; } .fruit-price { display: flex; justify-content: space-between; align-items: center; } .price { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); } /* Services */ .services { background-color: var(--light-color); } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .service-card { background-color: var(--white); padding: 30px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: var(--transition); animation: fadeInUp 0.5s ease-in-out; animation-fill-mode: both; } .service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); } .service-icon { width: 80px; height: 80px; background-color: rgba(52, 152, 219, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary-color); font-size: 2rem; } .service-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--dark-color); } /* Testimonials */ .testimonials .section-title h2::after { background-color: var(--secondary-color); } .testimonial-slider { max-width: 800px; margin: 0 auto; position: relative; } .testimonial { background-color: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); text-align: center; margin: 20px; display: none; animation: fadeIn 0.5s ease-in-out; } .testimonial.active { display: block; } .testimonial img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 3px solid var(--primary-color); } .testimonial p { font-style: italic; margin-bottom: 20px; } .testimonial h4 { color: var(--primary-color); margin-bottom: 5px; } .testimonial-rating { color: var(--secondary-color); font-size: 1.2rem; margin-bottom: 10px; } .slider-controls { display: flex; justify-content: center; margin-top: 30px; } .slider-dot { width: 12px; height: 12px; background-color: #ddd; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: var(--transition); } .slider-dot.active { background-color: var(--primary-color); } /* Newsletter */ .newsletter { background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9)), url('https://images.unsplash.com/photo-1519996529931-28324d5a630e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80') no-repeat center center/cover; color: var(--white); text-align: center; padding: 100px 0; } .newsletter h2 { font-size: 2.5rem; margin-bottom: 20px; } .newsletter p { max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; } .newsletter-form { display: flex; max-width: 500px; margin: 0 auto; } .newsletter-form input { flex: 1; padding: 15px 20px; border: none; border-radius: 50px 0 0 50px; font-family: 'Poppins', sans-serif; outline: none; } .newsletter-form button { padding: 15px 30px; background-color: var(--secondary-color); color: var(--black); border: none; border-radius: 0 50px 50px 0; cursor: pointer; font-weight: 600; transition: var(--transition); } .newsletter-form button:hover { background-color: #f39c12; } /* Gallery */ .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .gallery-item { position: relative; border-radius: 10px; overflow: hidden; height: 250px; animation: fadeIn 0.5s ease-in-out; animation-fill-mode: both; } .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .gallery-item:hover img { transform: scale(1.1); } .gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(52, 152, 219, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); } .gallery-item:hover .gallery-overlay { opacity: 1; } .gallery-overlay i { color: var(--white); font-size: 2rem; } /* Team */ .team { background-color: var(--light-color); } .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; } .team-member { background-color: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); text-align: center; transition: var(--transition); animation: fadeInUp 0.5s ease-in-out; animation-fill-mode: both; } .team-member:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); } .team-img { height: 300px; overflow: hidden; } .team-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .team-member:hover .team-img img { transform: scale(1.1); } .team-info { padding: 20px; } .team-info h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--dark-color); } .team-info p { color: var(--primary-color); margin-bottom: 15px; font-weight: 500; } .team-social { display: flex; justify-content: center; gap: 15px; } .team-social a { width: 35px; height: 35px; background-color: rgba(52, 152, 219, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); transition: var(--transition); } .team-social a:hover { background-color: var(--primary-color); color: var(--white); } /* Contact */ .contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; } .contact-info { animation: slideInLeft 1s ease-in-out; } .contact-info h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--dark-color); } .contact-details { margin-bottom: 30px; } .contact-item { display: flex; align-items: flex-start; margin-bottom: 20px; } .contact-icon { width: 50px; height: 50px; background-color: rgba(52, 152, 219, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.2rem; margin-right: 15px; flex-shrink: 0; } .contact-text h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--dark-color); } .contact-text p, .contact-text a { color: #777; transition: var(--transition); } .contact-text a:hover { color: var(--primary-color); } .contact-social { display: flex; gap: 15px; } .contact-social a { width: 40px; height: 40px; background-color: rgba(52, 152, 219, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.2rem; transition: var(--transition); } .contact-social a:hover { background-color: var(--primary-color); color: var(--white); } .contact-form { animation: slideInRight 1s ease-in-out; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--dark-color); } .form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Poppins', sans-serif; transition: var(--transition); } .form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; } .form-group textarea { height: 150px; resize: vertical; } /* Footer */ footer { background-color: var(--dark-color); color: var(--white); padding: 80px 0 20px; } .footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; } .footer-col h3 { font-size: 1.3rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; } .footer-col h3::after { content: ''; position: absolute; width: 50px; height: 2px; background-color: var(--primary-color); bottom: 0; left: 0; } .footer-col p { margin-bottom: 20px; opacity: 0.8; } .footer-links li { margin-bottom: 10px; } .footer-links a { opacity: 0.8; transition: var(--transition); display: block; } .footer-links a:hover { opacity: 1; color: var(--primary-color); transform: translateX(5px); } .footer-contact li { margin-bottom: 15px; display: flex; align-items: flex-start; } .footer-contact i { margin-right: 10px; color: var(--primary-color); } .footer-contact span { opacity: 0.8; } .footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .footer-bottom p { opacity: 0.8; } /* Animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } } @keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Responsive Styles */ @media (max-width: 992px) { .section-title h2 { font-size: 2rem; } .hero-content h1 { font-size: 2.8rem; } .about-container { flex-direction: column; } .about-img, .about-content { flex: none; width: 100%; } } @media (max-width: 768px) { .section { padding: 60px 0; } .mobile-menu-btn { display: block; } nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background-color: var(--white); box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1); transition: var(--transition); z-index: 1001; padding: 80px 30px 30px; } nav.active { right: 0; } nav ul { flex-direction: column; } nav ul li { margin: 0 0 20px 0; } nav ul li a { color: var(--dark-color); font-size: 1.1rem; } .close-menu-btn { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: var(--dark-color); background: none; border: none; cursor: pointer; } .hero-content h1 { font-size: 2.2rem; } .hero-btns { flex-direction: column; gap: 15px; } .btn { width: 100%; } .newsletter-form { flex-direction: column; } .newsletter-form input { border-radius: 50px; margin-bottom: 10px; } .newsletter-form button { border-radius: 50px; width: 100%; } } @media (max-width: 576px) { .section-title h2 { font-size: 1.8rem; } .hero-content h1 { font-size: 1.8rem; } .hero-content p { font-size: 1rem; } .fruit-card, .service-card, .team-member { animation: none; opacity: 1; transform: none; } .testimonial { margin: 20px 0; } }
JavaScript
// Mobile Menu Toggle const mobileMenuBtn = document.querySelector('.mobile-menu-btn'); const closeMenuBtn = document.querySelector('.close-menu-btn'); const nav = document.getElementById('nav'); mobileMenuBtn.addEventListener('click', () => { nav.classList.add('active'); }); closeMenuBtn.addEventListener('click', () => { nav.classList.remove('active'); }); // Close menu when clicking on a link const navLinks = document.querySelectorAll('nav ul li a'); navLinks.forEach(link => { link.addEventListener('click', () => { nav.classList.remove('active'); }); }); // Header scroll effect const header = document.getElementById('header'); window.addEventListener('scroll', () => { if (window.scrollY > 100) { header.classList.add('scrolled'); } else { header.classList.remove('scrolled'); } }); // Testimonial slider const testimonials = document.querySelectorAll('.testimonial'); const dots = document.querySelectorAll('.slider-dot'); let currentSlide = 0; function showSlide(n) { testimonials.forEach(testimonial => { testimonial.classList.remove('active'); }); dots.forEach(dot => { dot.classList.remove('active'); }); currentSlide = (n + testimonials.length) % testimonials.length; testimonials[currentSlide].classList.add('active'); dots[currentSlide].classList.add('active'); } dots.forEach((dot, index) => { dot.addEventListener('click', () => { showSlide(index); }); }); // Auto slide change setInterval(() => { showSlide(currentSlide + 1); }, 5000); // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function(e) { e.preventDefault(); const targetId = this.getAttribute('href'); const targetElement = document.querySelector(targetId); if (targetElement) { window.scrollTo({ top: targetElement.offsetTop - 80, behavior: 'smooth' }); } }); }); // Animation on scroll function animateOnScroll() { const elements = document.querySelectorAll('.fruit-card, .service-card, .team-member, .gallery-item'); elements.forEach(element => { const elementPosition = element.getBoundingClientRect().top; const screenPosition = window.innerHeight / 1.2; if (elementPosition < screenPosition) { element.style.opacity = '1'; element.style.transform = 'translateY(0)'; } }); } // Run once on page load animateOnScroll(); // Run on scroll window.addEventListener('scroll', animateOnScroll);
Output Preview
Desktop
Mobile
Fullscreen