Spaces:
Running
Running
Download index.html from kpearson/the-corner-store: direct link, hf CLI and curl.
- Browser
- Download file 22.2 kB
-
https://huggingface.co/spaces/kpearson/the-corner-store/resolve/main/index.html
- Command line
-
hf download hf://spaces/kpearson/the-corner-store/index.html
-
curl -L -o index.html https://huggingface.co/spaces/kpearson/the-corner-store/resolve/main/index.html
22.2 kB
| <html lang="en" class="light"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>The Corner Store - Your Neighborhood Market</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#4F46E5', | |
| secondary: '#10B981', | |
| dark: '#1F2937', | |
| light: '#F9FAFB' | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .theme-toggle { | |
| transition: all 0.3s ease; | |
| } | |
| .product-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .nav-link:after { | |
| content: ''; | |
| display: block; | |
| width: 0; | |
| height: 2px; | |
| background: currentColor; | |
| transition: width 0.3s; | |
| } | |
| .nav-link:hover:after { | |
| width: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-light text-dark transition-colors duration-300 dark:bg-dark dark:text-light"> | |
| <!-- Header --> | |
| <header class="sticky top-0 z-50 bg-white/80 backdrop-blur-md dark:bg-dark/80"> | |
| <div class="container mx-auto px-4 py-4 flex justify-between items-center"> | |
| <a href="#" class="text-2xl font-bold"> | |
| <span class="text-primary">The</span> Corner Store | |
| </a> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="#" class="nav-link">Home</a> | |
| <a href="#shop" class="nav-link">Shop</a> | |
| <a href="#about" class="nav-link">About</a> | |
| <a href="#contact" class="nav-link">Contact</a> | |
| </nav> | |
| <div class="flex items-center space-x-4"> | |
| <button id="theme-toggle" class="theme-toggle p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700"> | |
| <i data-feather="moon" class="hidden dark:block"></i> | |
| <i data-feather="sun" class="dark:hidden"></i> | |
| </button> | |
| <button class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700"> | |
| <i data-feather="shopping-cart"></i> | |
| </button> | |
| <button class="md:hidden" id="mobile-menu-button"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Mobile Menu --> | |
| <div id="mobile-menu" class="hidden md:hidden bg-white dark:bg-gray-800 py-4 px-4 absolute w-full left-0 shadow-lg"> | |
| <a href="#" class="block py-2">Home</a> | |
| <a href="#shop" class="block py-2">Shop</a> | |
| <a href="#about" class="block py-2">About</a> | |
| <a href="#contact" class="block py-2">Contact</a> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="relative h-screen flex items-center justify-center bg-gradient-to-r from-primary/10 to-secondary/10"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h1 class="text-5xl md:text-7xl font-bold mb-6">Welcome to <span class="text-primary">The Corner Store</span></h1> | |
| <p class="text-xl md:text-2xl mb-8 max-w-2xl mx-auto">Your neighborhood market for quality goods and essentials</p> | |
| <div class="flex flex-col sm:flex-row justify-center gap-4"> | |
| <a href="#shop" class="bg-primary hover:bg-primary/90 text-white px-8 py-4 rounded-full font-medium transition">Shop Now</a> | |
| <a href="#about" class="border-2 border-dark dark:border-light hover:bg-gray-100 dark:hover:bg-gray-800 px-8 py-4 rounded-full font-medium transition">Learn More</a> | |
| </div> | |
| </div> | |
| <div class="absolute bottom-10 left-1/2 transform -translate-x-1/2"> | |
| <a href="#shop" class="animate-bounce"> | |
| <i data-feather="chevron-down" class="w-10 h-10"></i> | |
| </a> | |
| </div> | |
| </section> | |
| <!-- Featured Products --> | |
| <section id="shop" class="py-20 bg-white dark:bg-gray-800"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center mb-12">Featured Products</h2> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8"> | |
| <!-- Product 1 --> | |
| <div class="product-card bg-white dark:bg-gray-700 rounded-lg overflow-hidden shadow-md transition duration-300"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="http://static.photos/food/640x360/1" alt="Fresh Produce" class="w-full h-full object-cover"> | |
| <div class="absolute top-2 right-2 bg-primary text-white px-2 py-1 rounded-full text-xs">New</div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-bold text-lg mb-2">Fresh Organic Apples</h3> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">Locally sourced organic apples</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-primary">$4.99</span> | |
| <button class="bg-secondary hover:bg-secondary/90 text-white px-4 py-2 rounded-full transition">Add to Cart</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 2 --> | |
| <div class="product-card bg-white dark:bg-gray-700 rounded-lg overflow-hidden shadow-md transition duration-300"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="http://static.photos/food/640x360/2" alt="Bakery Items" class="w-full h-full object-cover"> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-bold text-lg mb-2">Artisan Bread</h3> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">Freshly baked daily</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-primary">$5.99</span> | |
| <button class="bg-secondary hover:bg-secondary/90 text-white px-4 py-2 rounded-full transition">Add to Cart</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 3 --> | |
| <div class="product-card bg-white dark:bg-gray-700 rounded-lg overflow-hidden shadow-md transition duration-300"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="http://static.photos/food/640x360/3" alt="Dairy Products" class="w-full h-full object-cover"> | |
| <div class="absolute top-2 right-2 bg-primary text-white px-2 py-1 rounded-full text-xs">Best Seller</div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-bold text-lg mb-2">Organic Milk</h3> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">1 Gallon, hormone-free</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-primary">$3.99</span> | |
| <button class="bg-secondary hover:bg-secondary/90 text-white px-4 py-2 rounded-full transition">Add to Cart</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 4 --> | |
| <div class="product-card bg-white dark:bg-gray-700 rounded-lg overflow-hidden shadow-md transition duration-300"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="http://static.photos/food/640x360/4" alt="Pantry Staples" class="w-full h-full object-cover"> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-bold text-lg mb-2">Organic Pasta</h3> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">Whole wheat, 16oz</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-primary">$2.99</span> | |
| <button class="bg-secondary hover:bg-secondary/90 text-white px-4 py-2 rounded-full transition">Add to Cart</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center mt-12"> | |
| <a href="#" class="inline-block border-2 border-primary text-primary hover:bg-primary hover:text-white px-8 py-3 rounded-full font-medium transition">View All Products</a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- About Section --> | |
| <section id="about" class="py-20 bg-gray-100 dark:bg-gray-900"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row items-center gap-12"> | |
| <div class="md:w-1/2"> | |
| <img src="http://static.photos/retail/640x360/1" alt="Our Store" class="rounded-lg shadow-xl w-full"> | |
| </div> | |
| <div class="md:w-1/2"> | |
| <h2 class="text-3xl font-bold mb-6">Our Story</h2> | |
| <p class="text-lg mb-6">Founded in 2010, The Corner Store began as a small neighborhood market with a simple mission: to provide fresh, high-quality products to our local community.</p> | |
| <p class="text-lg mb-8">Today, we've grown into a beloved community staple while maintaining our commitment to quality, sustainability, and exceptional customer service.</p> | |
| <div class="flex flex-col sm:flex-row gap-4"> | |
| <div class="flex items-center mb-4 sm:mb-0"> | |
| <div class="bg-primary text-white p-3 rounded-full mr-4"> | |
| <i data-feather="check" class="w-6 h-6"></i> | |
| </div> | |
| <span>Locally Sourced</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="bg-primary text-white p-3 rounded-full mr-4"> | |
| <i data-feather="check" class="w-6 h-6"></i> | |
| </div> | |
| <span>Sustainable Practices</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials --> | |
| <section class="py-20 bg-white dark:bg-gray-800"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center mb-12">What Our Customers Say</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <!-- Testimonial 1 --> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-8 rounded-lg"> | |
| <div class="flex items-center mb-4"> | |
| <img src="http://static.photos/people/200x200/1" alt="Customer" class="w-12 h-12 rounded-full mr-4"> | |
| <div> | |
| <h4 class="font-bold">Sarah Johnson</h4> | |
| <div class="flex text-yellow-400"> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-300">"The Corner Store has the freshest produce in town. I love their commitment to local farmers and sustainable practices."</p> | |
| </div> | |
| <!-- Testimonial 2 --> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-8 rounded-lg"> | |
| <div class="flex items-center mb-4"> | |
| <img src="http://static.photos/people/200x200/2" alt="Customer" class="w-12 h-12 rounded-full mr-4"> | |
| <div> | |
| <h4 class="font-bold">Michael Chen</h4> | |
| <div class="flex text-yellow-400"> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-300">"Their bakery items are incredible! The sourdough bread is my weekly staple. Friendly staff and great selection."</p> | |
| </div> | |
| <!-- Testimonial 3 --> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-8 rounded-lg"> | |
| <div class="flex items-center mb-4"> | |
| <img src="http://static.photos/people/200x200/3" alt="Customer" class="w-12 h-12 rounded-full mr-4"> | |
| <div> | |
| <h4 class="font-bold">Emily Rodriguez</h4> | |
| <div class="flex text-yellow-400"> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| <i data-feather="star" class="w-4 h-4 fill-current"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-300">"I appreciate how The Corner Store supports local producers. Their organic selection is the best in the neighborhood."</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Newsletter --> | |
| <section class="py-16 bg-primary text-white"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h2 class="text-3xl font-bold mb-6">Stay Updated</h2> | |
| <p class="max-w-2xl mx-auto mb-8">Subscribe to our newsletter for weekly specials, new arrivals, and community events.</p> | |
| <form class="max-w-md mx-auto flex flex-col sm:flex-row gap-2"> | |
| <input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-full text-dark focus:outline-none"> | |
| <button type="submit" class="bg-secondary hover:bg-secondary/90 text-white px-6 py-3 rounded-full font-medium transition">Subscribe</button> | |
| </form> | |
| </div> | |
| </section> | |
| <!-- Contact Section --> | |
| <section id="contact" class="py-20 bg-white dark:bg-gray-800"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center mb-12">Visit Us</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-12"> | |
| <div> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-8 rounded-lg h-full"> | |
| <h3 class="text-xl font-bold mb-4">Store Hours</h3> | |
| <ul class="space-y-2 mb-6"> | |
| <li class="flex justify-between"> | |
| <span>Monday - Friday</span> | |
| <span>7:00 AM - 9:00 PM</span> | |
| </li> | |
| <li class="flex justify-between"> | |
| <span>Saturday</span> | |
| <span>8:00 AM - 8:00 PM</span> | |
| </li> | |
| <li class="flex justify-between"> | |
| <span>Sunday</span> | |
| <span>9:00 AM - 6:00 PM</span> | |
| </li> | |
| </ul> | |
| <h3 class="text-xl font-bold mb-4">Contact Info</h3> | |
| <ul class="space-y-3"> | |
| <li class="flex items-center"> | |
| <i data-feather="map-pin" class="mr-3"></i> | |
| <span>123 Main Street, Neighborhood, NY 10001</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="phone" class="mr-3"></i> | |
| <span>(555) 123-4567</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="mail" class="mr-3"></i> | |
| <span>hello@thecornerstore.com</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="h-full"> | |
| <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3022.215256012279!2d-73.9878449242663!3d40.74844097138898!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c259a9b3117469%3A0xd134e199a405a163!2sEmpire%20State%20Building!5e0!3m2!1sen!2sus!4v1620000000000!5m2!1sen!2sus" | |
| width="100%" height="100%" style="border:0; min-height: 400px;" allowfullscreen="" loading="lazy" class="rounded-lg shadow-lg"></iframe> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-dark text-white py-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4">The Corner Store</h3> | |
| <p class="text-gray-400">Your neighborhood market for quality goods and essentials since 2010.</p> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-4">Quick Links</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Home</a></li> | |
| <li><a href="#shop" class="text-gray-400 hover:text-white transition">Shop</a></li> | |
| <li><a href="#about" class="text-gray-400 hover:text-white transition">About</a></li> | |
| <li><a href="#contact" class="text-gray-400 hover:text-white transition">Contact</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-4">Categories</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Produce</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Dairy</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Bakery</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Pantry</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-4">Connect</h4> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i data-feather="facebook" class="w-5 h-5"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i data-feather="instagram" class="w-5 h-5"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i data-feather="twitter" class="w-5 h-5"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
| <p>© 2023 The Corner Store. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Theme Toggle | |
| const themeToggle = document.getElementById('theme-toggle'); | |
| const html = document.documentElement; | |
| themeToggle.addEventListener('click', () => { | |
| html.classList.toggle('dark'); | |
| localStorage.setItem('theme', html.classList.contains('dark') ? 'dark' : 'light'); | |
| }); | |
| // Check for saved theme preference | |
| if (localStorage.getItem('theme') === 'dark' || | |
| (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) { | |
| html.classList.add('dark'); | |
| } else { | |
| html.classList.remove('dark'); | |
| } | |
| // Mobile Menu Toggle | |
| const mobileMenuButton = document.getElementById('mobile-menu-button'); | |
| const mobileMenu = document.getElementById('mobile-menu'); | |
| mobileMenuButton.addEventListener('click', () => { | |
| mobileMenu.classList.toggle('hidden'); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |