Spaces:
Running
Running
Download index.html from Huginone/anycoder-6c11c40e: direct link, hf CLI and curl.
- Browser
- Download file 18.8 kB
-
https://huggingface.co/spaces/Huginone/anycoder-6c11c40e/resolve/main/index.html
- Command line
-
hf download hf://spaces/Huginone/anycoder-6c11c40e/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Huginone/anycoder-6c11c40e/resolve/main/index.html
18.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Ray-Ban | Meta Wayfarer - Gen 2 | Azul C贸smico</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --primary-color: #000; | |
| --secondary-color: #fff; | |
| --accent-color: #0066cc; | |
| --text-color: #333; | |
| --light-gray: #f5f5f5; | |
| --medium-gray: #e0e0e0; | |
| --dark-gray: #757575; | |
| --transition: all 0.3s ease; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Helvetica Neue', Arial, sans-serif; | |
| line-height: 1.6; | |
| color: var(--text-color); | |
| background-color: var(--light-gray); | |
| } | |
| /* Header */ | |
| header { | |
| background-color: var(--secondary-color); | |
| padding: 1rem 2rem; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .header-container { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| color: var(--primary-color); | |
| text-decoration: none; | |
| } | |
| .nav-links { | |
| display: flex; | |
| gap: 2rem; | |
| } | |
| .nav-links a { | |
| text-decoration: none; | |
| color: var(--primary-color); | |
| font-weight: 500; | |
| transition: var(--transition); | |
| } | |
| .nav-links a:hover { | |
| color: var(--accent-color); | |
| } | |
| .header-actions { | |
| display: flex; | |
| gap: 1.5rem; | |
| align-items: center; | |
| } | |
| .header-actions a { | |
| color: var(--primary-color); | |
| text-decoration: none; | |
| font-size: 1.2rem; | |
| transition: var(--transition); | |
| } | |
| .header-actions a:hover { | |
| color: var(--accent-color); | |
| } | |
| .anycoder-link { | |
| font-size: 0.8rem; | |
| color: var(--dark-gray); | |
| text-decoration: none; | |
| margin-left: 1rem; | |
| } | |
| /* Main Content */ | |
| main { | |
| max-width: 1400px; | |
| margin: 2rem auto; | |
| padding: 0 2rem; | |
| } | |
| .product-container { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 3rem; | |
| margin-bottom: 4rem; | |
| } | |
| /* Product Images */ | |
| .product-images { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .main-image { | |
| width: 100%; | |
| height: 500px; | |
| object-fit: contain; | |
| background-color: var(--secondary-color); | |
| border-radius: 8px; | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); | |
| } | |
| .thumbnail-container { | |
| display: flex; | |
| gap: 1rem; | |
| overflow-x: auto; | |
| padding-bottom: 0.5rem; | |
| } | |
| .thumbnail { | |
| width: 80px; | |
| height: 80px; | |
| object-fit: contain; | |
| background-color: var(--secondary-color); | |
| border-radius: 6px; | |
| cursor: pointer; | |
| border: 2px solid transparent; | |
| transition: var(--transition); | |
| } | |
| .thumbnail:hover, .thumbnail.active { | |
| border-color: var(--accent-color); | |
| } | |
| /* Product Info */ | |
| .product-info { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1.5rem; | |
| } | |
| .product-title { | |
| font-size: 2rem; | |
| font-weight: 600; | |
| color: var(--primary-color); | |
| } | |
| .product-subtitle { | |
| font-size: 1.2rem; | |
| color: var(--dark-gray); | |
| } | |
| .product-price { | |
| font-size: 1.8rem; | |
| font-weight: 600; | |
| color: var(--primary-color); | |
| } | |
| .product-description { | |
| font-size: 1rem; | |
| line-height: 1.8; | |
| color: var(--text-color); | |
| } | |
| .color-options { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .color-label { | |
| font-weight: 500; | |
| margin-bottom: 0.5rem; | |
| } | |
| .color-swatches { | |
| display: flex; | |
| gap: 0.5rem; | |
| } | |
| .color-swatch { | |
| width: 30px; | |
| height: 30px; | |
| border-radius: 50%; | |
| cursor: pointer; | |
| border: 2px solid transparent; | |
| transition: var(--transition); | |
| } | |
| .color-swatch:hover, .color-swatch.active { | |
| transform: scale(1.1); | |
| border-color: var(--accent-color); | |
| } | |
| .size-options { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .size-label { | |
| font-weight: 500; | |
| margin-bottom: 0.5rem; | |
| } | |
| .size-buttons { | |
| display: flex; | |
| gap: 0.5rem; | |
| } | |
| .size-button { | |
| padding: 0.5rem 1rem; | |
| border: 1px solid var(--medium-gray); | |
| background-color: var(--secondary-color); | |
| cursor: pointer; | |
| transition: var(--transition); | |
| font-weight: 500; | |
| } | |
| .size-button:hover, .size-button.active { | |
| border-color: var(--accent-color); | |
| color: var(--accent-color); | |
| } | |
| .add-to-cart { | |
| background-color: var(--primary-color); | |
| color: var(--secondary-color); | |
| padding: 1rem 2rem; | |
| border: none; | |
| border-radius: 4px; | |
| font-size: 1rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| margin-top: 1rem; | |
| } | |
| .add-to-cart:hover { | |
| background-color: var(--accent-color); | |
| } | |
| /* Product Features */ | |
| .product-features { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 2rem; | |
| margin: 4rem 0; | |
| } | |
| .feature-card { | |
| background-color: var(--secondary-color); | |
| padding: 2rem; | |
| border-radius: 8px; | |
| box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .feature-icon { | |
| font-size: 2rem; | |
| color: var(--accent-color); | |
| } | |
| .feature-title { | |
| font-size: 1.2rem; | |
| font-weight: 600; | |
| } | |
| .feature-description { | |
| color: var(--dark-gray); | |
| } | |
| /* Footer */ | |
| footer { | |
| background-color: var(--primary-color); | |
| color: var(--secondary-color); | |
| padding: 3rem 2rem 1rem; | |
| margin-top: 4rem; | |
| } | |
| .footer-container { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-section h3 { | |
| font-size: 1.2rem; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-section ul { | |
| list-style: none; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-section a { | |
| color: var(--secondary-color); | |
| text-decoration: none; | |
| transition: var(--transition); | |
| } | |
| .footer-section a:hover { | |
| color: var(--accent-color); | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-links a { | |
| font-size: 1.5rem; | |
| transition: var(--transition); | |
| } | |
| .social-links a:hover { | |
| color: var(--accent-color); | |
| } | |
| .copyright { | |
| text-align: center; | |
| margin-top: 2rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| font-size: 0.9rem; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .header-container { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .nav-links { | |
| flex-wrap: wrap; | |
| gap: 1rem; | |
| } | |
| .product-container { | |
| grid-template-columns: 1fr; | |
| gap: 2rem; | |
| } | |
| .main-image { | |
| height: 350px; | |
| } | |
| .thumbnail-container { | |
| justify-content: center; | |
| } | |
| .product-features { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .product-title { | |
| font-size: 1.5rem; | |
| } | |
| .product-price { | |
| font-size: 1.5rem; | |
| } | |
| .header-actions { | |
| gap: 1rem; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <div class="header-container"> | |
| <a href="#" class="logo">RAY-BAN</a> | |
| <nav class="nav-links"> | |
| <a href="#">Men</a> | |
| <a href="#">Women</a> | |
| <a href="#">Kids</a> | |
| <a href="#">Collection</a> | |
| <a href="#">Meta</a> | |
| </nav> | |
| <div class="header-actions"> | |
| <a href="#"><i class="fas fa-search"></i></a> | |
| <a href="#"><i class="fas fa-user"></i></a> | |
| <a href="#"><i class="fas fa-heart"></i></a> | |
| <a href="#"><i class="fas fa-shopping-bag"></i></a> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link">Built with anycoder</a> | |
| </div> | |
| </div> | |
| </header> | |
| <main> | |
| <div class="product-container"> | |
| <div class="product-images"> | |
| <img src="https://via.placeholder.com/600x500/0066cc/ffffff?text=Ray-Ban+Meta+Wayfarer" alt="Ray-Ban Meta Wayfarer - Azul C贸smico" class="main-image" id="mainImage"> | |
| <div class="thumbnail-container"> | |
| <img src="https://via.placeholder.com/80/0066cc/ffffff?text=1" alt="Thumbnail 1" class="thumbnail active" onclick="changeImage(this)"> | |
| <img src="https://via.placeholder.com/80/0066cc/ffffff?text=2" alt="Thumbnail 2" class="thumbnail" onclick="changeImage(this)"> | |
| <img src="https://via.placeholder.com/80/0066cc/ffffff?text=3" alt="Thumbnail 3" class="thumbnail" onclick="changeImage(this)"> | |
| <img src="https://via.placeholder.com/80/0066cc/ffffff?text=4" alt="Thumbnail 4" class="thumbnail" onclick="changeImage(this)"> | |
| </div> | |
| </div> | |
| <div class="product-info"> | |
| <h1 class="product-title">Meta Wayfarer - Gen 2</h1> | |
| <p class="product-subtitle">Azul C贸smico</p> | |
| <p class="product-price">R$ 2.499,00</p> | |
| <div class="color-options"> | |
| <p class="color-label">Color: Azul C贸smico</p> | |
| <div class="color-swatches"> | |
| <div class="color-swatch" style="background-color: #0066cc;" onclick="selectColor(this)"></div> | |
| <div class="color-swatch" style="background-color: #000000;" onclick="selectColor(this)"></div> | |
| <div class="color-swatch" style="background-color: #8B4513;" onclick="selectColor(this)"></div> | |
| <div class="color-swatch" style="background-color: #C0C0C0;" onclick="selectColor(this)"></div> | |
| </div> | |
| </div> | |
| <div class="size-options"> | |
| <p class="size-label">Size</p> | |
| <div class="size-buttons"> | |
| <button class="size-button active" onclick="selectSize(this)">50mm</button> | |
| <button class="size-button" onclick="selectSize(this)">52mm</button> | |
| <button class="size-button" onclick="selectSize(this)">54mm</button> | |
| </div> | |
| </div> | |
| <button class="add-to-cart">Add to Cart</button> | |
| <div class="product-description"> | |
| <p>The Ray-Ban Meta Wayfarer - Gen 2 combines classic style with cutting-edge technology. These smart glasses feature:</p> | |
| <ul> | |
| <li>12MP ultra-wide camera for high-quality photos and videos</li> | |
| <li>Open-ear audio with dual speakers</li> | |
| <li>Voice control with Meta AI assistant</li> | |
| <li>Polarized lenses for superior sun protection</li> | |
| <li>Up to 6 hours of battery life</li> | |
| </ul> | |
| <p>Experience the perfect blend of iconic design and modern innovation with these smart sunglasses.</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="product-features"> | |
| <div class="feature-card"> | |
| <i class="fas fa-camera feature-icon"></i> | |
| <h3 class="feature-title">12MP Ultra-Wide Camera</h3> | |
| <p class="feature-description">Capture high-quality photos and videos with the dual 12MP ultra-wide cameras.</p> | |
| </div> | |
| <div class="feature-card"> | |
| <i class="fas fa-microphone feature-icon"></i> | |
| <h3 class="feature-title">Voice Control</h3> | |
| <p class="feature-description">Control your glasses with simple voice commands using the Meta AI assistant.</p> | |
| </div> | |
| <div class="feature-card"> | |
| <i class="fas fa-headphones feature-icon"></i> | |
| <h3 class="feature-title">Open-Ear Audio</h3> | |
| <p class="feature-description">Enjoy rich, immersive sound with the dual speakers that don't block your ears.</p> | |
| </div> | |
| <div class="feature-card"> | |
| <i class="fas fa-battery-full feature-icon"></i> | |
| <h3 class="feature-title">Long Battery Life</h3> | |
| <p class="feature-description">Get up to 6 hours of battery life on a single charge for all-day use.</p> | |
| </div> | |
| </div> | |
| </main> | |
| <footer> | |
| <div class="footer-container"> | |
| <div class="footer-section"> | |
| <h3>Shop</h3> | |
| <ul> | |
| <li><a href="#">Men</a></li> | |
| <li><a href="#">Women</a></li> | |
| <li><a href="#">Kids</a></li> | |
| <li><a href="#">Collection</a></li> | |
| <li><a href="#">Meta</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Support</h3> | |
| <ul> | |
| <li><a href="#">Customer Service</a></li> | |
| <li><a href="#">Track Order</a></li> | |
| <li><a href="#">Returns & Exchanges</a></li> | |
| <li><a href="#">Warranty</a></li> | |
| <li><a href="#">FAQ</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>About</h3> | |
| <ul> | |
| <li><a href="#">Our Story</a></li> | |
| <li><a href="#">Sustainability</a></li> | |
| <li><a href="#">Careers</a></li> | |
| <li><a href="#">Press</a></li> | |
| <li><a href="#">Blog</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Connect</h3> | |
| <div class="social-links"> | |
| <a href="#"><i class="fab fa-facebook"></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-youtube"></i></a> | |
| </div> | |
| <p>Sign up for our newsletter to receive exclusive offers and updates.</p> | |
| <form> | |
| <input type="email" placeholder="Your email address"> | |
| <button type="submit">Subscribe</button> | |
| </form> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| <p>© 2023 Ray-Ban. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| <script> | |
| // Image thumbnail functionality | |
| function changeImage(thumbnail) { | |
| const mainImage = document.getElementById('mainImage'); | |
| const thumbnails = document.querySelectorAll('.thumbnail'); | |
| // Remove active class from all thumbnails | |
| thumbnails.forEach(thumb => thumb.classList.remove('active')); | |
| // Add active class to clicked thumbnail | |
| thumbnail.classList.add('active'); | |
| // Change main image source (in a real app, you would have actual image paths) | |
| mainImage.src = thumbnail.src.replace('/80/', '/600/'); | |
| } | |
| // Color selection functionality | |
| function selectColor(swatch) { | |
| const swatches = document.querySelectorAll('.color-swatch'); | |
| // Remove active class from all swatches | |
| swatches.forEach(s => s.classList.remove('active')); | |
| // Add active class to clicked swatch | |
| swatch.classList.add('active'); | |
| // In a real app, you would update the product image and details based on color | |
| } | |
| // Size selection functionality | |
| function selectSize(button) { | |
| const sizeButtons = document.querySelectorAll('.size-button'); | |
| // Remove active class from all size buttons | |
| sizeButtons.forEach(btn => btn.classList.remove('active')); | |
| // Add active class to clicked button | |
| button.classList.add('active'); | |
| } | |
| // Add to cart functionality | |
| document.querySelector('.add-to-cart').addEventListener('click', function() { | |
| alert('Product added to cart!'); | |
| // In a real app, you would add the product to the cart and update the cart count | |
| }); | |
| </script> | |
| </body> | |
| </html> |