Download index.html from Lampcloud/chiweb: direct link, hf CLI and curl.
- Browser
- Download file 34.8 kB
-
https://huggingface.co/spaces/Lampcloud/chiweb/resolve/main/index.html
- Command line
-
hf download hf://spaces/Lampcloud/chiweb/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Lampcloud/chiweb/resolve/main/index.html
34.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Godlysnacks - Premium Chin-chin Delights</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .hero-gradient { | |
| background: linear-gradient(135deg, #f3d2c1 0%, #fef6e4 100%); | |
| } | |
| .product-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .order-modal { | |
| transition: all 0.3s ease; | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| .order-modal.active { | |
| opacity: 1; | |
| pointer-events: all; | |
| } | |
| .flavor-tag { | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| z-index: 10; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Navigation --> | |
| <nav class="bg-gradient-to-r from-purple-900 to-indigo-800 text-white shadow-lg"> | |
| <div class="container mx-auto px-4 py-3 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-cookie-bite text-2xl text-amber-300"></i> | |
| <span class="text-xl font-bold">Godlysnacks</span> | |
| </div> | |
| <div class="hidden md:flex space-x-8"> | |
| <a href="#home" class="hover:text-amber-200 transition">Home</a> | |
| <a href="#products" class="hover:text-amber-200 transition">Products</a> | |
| <a href="#about" class="hover:text-amber-200 transition">About Us</a> | |
| <a href="#contact" class="hover:text-amber-200 transition">Contact</a> | |
| </div> | |
| <div class="md:hidden"> | |
| <button id="menu-btn" class="text-white focus:outline-none"> | |
| <i class="fas fa-bars text-2xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Mobile Menu --> | |
| <div id="mobile-menu" class="hidden md:hidden bg-amber-700 px-4 pb-4"> | |
| <a href="#home" class="block py-2 hover:text-amber-200 transition">Home</a> | |
| <a href="#products" class="block py-2 hover:text-amber-200 transition">Products</a> | |
| <a href="#about" class="block py-2 hover:text-amber-200 transition">About Us</a> | |
| <a href="#contact" class="block py-2 hover:text-amber-200 transition">Contact</a> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <section id="home" class="relative py-16 md:py-24 overflow-hidden"> | |
| <div class="absolute inset-0 bg-gradient-to-r from-purple-900/20 to-indigo-800/20 z-0"></div> | |
| <div class="container mx-auto px-4 flex flex-col md:flex-row items-center relative z-10"> | |
| <div class="md:w-1/2 mb-10 md:mb-0"> | |
| <h1 class="text-4xl md:text-5xl font-bold text-white mb-4">Heavenly Chin-chin Delights</h1> | |
| <p class="text-lg text-purple-100 mb-6">Experience the divine crunch of our premium chin-chin snacks, crafted with love in Lagos.</p> | |
| <a href="#products" class="bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700 text-white font-bold py-3 px-6 rounded-full shadow-lg transition-all duration-300 inline-flex items-center transform hover:scale-105"> | |
| Explore Flavors <i class="fas fa-arrow-down ml-2"></i> | |
| </a> | |
| </div> | |
| <div class="md:w-1/2 flex justify-center"> | |
| <div class="relative"> | |
| <img src="https://images.unsplash.com/photo-1563805042-7684c019e1cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80" | |
| alt="Delicious chin-chin" | |
| class="rounded-xl shadow-2xl w-full max-w-md border-4 border-white/20 transform hover:scale-105 transition duration-500"> | |
| <div class="absolute -bottom-4 -right-4 bg-gradient-to-r from-pink-500 to-purple-600 text-white px-4 py-2 rounded-full shadow-lg"> | |
| <i class="fas fa-heart mr-2"></i> Lagos' Favorite | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Products Section --> | |
| <section id="products" class="py-16 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <div class="text-center mb-12"> | |
| <h2 class="text-3xl font-bold text-amber-900 mb-2">Our Divine Selection</h2> | |
| <div class="w-20 h-1 bg-amber-500 mx-auto"></div> | |
| <p class="mt-4 text-gray-600 max-w-2xl mx-auto">Each batch is made with premium ingredients and a touch of heavenly goodness.</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <!-- Product 1 --> | |
| <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300 relative"> | |
| <div class="flavor-tag bg-green-500 text-white px-3 py-1 rounded-full text-xs font-bold"> | |
| BESTSELLER | |
| </div> | |
| <img src="https://images.unsplash.com/photo-1603532648955-039310d9ed75?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80" | |
| alt="Classic Chin-chin" | |
| class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold text-amber-900 mb-2">Classic Chin-chin</h3> | |
| <p class="text-gray-600 mb-4">The traditional favorite with just the right amount of sweetness and crunch.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-lg font-bold text-amber-700">₦1,500</span> | |
| <button onclick="openOrderForm('Classic Chin-chin', 1500)" | |
| class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded-full transition duration-300"> | |
| Order Now | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 2 --> | |
| <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300 relative"> | |
| <div class="flavor-tag bg-purple-500 text-white px-3 py-1 rounded-full text-xs font-bold"> | |
| NEW | |
| </div> | |
| <img src="https://images.unsplash.com/photo-1563805042-7684c019e1cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80" | |
| alt="Spicy Chin-chin" | |
| class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold text-amber-900 mb-2">Spicy Chin-chin</h3> | |
| <p class="text-gray-600 mb-4">A fiery twist on the classic, perfect for those who love a little heat.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-lg font-bold text-amber-700">₦1,800</span> | |
| <button onclick="openOrderForm('Spicy Chin-chin', 1800)" | |
| class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded-full transition duration-300"> | |
| Order Now | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 3 --> | |
| <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300 relative"> | |
| <div class="flavor-tag bg-blue-500 text-white px-3 py-1 rounded-full text-xs font-bold"> | |
| VEGAN | |
| </div> | |
| <img src="https://images.unsplash.com/photo-1550583724-b2692b85b150?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80" | |
| alt="Coconut Chin-chin" | |
| class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold text-amber-900 mb-2">Coconut Chin-chin</h3> | |
| <p class="text-gray-600 mb-4">Tropical flavor with shredded coconut for a delightful texture.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-lg font-bold text-amber-700">₦2,000</span> | |
| <button onclick="openOrderForm('Coconut Chin-chin', 2000)" | |
| class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded-full transition duration-300"> | |
| Order Now | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 4 --> | |
| <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300 relative"> | |
| <img src="https://images.unsplash.com/photo-1514517220017-1881c6dc1d15?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80" | |
| alt="Sugar Glazed Chin-chin" | |
| class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold text-amber-900 mb-2">Sugar Glazed Chin-chin</h3> | |
| <p class="text-gray-600 mb-4">Sweet and crunchy with a beautiful sugar glaze that melts in your mouth.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-lg font-bold text-amber-700">₦1,700</span> | |
| <button onclick="openOrderForm('Sugar Glazed Chin-chin', 1700)" | |
| class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded-full transition duration-300"> | |
| Order Now | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 5 --> | |
| <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300 relative"> | |
| <div class="flavor-tag bg-red-500 text-white px-3 py-1 rounded-full text-xs font-bold"> | |
| LIMITED | |
| </div> | |
| <img src="https://images.unsplash.com/photo-1546069901-ba9599a7e63c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=776&q=80" | |
| alt="Peanut Butter Chin-chin" | |
| class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold text-amber-900 mb-2">Peanut Butter Chin-chin</h3> | |
| <p class="text-gray-600 mb-4">Rich peanut butter flavor that makes each bite irresistible.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-lg font-bold text-amber-700">₦2,200</span> | |
| <button onclick="openOrderForm('Peanut Butter Chin-chin', 2200)" | |
| class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded-full transition duration-300"> | |
| Order Now | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 6 --> | |
| <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300 relative"> | |
| <img src="https://images.unsplash.com/photo-1606787366850-de6330128bfc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80" | |
| alt="Garlic & Herb Chin-chin" | |
| class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold text-amber-900 mb-2">Garlic & Herb Chin-chin</h3> | |
| <p class="text-gray-600 mb-4">Savory option with aromatic garlic and herbs for a unique taste.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-lg font-bold text-amber-700">₦1,900</span> | |
| <button onclick="openOrderForm('Garlic & Herb Chin-chin', 1900)" | |
| class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded-full transition duration-300"> | |
| Order Now | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- About Section --> | |
| <section id="about" class="py-16 bg-amber-50"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row items-center"> | |
| <div class="md:w-1/2 mb-10 md:mb-0 md:pr-10"> | |
| <img src="https://images.unsplash.com/photo-1606787366850-de6330128bfc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80" | |
| alt="Our kitchen" | |
| class="rounded-lg shadow-lg w-full"> | |
| </div> | |
| <div class="md:w-1/2"> | |
| <h2 class="text-3xl font-bold text-amber-900 mb-4">Our Story</h2> | |
| <p class="text-gray-700 mb-4">Founded in 2018 in the heart of Lagos, Godlysnacks began as a small family recipe passed down through generations. What started as a hobby quickly turned into a passion for creating the most delicious chin-chin snacks in Nigeria.</p> | |
| <p class="text-gray-700 mb-6">We pride ourselves on using only the finest ingredients, traditional methods, and a whole lot of love in every batch. Our chin-chin is made fresh daily, ensuring you get that perfect crunch every time.</p> | |
| <div class="flex flex-wrap gap-4"> | |
| <div class="flex items-center bg-white px-4 py-2 rounded-full shadow"> | |
| <i class="fas fa-award text-amber-500 mr-2"></i> | |
| <span class="text-sm font-medium">Premium Quality</span> | |
| </div> | |
| <div class="flex items-center bg-white px-4 py-2 rounded-full shadow"> | |
| <i class="fas fa-heart text-amber-500 mr-2"></i> | |
| <span class="text-sm font-medium">Made with Love</span> | |
| </div> | |
| <div class="flex items-center bg-white px-4 py-2 rounded-full shadow"> | |
| <i class="fas fa-leaf text-amber-500 mr-2"></i> | |
| <span class="text-sm font-medium">Natural Ingredients</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials --> | |
| <section class="py-16 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <div class="text-center mb-12"> | |
| <h2 class="text-3xl font-bold text-amber-900 mb-2">What Our Customers Say</h2> | |
| <div class="w-20 h-1 bg-amber-500 mx-auto"></div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div class="bg-amber-50 p-6 rounded-lg shadow"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-12 h-12 rounded-full bg-amber-200 flex items-center justify-center mr-4"> | |
| <i class="fas fa-user text-amber-700 text-xl"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-bold">Adebayo O.</h4> | |
| <div class="flex text-amber-400"> | |
| <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> | |
| <p class="text-gray-700">"The coconut chin-chin is absolutely divine! I order every week for my family. The crunch is perfect and the flavor is unmatched."</p> | |
| </div> | |
| <div class="bg-amber-50 p-6 rounded-lg shadow"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-12 h-12 rounded-full bg-amber-200 flex items-center justify-center mr-4"> | |
| <i class="fas fa-user text-amber-700 text-xl"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-bold">Chioma K.</h4> | |
| <div class="flex text-amber-400"> | |
| <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> | |
| <p class="text-gray-700">"I've tried many chin-chin brands in Lagos, but Godlysnacks stands out. The spicy version is my favorite - just the right amount of heat!"</p> | |
| </div> | |
| <div class="bg-amber-50 p-6 rounded-lg shadow"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-12 h-12 rounded-full bg-amber-200 flex items-center justify-center mr-4"> | |
| <i class="fas fa-user text-amber-700 text-xl"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-bold">Emeka P.</h4> | |
| <div class="flex text-amber-400"> | |
| <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> | |
| <p class="text-gray-700">"Perfect for parties and gatherings. My guests always ask where I get these delicious snacks. The packaging is also very professional."</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Contact Section --> | |
| <section id="contact" class="py-16 bg-amber-800 text-white"> | |
| <div class="container mx-auto px-4"> | |
| <div class="text-center mb-12"> | |
| <h2 class="text-3xl font-bold mb-2">Get In Touch</h2> | |
| <div class="w-20 h-1 bg-amber-300 mx-auto"></div> | |
| <p class="mt-4 max-w-2xl mx-auto">Have questions or special requests? We'd love to hear from you!</p> | |
| </div> | |
| <div class="flex flex-col md:flex-row gap-8"> | |
| <div class="md:w-1/2"> | |
| <form class="space-y-4"> | |
| <div> | |
| <label for="name" class="block mb-1">Your Name</label> | |
| <input type="text" id="name" class="w-full px-4 py-2 rounded bg-amber-700 border border-amber-600 focus:outline-none focus:ring-2 focus:ring-amber-300"> | |
| </div> | |
| <div> | |
| <label for="email" class="block mb-1">Email Address</label> | |
| <input type="email" id="email" class="w-full px-4 py-2 rounded bg-amber-700 border border-amber-600 focus:outline-none focus:ring-2 focus:ring-amber-300"> | |
| </div> | |
| <div> | |
| <label for="message" class="block mb-1">Your Message</label> | |
| <textarea id="message" rows="4" class="w-full px-4 py-2 rounded bg-amber-700 border border-amber-600 focus:outline-none focus:ring-2 focus:ring-amber-300"></textarea> | |
| </div> | |
| <button type="submit" class="bg-amber-600 hover:bg-amber-500 text-white font-bold py-2 px-6 rounded-full transition duration-300"> | |
| Send Message | |
| </button> | |
| </form> | |
| </div> | |
| <div class="md:w-1/2"> | |
| <div class="bg-amber-700 p-6 rounded-lg h-full"> | |
| <h3 class="text-xl font-bold mb-4">Contact Information</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <i class="fas fa-map-marker-alt mt-1 mr-3 text-amber-300"></i> | |
| <div> | |
| <h4 class="font-medium">Address</h4> | |
| <p class="text-amber-100">12 Heavenly Street, Victoria Island, Lagos</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <i class="fas fa-phone-alt mt-1 mr-3 text-amber-300"></i> | |
| <div> | |
| <h4 class="font-medium">Phone</h4> | |
| <p class="text-amber-100">+234 812 345 6789</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <i class="fas fa-envelope mt-1 mr-3 text-amber-300"></i> | |
| <div> | |
| <h4 class="font-medium">Email</h4> | |
| <p class="text-amber-100">hello@godlysnacks.ng</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <i class="fas fa-clock mt-1 mr-3 text-amber-300"></i> | |
| <div> | |
| <h4 class="font-medium">Business Hours</h4> | |
| <p class="text-amber-100">Monday - Saturday: 9AM - 7PM</p> | |
| <p class="text-amber-100">Sunday: 12PM - 5PM</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <h4 class="font-medium mb-2">Follow Us</h4> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="w-10 h-10 rounded-full bg-amber-600 flex items-center justify-center hover:bg-amber-500 transition"> | |
| <i class="fab fa-facebook-f"></i> | |
| </a> | |
| <a href="#" class="w-10 h-10 rounded-full bg-amber-600 flex items-center justify-center hover:bg-amber-500 transition"> | |
| <i class="fab fa-instagram"></i> | |
| </a> | |
| <a href="#" class="w-10 h-10 rounded-full bg-amber-600 flex items-center justify-center hover:bg-amber-500 transition"> | |
| <i class="fab fa-twitter"></i> | |
| </a> | |
| <a href="#" class="w-10 h-10 rounded-full bg-amber-600 flex items-center justify-center hover:bg-amber-500 transition"> | |
| <i class="fab fa-whatsapp"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Order Modal --> | |
| <div id="order-modal" class="order-modal fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4"> | |
| <div class="bg-white rounded-lg shadow-xl max-w-md w-full max-h-[90vh] overflow-y-auto"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold text-amber-900" id="order-product-title">Place Your Order</h3> | |
| <button onclick="closeOrderForm()" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form id="order-form" class="space-y-4"> | |
| <input type="hidden" id="product-name" name="product-name"> | |
| <input type="hidden" id="product-price" name="product-price"> | |
| <div> | |
| <label for="customer-name" class="block mb-1 font-medium">Full Name*</label> | |
| <input type="text" id="customer-name" required class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring-2 focus:ring-amber-300"> | |
| </div> | |
| <div> | |
| <label for="customer-phone" class="block mb-1 font-medium">Phone Number*</label> | |
| <input type="tel" id="customer-phone" required class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring-2 focus:ring-amber-300"> | |
| </div> | |
| <div> | |
| <label for="customer-email" class="block mb-1 font-medium">Email Address</label> | |
| <input type="email" id="customer-email" class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring-2 focus:ring-amber-300"> | |
| </div> | |
| <div> | |
| <label for="delivery-address" class="block mb-1 font-medium">Delivery Address*</label> | |
| <textarea id="delivery-address" rows="3" required class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring-2 focus:ring-amber-300"></textarea> | |
| </div> | |
| <div> | |
| <label for="quantity" class="block mb-1 font-medium">Quantity*</label> | |
| <select id="quantity" required class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring-2 focus:ring-amber-300"> | |
| <option value="1">1 Pack</option> | |
| <option value="2">2 Packs</option> | |
| <option value="3">3 Packs</option> | |
| <option value="4">4 Packs</option> | |
| <option value="5">5 Packs</option> | |
| <option value="6">6 Packs</option> | |
| <option value="12">1 Dozen (12 Packs)</option> | |
| <option value="24">2 Dozen (24 Packs)</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="delivery-date" class="block mb-1 font-medium">Preferred Delivery Date*</label> | |
| <input type="date" id="delivery-date" required class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring-2 focus:ring-amber-300"> | |
| </div> | |
| <div> | |
| <label for="special-notes" class="block mb-1 font-medium">Special Instructions</label> | |
| <textarea id="special-notes" rows="2" class="w-full px-4 py-2 rounded border border-gray-300 focus:outline-none focus:ring-2 focus:ring-amber-300"></textarea> | |
| </div> | |
| <div class="bg-amber-50 p-4 rounded-lg"> | |
| <div class="flex justify-between mb-2"> | |
| <span class="font-medium">Product:</span> | |
| <span id="modal-product-name" class="font-medium">-</span> | |
| </div> | |
| <div class="flex justify-between mb-2"> | |
| <span class="font-medium">Unit Price:</span> | |
| <span id="modal-product-price" class="font-medium">-</span> | |
| </div> | |
| <div class="flex justify-between font-bold text-lg"> | |
| <span>Total:</span> | |
| <span id="modal-total-price" class="text-amber-700">₦0</span> | |
| </div> | |
| </div> | |
| <button type="submit" class="w-full bg-amber-600 hover:bg-amber-700 text-white font-bold py-3 px-4 rounded-full transition duration-300"> | |
| Complete Order | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-gradient-to-r from-purple-900 to-indigo-800 text-white py-8"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-4 md:mb-0"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-cookie-bite text-2xl text-amber-300"></i> | |
| <span class="text-xl font-bold">Godlysnacks</span> | |
| </div> | |
| <p class="mt-2 text-amber-200 text-sm">Heavenly snacks made in Lagos</p> | |
| </div> | |
| <div class="flex space-x-6"> | |
| <a href="#home" class="hover:text-amber-300 transition">Home</a> | |
| <a href="#products" class="hover:text-amber-300 transition">Products</a> | |
| <a href="#about" class="hover:text-amber-300 transition">About</a> | |
| <a href="#contact" class="hover:text-amber-300 transition">Contact</a> | |
| </div> | |
| </div> | |
| <div class="border-t border-amber-800 mt-6 pt-6 text-sm text-center text-amber-200"> | |
| <p>© 2023 Godlysnacks. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Mobile menu toggle | |
| document.getElementById('menu-btn').addEventListener('click', function() { | |
| document.getElementById('mobile-menu').classList.toggle('hidden'); | |
| }); | |
| // Order form functions | |
| function openOrderForm(productName, productPrice) { | |
| document.getElementById('order-modal').classList.add('active'); | |
| document.getElementById('product-name').value = productName; | |
| document.getElementById('product-price').value = productPrice; | |
| document.getElementById('modal-product-name').textContent = productName; | |
| document.getElementById('modal-product-price').textContent = '₦' + productPrice.toLocaleString(); | |
| document.getElementById('order-product-title').textContent = 'Order: ' + productName; | |
| calculateTotal(); | |
| } | |
| function closeOrderForm() { | |
| document.getElementById('order-modal').classList.remove('active'); | |
| } | |
| // Calculate total price | |
| function calculateTotal() { | |
| const quantity = document.getElementById('quantity').value; | |
| const price = document.getElementById('product-price').value; | |
| const total = quantity * price; | |
| document.getElementById('modal-total-price').textContent = '₦' + total.toLocaleString(); | |
| } | |
| // Event listeners | |
| document.getElementById('quantity').addEventListener('change', calculateTotal); | |
| // Form submission | |
| document.getElementById('order-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // Here you would typically send the form data to your backend | |
| // For this example, we'll just show an alert | |
| const productName = document.getElementById('product-name').value; | |
| alert(`Thank you for your order of ${productName}! We will contact you shortly to confirm your delivery details.`); | |
| // Reset and close form | |
| this.reset(); | |
| closeOrderForm(); | |
| }); | |
| // Close modal when clicking outside | |
| document.getElementById('order-modal').addEventListener('click', function(e) { | |
| if (e.target === this) { | |
| closeOrderForm(); | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Lampcloud/chiweb" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |