Spaces:
Running
Running
Download index.html from greatisiw92/cool: direct link, hf CLI and curl.
- Browser
- Download file 14.3 kB
-
https://huggingface.co/spaces/greatisiw92/cool/resolve/main/index.html
- Command line
-
hf download hf://spaces/greatisiw92/cool/index.html
-
curl -L -o index.html https://huggingface.co/spaces/greatisiw92/cool/resolve/main/index.html
14.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Minimal 3D Featured Products</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=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #f9f9f9; | |
| } | |
| .product-card { | |
| perspective: 1000px; | |
| transition: all 0.3s ease; | |
| } | |
| .product-inner { | |
| position: relative; | |
| width: 100%; | |
| height: 100%; | |
| transform-style: preserve-3d; | |
| transition: transform 0.8s; | |
| } | |
| .product-card:hover .product-inner { | |
| transform: rotateY(15deg) rotateX(5deg) translateY(-5px); | |
| } | |
| .product-front, .product-back { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| backface-visibility: hidden; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| box-shadow: 0 15px 35px rgba(0,0,0,0.1); | |
| } | |
| .product-back { | |
| transform: rotateY(180deg); | |
| background: white; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 20px; | |
| } | |
| .product-image { | |
| transition: all 0.5s ease; | |
| transform: translateZ(20px); | |
| } | |
| .product-card:hover .product-image { | |
| transform: translateZ(30px) scale(1.05); | |
| } | |
| .price-tag { | |
| clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%, 10% 50%); | |
| } | |
| @keyframes float { | |
| 0% { transform: translateY(0px) rotate(0deg); } | |
| 50% { transform: translateY(-10px) rotate(2deg); } | |
| 100% { transform: translateY(0px) rotate(0deg); } | |
| } | |
| .floating { | |
| animation: float 6s ease-in-out infinite; | |
| } | |
| .delay-1 { | |
| animation-delay: 0.2s; | |
| } | |
| .delay-2 { | |
| animation-delay: 0.4s; | |
| } | |
| .delay-3 { | |
| animation-delay: 0.6s; | |
| } | |
| .glow { | |
| box-shadow: 0 0 15px rgba(255,255,255,0.8); | |
| } | |
| .hover-glow:hover { | |
| box-shadow: 0 0 25px rgba(0,0,0,0.15); | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%); | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen py-12 px-4 sm:px-6 lg:px-8"> | |
| <div class="max-w-7xl mx-auto"> | |
| <!-- Header --> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl sm:text-4xl font-bold text-gray-800 mb-4">Featured Collection</h2> | |
| <p class="text-gray-500 max-w-2xl mx-auto">Discover our carefully curated selection of premium products with innovative designs</p> | |
| </div> | |
| <!-- Products Grid --> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <!-- Product 1 --> | |
| <div class="product-card h-96 floating"> | |
| <div class="product-inner h-full"> | |
| <div class="product-front gradient-bg rounded-xl p-6 flex flex-col"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <span class="bg-white text-gray-800 px-3 py-1 rounded-full text-xs font-medium">BESTSELLER</span> | |
| <button class="text-gray-400 hover:text-gray-600 transition-colors"> | |
| <i class="far fa-heart text-xl"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 flex items-center justify-center"> | |
| <img src="https://images.unsplash.com/photo-1523275335684-37898b6baf30?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="Minimal Watch" | |
| class="product-image w-64 h-64 object-contain"> | |
| </div> | |
| <div class="mt-auto"> | |
| <h3 class="font-semibold text-gray-800 text-lg">Minimal Chrono</h3> | |
| <div class="flex justify-between items-center mt-2"> | |
| <span class="price-tag bg-gray-800 text-white px-4 py-1 font-medium">$249</span> | |
| <button class="text-gray-600 hover:text-gray-900 transition-colors"> | |
| <i class="fas fa-arrow-right"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="product-back"> | |
| <h3 class="font-bold text-gray-800 text-xl mb-2">Minimal Chrono</h3> | |
| <p class="text-gray-600 text-sm text-center mb-4">Premium stainless steel watch with sapphire crystal glass and Swiss movement</p> | |
| <div class="flex space-x-2 mb-6"> | |
| <span class="w-4 h-4 rounded-full bg-gray-800"></span> | |
| <span class="w-4 h-4 rounded-full bg-rose-500"></span> | |
| <span class="w-4 h-4 rounded-full bg-blue-500"></span> | |
| </div> | |
| <button class="bg-gray-800 hover:bg-gray-700 text-white px-6 py-2 rounded-full transition-colors"> | |
| Add to Cart | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 2 --> | |
| <div class="product-card h-96 floating delay-1"> | |
| <div class="product-inner h-full"> | |
| <div class="product-front gradient-bg rounded-xl p-6 flex flex-col"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <span class="bg-white text-gray-800 px-3 py-1 rounded-full text-xs font-medium">NEW</span> | |
| <button class="text-gray-400 hover:text-gray-600 transition-colors"> | |
| <i class="far fa-heart text-xl"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 flex items-center justify-center"> | |
| <img src="https://images.unsplash.com/photo-1546868871-7041f2a55e12?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="Wireless Earbuds" | |
| class="product-image w-64 h-64 object-contain"> | |
| </div> | |
| <div class="mt-auto"> | |
| <h3 class="font-semibold text-gray-800 text-lg">AirPods Pro</h3> | |
| <div class="flex justify-between items-center mt-2"> | |
| <span class="price-tag bg-gray-800 text-white px-4 py-1 font-medium">$199</span> | |
| <button class="text-gray-600 hover:text-gray-900 transition-colors"> | |
| <i class="fas fa-arrow-right"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="product-back"> | |
| <h3 class="font-bold text-gray-800 text-xl mb-2">AirPods Pro</h3> | |
| <p class="text-gray-600 text-sm text-center mb-4">Active noise cancellation for immersive sound. Transparency mode for hearing the world around you.</p> | |
| <div class="flex space-x-2 mb-6"> | |
| <span class="w-4 h-4 rounded-full bg-gray-800"></span> | |
| <span class="w-4 h-4 rounded-full bg-white border border-gray-300"></span> | |
| </div> | |
| <button class="bg-gray-800 hover:bg-gray-700 text-white px-6 py-2 rounded-full transition-colors"> | |
| Add to Cart | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 3 --> | |
| <div class="product-card h-96 floating delay-2"> | |
| <div class="product-inner h-full"> | |
| <div class="product-front gradient-bg rounded-xl p-6 flex flex-col"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <span class="bg-white text-gray-800 px-3 py-1 rounded-full text-xs font-medium">LIMITED</span> | |
| <button class="text-gray-400 hover:text-gray-600 transition-colors"> | |
| <i class="far fa-heart text-xl"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 flex items-center justify-center"> | |
| <img src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" | |
| alt="Camera Lens" | |
| class="product-image w-64 h-64 object-contain"> | |
| </div> | |
| <div class="mt-auto"> | |
| <h3 class="font-semibold text-gray-800 text-lg">Prime Lens 50mm</h3> | |
| <div class="flex justify-between items-center mt-2"> | |
| <span class="price-tag bg-gray-800 text-white px-4 py-1 font-medium">$399</span> | |
| <button class="text-gray-600 hover:text-gray-900 transition-colors"> | |
| <i class="fas fa-arrow-right"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="product-back"> | |
| <h3 class="font-bold text-gray-800 text-xl mb-2">Prime Lens 50mm</h3> | |
| <p class="text-gray-600 text-sm text-center mb-4">Professional f/1.4 aperture for beautiful bokeh and excellent performance in low light.</p> | |
| <div class="flex items-center justify-center space-x-4 mb-6"> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded">Weather Sealed</span> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded">Metal Mount</span> | |
| </div> | |
| <button class="bg-gray-800 hover:bg-gray-700 text-white px-6 py-2 rounded-full transition-colors"> | |
| Add to Cart | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- View All Button --> | |
| <div class="text-center mt-16"> | |
| <button class="relative overflow-hidden group bg-gray-800 hover:bg-gray-700 text-white px-8 py-3 rounded-full transition-colors"> | |
| <span class="relative z-10">View All Products</span> | |
| <span class="absolute inset-0 bg-gradient-to-r from-blue-500 to-purple-500 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></span> | |
| </button> | |
| </div> | |
| </div> | |
| <script> | |
| // Add interactive effects | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const productCards = document.querySelectorAll('.product-card'); | |
| productCards.forEach(card => { | |
| // Flip card on click | |
| card.addEventListener('click', function(e) { | |
| // Don't flip if clicking on buttons | |
| if (e.target.closest('button') || e.target.tagName === 'BUTTON') return; | |
| const inner = this.querySelector('.product-inner'); | |
| const isFlipped = inner.style.transform.includes('rotateY(180deg)'); | |
| if (isFlipped) { | |
| inner.style.transform = ''; | |
| } else { | |
| inner.style.transform = 'rotateY(180deg)'; | |
| } | |
| }); | |
| // Add glow effect on hover | |
| card.addEventListener('mouseenter', function() { | |
| this.classList.add('glow'); | |
| }); | |
| card.addEventListener('mouseleave', function() { | |
| this.classList.remove('glow'); | |
| }); | |
| }); | |
| // Add floating effect to view all button | |
| const viewAllBtn = document.querySelector('.text-center button'); | |
| viewAllBtn.addEventListener('mouseenter', function() { | |
| this.classList.add('hover-glow'); | |
| }); | |
| viewAllBtn.addEventListener('mouseleave', function() { | |
| this.classList.remove('hover-glow'); | |
| }); | |
| }); | |
| </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=greatisiw92/cool" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |