Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>3D E-Commerce Store</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> | |
| .product-card { | |
| transform-style: preserve-3d; | |
| transition: transform 0.5s ease; | |
| box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1); | |
| } | |
| .product-image { | |
| transform: translateZ(30px); | |
| } | |
| .product-info { | |
| transform: translateZ(20px); | |
| } | |
| .hero-section { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .nav-link { | |
| position: relative; | |
| } | |
| .nav-link::after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 2px; | |
| bottom: -2px; | |
| left: 0; | |
| background-color: white; | |
| transition: width 0.3s ease; | |
| } | |
| .nav-link:hover::after { | |
| width: 100%; | |
| } | |
| @keyframes float { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-10px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| .floating { | |
| animation: float 3s ease-in-out infinite; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <!-- Navigation --> | |
| <nav class="bg-gray-900 text-white shadow-lg fixed w-full z-50"> | |
| <div class="container mx-auto px-6 py-3 flex justify-between items-center"> | |
| <div class="flex items-center space-x-4"> | |
| <div class="text-2xl font-bold"> | |
| <span class="text-blue-400">3D</span>Shop | |
| </div> | |
| </div> | |
| <div class="hidden md:flex items-center space-x-8"> | |
| <a href="#" class="nav-link">Home</a> | |
| <a href="#" class="nav-link">Products</a> | |
| <a href="#" class="nav-link">Categories</a> | |
| <a href="#" class="nav-link">About</a> | |
| <a href="#" class="nav-link">Contact</a> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <a href="#" class="text-white hover:text-blue-400"> | |
| <i class="fas fa-search"></i> | |
| </a> | |
| <a href="#" class="text-white hover:text-blue-400"> | |
| <i class="fas fa-shopping-cart"></i> | |
| <span class="bg-blue-500 text-xs rounded-full h-5 w-5 flex items-center justify-center -mt-2 -mr-2 relative">3</span> | |
| </a> | |
| <a href="#" class="text-white hover:text-blue-400"> | |
| <i class="fas fa-user"></i> | |
| </a> | |
| <button class="md:hidden focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <section class="hero-section text-white pt-32 pb-20"> | |
| <div class="container mx-auto px-6 flex flex-col md:flex-row items-center"> | |
| <div class="md:w-1/2 mb-10 md:mb-0"> | |
| <h1 class="text-4xl md:text-6xl font-bold leading-tight mb-6">Explore Our <span class="text-blue-200">3D</span> Products</h1> | |
| <p class="text-xl mb-8">Discover the future of shopping with our immersive 3D product experience.</p> | |
| <button class="bg-white text-gray-800 px-8 py-3 rounded-full font-bold hover:bg-gray-200 transition duration-300 transform hover:scale-105"> | |
| Shop Now | |
| </button> | |
| </div> | |
| <div class="md:w-1/2 flex justify-center"> | |
| <div class="relative floating"> | |
| <div class="w-64 h-64 bg-blue-400 rounded-2xl shadow-2xl transform rotate-12"></div> | |
| <div class="w-64 h-64 bg-purple-500 rounded-2xl shadow-2xl absolute top-0 left-0 transform -rotate-6"></div> | |
| <div class="w-64 h-64 bg-white rounded-2xl shadow-2xl absolute top-0 left-0 opacity-20"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Featured Products --> | |
| <section class="py-16 bg-white"> | |
| <div class="container mx-auto px-6"> | |
| <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Featured Products</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10"> | |
| <!-- Product 1 --> | |
| <div class="product-card bg-white rounded-xl p-6 cursor-pointer" | |
| onmousemove="tiltCard(this, event)" | |
| onmouseleave="resetCard(this)"> | |
| <div class="product-image mb-6 flex justify-center"> | |
| <img src="https://images.unsplash.com/photo-1546868871-7041f2a55e12?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8c21hcnR3YXRjaHxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60" | |
| alt="Smart Watch" | |
| class="w-64 h-64 object-contain"> | |
| </div> | |
| <div class="product-info"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Pro Smart Watch</h3> | |
| <div class="flex items-center mb-4"> | |
| <div class="flex text-yellow-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> | |
| <span class="text-gray-600 ml-2">(48 reviews)</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">The ultimate smartwatch with health tracking and premium design.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-2xl font-bold text-gray-800">$249.99</span> | |
| <button class="bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition"> | |
| <i class="fas fa-cart-plus"></i> Add to Cart | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 2 --> | |
| <div class="product-card bg-white rounded-xl p-6 cursor-pointer" | |
| onmousemove="tiltCard(this, event)" | |
| onmouseleave="resetCard(this)"> | |
| <div class="product-image mb-6 flex justify-center"> | |
| <img src="https://images.unsplash.com/photo-1592899677977-9c10ca588bbd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8aGVhZHBob25lc3xlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60" | |
| alt="Headphones" | |
| class="w-64 h-64 object-contain"> | |
| </div> | |
| <div class="product-info"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Noise Cancelling Headphones</h3> | |
| <div class="flex items-center mb-4"> | |
| <div class="flex text-yellow-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> | |
| <span class="text-gray-600 ml-2">(112 reviews)</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">Premium sound quality with active noise cancellation technology.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-2xl font-bold text-gray-800">$179.99</span> | |
| <button class="bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition"> | |
| <i class="fas fa-cart-plus"></i> Add to Cart | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Product 3 --> | |
| <div class="product-card bg-white rounded-xl p-6 cursor-pointer" | |
| onmousemove="tiltCard(this, event)" | |
| onmouseleave="resetCard(this)"> | |
| <div class="product-image mb-6 flex justify-center"> | |
| <img src="https://images.unsplash.com/photo-1517336714731-489689fd1ca8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8bWFjYm9va3xlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=500&q=60" | |
| alt="Laptop" | |
| class="w-64 h-64 object-contain"> | |
| </div> | |
| <div class="product-info"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Ultra Slim Laptop</h3> | |
| <div class="flex items-center mb-4"> | |
| <div class="flex text-yellow-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="far fa-star"></i> | |
| </div> | |
| <span class="text-gray-600 ml-2">(76 reviews)</span> | |
| </div> | |
| <p class="text-gray-600 mb-4">Powerful performance in an incredibly thin and light design.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-2xl font-bold text-gray-800">$1,299.99</span> | |
| <button class="bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition"> | |
| <i class="fas fa-cart-plus"></i> Add to Cart | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- 3D Experience Section --> | |
| <section class="py-20 bg-gray-100"> | |
| <div class="container mx-auto px-6"> | |
| <div class="flex flex-col md:flex-row items-center"> | |
| <div class="md:w-1/2 mb-10 md:mb-0"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-6">Immersive <span class="text-blue-500">3D</span> Shopping Experience</h2> | |
| <p class="text-gray-600 mb-6">Our 3D product visualization allows you to explore products from every angle, just like in real life. Rotate, zoom, and interact with products before making a purchase.</p> | |
| <ul class="space-y-3 mb-8"> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> | |
| <span>360° product views</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> | |
| <span>Realistic materials and textures</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> | |
| <span>Interactive product demos</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-500 mr-2"></i> | |
| <span>AR preview for compatible devices</span> | |
| </li> | |
| </ul> | |
| <button class="bg-gray-800 text-white px-6 py-3 rounded-full font-bold hover:bg-gray-700 transition"> | |
| Try 3D Demo | |
| </button> | |
| </div> | |
| <div class="md:w-1/2 flex justify-center"> | |
| <div class="relative w-full max-w-md"> | |
| <div class="w-full h-80 bg-gradient-to-br from-blue-400 to-purple-500 rounded-2xl shadow-xl transform rotate-3 product-card" | |
| onmousemove="tiltCard(this, event)" | |
| onmouseleave="resetCard(this)"> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <i class="fas fa-cube text-white text-6xl opacity-30"></i> | |
| <div class="absolute bottom-6 left-6 right-6 bg-white bg-opacity-20 backdrop-blur-sm rounded-lg p-4"> | |
| <h3 class="text-white font-bold">3D Product Viewer</h3> | |
| <p class="text-white text-sm">Drag to rotate • Scroll to zoom</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Categories --> | |
| <section class="py-16 bg-white"> | |
| <div class="container mx-auto px-6"> | |
| <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Shop by Category</h2> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6"> | |
| <div class="bg-gray-100 rounded-xl p-6 text-center hover:bg-blue-50 transition cursor-pointer transform hover:scale-105"> | |
| <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-mobile-alt text-blue-500 text-2xl"></i> | |
| </div> | |
| <h3 class="font-bold text-gray-800">Phones</h3> | |
| </div> | |
| <div class="bg-gray-100 rounded-xl p-6 text-center hover:bg-purple-50 transition cursor-pointer transform hover:scale-105"> | |
| <div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-laptop text-purple-500 text-2xl"></i> | |
| </div> | |
| <h3 class="font-bold text-gray-800">Laptops</h3> | |
| </div> | |
| <div class="bg-gray-100 rounded-xl p-6 text-center hover:bg-green-50 transition cursor-pointer transform hover:scale-105"> | |
| <div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-headphones text-green-500 text-2xl"></i> | |
| </div> | |
| <h3 class="font-bold text-gray-800">Audio</h3> | |
| </div> | |
| <div class="bg-gray-100 rounded-xl p-6 text-center hover:bg-yellow-50 transition cursor-pointer transform hover:scale-105"> | |
| <div class="bg-yellow-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-clock text-yellow-500 text-2xl"></i> | |
| </div> | |
| <h3 class="font-bold text-gray-800">Wearables</h3> | |
| </div> | |
| <div class="bg-gray-100 rounded-xl p-6 text-center hover:bg-red-50 transition cursor-pointer transform hover:scale-105"> | |
| <div class="bg-red-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-gamepad text-red-500 text-2xl"></i> | |
| </div> | |
| <h3 class="font-bold text-gray-800">Gaming</h3> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Newsletter --> | |
| <section class="py-16 bg-gray-900 text-white"> | |
| <div class="container mx-auto px-6 text-center"> | |
| <h2 class="text-3xl font-bold mb-6">Stay Updated</h2> | |
| <p class="text-gray-300 mb-8 max-w-2xl mx-auto">Subscribe to our newsletter for the latest products, deals, and 3D shopping experiences.</p> | |
| <div class="flex flex-col md:flex-row justify-center max-w-md mx-auto"> | |
| <input type="email" placeholder="Your email address" class="px-4 py-3 rounded-l-full md:rounded-r-none rounded-r-full mb-2 md:mb-0 w-full text-gray-800 focus:outline-none"> | |
| <button class="bg-blue-500 px-6 py-3 rounded-r-full md:rounded-l-none rounded-l-full font-bold hover:bg-blue-600 transition"> | |
| Subscribe | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-800 text-white py-12"> | |
| <div class="container mx-auto px-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4"><span class="text-blue-400">3D</span>Shop</h3> | |
| <p class="text-gray-400">The future of e-commerce with immersive 3D product experiences.</p> | |
| <div class="flex space-x-4 mt-4"> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-linkedin-in"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-4">Shop</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">All Products</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Featured</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">New Arrivals</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Sale Items</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-4">About</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Our Story</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">3D Technology</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Press</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-bold mb-4">Help</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">FAQs</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Shipping</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Returns</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Contact Us</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
| <p>© 2023 3DShop. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // 3D tilt effect for product cards | |
| function tiltCard(element, event) { | |
| const card = element; | |
| const cardWidth = card.offsetWidth; | |
| const cardHeight = card.offsetHeight; | |
| const centerX = card.offsetLeft + cardWidth/2; | |
| const centerY = card.offsetTop + cardHeight/2; | |
| const mouseX = event.clientX - centerX; | |
| const mouseY = event.clientY - centerY; | |
| const rotateX = (mouseY / cardHeight) * 10; // Reduced rotation for subtle effect | |
| const rotateY = -(mouseX / cardWidth) * 10; | |
| card.style.transform = `perspective(1000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale(1.03)`; | |
| // Add shadow effect based on mouse position | |
| const shadowX = (mouseX / cardWidth) * 20; | |
| const shadowY = (mouseY / cardHeight) * 20; | |
| const shadowBlur = 30; | |
| card.style.boxShadow = `${-shadowX}px ${-shadowY}px ${shadowBlur}px rgba(0, 0, 0, 0.2)`; | |
| } | |
| function resetCard(element) { | |
| element.style.transform = 'perspective(1000px) rotateX(0) rotateY(0) scale(1)'; | |
| element.style.boxShadow = '0 20px 30px rgba(0, 0, 0, 0.1)'; | |
| } | |
| // Add event listeners to all product cards | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const productCards = document.querySelectorAll('.product-card'); | |
| productCards.forEach(card => { | |
| card.addEventListener('mousemove', (e) => tiltCard(card, e)); | |
| card.addEventListener('mouseleave', () => resetCard(card)); | |
| }); | |
| // Simple cart animation | |
| const cartButtons = document.querySelectorAll('button:has(.fa-cart-plus)'); | |
| cartButtons.forEach(button => { | |
| button.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const cartIcon = document.querySelector('.fa-shopping-cart'); | |
| // Create flying product animation | |
| const productImg = this.closest('.product-card').querySelector('img').cloneNode(true); | |
| productImg.style.position = 'fixed'; | |
| productImg.style.width = '50px'; | |
| productImg.style.height = '50px'; | |
| productImg.style.borderRadius = '50%'; | |
| productImg.style.objectFit = 'cover'; | |
| productImg.style.zIndex = '1000'; | |
| productImg.style.top = this.getBoundingClientRect().top + 'px'; | |
| productImg.style.left = this.getBoundingClientRect().left + 'px'; | |
| productImg.style.transition = 'all 0.5s cubic-bezier(0.5, -0.5, 0.5, 1.5)'; | |
| document.body.appendChild(productImg); | |
| // Animate to cart | |
| setTimeout(() => { | |
| const cartRect = cartIcon.getBoundingClientRect(); | |
| productImg.style.top = (cartRect.top + 10) + 'px'; | |
| productImg.style.left = (cartRect.left + 10) + 'px'; | |
| productImg.style.width = '20px'; | |
| productImg.style.height = '20px'; | |
| productImg.style.opacity = '0.5'; | |
| }, 0); | |
| // Remove after animation | |
| setTimeout(() => { | |
| productImg.remove(); | |
| // Update cart count with animation | |
| const cartCount = document.querySelector('.fa-shopping-cart + span'); | |
| if (cartCount) { | |
| cartCount.textContent = parseInt(cartCount.textContent) + 1; | |
| cartCount.classList.add('animate-bounce'); | |
| setTimeout(() => cartCount.classList.remove('animate-bounce'), 1000); | |
| } | |
| }, 500); | |
| }); | |
| }); | |
| }); | |
| </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=1111111malik/my-old" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |