|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>Premium Earphones | SonicPulse</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=Poppins:wght@300;400;500;600;700&display=swap'); |
|
|
|
body { |
|
font-family: 'Poppins', sans-serif; |
|
background-color: #f8f9fa; |
|
} |
|
|
|
.gradient-bg { |
|
background: linear-gradient(135deg, #6e8efb, #a777e3); |
|
} |
|
|
|
.product-card:hover { |
|
transform: translateY(-5px); |
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); |
|
} |
|
|
|
.product-card { |
|
transition: all 0.3s ease; |
|
} |
|
|
|
.color-option { |
|
width: 30px; |
|
height: 30px; |
|
border-radius: 50%; |
|
cursor: pointer; |
|
transition: transform 0.2s; |
|
} |
|
|
|
.color-option:hover { |
|
transform: scale(1.1); |
|
} |
|
|
|
.color-option.selected { |
|
border: 2px solid #000; |
|
transform: scale(1.1); |
|
} |
|
|
|
.pulse { |
|
animation: pulse 2s infinite; |
|
} |
|
|
|
@keyframes pulse { |
|
0% { |
|
transform: scale(0.95); |
|
box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); |
|
} |
|
70% { |
|
transform: scale(1); |
|
box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); |
|
} |
|
100% { |
|
transform: scale(0.95); |
|
box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); |
|
} |
|
} |
|
|
|
.feature-icon { |
|
width: 50px; |
|
height: 50px; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
border-radius: 50%; |
|
background-color: rgba(167, 119, 227, 0.1); |
|
color: #6e8efb; |
|
font-size: 20px; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
|
|
<nav class="bg-white shadow-sm sticky top-0 z-50"> |
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
|
<div class="flex justify-between h-16"> |
|
<div class="flex items-center"> |
|
<div class="flex-shrink-0 flex items-center"> |
|
<i class="fas fa-headphones text-purple-600 text-2xl mr-2"></i> |
|
<span class="text-xl font-bold text-gray-900">SonicPulse</span> |
|
</div> |
|
<div class="hidden sm:ml-6 sm:flex sm:space-x-8"> |
|
<a href="#" class="border-purple-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Home</a> |
|
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Products</a> |
|
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Features</a> |
|
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Support</a> |
|
</div> |
|
</div> |
|
<div class="hidden sm:ml-6 sm:flex sm:items-center"> |
|
<button type="button" class="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500"> |
|
<i class="fas fa-search h-6 w-6"></i> |
|
</button> |
|
<button type="button" class="ml-3 bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500"> |
|
<i class="fas fa-shopping-cart h-6 w-6"></i> |
|
<span class="cart-count absolute top-0 right-0 inline-block w-5 h-5 bg-red-500 text-white text-xs rounded-full flex items-center justify-center">3</span> |
|
</button> |
|
</div> |
|
<div class="-mr-2 flex items-center sm:hidden"> |
|
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-purple-500" aria-controls="mobile-menu" aria-expanded="false"> |
|
<i class="fas fa-bars h-6 w-6"></i> |
|
</button> |
|
</div> |
|
</div> |
|
</div> |
|
</nav> |
|
|
|
|
|
<div class="gradient-bg text-white"> |
|
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8 lg:py-24"> |
|
<div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center"> |
|
<div class="mb-8 lg:mb-0"> |
|
<h1 class="text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl mb-4"> |
|
Premium Sound. <br>Unmatched Comfort. |
|
</h1> |
|
<p class="text-xl text-purple-100 max-w-3xl"> |
|
Experience crystal clear audio with our noise-cancelling wireless earphones. Designed for music lovers by music lovers. |
|
</p> |
|
<div class="mt-8 flex flex-col sm:flex-row gap-4"> |
|
<button class="bg-white text-purple-600 hover:bg-gray-100 px-8 py-3 rounded-full font-medium text-lg shadow-lg transform transition hover:scale-105"> |
|
Shop Now |
|
</button> |
|
<button class="border-2 border-white text-white hover:bg-white hover:text-purple-600 px-8 py-3 rounded-full font-medium text-lg transform transition hover:scale-105"> |
|
Learn More |
|
</button> |
|
</div> |
|
</div> |
|
<div class="relative"> |
|
<img src="https://images.unsplash.com/photo-1590658268037-6bf12165a8df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" alt="Premium Earphones" class="rounded-lg shadow-2xl transform rotate-6"> |
|
<div class="absolute -bottom-6 -left-6 bg-white p-4 rounded-lg shadow-lg"> |
|
<div class="flex items-center"> |
|
<div class="p-2 bg-purple-100 rounded-full mr-3"> |
|
<i class="fas fa-headphones text-purple-600"></i> |
|
</div> |
|
<div> |
|
<p class="text-xs text-gray-500">Best Seller</p> |
|
<p class="font-bold text-gray-900">SonicPulse Pro</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16"> |
|
<div class="text-center mb-12"> |
|
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl"> |
|
Our Premium Collection |
|
</h2> |
|
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto"> |
|
Choose from our range of high-quality earphones designed for every lifestyle. |
|
</p> |
|
</div> |
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> |
|
|
|
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md"> |
|
<div class="relative"> |
|
<img src="https://images.unsplash.com/photo-1593784991095-a205069470b6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" alt="Wireless Earphones" class="w-full h-64 object-cover"> |
|
<div class="absolute top-4 right-4"> |
|
<span class="bg-red-500 text-white text-xs font-bold px-2 py-1 rounded-full">SALE</span> |
|
</div> |
|
</div> |
|
<div class="p-6"> |
|
<div class="flex justify-between items-start"> |
|
<div> |
|
<h3 class="text-lg font-bold text-gray-900">SonicPulse Air</h3> |
|
<p class="text-gray-500">Wireless Earbuds</p> |
|
</div> |
|
<div class="text-right"> |
|
<p class="text-lg font-bold text-purple-600">$129.99</p> |
|
<p class="text-sm text-gray-400 line-through">$159.99</p> |
|
</div> |
|
</div> |
|
<div class="mt-4 flex space-x-2"> |
|
<div class="color-option bg-black selected" data-color="black"></div> |
|
<div class="color-option bg-white border border-gray-300" data-color="white"></div> |
|
<div class="color-option bg-blue-500" data-color="blue"></div> |
|
<div class="color-option bg-red-500" data-color="red"></div> |
|
</div> |
|
<div class="mt-6 flex justify-between"> |
|
<button class="add-to-cart flex-1 bg-gray-900 hover:bg-gray-800 text-white py-2 px-4 rounded-lg font-medium transition"> |
|
Add to Cart |
|
</button> |
|
<button class="ml-2 p-2 text-gray-400 hover:text-purple-600 rounded-full border border-gray-300 hover:border-purple-600 transition"> |
|
<i class="far fa-heart"></i> |
|
</button> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md"> |
|
<div class="relative"> |
|
<img src="https://images.unsplash.com/photo-1572569511254-d8f925fe2cbb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" alt="Noise Cancelling Headphones" class="w-full h-64 object-cover"> |
|
<div class="absolute top-4 right-4"> |
|
<span class="bg-green-500 text-white text-xs font-bold px-2 py-1 rounded-full pulse">NEW</span> |
|
</div> |
|
</div> |
|
<div class="p-6"> |
|
<div class="flex justify-between items-start"> |
|
<div> |
|
<h3 class="text-lg font-bold text-gray-900">SonicPulse Pro</h3> |
|
<p class="text-gray-500">Noise Cancelling</p> |
|
</div> |
|
<div class="text-right"> |
|
<p class="text-lg font-bold text-purple-600">$199.99</p> |
|
</div> |
|
</div> |
|
<div class="mt-4 flex space-x-2"> |
|
<div class="color-option bg-black selected" data-color="black"></div> |
|
<div class="color-option bg-gray-400" data-color="gray"></div> |
|
<div class="color-option bg-blue-800" data-color="navy"></div> |
|
</div> |
|
<div class="mt-6 flex justify-between"> |
|
<button class="add-to-cart flex-1 bg-gray-900 hover:bg-gray-800 text-white py-2 px-4 rounded-lg font-medium transition"> |
|
Add to Cart |
|
</button> |
|
<button class="ml-2 p-2 text-gray-400 hover:text-purple-600 rounded-full border border-gray-300 hover:border-purple-600 transition"> |
|
<i class="far fa-heart"></i> |
|
</button> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md"> |
|
<div class="relative"> |
|
<img src="https://images.unsplash.com/photo-1578319439584-104c94bcdd45?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" alt="Sports Earphones" class="w-full h-64 object-cover"> |
|
</div> |
|
<div class="p-6"> |
|
<div class="flex justify-between items-start"> |
|
<div> |
|
<h3 class="text-lg font-bold text-gray-900">SonicPulse Sport</h3> |
|
<p class="text-gray-500">Sweatproof Design</p> |
|
</div> |
|
<div class="text-right"> |
|
<p class="text-lg font-bold text-purple-600">$89.99</p> |
|
</div> |
|
</div> |
|
<div class="mt-4 flex space-x-2"> |
|
<div class="color-option bg-black selected" data-color="black"></div> |
|
<div class="color-option bg-green-500" data-color="green"></div> |
|
<div class="color-option bg-yellow-400" data-color="yellow"></div> |
|
</div> |
|
<div class="mt-6 flex justify-between"> |
|
<button class="add-to-cart flex-1 bg-gray-900 hover:bg-gray-800 text-white py-2 px-4 rounded-lg font-medium transition"> |
|
Add to Cart |
|
</button> |
|
<button class="ml-2 p-2 text-gray-400 hover:text-purple-600 rounded-full border border-gray-300 hover:border-purple-600 transition"> |
|
<i class="far fa-heart"></i> |
|
</button> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="mt-12 text-center"> |
|
<button class="border-2 border-purple-600 text-purple-600 hover:bg-purple-600 hover:text-white px-8 py-3 rounded-full font-medium text-lg transition"> |
|
View All Products |
|
</button> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="bg-gray-50 py-16"> |
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
|
<div class="text-center mb-12"> |
|
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl"> |
|
Why Choose SonicPulse? |
|
</h2> |
|
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto"> |
|
Cutting-edge technology meets exceptional comfort |
|
</p> |
|
</div> |
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8"> |
|
<div class="text-center p-6 bg-white rounded-lg shadow-sm"> |
|
<div class="feature-icon mx-auto mb-4"> |
|
<i class="fas fa-volume-up"></i> |
|
</div> |
|
<h3 class="text-lg font-bold text-gray-900 mb-2">Premium Sound</h3> |
|
<p class="text-gray-500">High-fidelity audio with deep bass and crystal clear highs</p> |
|
</div> |
|
|
|
<div class="text-center p-6 bg-white rounded-lg shadow-sm"> |
|
<div class="feature-icon mx-auto mb-4"> |
|
<i class="fas fa-wifi"></i> |
|
</div> |
|
<h3 class="text-lg font-bold text-gray-900 mb-2">Wireless Freedom</h3> |
|
<p class="text-gray-500">Bluetooth 5.0 with 30ft range and stable connection</p> |
|
</div> |
|
|
|
<div class="text-center p-6 bg-white rounded-lg shadow-sm"> |
|
<div class="feature-icon mx-auto mb-4"> |
|
<i class="fas fa-battery-three-quarters"></i> |
|
</div> |
|
<h3 class="text-lg font-bold text-gray-900 mb-2">Long Battery</h3> |
|
<p class="text-gray-500">Up to 24 hours of playtime with quick charge</p> |
|
</div> |
|
|
|
<div class="text-center p-6 bg-white rounded-lg shadow-sm"> |
|
<div class="feature-icon mx-auto mb-4"> |
|
<i class="fas fa-headset"></i> |
|
</div> |
|
<h3 class="text-lg font-bold text-gray-900 mb-2">Comfort Fit</h3> |
|
<p class="text-gray-500">Ergonomic design with multiple ear tip sizes</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16"> |
|
<div class="text-center mb-12"> |
|
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl"> |
|
What Our Customers Say |
|
</h2> |
|
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto"> |
|
Don't just take our word for it |
|
</p> |
|
</div> |
|
|
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-8"> |
|
<div class="bg-white p-8 rounded-lg shadow-sm"> |
|
<div class="flex items-center mb-4"> |
|
<div class="flex-shrink-0"> |
|
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt=""> |
|
</div> |
|
<div class="ml-3"> |
|
<p class="text-sm font-medium text-gray-900">Sarah Johnson</p> |
|
<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> |
|
</div> |
|
</div> |
|
<p class="text-gray-600 italic"> |
|
"The sound quality is incredible! I've tried many brands but SonicPulse is by far the best. The noise cancellation works perfectly on my commute." |
|
</p> |
|
</div> |
|
|
|
<div class="bg-white p-8 rounded-lg shadow-sm"> |
|
<div class="flex items-center mb-4"> |
|
<div class="flex-shrink-0"> |
|
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt=""> |
|
</div> |
|
<div class="ml-3"> |
|
<p class="text-sm font-medium text-gray-900">Michael Chen</p> |
|
<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> |
|
</div> |
|
</div> |
|
<p class="text-gray-600 italic"> |
|
"I use these for workouts and they never fall out. The battery lasts through my longest training sessions. Highly recommend for athletes!" |
|
</p> |
|
</div> |
|
|
|
<div class="bg-white p-8 rounded-lg shadow-sm"> |
|
<div class="flex items-center mb-4"> |
|
<div class="flex-shrink-0"> |
|
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt=""> |
|
</div> |
|
<div class="ml-3"> |
|
<p class="text-sm font-medium text-gray-900">David Wilson</p> |
|
<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> |
|
</div> |
|
</div> |
|
<p class="text-gray-600 italic"> |
|
"The comfort is unmatched. I can wear these all day without any ear fatigue. The sound is crisp and the bass is deep without being overpowering." |
|
</p> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="gradient-bg text-white py-16"> |
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
|
<div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center"> |
|
<div class="mb-8 lg:mb-0"> |
|
<h2 class="text-3xl font-bold mb-4">Stay Updated</h2> |
|
<p class="text-purple-100 max-w-lg"> |
|
Subscribe to our newsletter for exclusive deals, new product announcements, and audio tips from our experts. |
|
</p> |
|
</div> |
|
<div> |
|
<form class="sm:flex"> |
|
<input type="email" placeholder="Enter your email" class="flex-1 px-5 py-3 rounded-l-lg text-gray-900 focus:outline-none focus:ring-2 focus:ring-purple-500"> |
|
<button type="submit" class="mt-2 sm:mt-0 sm:ml-2 bg-purple-800 hover:bg-purple-900 px-6 py-3 rounded-r-lg font-medium transition"> |
|
Subscribe |
|
</button> |
|
</form> |
|
<p class="mt-3 text-sm text-purple-200"> |
|
We respect your privacy. Unsubscribe at any time. |
|
</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<footer class="bg-gray-900 text-white pt-12 pb-8"> |
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
|
<div class="grid grid-cols-2 md:grid-cols-4 gap-8"> |
|
<div> |
|
<h3 class="text-lg font-bold mb-4">Products</h3> |
|
<ul class="space-y-2"> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Wireless Earbuds</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Noise Cancelling</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Sports Earphones</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Accessories</a></li> |
|
</ul> |
|
</div> |
|
|
|
<div> |
|
<h3 class="text-lg font-bold mb-4">Support</h3> |
|
<ul class="space-y-2"> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Help Center</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Warranty</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Returns</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact Us</a></li> |
|
</ul> |
|
</div> |
|
|
|
<div> |
|
<h3 class="text-lg font-bold mb-4">Company</h3> |
|
<ul class="space-y-2"> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">About Us</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Careers</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li> |
|
<li><a href="#" class="text-gray-400 hover:text-white transition">Press</a></li> |
|
</ul> |
|
</div> |
|
|
|
<div> |
|
<h3 class="text-lg font-bold mb-4">Connect</h3> |
|
<div class="flex space-x-4"> |
|
<a href="#" class="text-gray-400 hover:text-white transition"> |
|
<i class="fab fa-facebook-f"></i> |
|
</a> |
|
<a href="#" class="text-gray-400 hover:text-white transition"> |
|
<i class="fab fa-twitter"></i> |
|
</a> |
|
<a href="#" class="text-gray-400 hover:text-white transition"> |
|
<i class="fab fa-instagram"></i> |
|
</a> |
|
<a href="#" class="text-gray-400 hover:text-white transition"> |
|
<i class="fab fa-youtube"></i> |
|
</a> |
|
</div> |
|
<div class="mt-6"> |
|
<h4 class="text-sm font-bold mb-2">Payment Methods</h4> |
|
<div class="flex space-x-2"> |
|
<i class="fab fa-cc-visa text-gray-400 text-xl"></i> |
|
<i class="fab fa-cc-mastercard text-gray-400 text-xl"></i> |
|
<i class="fab fa-cc-amex text-gray-400 text-xl"></i> |
|
<i class="fab fa-cc-paypal text-gray-400 text-xl"></i> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="mt-12 pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between items-center"> |
|
<div class="flex items-center"> |
|
<i class="fas fa-headphones text-purple-500 text-2xl mr-2"></i> |
|
<span class="text-xl font-bold">SonicPulse</span> |
|
</div> |
|
<div class="mt-4 md:mt-0 text-gray-400 text-sm"> |
|
© 2023 SonicPulse. All rights reserved. |
|
</div> |
|
</div> |
|
</div> |
|
</footer> |
|
|
|
|
|
<div class="fixed inset-0 overflow-hidden z-50 hidden" id="cart-sidebar"> |
|
<div class="absolute inset-0 overflow-hidden"> |
|
<div class="absolute inset-0 bg-gray-500 bg-opacity-75 transition-opacity" id="cart-overlay"></div> |
|
<div class="fixed inset-y-0 right-0 pl-10 max-w-full flex"> |
|
<div class="w-screen max-w-md"> |
|
<div class="h-full flex flex-col bg-white shadow-xl overflow-y-scroll"> |
|
<div class="flex-1 py-6 overflow-y-auto px-4 sm:px-6"> |
|
<div class="flex items-start justify-between"> |
|
<h2 class="text-lg font-medium text-gray-900">Shopping cart</h2> |
|
<div class="ml-3 h-7 flex items-center"> |
|
<button type="button" class="-m-2 p-2 text-gray-400 hover:text-gray-500" id="close-cart"> |
|
<i class="fas fa-times"></i> |
|
</button> |
|
</div> |
|
</div> |
|
|
|
<div class="mt-8"> |
|
<div class="flow-root"> |
|
<ul class="-my-6 divide-y divide-gray-200"> |
|
<li class="py-6 flex"> |
|
<div class="flex-shrink-0 w-24 h-24 border border-gray-200 rounded-md overflow-hidden"> |
|
<img src="https://images.unsplash.com/photo-1593784991095-a205069470b6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80" alt="SonicPulse Air" class="w-full h-full object-cover"> |
|
</div> |
|
|
|
<div class="ml-4 flex-1 flex flex-col"> |
|
<div> |
|
<div class="flex justify-between text-base font-medium text-gray-900"> |
|
<h3>SonicPulse Air</h3> |
|
<p class="ml-4">$129.99</p> |
|
</div> |
|
<p class="mt-1 text-sm text-gray-500">Black</p> |
|
</div> |
|
<div class="flex-1 flex items-end justify-between text-sm"> |
|
<p class="text-gray-500">Qty 1</p> |
|
<div class="flex"> |
|
<button type="button" class="font-medium text-purple-600 hover:text-purple-500">Remove</button> |
|
</div> |
|
</div> |
|
</div> |
|
</li> |
|
|
|
<li class="py-6 flex"> |
|
<div class="flex-shrink-0 w-24 h-24 border border-gray-200 rounded-md overflow-hidden"> |
|
<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="SonicPulse Pro" class="w-full h-full object-cover"> |
|
</div> |
|
|
|
<div class="ml-4 flex-1 flex flex-col"> |
|
<div> |
|
<div class="flex justify-between text-base font-medium text-gray-900"> |
|
<h3>SonicPulse Pro</h3> |
|
<p class="ml-4">$199.99</p> |
|
</div> |
|
<p class="mt-1 text-sm text-gray-500">Black</p> |
|
</div> |
|
<div class="flex-1 flex items-end justify-between text-sm"> |
|
<p class="text-gray-500">Qty 2</p> |
|
<div class="flex"> |
|
<button type="button" class="font-medium text-purple-600 hover:text-purple-500">Remove</button> |
|
</div> |
|
</div> |
|
</div> |
|
</li> |
|
</ul> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<div class="border-t border-gray-200 py-6 px-4 sm:px-6"> |
|
<div class="flex justify-between text-base font-medium text-gray-900"> |
|
<p>Subtotal</p> |
|
<p>$529.97</p> |
|
</div> |
|
<p class="mt-0.5 text-sm text-gray-500">Shipping and taxes calculated at checkout.</p> |
|
<div class="mt-6"> |
|
<a href="#" class="flex justify-center items-center px-6 py-3 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-purple-600 hover:bg-purple-700"> |
|
Checkout |
|
</a> |
|
</div> |
|
<div class="mt-6 flex justify-center text-sm text-center text-gray-500"> |
|
<p> |
|
or |
|
<button type="button" class="text-purple-600 font-medium hover:text-purple-500 ml-1" id="continue-shopping">Continue Shopping</button> |
|
</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<script> |
|
|
|
document.querySelectorAll('.color-option').forEach(option => { |
|
option.addEventListener('click', function() { |
|
|
|
this.parentNode.querySelectorAll('.color-option').forEach(opt => { |
|
opt.classList.remove('selected'); |
|
}); |
|
|
|
this.classList.add('selected'); |
|
}); |
|
}); |
|
|
|
|
|
document.querySelectorAll('.add-to-cart').forEach(button => { |
|
button.addEventListener('click', function() { |
|
const productCard = this.closest('.product-card'); |
|
const productName = productCard.querySelector('h3').textContent; |
|
const productPrice = productCard.querySelector('.text-purple-600').textContent; |
|
const selectedColor = productCard.querySelector('.color-option.selected').getAttribute('data-color'); |
|
|
|
|
|
const cartCount = document.querySelector('.cart-count'); |
|
let currentCount = parseInt(cartCount.textContent); |
|
cartCount.textContent = currentCount + 1; |
|
|
|
|
|
const confirmation = document.createElement('div'); |
|
confirmation.className = 'fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg flex items-center'; |
|
confirmation.innerHTML = ` |
|
<i class="fas fa-check-circle mr-2"></i> |
|
Added ${productName} (${selectedColor}) to cart |
|
`; |
|
document.body.appendChild(confirmation); |
|
|
|
|
|
setTimeout(() => { |
|
confirmation.remove(); |
|
}, 3000); |
|
}); |
|
}); |
|
|
|
|
|
const cartButton = document.querySelector('.fa-shopping-cart').closest('button'); |
|
const cartSidebar = document.getElementById('cart-sidebar'); |
|
const cartOverlay = document.getElementById('cart-overlay'); |
|
const closeCart = document.getElementById('close-cart'); |
|
const continueShopping = document.getElementById('continue-shopping'); |
|
|
|
cartButton.addEventListener('click', function() { |
|
cartSidebar.classList.remove('hidden'); |
|
}); |
|
|
|
closeCart.addEventListener('click', function() { |
|
cartSidebar.classList.add('hidden'); |
|
}); |
|
|
|
continueShopping.addEventListener('click', function() { |
|
cartSidebar.classList.add('hidden'); |
|
}); |
|
|
|
cartOverlay.addEventListener('click', function() { |
|
cartSidebar.classList.add('hidden'); |
|
}); |
|
|
|
|
|
document.querySelector('.fa-bars').closest('button').addEventListener('click', function() { |
|
alert('Mobile menu would open here'); |
|
}); |
|
</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=ronalhung/earphones" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
|
</html> |