alexnguyen's picture
Create an e-commerce product landing page with hero image carousel, product features grid, size/color selector, customer reviews with star ratings, related products section, add to cart button, and shipping information.
83a96f0 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GlowGizmo | Premium Tech Essentials</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
100: '#f0f9ff',
500: '#0ea5e9',
700: '#0369a1'
},
secondary: {
100: '#f5f3ff',
500: '#8b5cf6',
700: '#6d28d9'
}
}
}
}
}
</script>
</head>
<body class="bg-gray-50">
<!-- Navbar Component -->
<script src="components/navbar.js"></script>
<custom-navbar></custom-navbar>
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<!-- Product Section -->
<section class="grid grid-cols-1 lg:grid-cols-2 gap-12">
<!-- Product Images Carousel -->
<div class="relative">
<div class="carousel-container relative overflow-hidden rounded-2xl shadow-xl h-96">
<div class="carousel-track flex transition-transform duration-300">
<div class="carousel-slide min-w-full">
<img src="http://static.photos/technology/1200x630/1" alt="Product Image 1" class="w-full h-full object-cover">
</div>
<div class="carousel-slide min-w-full">
<img src="http://static.photos/technology/1200x630/2" alt="Product Image 2" class="w-full h-full object-cover">
</div>
<div class="carousel-slide min-w-full">
<img src="http://static.photos/technology/1200x630/3" alt="Product Image 3" class="w-full h-full object-cover">
</div>
</div>
<button class="carousel-prev absolute left-4 top-1/2 -translate-y-1/2 bg-white p-2 rounded-full shadow-md hover:bg-primary-100">
<i data-feather="chevron-left"></i>
</button>
<button class="carousel-next absolute right-4 top-1/2 -translate-y-1/2 bg-white p-2 rounded-full shadow-md hover:bg-primary-100">
<i data-feather="chevron-right"></i>
</button>
<div class="carousel-dots flex justify-center space-x-2 absolute bottom-4 left-0 right-0">
<button class="w-3 h-3 rounded-full bg-white opacity-50 hover:opacity-100"></button>
<button class="w-3 h-3 rounded-full bg-white opacity-50 hover:opacity-100"></button>
<button class="w-3 h-3 rounded-full bg-white opacity-50 hover:opacity-100"></button>
</div>
</div>
</div>
<!-- Product Info -->
<div>
<h1 class="text-4xl font-bold text-gray-900 mb-2">GlowGizmo Pro X</h1>
<div class="flex items-center mb-4">
<div class="flex text-yellow-400 mr-2">
<i data-feather="star" class="w-5 h-5 fill-current"></i>
<i data-feather="star" class="w-5 h-5 fill-current"></i>
<i data-feather="star" class="w-5 h-5 fill-current"></i>
<i data-feather="star" class="w-5 h-5 fill-current"></i>
<i data-feather="star" class="w-5 h-5 fill-current text-gray-300"></i>
</div>
<span class="text-gray-600">(142 reviews)</span>
</div>
<p class="text-3xl font-semibold text-primary-500 mb-6">$349.99</p>
<p class="text-gray-700 mb-8">The GlowGizmo Pro X revolutionizes your daily routine with cutting-edge technology and elegant design. Experience seamless connectivity and unmatched performance.</p>
<!-- Color Selector -->
<div class="mb-6">
<h3 class="text-lg font-medium text-gray-900 mb-2">Color</h3>
<div class="flex space-x-3">
<button class="w-10 h-10 rounded-full bg-black border-2 border-transparent hover:border-primary-500 focus:border-primary-500 focus:outline-none"></button>
<button class="w-10 h-10 rounded-full bg-blue-600 border-2 border-transparent hover:border-primary-500 focus:border-primary-500 focus:outline-none"></button>
<button class="w-10 h-10 rounded-full bg-gray-300 border-2 border-transparent hover:border-primary-500 focus:border-primary-500 focus:outline-none"></button>
<button class="w-10 h-10 rounded-full bg-white border-2 border-gray-300 hover:border-primary-500 focus:border-primary-500 focus:outline-none"></button>
</div>
</div>
<!-- Size Selector -->
<div class="mb-8">
<h3 class="text-lg font-medium text-gray-900 mb-2">Size</h3>
<div class="grid grid-cols-4 gap-3">
<button class="py-2 px-4 border border-gray-300 rounded-md text-center hover:border-primary-500 hover:bg-primary-50 focus:outline-none focus:ring-2 focus:ring-primary-500">S</button>
<button class="py-2 px-4 border border-gray-300 rounded-md text-center hover:border-primary-500 hover:bg-primary-50 focus:outline-none focus:ring-2 focus:ring-primary-500">M</button>
<button class="py-2 px-4 border border-gray-300 rounded-md text-center bg-primary-100 border-primary-500 font-medium">L</button>
<button class="py-2 px-4 border border-gray-300 rounded-md text-center hover:border-primary-500 hover:bg-primary-50 focus:outline-none focus:ring-2 focus:ring-primary-500">XL</button>
</div>
</div>
<!-- Add to Cart -->
<div class="flex space-x-4 mb-8">
<div class="flex items-center border border-gray-300 rounded-md overflow-hidden">
<button class="px-3 py-2 bg-gray-100 hover:bg-gray-200 text-gray-600">-</button>
<span class="px-4 py-2">1</span>
<button class="px-3 py-2 bg-gray-100 hover:bg-gray-200 text-gray-600">+</button>
</div>
<button class="flex-1 bg-primary-500 hover:bg-primary-600 text-white py-3 px-6 rounded-md font-medium transition-colors flex items-center justify-center">
<i data-feather="shopping-cart" class="w-5 h-5 mr-2"></i>
Add to Cart
</button>
</div>
<!-- Shipping Info -->
<div class="bg-gray-50 p-4 rounded-lg">
<div class="flex items-start mb-2">
<i data-feather="truck" class="w-5 h-5 text-primary-500 mr-2 mt-0.5"></i>
<div>
<h4 class="font-medium text-gray-900">Free Shipping</h4>
<p class="text-gray-600 text-sm">Get free shipping on all orders over $50</p>
</div>
</div>
<div class="flex items-start">
<i data-feather="refresh-cw" class="w-5 h-5 text-primary-500 mr-2 mt-0.5"></i>
<div>
<h4 class="font-medium text-gray-900">Easy Returns</h4>
<p class="text-gray-600 text-sm">30-day return policy, no questions asked</p>
</div>
</div>
</div>
</div>
</section>
<!-- Product Features -->
<section class="mt-20">
<h2 class="text-2xl font-bold text-gray-900 mb-8">Product Features</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mb-4">
<i data-feather="zap" class="w-6 h-6 text-primary-500"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Lightning Fast</h3>
<p class="text-gray-600">Powered by our latest processor for instant response and seamless multitasking.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mb-4">
<i data-feather="battery" class="w-6 h-6 text-primary-500"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">All-Day Battery</h3>
<p class="text-gray-600">Up to 48 hours of battery life for uninterrupted use throughout your day.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mb-4">
<i data-feather="cpu" class="w-6 h-6 text-primary-500"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Advanced Cooling</h3>
<p class="text-gray-600">Patented cooling system keeps your device at optimal temperature even under heavy load.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mb-4">
<i data-feather="eye" class="w-6 h-6 text-primary-500"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Eye Comfort</h3>
<p class="text-gray-600">Blue light reduction technology for comfortable viewing even during extended use.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mb-4">
<i data-feather="wifi" class="w-6 h-6 text-primary-500"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Ultra Connectivity</h3>
<p class="text-gray-600">Next-gen wireless technology for faster, more stable connections.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div class="w-12 h-12 bg-primary-100 rounded-lg flex items-center justify-center mb-4">
<i data-feather="shield" class="w-6 h-6 text-primary-500"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Military Grade</h3>
<p class="text-gray-600">Rugged design that meets military standards for durability and reliability.</p>
</div>
</div>
</section>
<!-- Customer Reviews -->
<section class="mt-20">
<div class="flex justify-between items-center mb-8">
<h2 class="text-2xl font-bold text-gray-900">Customer Reviews</h2>
<button class="text-primary-500 font-medium hover:text-primary-600">Write a Review</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<!-- Review 1 -->
<div class="bg-white p-6 rounded-xl shadow-sm">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-gray-200 mr-4 overflow-hidden">
<img src="http://static.photos/people/200x200/1" alt="Customer" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium text-gray-900">Alex Johnson</h4>
<div class="flex text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
</div>
</div>
</div>
<h3 class="font-medium text-gray-900 mb-2">Perfect for my needs</h3>
<p class="text-gray-600 mb-4">The GlowGizmo Pro X has exceeded all my expectations. The battery life is incredible and the performance is top-notch.</p>
<p class="text-gray-400 text-sm">Posted on March 15, 2023</p>
</div>
<!-- Review 2 -->
<div class="bg-white p-6 rounded-xl shadow-sm">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-gray-200 mr-4 overflow-hidden">
<img src="http://static.photos/people/200x200/2" alt="Customer" class="w-full h-full object-cover">
</div>
<div>
<h4 class="font-medium text-gray-900">Sarah Williams</h4>
<div class="flex text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current text-gray-300"></i>
</div>
</div>
</div>
<h3 class="font-medium text-gray-900 mb-2">Great product with minor issues</h3>
<p class="text-gray-600 mb-4">Love the design and features, but the companion app could use some improvements.</p>
<p class="text-gray-400 text-sm">Posted on February 28, 2023</p>
</div>
</div>
<button class="mt-8 w-full py-3 border border-gray-300 rounded-md text-primary-500 font-medium hover:border-primary-500 hover:bg-primary-50 transition-colors">
View All 142 Reviews
</button>
</section>
<!-- Related Products -->
<section class="mt-20">
<h2 class="text-2xl font-bold text-gray-900 mb-8">You May Also Like</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<!-- Product 1 -->
<div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-shadow">
<div class="relative h-48 bg-gray-100">
<img src="http://static.photos/technology/640x360/4" alt="Related Product" class="w-full h-full object-cover">
<button class="absolute top-3 right-3 w-10 h-10 bg-white rounded-full flex items-center justify-center shadow-md hover:bg-gray-100">
<i data-feather="heart" class="w-5 h-5 text-gray-600"></i>
</button>
</div>
<div class="p-4">
<h3 class="font-medium text-gray-900 mb-1">GlowGizmo Lite</h3>
<div class="flex text-yellow-400 mb-2">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current text-gray-300"></i>
</div>
<p class="text-primary-500 font-medium mb-3">$249.99</p>
<button class="w-full py-2 bg-primary-500 hover:bg-primary-600 text-white rounded-md text-sm font-medium transition-colors">
Add to Cart
</button>
</div>
</div>
<!-- Product 2 -->
<div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-shadow">
<div class="relative h-48 bg-gray-100">
<img src="http://static.photos/technology/640x360/5" alt="Related Product" class="w-full h-full object-cover">
<button class="absolute top-3 right-3 w-10 h-10 bg-white rounded-full flex items-center justify-center shadow-md hover:bg-gray-100">
<i data-feather="heart" class="w-5 h-5 text-gray-600"></i>
</button>
</div>
<div class="p-4">
<h3 class="font-medium text-gray-900 mb-1">GlowGizmo Accessory Kit</h3>
<div class="flex text-yellow-400 mb-2">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
</div>
<p class="text-primary-500 font-medium mb-3">$79.99</p>
<button class="w-full py-2 bg-primary-500 hover:bg-primary-600 text-white rounded-md text-sm font-medium transition-colors">
Add to Cart
</button>
</div>
</div>
<!-- Product 3 -->
<div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-shadow">
<div class="relative h-48 bg-gray-100">
<img src="http://static.photos/technology/640x360/6" alt="Related Product" class="w-full h-full object-cover">
<button class="absolute top-3 right-3 w-10 h-10 bg-white rounded-full flex items-center justify-center shadow-md hover:bg-gray-100">
<i data-feather="heart" class="w-5 h-5 text-gray-600"></i>
</button>
</div>
<div class="p-4">
<h3 class="font-medium text-gray-900 mb-1">GlowGizmo Wireless Charger</h3>
<div class="flex text-yellow-400 mb-2">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current text-gray-300"></i>
</div>
<p class="text-primary-500 font-medium mb-3">$59.99</p>
<button class="w-full py-2 bg-primary-500 hover:bg-primary-600 text-white rounded-md text-sm font-medium transition-colors">
Add to Cart
</button>
</div>
</div>
<!-- Product 4 -->
<div class="bg-white rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-shadow">
<div class="relative h-48 bg-gray-100">
<img src="http://static.photos/technology/640x360/7" alt="Related Product" class="w-full h-full object-cover">
<button class="absolute top-3 right-3 w-10 h-10 bg-white rounded-full flex items-center justify-center shadow-md hover:bg-gray-100">
<i data-feather="heart" class="w-5 h-5 text-gray-600"></i>
</button>
</div>
<div class="p-4">
<h3 class="font-medium text-gray-900 mb-1">GlowGizmo Travel Case</h3>
<div class="flex text-yellow-400 mb-2">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<i data-feather="star" class="w-4 h-4 fill-current"></i>
</div>
<p class="text-primary-500 font-medium mb-3">$39.99</p>
<button class="w-full py-2 bg-primary-500 hover:bg-primary-600 text-white rounded-md text-sm font-medium transition-colors">
Add to Cart
</button>
</div>
</div>
</div>
</section>
</main>
<!-- Footer Component -->
<script src="components/footer.js"></script>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>