myfirst / index.html
ProEarner's picture
‎Design a sleek, modern (2025) single product page for an e-commerce store. Focus on a clean, immersive layout with: ‎ ‎1. Hero Section: ‎ - High-resolution product image (3D/360° view optional) ‎ - Minimalist title & short punchy tagline ‎ - Prominent price with discount (if applicable) ‎ ‎2. Key Features: ‎ - Bullet-point benefits with custom icons ‎ - Color/size selection (interactive buttons) ‎ - 'Add to Cart' + 'Buy Now' buttons (floating on scroll for mobile) ‎ ‎3. Social Proof: ‎ - Star rating + "X,000+ sold" badge ‎ - User-generated content gallery (hover-to-zoom) ‎ ‎4. Tech-Enhanced Elements: ‎ - AI-powered "Ask a Question" chatbot ‎ - Dynamic "In stock" counter with live updates ‎ - One-click Apple Pay/Google Pay buttons ‎ ‎5. Trust Badges: ‎ - Free returns guarantee ‎ - Sustainability credentials (if applicable) ‎ ‎Style: Ultra-clean typography (sans-serif), micro-animations on hover, dark/light mode toggle. Optimized for mobile-first browsing. - Initial Deployment
33f418f verified
Raw History Blame Contribute Delete
31.4 kB
<!DOCTYPE html>
<html lang="en" class="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nexa Pro Wireless Earbuds | Immersive Sound Experience</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>
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.floating { animation: float 3s ease-in-out infinite; }
.zoom-hover { transition: transform 0.3s ease; }
.zoom-hover:hover { transform: scale(1.05); }
.dark .dark-invert { filter: invert(1); }
.chatbot-container {
transform: translateY(100%);
transition: transform 0.3s ease;
}
.chatbot-container.open {
transform: translateY(0);
}
.product-option.selected {
box-shadow: 0 0 0 2px #3b82f6;
}
.floating-buttons {
transition: transform 0.3s ease, opacity 0.3s ease;
}
.floating-buttons.hidden {
transform: translateY(100%);
opacity: 0;
}
</style>
</head>
<body class="bg-gray-50 text-gray-900 dark:bg-gray-900 dark:text-gray-100 transition-colors duration-300">
<!-- Header -->
<header class="sticky top-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-md border-b border-gray-200 dark:border-gray-800">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<a href="#" class="text-2xl font-bold">NEXA</a>
<div class="flex items-center space-x-4">
<button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
<i class="fas fa-moon dark:hidden"></i>
<i class="fas fa-sun hidden dark:block"></i>
</button>
<a href="#" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
<i class="fas fa-shopping-cart"></i>
</a>
</div>
</div>
</header>
<main class="container mx-auto px-4 py-8">
<!-- Hero Section -->
<section class="grid grid-cols-1 lg:grid-cols-2 gap-12 mb-16">
<div class="relative">
<div class="sticky top-24">
<!-- 3D Product View -->
<div class="aspect-square bg-gradient-to-br from-blue-50 to-purple-50 dark:from-gray-800 dark:to-gray-700 rounded-2xl overflow-hidden relative">
<img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80"
alt="Nexa Pro Wireless Earbuds"
class="w-full h-full object-contain floating">
<button class="absolute top-4 right-4 bg-white dark:bg-gray-800 p-2 rounded-full shadow-md hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-rotate text-gray-700 dark:text-gray-300"></i>
</button>
</div>
<!-- Thumbnail Gallery -->
<div class="flex justify-center mt-6 space-x-3">
<button class="w-16 h-16 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 hover:border-blue-500">
<img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80"
alt="Nexa Pro Black" class="w-full h-full object-cover">
</button>
<button class="w-16 h-16 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 hover:border-blue-500">
<img src="https://images.unsplash.com/photo-1572569511254-d8f925fe2cbb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80"
alt="Nexa Pro White" class="w-full h-full object-cover">
</button>
<button class="w-16 h-16 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 hover:border-blue-500">
<img src="https://images.unsplash.com/photo-1613040809024-b4ef7ba99bc3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80"
alt="Nexa Pro Case" class="w-full h-full object-cover">
</button>
</div>
</div>
</div>
<div>
<div class="mb-6">
<span class="inline-block px-3 py-1 bg-blue-100 dark:bg-blue-900 text-blue-600 dark:text-blue-200 rounded-full text-sm font-medium">Bestseller</span>
</div>
<h1 class="text-4xl md:text-5xl font-bold mb-3">Nexa Pro Wireless Earbuds</h1>
<p class="text-xl text-gray-600 dark:text-gray-400 mb-6">Immersive 3D Sound with Active Noise Cancellation</p>
<div class="flex items-center mb-8">
<div class="flex text-yellow-400 mr-3">
<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 dark:text-gray-400">4.8 (12,457 reviews) • 50,000+ sold</span>
</div>
<div class="mb-8">
<div class="flex items-end mb-2">
<span class="text-3xl font-bold">$179.99</span>
<span class="ml-3 text-lg text-gray-500 line-through">$199.99</span>
<span class="ml-2 px-2 py-1 bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200 rounded text-sm font-medium">10% OFF</span>
</div>
<p class="text-green-600 dark:text-green-400 font-medium">
<i class="fas fa-bolt"></i> 37 units left at this price!
</p>
</div>
<!-- Color Selection -->
<div class="mb-8">
<h3 class="text-lg font-semibold mb-3">Color</h3>
<div class="flex space-x-3">
<button class="product-option w-12 h-12 rounded-full bg-gray-900 border-2 border-gray-300 selected"
data-color="black"
title="Matte Black"></button>
<button class="product-option w-12 h-12 rounded-full bg-gray-200 border-2 border-gray-300"
data-color="white"
title="Pearl White"></button>
<button class="product-option w-12 h-12 rounded-full bg-blue-600 border-2 border-gray-300"
data-color="blue"
title="Ocean Blue"></button>
<button class="product-option w-12 h-12 rounded-full bg-purple-500 border-2 border-gray-300"
data-color="purple"
title="Lavender Purple"></button>
</div>
</div>
<!-- Features -->
<div class="mb-8">
<h3 class="text-lg font-semibold mb-3">Key Features</h3>
<ul class="space-y-3">
<li class="flex items-start">
<i class="fas fa-volume-up text-blue-500 mt-1 mr-3"></i>
<span>Active Noise Cancellation with 40dB reduction</span>
</li>
<li class="flex items-start">
<i class="fas fa-clock text-blue-500 mt-1 mr-3"></i>
<span>30-hour battery life with wireless charging case</span>
</li>
<li class="flex items-start">
<i class="fas fa-tint text-blue-500 mt-1 mr-3"></i>
<span>IPX7 waterproof rating (submersible up to 1m)</span>
</li>
<li class="flex items-start">
<i class="fas fa-microphone text-blue-500 mt-1 mr-3"></i>
<span>6-mic array with AI-powered voice isolation</span>
</li>
<li class="flex items-start">
<i class="fas fa-bluetooth text-blue-500 mt-1 mr-3"></i>
<span>Bluetooth 5.3 with multi-point connectivity</span>
</li>
</ul>
</div>
<!-- CTA Buttons -->
<div class="flex flex-col sm:flex-row space-y-3 sm:space-y-0 sm:space-x-3 mb-8">
<button class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-4 px-6 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-shopping-cart mr-2"></i> Add to Cart
</button>
<button class="flex-1 bg-gray-900 hover:bg-gray-800 dark:bg-gray-100 dark:hover:bg-gray-200 dark:text-gray-900 text-white py-4 px-6 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-bolt mr-2"></i> Buy Now
</button>
</div>
<!-- Trust Badges -->
<div class="border-t border-gray-200 dark:border-gray-800 pt-6">
<div class="flex flex-wrap items-center justify-center gap-4">
<div class="flex items-center text-sm">
<i class="fas fa-shield-alt text-blue-500 mr-2"></i>
<span>2-year warranty</span>
</div>
<div class="flex items-center text-sm">
<i class="fas fa-truck text-blue-500 mr-2"></i>
<span>Free shipping</span>
</div>
<div class="flex items-center text-sm">
<i class="fas fa-undo text-blue-500 mr-2"></i>
<span>30-day returns</span>
</div>
<div class="flex items-center text-sm">
<i class="fas fa-leaf text-green-500 mr-2"></i>
<span>Eco-friendly materials</span>
</div>
</div>
</div>
</div>
</section>
<!-- User Reviews Section -->
<section class="mb-16">
<h2 class="text-2xl font-bold mb-8">What Our Customers Say</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
<!-- Review Cards -->
<div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center mb-4">
<div class="w-10 h-10 rounded-full bg-gray-300 mr-3 overflow-hidden">
<img src="https://randomuser.me/api/portraits/women/43.jpg" alt="User" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium">Sarah J.</h4>
<div class="flex text-yellow-400 text-sm">
<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>
</div>
</div>
<p class="text-gray-600 dark:text-gray-400">"The noise cancellation is incredible! I can't hear anything on my subway commute. Battery life lasts me all week with moderate use."</p>
</div>
<div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center mb-4">
<div class="w-10 h-10 rounded-full bg-gray-300 mr-3 overflow-hidden">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium">Michael T.</h4>
<div class="flex text-yellow-400 text-sm">
<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>
</div>
</div>
<p class="text-gray-600 dark:text-gray-400">"Best earbuds I've owned. The sound quality is studio-level and they fit perfectly during workouts. Only wish the case was a bit smaller."</p>
</div>
<div class="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="flex items-center mb-4">
<div class="w-10 h-10 rounded-full bg-gray-300 mr-3 overflow-hidden">
<img src="https://randomuser.me/api/portraits/women/65.jpg" alt="User" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium">Jessica L.</h4>
<div class="flex text-yellow-400 text-sm">
<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>
</div>
</div>
<p class="text-gray-600 dark:text-gray-400">"The microphone quality is amazing for calls. My colleagues say I sound clearer than when I use my laptop mic. Worth every penny!"</p>
</div>
</div>
<!-- User Photos Gallery -->
<h3 class="text-xl font-semibold mb-6">Customer Photos</h3>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1572569511254-d8f925fe2cbb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1613040809024-b4ef7ba99bc3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
<div class="aspect-square rounded-xl overflow-hidden zoom-hover">
<img src="https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80"
alt="Customer photo" class="w-full h-full object-cover cursor-zoom-in">
</div>
</div>
</section>
<!-- Tech Specs Section -->
<section class="mb-16">
<h2 class="text-2xl font-bold mb-8">Technical Specifications</h2>
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-sm overflow-hidden">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 divide-y md:divide-y-0 md:divide-x divide-gray-200 dark:divide-gray-700">
<div class="p-6">
<h3 class="font-semibold mb-4">Audio</h3>
<ul class="space-y-3 text-gray-600 dark:text-gray-400">
<li class="flex justify-between">
<span>Driver Size</span>
<span class="font-medium">11mm dynamic</span>
</li>
<li class="flex justify-between">
<span>Frequency Response</span>
<span class="font-medium">20Hz - 40kHz</span>
</li>
<li class="flex justify-between">
<span>ANC Reduction</span>
<span class="font-medium">Up to 40dB</span>
</li>
<li class="flex justify-between">
<span>Codecs</span>
<span class="font-medium">AAC, SBC, LDAC</span>
</li>
</ul>
</div>
<div class="p-6">
<h3 class="font-semibold mb-4">Battery</h3>
<ul class="space-y-3 text-gray-600 dark:text-gray-400">
<li class="flex justify-between">
<span>Earbuds</span>
<span class="font-medium">8 hours (ANC on)</span>
</li>
<li class="flex justify-between">
<span>With Case</span>
<span class="font-medium">30 hours total</span>
</li>
<li class="flex justify-between">
<span>Charging</span>
<span class="font-medium">Qi wireless / USB-C</span>
</li>
<li class="flex justify-between">
<span>Fast Charge</span>
<span class="font-medium">15 min = 2 hours</span>
</li>
</ul>
</div>
<div class="p-6">
<h3 class="font-semibold mb-4">Connectivity</h3>
<ul class="space-y-3 text-gray-600 dark:text-gray-400">
<li class="flex justify-between">
<span>Bluetooth</span>
<span class="font-medium">5.3</span>
</li>
<li class="flex justify-between">
<span>Range</span>
<span class="font-medium">Up to 30m</span>
</li>
<li class="flex justify-between">
<span>Multi-point</span>
<span class="font-medium">2 devices</span>
</li>
<li class="flex justify-between">
<span>Latency</span>
<span class="font-medium">60ms (gaming mode)</span>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section class="mb-16">
<h2 class="text-2xl font-bold mb-8">Frequently Asked Questions</h2>
<div class="space-y-4">
<div class="border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-5 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
<span class="text-left font-medium">How does the active noise cancellation work?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content px-5 pb-5 hidden">
<p class="text-gray-600 dark:text-gray-400">
The Nexa Pro earbuds use hybrid active noise cancellation with both feedforward and feedback microphones to detect and cancel external noise. Our proprietary algorithm processes sound waves in real-time to generate inverse waves that cancel out ambient noise up to 40dB, perfect for travel or noisy environments.
</p>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-5 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
<span class="text-left font-medium">Are these earbuds sweatproof?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content px-5 pb-5 hidden">
<p class="text-gray-600 dark:text-gray-400">
Yes! The Nexa Pro earbuds have an IPX7 waterproof rating, meaning they can withstand immersion in up to 1 meter of water for 30 minutes. They're perfect for workouts, running in the rain, or even accidental drops in water. The charging case is IPX4 rated for splash resistance.
</p>
</div>
</div>
<div class="border border-gray-200 dark:border-gray-700 rounded-xl overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-5 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors">
<span class="text-left font-medium">What's included in the box?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content px-5 pb-5 hidden">
<p class="text-gray-600 dark:text-gray-400">
Your Nexa Pro purchase includes: the wireless earbuds, charging case, USB-C charging cable, 3 sizes of silicone ear tips (S/M/L), quick start guide, warranty information, and our sustainability pledge. The premium edition also includes a vegan leather carrying case.
</p>
</div>
</div>
</div>
</section>
</main>
<!-- Floating CTA for Mobile -->
<div class="fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-900 shadow-lg p-4 z-40 floating-buttons hidden md:hidden">
<div class="container mx-auto flex space-x-3">
<button class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-3 px-4 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-shopping-cart mr-2"></i> Add to Cart
</button>
<button class="flex-1 bg-gray-900 hover:bg-gray-800 dark:bg-gray-100 dark:hover:bg-gray-200 dark:text-gray-900 text-white py-3 px-4 rounded-lg font-medium transition-colors flex items-center justify-center">
<i class="fas fa-bolt mr-2"></i> Buy Now
</button>
</div>
</div>
<!-- AI Chatbot -->
<div class="fixed bottom-6 right-6 z-50">
<button id="chatbot-toggle" class="w-14 h-14 bg-blue-600 hover:bg-blue-700 rounded-full shadow-lg flex items-center justify-center text-white">
<i class="fas fa-robot text-xl"></i>
</button>
<div class="chatbot-container fixed bottom-24 right-6 w-80 bg-white dark:bg-gray-800 rounded-xl shadow-xl overflow-hidden border border-gray-200 dark:border-gray-700">
<div class="bg-blue-600 text-white p-4 flex justify-between items-center">
<h3 class="font-medium">Nexa AI Assistant</h3>
<button class="chatbot-close text-white">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-4 h-60 overflow-y-auto">
<div class="mb-4">
<div class="bg-gray-100 dark:bg-gray-700 rounded-lg p-3 max-w-[80%] inline-block">
<p class="text-gray-800 dark:text-gray-200">Hi there! I'm Nexa, your AI shopping assistant. How can I help you with the Nexa Pro earbuds today?</p>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200 dark:border-gray-700">
<div class="relative">
<input type="text" placeholder="Ask a question..." class="w-full bg-gray-100 dark:bg-gray-700 rounded-full py-2 px-4 pr-10 focus:outline-none">
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 text-blue-600 dark:text-blue-400">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
<script>
// Dark mode 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');
});
// Set initial theme from localStorage
if (localStorage.getItem('theme') === 'dark' ||
(!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
html.classList.add('dark');
} else {
html.classList.remove('dark');
}
// Color selection
const colorOptions = document.querySelectorAll('.product-option');
colorOptions.forEach(option => {
option.addEventListener('click', () => {
colorOptions.forEach(opt => opt.classList.remove('selected'));
option.classList.add('selected');
// In a real implementation, you would update the product image here
});
});
// FAQ accordion
const faqToggles = document.querySelectorAll('.faq-toggle');
faqToggles.forEach(toggle => {
toggle.addEventListener('click', () => {
const content = toggle.nextElementSibling;
const icon = toggle.querySelector('i');
content.classList.toggle('hidden');
icon.classList.toggle('rotate-180');
});
});
// Chatbot toggle
const chatbotToggle = document.getElementById('chatbot-toggle');
const chatbotContainer = document.querySelector('.chatbot-container');
const chatbotClose = document.querySelector('.chatbot-close');
chatbotToggle.addEventListener('click', () => {
chatbotContainer.classList.toggle('open');
});
chatbotClose.addEventListener('click', () => {
chatbotContainer.classList.remove('open');
});
// Floating CTA on scroll
const floatingButtons = document.querySelector('.floating-buttons');
let lastScrollPosition = 0;
window.addEventListener('scroll', () => {
const currentScrollPosition = window.pageYOffset;
if (currentScrollPosition > 300) {
floatingButtons.classList.remove('hidden');
if (currentScrollPosition > lastScrollPosition) {
// Scrolling down
floatingButtons.classList.add('hidden');
} else {
// Scrolling up
floatingButtons.classList.remove('hidden');
}
} else {
floatingButtons.classList.add('hidden');
}
lastScrollPosition = currentScrollPosition;
});
// Simulate stock counter
const stockCounter = document.querySelector('.text-green-600');
let stockCount = 37;
setInterval(() => {
if (stockCount > 0 && Math.random() > 0.7) {
stockCount--;
stockCounter.innerHTML = `<i class="fas fa-bolt"></i> ${stockCount} units left at this price!`;
if (stockCount < 10) {
stockCounter.classList.add('animate-pulse');
}
}
}, 30000);
</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=ProEarner/myfirst" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>