Spaces:
l
Running

l / index.html
greatisiw92's picture
Add 3 files
1225439 verified
Raw History Blame Contribute Delete
31.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lumin - Modern Product Showcase</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
neonpink: '#ff6ec7',
electricpurple: '#a45cff',
cyberblue: '#00d2ff',
limegreen: '#a3ff47',
vibrantorange: '#ff8a3d',
deepmagenta: '#ff2d75',
aquateal: '#2de1ff',
cosmicpurple: '#8a2be2',
galaxyblue: '#1e00ff',
},
animation: {
'float': 'float 6s ease-in-out infinite',
'pulse': 'pulse 3s ease infinite',
'bounce-slow': 'bounce-slow 4s infinite',
'spin-slow': 'spin-slow 12s linear infinite',
'fade-in': 'fadeIn 0.8s ease-out forwards',
'slide-up': 'slideUp 0.6s ease-out forwards',
'glow': 'glow 2s ease-in-out infinite alternate',
'wave': 'wave 8s ease-in-out infinite',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-10px)' }
},
pulse: {
'0%, 100%': { transform: 'scale(1)' },
'50%': { transform: 'scale(1.03)' }
},
'bounce-slow': {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-15px)' }
},
'spin-slow': {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' }
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' }
},
slideUp: {
'0%': { transform: 'translateY(20px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' }
},
glow: {
'0%': { 'box-shadow': '0 0 5px #a45cff' },
'100%': { 'box-shadow': '0 0 20px #a45cff' }
},
wave: {
'0%, 100%': { 'background-position': '0% 50%' },
'50%': { 'background-position': '100% 50%' }
}
}
}
}
}
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-text {
background: linear-gradient(45deg, #ff6ec7, #a45cff, #00d2ff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
background-size: 300% 300%;
animation: gradient 8s ease infinite;
}
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.product-card {
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
transform-style: preserve-3d;
perspective: 1000px;
}
.product-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.product-image-container {
position: relative;
overflow: hidden;
border-radius: 16px;
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}
.product-image {
transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
transform-origin: center center;
}
.product-card:hover .product-image {
transform: scale(1.1) rotate(2deg);
}
.color-option {
transition: all 0.3s ease;
transform: scale(1);
}
.color-option:hover {
transform: scale(1.2);
box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}
.add-to-cart {
transition: all 0.3s ease;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.add-to-cart:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}
.wishlist-btn {
transition: all 0.3s ease;
}
.wishlist-btn:hover {
color: #ff2d75;
transform: scale(1.2);
}
.category-tag {
animation: fadeIn 0.6s ease-out forwards;
animation-delay: calc(var(--order) * 0.1s);
}
.product-item {
animation: slideUp 0.6s ease-out forwards;
animation-delay: calc(var(--order) * 0.1s);
opacity: 0;
}
.liquid-drop {
position: absolute;
border-radius: 50%;
filter: blur(40px);
opacity: 0.15;
z-index: -1;
mix-blend-mode: overlay;
}
.price-tag {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.discount-badge {
position: absolute;
top: 12px;
right: 12px;
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
transform: rotate(15deg);
animation: bounce-slow 2s infinite;
}
.featured-product {
background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
backdrop-filter: blur(10px);
border-radius: 24px;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
overflow: hidden;
}
.featured-bg {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: wave 15s ease infinite;
}
.tech-spec {
transition: all 0.3s ease;
}
.tech-spec:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.color-selector {
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.color-selector:hover {
transform: scale(1.2);
}
.color-selector.active::after {
content: '';
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -4px;
border: 2px solid white;
border-radius: 50%;
box-shadow: 0 0 0 2px currentColor;
}
.floating-icons {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
}
.floating-icon {
position: absolute;
opacity: 0.6;
filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 overflow-x-hidden">
<!-- Product Section -->
<section class="py-20 px-4 sm:px-6 lg:px-8 relative overflow-hidden">
<!-- Liquid background elements -->
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<div class="liquid-drop w-64 h-64 bg-neonpink top-1/4 -left-20 animate-[float_8s_ease-in-out_infinite]" style="animation-delay: 0s;"></div>
<div class="liquid-drop w-80 h-80 bg-electricpurple top-1/3 right-0 animate-[float_10s_ease-in-out_infinite]" style="animation-delay: 2s;"></div>
<div class="liquid-drop w-96 h-96 bg-cyberblue bottom-0 left-1/4 animate-[float_12s_ease-in-out_infinite]" style="animation-delay: 1s;"></div>
</div>
<div class="max-w-7xl mx-auto relative">
<!-- Section Header -->
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold mb-4">
<span class="gradient-text">Featured</span> Products
</h2>
<p class="text-lg text-gray-600 max-w-2xl mx-auto">
Discover our premium collection of innovative products designed for modern living
</p>
</div>
<!-- Featured Product -->
<div class="featured-product mb-20 p-8 md:p-12 grid grid-cols-1 lg:grid-cols-2 gap-12 relative overflow-hidden">
<div class="floating-icons">
<i class="floating-icon fas fa-circle text-neonpink text-xs animate-[float_8s_ease-in-out_infinite]" style="top: 10%; left: 15%; animation-delay: 0s;"></i>
<i class="floating-icon fas fa-circle text-electricpurple text-sm animate-[float_10s_ease-in-out_infinite]" style="top: 70%; left: 80%; animation-delay: 2s;"></i>
<i class="floating-icon fas fa-circle text-cyberblue text-base animate-[float_12s_ease-in-out_infinite]" style="top: 30%; left: 85%; animation-delay: 1s;"></i>
<i class="floating-icon fas fa-circle text-limegreen text-xs animate-[float_9s_ease-in-out_infinite]" style="top: 80%; left: 10%; animation-delay: 3s;"></i>
</div>
<div class="flex flex-col justify-center">
<div class="mb-4">
<span class="featured-bg text-white px-4 py-1 rounded-full text-sm font-bold inline-block">BESTSELLER</span>
</div>
<h3 class="text-3xl md:text-4xl font-bold mb-4">Cosmic Wireless Earbuds Pro</h3>
<p class="text-lg text-gray-600 mb-6">Experience crystal-clear sound with our premium noise-canceling wireless earbuds featuring 30-hour battery life and touch controls.</p>
<div class="flex items-center mb-6">
<div class="flex mr-4">
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
</div>
<span class="text-gray-500">4.9 (1,248 reviews)</span>
</div>
<div class="mb-8">
<span class="text-4xl font-bold text-electricpurple">$199.99</span>
<span class="text-lg text-gray-500 line-through ml-2">$249.99</span>
<span class="bg-red-100 text-red-600 px-2 py-1 rounded ml-2 text-sm font-bold">20% OFF</span>
</div>
<div class="mb-8">
<h4 class="font-bold mb-3">Colors</h4>
<div class="flex space-x-4">
<div class="color-selector active bg-cosmicpurple" data-color="cosmicpurple"></div>
<div class="color-selector bg-galaxyblue" data-color="galaxyblue"></div>
<div class="color-selector bg-gray-800" data-color="black"></div>
<div class="color-selector bg-white border border-gray-300" data-color="white"></div>
</div>
</div>
<div class="flex flex-wrap gap-4 mb-8">
<div class="tech-spec bg-white px-4 py-3 rounded-lg shadow-sm flex items-center">
<i class="fas fa-bluetooth text-electricpurple mr-2"></i>
<span>Bluetooth 5.2</span>
</div>
<div class="tech-spec bg-white px-4 py-3 rounded-lg shadow-sm flex items-center">
<i class="fas fa-volume-up text-electricpurple mr-2"></i>
<span>Active Noise Canceling</span>
</div>
<div class="tech-spec bg-white px-4 py-3 rounded-lg shadow-sm flex items-center">
<i class="fas fa-battery-full text-electricpurple mr-2"></i>
<span>30h Battery</span>
</div>
</div>
<div class="flex space-x-4">
<button class="add-to-cart px-8 py-3 text-white font-medium rounded-lg flex-1 text-center">
<i class="fas fa-shopping-cart mr-2"></i> Add to Cart
</button>
<button class="wishlist-btn px-4 py-3 bg-white border border-gray-200 rounded-lg hover:bg-gray-50">
<i class="far fa-heart text-lg"></i>
</button>
</div>
</div>
<div class="relative">
<div class="product-image-container h-full w-full">
<img src="https://images.unsplash.com/photo-1618366712010-f4ae9b647dc5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80"
alt="Cosmic Wireless Earbuds Pro"
class="product-image w-full h-full object-contain p-8">
</div>
<div class="absolute -bottom-6 -right-6 bg-electricpurple text-white px-4 py-2 rounded-full font-bold rotate-12 animate-[bounce-slow_3s_infinite]">
Editor's Choice
</div>
</div>
</div>
<!-- Category Filters -->
<div class="flex flex-wrap justify-center gap-3 mb-12">
<button class="category-tag px-5 py-2 rounded-full bg-white shadow-sm hover:shadow-md transition-all duration-300" style="--order: 0;">
All Products
</button>
<button class="category-tag px-5 py-2 rounded-full bg-white shadow-sm hover:shadow-md transition-all duration-300" style="--order: 1;">
<i class="fas fa-headphones mr-2 text-neonpink"></i> Audio
</button>
<button class="category-tag px-5 py-2 rounded-full bg-white shadow-sm hover:shadow-md transition-all duration-300" style="--order: 2;">
<i class="fas fa-mobile-screen mr-2 text-electricpurple"></i> Tech
</button>
<button class="category-tag px-5 py-2 rounded-full bg-white shadow-sm hover:shadow-md transition-all duration-300" style="--order: 3;">
<i class="fas fa-home mr-2 text-cyberblue"></i> Home
</button>
<button class="category-tag px-5 py-2 rounded-full bg-white shadow-sm hover:shadow-md transition-all duration-300" style="--order: 4;">
<i class="fas fa-watch mr-2 text-deepmagenta"></i> Wearables
</button>
</div>
<!-- Product Grid -->
<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-item product-card bg-white rounded-2xl p-5 shadow-lg" style="--order: 0;">
<div class="product-image-container h-64 mb-5 relative">
<img src="https://images.unsplash.com/photo-1572635196234-14e3d919b093?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80"
alt="Round Sunglasses"
class="product-image w-full h-full object-contain p-4">
<div class="discount-badge px-3 py-1 text-xs font-bold text-white rounded-full">
-20%
</div>
</div>
<div class="flex justify-between items-start mb-3">
<div>
<h3 class="font-bold text-lg">Round Sunglasses</h3>
<p class="text-sm text-gray-500">Classic retro style</p>
</div>
<div class="price-tag px-3 py-1 text-white text-sm font-bold rounded-full">
$89.99
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<div class="color-option w-5 h-5 rounded-full bg-neonpink cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-electricpurple cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-cyberblue cursor-pointer"></div>
</div>
<div class="flex space-x-3">
<button class="wishlist-btn text-gray-400 hover:text-deepmagenta">
<i class="far fa-heart"></i>
</button>
<button class="add-to-cart px-4 py-2 text-white text-sm font-medium rounded-lg">
<i class="fas fa-shopping-cart mr-2"></i> Add
</button>
</div>
</div>
</div>
<!-- Product 2 -->
<div class="product-item product-card bg-white rounded-2xl p-5 shadow-lg" style="--order: 1;">
<div class="product-image-container h-64 mb-5 relative">
<img src="https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80"
alt="Minimal Watch"
class="product-image w-full h-full object-contain p-4">
</div>
<div class="flex justify-between items-start mb-3">
<div>
<h3 class="font-bold text-lg">Minimal Watch</h3>
<p class="text-sm text-gray-500">Elegant timekeeping</p>
</div>
<div class="price-tag px-3 py-1 text-white text-sm font-bold rounded-full">
$129.99
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<div class="color-option w-5 h-5 rounded-full bg-gray-800 cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-rose-200 cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-limegreen cursor-pointer"></div>
</div>
<div class="flex space-x-3">
<button class="wishlist-btn text-gray-400 hover:text-deepmagenta">
<i class="far fa-heart"></i>
</button>
<button class="add-to-cart px-4 py-2 text-white text-sm font-medium rounded-lg">
<i class="fas fa-shopping-cart mr-2"></i> Add
</button>
</div>
</div>
</div>
<!-- Product 3 -->
<div class="product-item product-card bg-white rounded-2xl p-5 shadow-lg" style="--order: 2;">
<div class="product-image-container h-64 mb-5 relative">
<img src="https://images.unsplash.com/photo-1583394838336-acd977736f90?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80"
alt="Round Bottle"
class="product-image w-full h-full object-contain p-4">
<div class="discount-badge px-3 py-1 text-xs font-bold text-white rounded-full">
-15%
</div>
</div>
<div class="flex justify-between items-start mb-3">
<div>
<h3 class="font-bold text-lg">Round Bottle</h3>
<p class="text-sm text-gray-500">Sustainable hydration</p>
</div>
<div class="price-tag px-3 py-1 text-white text-sm font-bold rounded-full">
$34.99
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<div class="color-option w-5 h-5 rounded-full bg-aquateal cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-vibrantorange cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-deepmagenta cursor-pointer"></div>
</div>
<div class="flex space-x-3">
<button class="wishlist-btn text-gray-400 hover:text-deepmagenta">
<i class="fas fa-heart text-deepmagenta"></i>
</button>
<button class="add-to-cart px-4 py-2 text-white text-sm font-medium rounded-lg">
<i class="fas fa-shopping-cart mr-2"></i> Add
</button>
</div>
</div>
</div>
<!-- Product 4 -->
<div class="product-item product-card bg-white rounded-2xl p-5 shadow-lg" style="--order: 3;">
<div class="product-image-container h-64 mb-5 relative">
<img src="https://images.unsplash.com/photo-1594035910387-fea47794261f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80"
alt="Round Speaker"
class="product-image w-full h-full object-contain p-4">
</div>
<div class="flex justify-between items-start mb-3">
<div>
<h3 class="font-bold text-lg">Round Speaker</h3>
<p class="text-sm text-gray-500">360° sound experience</p>
</div>
<div class="price-tag px-3 py-1 text-white text-sm font-bold rounded-full">
$149.99
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<div class="color-option w-5 h-5 rounded-full bg-gray-700 cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-amber-300 cursor-pointer"></div>
<div class="color-option w-5 h-5 rounded-full bg-white border border-gray-300 cursor-pointer"></div>
</div>
<div class="flex space-x-3">
<button class="wishlist-btn text-gray-400 hover:text-deepmagenta">
<i class="far fa-heart"></i>
</button>
<button class="add-to-cart px-4 py-2 text-white text-sm font-medium rounded-lg">
<i class="fas fa-shopping-cart mr-2"></i> Add
</button>
</div>
</div>
</div>
</div>
<!-- View More Button -->
<div class="text-center mt-16">
<button class="px-8 py-3 bg-white border-2 border-electricpurple text-electricpurple font-medium rounded-full hover:bg-electricpurple hover:text-white transition-all duration-300 hover:shadow-lg animate-[glow_2s_infinite]">
View All Products <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</section>
<script>
// Product hover effects
document.addEventListener('DOMContentLoaded', function() {
const productCards = document.querySelectorAll('.product-card');
productCards.forEach(card => {
card.addEventListener('mouseenter', () => {
const img = card.querySelector('.product-image');
img.style.transform = 'scale(1.1) rotate(2deg)';
});
card.addEventListener('mouseleave', () => {
const img = card.querySelector('.product-image');
img.style.transform = 'scale(1) rotate(0)';
});
});
// Color selection
const colorOptions = document.querySelectorAll('.color-option, .color-selector');
colorOptions.forEach(option => {
option.addEventListener('click', function() {
// Remove active state from siblings
if (this.parentNode) {
this.parentNode.querySelectorAll('.color-option, .color-selector').forEach(sibling => {
sibling.classList.remove('ring-2', 'ring-offset-2', 'active');
});
}
// Add active state to clicked option
this.classList.add('ring-2', 'ring-offset-2', 'active');
// Change featured product image based on color selection
if (this.classList.contains('color-selector')) {
const color = this.getAttribute('data-color');
const featuredImg = document.querySelector('.featured-product .product-image');
// In a real implementation, you would swap the image source based on color
console.log(`Selected color: ${color}`);
// Example of changing a visual indicator
const colorNameMap = {
'cosmicpurple': 'Cosmic Purple',
'galaxyblue': 'Galaxy Blue',
'black': 'Matte Black',
'white': 'Pearl White'
};
// Update product title to reflect color selection
const productTitle = document.querySelector('.featured-product h3');
productTitle.textContent = `${colorNameMap[color]} Wireless Earbuds Pro`;
}
});
});
// Wishlist toggle
const wishlistButtons = document.querySelectorAll('.wishlist-btn');
wishlistButtons.forEach(button => {
button.addEventListener('click', function() {
const icon = this.querySelector('i');
if (icon.classList.contains('far')) {
icon.classList.remove('far');
icon.classList.add('fas', 'text-deepmagenta');
} else {
icon.classList.remove('fas', 'text-deepmagenta');
icon.classList.add('far');
}
});
});
// Add to cart animation
const addToCartButtons = document.querySelectorAll('.add-to-cart');
addToCartButtons.forEach(button => {
button.addEventListener('click', function() {
this.innerHTML = '<i class="fas fa-check mr-2"></i> Added';
this.classList.add('bg-green-500');
setTimeout(() => {
this.innerHTML = '<i class="fas fa-shopping-cart mr-2"></i> Add to Cart';
this.classList.remove('bg-green-500');
}, 2000);
// Cart counter animation
const cartCounter = document.getElementById('cart-counter');
if (cartCounter) {
cartCounter.classList.add('animate-[bounce_0.5s]');
setTimeout(() => {
cartCounter.classList.remove('animate-[bounce_0.5s]');
}, 500);
}
});
});
// Initialize featured product color selector
const defaultColorSelector = document.querySelector('.color-selector.active');
if (defaultColorSelector) {
defaultColorSelector.classList.add('ring-2', 'ring-offset-2');
}
});
</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/l" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>