Sweet Delights Contect Page
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>Sweet Delights - Contact Us</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> </head> <body> <!-- Header Section --> <header> <div class="header-bg"></div> <div class="header-content"> <div class="logo"> <img src="https://cdn-icons-png.flaticon.com/512/3081/3081840.png" alt="Sweet Delights Logo"> <h1>Sweet Delights</h1> </div> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">Menu</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </nav> </div> </header> <!-- Hero Section --> <section class="hero"> <div class="floating-sweets" id="floatingSweets"></div> <h2>Get in Touch With Sweet Delights</h2> <p>We're here to satisfy your sweet cravings. Contact us for orders, inquiries, or just to say hello!</p> <a href="#contact" class="btn">Contact Us Now</a> </section> <!-- Contact Form Section --> <section class="contact-form" id="contact"> <div class="contact-container"> <div class="form-content"> <h3>Send Us a Message</h3> <p>Have questions about our delicious treats or want to place a special order? Fill out the form below and our team will get back to you as soon as possible.</p> <div class="contact-info"> <div class="info-item"> <div class="info-icon"> <i class="fas fa-map-marker-alt"></i> </div> <div class="info-text"> <h4>Our Location</h4> <p>123 Sweet Street, Candyland</p> </div> </div> <div class="info-item"> <div class="info-icon"> <i class="fas fa-phone-alt"></i> </div> <div class="info-text"> <h4>Call Us</h4> <p>+1 (555) 123-4567</p> </div> </div> <div class="info-item"> <div class="info-icon"> <i class="fas fa-envelope"></i> </div> <div class="info-text"> <h4>Email Us</h4> <p>info@sweetdelights.com</p> </div> </div> </div> </div> <form id="contactForm"> <div class="form-group"> <label for="name">Your Name</label> <input type="text" id="name" name="name" required> </div> <div class="form-group"> <label for="email">Email Address</label> <input type="email" id="email" name="email" required> </div> <div class="form-group"> <label for="phone">Phone Number</label> <input type="tel" id="phone" name="phone"> </div> <div class="form-group"> <label for="subject">Subject</label> <input type="text" id="subject" name="subject" required> </div> <div class="form-group"> <label for="message">Your Message</label> <textarea id="message" name="message" required></textarea> </div> <button type="submit" class="submit-btn">Send Message</button> </form> </div> </section> <!-- Map Section --> <section class="map-section"> <div class="map-container"> <div class="map-content"> <h3>Visit Our Sweet Shop</h3> <p>Come visit us at our physical location to experience the full range of our delicious treats. Our friendly staff will be happy to assist you with your sweet selections.</p> <p><strong>Opening Hours:</strong><br> Monday - Friday: 9am - 8pm<br> Saturday - Sunday: 10am - 6pm</p> </div> <div class="map-wrapper"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3022.215373510728!2d-73.9878449242395!3d40.7579859713896!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c25855c6480299%3A0x55194ec5a1ae072e!2sTimes%20Square!5e0!3m2!1sen!2sus!4v1689872345678!5m2!1sen!2sus" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> </div> </div> </section> <!-- FAQ Section --> <section class="faq-section"> <div class="faq-container"> <h3>Frequently Asked Questions</h3> <div class="faq-item"> <div class="faq-question"> <span>Do you offer gluten-free or vegan options?</span> <i class="fas fa-chevron-down"></i> </div> <div class="faq-answer"> <p>Yes! We have a variety of gluten-free and vegan treats to accommodate different dietary needs. Our menu clearly marks these options, and our staff can provide more details about ingredients.</p> </div> </div> <div class="faq-item"> <div class="faq-question"> <span>How far in advance should I place an order for a custom cake?</span> <i class="fas fa-chevron-down"></i> </div> <div class="faq-answer"> <p>We recommend placing custom cake orders at least 72 hours in advance. For more elaborate designs or large quantities, 1-2 weeks notice is preferred to ensure we can accommodate your request.</p> </div> </div> <div class="faq-item"> <div class="faq-question"> <span>Do you offer delivery services?</span> <i class="fas fa-chevron-down"></i> </div> <div class="faq-answer"> <p>Yes, we offer delivery within a 10-mile radius for a small fee. For larger orders or special events, we can arrange delivery further away - please contact us for details.</p> </div> </div> <div class="faq-item"> <div class="faq-question"> <span>What payment methods do you accept?</span> <i class="fas fa-chevron-down"></i> </div> <div class="faq-answer"> <p>We accept all major credit cards, Apple Pay, Google Pay, and cash. For large orders, we may require a 50% deposit at the time of booking.</p> </div> </div> </div> </section> <!-- Team Section --> <section class="team-section"> <div class="team-container"> <h3>Meet Our Sweet Team</h3> <div class="team-members"> <div class="team-member"> <div class="member-image"> <img src="https://randomuser.me/api/portraits/women/43.jpg" alt="Sarah Johnson"> </div> <div class="member-info"> <h4>Sarah Johnson</h4> <p>Head Pastry Chef</p> <div class="social-links"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> </div> </div> </div> <div class="team-member"> <div class="member-image"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Michael Chen"> </div> <div class="member-info"> <h4>Michael Chen</h4> <p>Chocolatier</p> <div class="social-links"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> </div> </div> </div> <div class="team-member"> <div class="member-image"> <img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Emma Rodriguez"> </div> <div class="member-info"> <h4>Emma Rodriguez</h4> <p>Customer Service</p> <div class="social-links"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> </div> </div> </div> </div> </div> </section> <!-- Testimonials Section --> <section class="testimonials-section"> <div class="testimonials-container"> <h3>What Our Customers Say</h3> <div class="testimonials"> <div class="testimonial"> <div class="testimonial-content"> <p>The best cupcakes in town! I ordered a dozen for my daughter's birthday and they were not only beautiful but absolutely delicious. The team went above and beyond to make them special.</p> </div> <div class="testimonial-author"> <div class="author-image"> <img src="https://randomuser.me/api/portraits/women/22.jpg" alt="Jessica M."> </div> <div class="author-info"> <h4>Jessica M.</h4> <p>Happy Customer</p> <div class="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> </div> </div> </div> <div class="testimonial"> <div class="testimonial-content"> <p>Our wedding cake was absolutely stunning and tasted even better than it looked! The team worked closely with us to create exactly what we envisioned. Highly recommend!</p> </div> <div class="testimonial-author"> <div class="author-image"> <img src="https://randomuser.me/api/portraits/men/45.jpg" alt="David & Rachel"> </div> <div class="author-info"> <h4>David & Rachel</h4> <p>Wedding Clients</p> <div class="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> </div> </div> </div> <div class="testimonial"> <div class="testimonial-content"> <p>I order treats from Sweet Delights for all our office celebrations. The quality is consistently excellent, and they always deliver on time. The chocolate croissants are to die for!</p> </div> <div class="testimonial-author"> <div class="author-image"> <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Priya K."> </div> <div class="author-info"> <h4>Priya K.</h4> <p>Corporate Client</p> <div class="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> </div> </div> </div> </div> </div> </section> <!-- Newsletter Section --> <section class="newsletter-section"> <div class="newsletter-container"> <h3>Sweet Updates</h3> <p>Subscribe to our newsletter for exclusive offers, new product announcements, and sweet inspiration!</p> <form class="newsletter-form"> <input type="email" placeholder="Your email address" required> <button type="submit">Subscribe</button> </form> </div> </section> <!-- Footer --> <footer> <div class="footer-container"> <div class="footer-about"> <div class="footer-logo"> <img src="https://cdn-icons-png.flaticon.com/512/3081/3081840.png" alt="Sweet Delights Logo"> </div> <p>Sweet Delights has been crafting delicious, high-quality treats since 2010. Our passion is creating sweet moments for our customers.</p> <div class="footer-social"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-pinterest-p"></i></a> </div> </div> <div class="footer-links"> <h4>Quick Links</h4> <ul> <li><a href="#">Home</a></li> <li><a href="#">Our Menu</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Gallery</a></li> <li><a href="#">Contact</a></li> </ul> </div> <div class="footer-links"> <h4>Our Products</h4> <ul> <li><a href="#">Cakes</a></li> <li><a href="#">Cupcakes</a></li> <li><a href="#">Cookies</a></li> <li><a href="#">Pastries</a></li> <li><a href="#">Chocolates</a></li> </ul> </div> <div class="footer-contact"> <h4>Contact Info</h4> <p><i class="fas fa-map-marker-alt"></i> 123 Sweet Street, Candyland</p> <p><i class="fas fa-phone-alt"></i> +1 (555) 123-4567</p> <p><i class="fas fa-envelope"></i> info@sweetdelights.com</p> <p><i class="fas fa-clock"></i> Mon-Fri: 9am-8pm, Sat-Sun: 10am-6pm</p> </div> </div> <div class="footer-bottom"> <p>© 2023 Sweet Delights. All Rights Reserved. | Designed with love and sugar</p> </div> </footer> </body> </html>
CSS
:root { --primary: #FFD700; --primary-dark: #FFC000; --secondary: #000; --accent: #FF6B6B; --text: #333; --light: #FFF9E6; --dark: #1A1A1A; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: var(--light); color: var(--text); overflow-x: hidden; } /* Header Section */ header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 1rem 2rem; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; } .logo { display: flex; align-items: center; gap: 1rem; } .logo img { height: 50px; animation: float 3s ease-in-out infinite; } .logo h1 { font-size: 1.8rem; font-weight: 700; color: var(--secondary); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); } nav ul { display: flex; list-style: none; gap: 2rem; } nav a { text-decoration: none; color: var(--secondary); font-weight: 600; transition: all 0.3s ease; position: relative; } nav a:hover { color: var(--accent); } nav a::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--accent); bottom: -5px; left: 0; transition: width 0.3s ease; } nav a:hover::after { width: 100%; } .header-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.1)" d="M0,0 L100,0 L100,100 L0,100 Z" /><path fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" d="M0,50 Q25,25 50,50 T100,50" /></svg>'); background-size: 50px 50px; opacity: 0.5; animation: moveBg 20s linear infinite; } /* Hero Section */ .hero { background: linear-gradient(rgba(255, 215, 0, 0.8), rgba(255, 192, 0, 0.8)), url('https://images.unsplash.com/photo-1551024506-0bccd828d307?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80'); background-size: cover; background-position: center; padding: 5rem 2rem; text-align: center; position: relative; overflow: hidden; } .hero h2 { font-size: 3rem; margin-bottom: 1rem; color: var(--secondary); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); animation: fadeIn 1s ease-out; } .hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; color: var(--dark); animation: fadeIn 1.5s ease-out; } .hero .btn { display: inline-block; background: var(--secondary); color: var(--primary); padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; animation: pulse 2s infinite; } .hero .btn:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } .floating-sweets { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; } .sweet { position: absolute; width: 40px; height: 40px; background-size: contain; background-repeat: no-repeat; opacity: 0.7; animation: floatSweet 5s ease-in-out infinite; } /* Contact Form Section */ .contact-form { padding: 4rem 2rem; background-color: white; position: relative; overflow: hidden; } .contact-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; } .form-content h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--secondary); position: relative; } .form-content h3::after { content: ''; position: absolute; width: 50px; height: 4px; background: var(--primary); bottom: -10px; left: 0; } .form-content p { margin-bottom: 2rem; line-height: 1.6; } .contact-info { display: flex; flex-direction: column; gap: 1.5rem; } .info-item { display: flex; align-items: center; gap: 1rem; } .info-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 1.2rem; transition: all 0.3s ease; } .info-item:hover .info-icon { background: var(--accent); transform: rotate(15deg); } .info-text h4 { font-size: 1.2rem; margin-bottom: 0.3rem; } .info-text p { margin: 0; color: var(--text); opacity: 0.8; } form { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); position: relative; z-index: 2; } .form-group { margin-bottom: 1.5rem; position: relative; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; } .form-group input, .form-group textarea { width: 100%; padding: 0.8rem 1rem; border: 2px solid #eee; border-radius: 5px; font-size: 1rem; transition: all 0.3s ease; } .form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2); } .form-group textarea { min-height: 150px; resize: vertical; } .submit-btn { background: var(--primary); color: var(--secondary); border: none; padding: 0.8rem 2rem; font-size: 1rem; font-weight: 600; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; width: 100%; } .submit-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 192, 0, 0.3); } /* Map Section */ .map-section { padding: 4rem 2rem; background: linear-gradient(135deg, var(--light), white); } .map-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; } .map-content h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--secondary); position: relative; } .map-content h3::after { content: ''; position: absolute; width: 50px; height: 4px; background: var(--primary); bottom: -10px; left: 0; } .map-content p { margin-bottom: 2rem; line-height: 1.6; } .map-wrapper { height: 400px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); position: relative; } .map-wrapper iframe { width: 100%; height: 100%; border: none; } /* FAQ Section */ .faq-section { padding: 4rem 2rem; background-color: white; } .faq-container { max-width: 800px; margin: 0 auto; } .faq-container h3 { font-size: 2rem; text-align: center; margin-bottom: 3rem; color: var(--secondary); position: relative; } .faq-container h3::after { content: ''; position: absolute; width: 50px; height: 4px; background: var(--primary); bottom: -10px; left: 50%; transform: translateX(-50%); } .faq-item { margin-bottom: 1rem; border-radius: 5px; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); } .faq-question { background: var(--primary); color: var(--secondary); padding: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; } .faq-question:hover { background: var(--primary-dark); } .faq-question i { transition: transform 0.3s ease; } .faq-answer { background: white; padding: 0 1rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; } .faq-item.active .faq-question { background: var(--primary-dark); } .faq-item.active .faq-question i { transform: rotate(180deg); } .faq-item.active .faq-answer { max-height: 500px; padding: 1rem; } /* Team Section */ .team-section { padding: 4rem 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); text-align: center; } .team-container { max-width: 1200px; margin: 0 auto; } .team-container h3 { font-size: 2rem; margin-bottom: 3rem; color: var(--secondary); position: relative; display: inline-block; } .team-container h3::after { content: ''; position: absolute; width: 50px; height: 4px; background: var(--accent); bottom: -10px; left: 50%; transform: translateX(-50%); } .team-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; } .team-member { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; position: relative; } .team-member:hover { transform: translateY(-10px); } .member-image { height: 250px; overflow: hidden; position: relative; } .member-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .team-member:hover .member-image img { transform: scale(1.1); } .member-info { padding: 1.5rem; } .member-info h4 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--secondary); } .member-info p { color: var(--accent); font-weight: 600; margin-bottom: 1rem; } .social-links { display: flex; justify-content: center; gap: 1rem; } .social-links a { width: 35px; height: 35px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); transition: all 0.3s ease; } .social-links a:hover { background: var(--accent); color: white; transform: rotate(15deg); } /* Testimonials Section */ .testimonials-section { padding: 4rem 2rem; background-color: white; } .testimonials-container { max-width: 1200px; margin: 0 auto; } .testimonials-container h3 { font-size: 2rem; text-align: center; margin-bottom: 3rem; color: var(--secondary); position: relative; } .testimonials-container h3::after { content: ''; position: absolute; width: 50px; height: 4px; background: var(--primary); bottom: -10px; left: 50%; transform: translateX(-50%); } .testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .testimonial { background: var(--light); padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); position: relative; transition: all 0.3s ease; } .testimonial:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } .testimonial::before { content: '"'; position: absolute; top: 20px; left: 20px; font-size: 4rem; color: var(--primary); opacity: 0.2; font-family: Georgia, serif; line-height: 1; } .testimonial-content { margin-bottom: 1.5rem; position: relative; z-index: 1; } .testimonial-author { display: flex; align-items: center; gap: 1rem; } .author-image { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; } .author-image img { width: 100%; height: 100%; object-fit: cover; } .author-info h4 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--secondary); } .author-info p { color: var(--accent); font-size: 0.9rem; } .rating { color: var(--primary); margin-top: 0.5rem; } /* Newsletter Section */ .newsletter-section { padding: 4rem 2rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); text-align: center; } .newsletter-container { max-width: 600px; margin: 0 auto; } .newsletter-container h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--secondary); } .newsletter-container p { margin-bottom: 2rem; color: var(--dark); } .newsletter-form { display: flex; max-width: 500px; margin: 0 auto; } .newsletter-form input { flex: 1; padding: 0.8rem 1rem; border: none; border-radius: 50px 0 0 50px; font-size: 1rem; outline: none; } .newsletter-form button { background: var(--secondary); color: var(--primary); border: none; padding: 0 2rem; border-radius: 0 50px 50px 0; font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .newsletter-form button:hover { background: var(--accent); } /* Footer */ footer { background: var(--dark); color: white; padding: 4rem 2rem 2rem; } .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; } .footer-logo { margin-bottom: 1.5rem; } .footer-logo img { height: 40px; } .footer-about p { margin-bottom: 1.5rem; opacity: 0.8; line-height: 1.6; } .footer-social { display: flex; gap: 1rem; } .footer-social a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: all 0.3s ease; } .footer-social a:hover { background: var(--primary); color: var(--secondary); } .footer-links h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--primary); position: relative; } .footer-links h4::after { content: ''; position: absolute; width: 30px; height: 3px; background: var(--primary); bottom: -8px; left: 0; } .footer-links ul { list-style: none; } .footer-links li { margin-bottom: 0.8rem; } .footer-links a { color: white; text-decoration: none; opacity: 0.8; transition: all 0.3s ease; } .footer-links a:hover { opacity: 1; color: var(--primary); padding-left: 5px; } .footer-contact p { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; opacity: 0.8; } .footer-contact i { color: var(--primary); } .footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.7; font-size: 0.9rem; } /* Animations */ @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } @keyframes moveBg { 0% { background-position: 0 0; } 100% { background-position: 100% 100%; } } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } } @keyframes floatSweet { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } } /* Responsive Styles */ @media (max-width: 992px) { .hero h2 { font-size: 2.5rem; } .team-members { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } } @media (max-width: 768px) { .header-content { flex-direction: column; gap: 1rem; } nav ul { gap: 1rem; } .hero h2 { font-size: 2rem; } .contact-container, .map-container { grid-template-columns: 1fr; } .form-content { margin-bottom: 2rem; } .newsletter-form { flex-direction: column; } .newsletter-form input { border-radius: 50px; margin-bottom: 1rem; } .newsletter-form button { border-radius: 50px; padding: 0.8rem; } } @media (max-width: 576px) { .hero { padding: 3rem 1rem; } .hero h2 { font-size: 1.8rem; } .hero p { font-size: 1rem; } .section { padding: 2rem 1rem; } .testimonials { grid-template-columns: 1fr; } .footer-container { grid-template-columns: 1fr; gap: 2rem; } }
JavaScript
// Floating sweets animation document.addEventListener('DOMContentLoaded', function() { const sweetsContainer = document.getElementById('floatingSweets'); const sweetIcons = [ '?', '?', '?', '?', '?', '?', '?', '?', '?', '?' ]; for (let i = 0; i < 15; i++) { const sweet = document.createElement('div'); sweet.className = 'sweet'; sweet.textContent = sweetIcons[Math.floor(Math.random() * sweetIcons.length)]; sweet.style.left = `${Math.random() * 100}%`; sweet.style.top = `${Math.random() * 100}%`; sweet.style.fontSize = `${Math.random() * 20 + 20}px`; sweet.style.animationDuration = `${Math.random() * 5 + 3}s`; sweet.style.animationDelay = `${Math.random() * 2}s`; sweetsContainer.appendChild(sweet); } // FAQ toggle functionality const faqItems = document.querySelectorAll('.faq-item'); faqItems.forEach(item => { const question = item.querySelector('.faq-question'); question.addEventListener('click', () => { item.classList.toggle('active'); }); }); // Form submission const contactForm = document.getElementById('contactForm'); contactForm.addEventListener('submit', function(e) { e.preventDefault(); alert('Thank you for your message! We will get back to you soon.'); this.reset(); }); // Smooth scrolling for navigation document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function(e) { e.preventDefault(); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); }); }); });
Output Preview
Desktop
Mobile
Fullscreen